query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Build call for patchThirdPartyConfiguration
public Call patchThirdPartyConfigurationCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/ThirdPartyConfiguration" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UpdateOperationConfiguration build();", "protected void enhanceConfig(ConfigurationBuilder c) {\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)\");\n }\n\n return patchThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)\");\n }\n\n return updateThirdPartyConfigurationCall(generalContractId, body);\n }", "public abstract CONFIG build();", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/builds/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Build> patchBuild(\n @Path(\"name\") String name, \n @Body Build body);", "public abstract void updatePendingConfiguration(Configuration config);", "private ModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/builds/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Build> patchBuild(\n @Path(\"name\") String name, \n @Body Build body, \n @QueryMap PatchBuild queryParameters);", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "Builder useBuildDistribution();", "@Test\n public void testBuildDefer() throws Exception {\n mockHttpClient = mock(OptimizelyHttpClient.class);\n\n projectConfigManager = builder()\n .withOptimizelyHttpClient(mockHttpClient)\n .withSdkKey(\"sdk-key\")\n .build(true);\n assertEquals(\"sdk-key\", projectConfigManager.getSDKKey());\n }", "@Override\n\tpublic void configure() throws CoreException {\n\t\t// associate this builder with the project\n\t\tPTJavaFileBuilder.addBuilderToProject(fProject);\n\t\t\n\t\t// issue order to rebuild project\n\t\tnew Job(\"PTJava File Build\") {\n\t\t\tprotected IStatus run(IProgressMonitor monitor) {\n\t\t\t\ttry {\n\t\t\t\t\t// invoke a full build\n\t\t\t\t\tfProject.build(\n\t\t\t\t\t\t\tPTJavaFileBuilder.FULL_BUILD,\n\t\t\t\t\t\t\tPTJavaFileBuilder.BUILDER_ID,\n\t\t\t\t\t\t\tnull, monitor);\n\t\t\t\t}\n\t\t\t\tcatch (CoreException exception) {\n\t\t\t\t\tPTJavaLog.logError(exception);\n\t\t\t\t}\n\t\t\t\treturn Status.OK_STATUS;\n\t\t\t}\n\t\t}.schedule();\n\t}", "BuildClient createBuildClient();", "protected void makeConfigImmutable() {\n final Project project = speedment.getProjectComponent().getProject();\n if (project != null) {\n final Project immutableProject = ImmutableProject.wrap(project);\n speedment.getProjectComponent().setProject(immutableProject);\n }\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "void subprojects(Action<? super ProjectPluginDependenciesSpec> configuration);", "protected void additionalConfig(ConfigType config){}", "CustomerServiceProviderConfiguration updateConfiguration(String serviceProviderId, ServiceProviderConfigurationUpdateRequest configuration);", "@Override\n Builder overrideConfiguration(ClientOverrideConfiguration clientOverrideConfiguration);", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)\");\n }\n // verify the required parameter 'thirdPartyName' is set\n if (thirdPartyName == null) {\n throw new ApiException(\"Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)\");\n }\n\n return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName);\n }", "private void preSyncConfiguration() {\n customPreSyncConfiguration.accept(caller, listener);\n }", "@Override\n\tpublic void onConfigurationUpdate() {\n\t}", "void applyConfiguration(Configuration configuration);", "void configurationUpdated();", "com.google.protobuf.Any getNewConfig();", "GradleBuild create();", "public interface ApplicationRuntimeConfigurationBuilder\n{\n Repository createRepositoryFromModel( Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n\n void releaseRepository( Repository repository, Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n}", "Builder useInstallation(File gradleHome);", "@Override\n public void setupConfiguration(Configuration config)\n {\n\n }", "public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }", "@Test\n public void testWebConfiguration() throws Exception {\n WebClient wc = j.createWebClient();\n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(true, TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertTrue(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest, selector.getUpstreamFilterStrategy());\n }\n \n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertFalse(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest, selector.getUpstreamFilterStrategy());\n }\n \n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(true, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertTrue(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, selector.getUpstreamFilterStrategy());\n }\n }", "public ClientConfiguration getClientConfiguration(TargetModuleID id);", "interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next update stage\n */\n Update withChainerSettings(ChainerSettings chainerSettings);\n }", "@ConfigBean\npublic interface FakeSpanLogTracingConfig extends FakeTraceableConfig {\n// /**\n// * Disabled traced span log.\n// */\n// public static final FakeSpanLogTracingConfigBean DISABLED = FakeSpanLogTracingConfigBean.builder(\"disabled\").enabled(false).build();\n// /**\n// * Enabled traced span log.\n// */\n// public static final FakeSpanLogTracingConfigBean ENABLED = FakeSpanLogTracingConfigBean.builder(\"enabled\").build();\n//\n// /**\n// * A new span log.\n// * @param name name of the span log\n// */\n// protected FakeSpanLogTracingConfigBean(String name) {\n// super(name);\n// }\n//\n\n// /**\n// * Merge two traced span log configurations.\n// *\n// * @param older original configuration with default values\n// * @param newer new configuration to override the older\n// * @return a new traced span log mergint the older and newer\n// */\n// static FakeSpanLogTracingConfigBean merge(FakeSpanLogTracingConfigBean older, FakeSpanLogTracingConfigBean newer) {\n// return new FakeSpanLogTracingConfigBean(newer.name()) {\n// @Override\n// public Optional<Boolean> isEnabled() {\n// return newer.isEnabled()\n// .or(older::isEnabled);\n// }\n// };\n// }\n//\n// /**\n// * Fluent API builder to create a new traced span log configuration.\n// *\n// * @param name name of the span log\n// * @return a new builder instance\n// */\n// public static Builder builder(String name) {\n// return new Builder(name);\n// }\n//\n// /**\n// * Create a new traced span log configuration from {@link io.helidon.config.Config}.\n// *\n// * @param name name of the span log\n// * @param config config for a traced span log\n// * @return a new traced span log configuration\n// */\n// public static FakeSpanLogTracingConfigBean create(String name, Config config) {\n// return builder(name).config(config).build();\n// }\n//\n// /**\n// * A fluent API builder for {@link FakeSpanLogTracingConfigBean}.\n// */\n// public static final class Builder implements io.helidon.common.Builder<Builder, FakeSpanLogTracingConfigBean> {\n// private final String name;\n// private Optional<Boolean> enabled = Optional.empty();\n//\n// private Builder(String name) {\n// this.name = name;\n// }\n//\n// @Override\n// public FakeSpanLogTracingConfigBean build() {\n// final Optional<Boolean> finalEnabled = enabled;\n// return new FakeSpanLogTracingConfigBean(name) {\n// @Override\n// public Optional<Boolean> isEnabled() {\n// return finalEnabled;\n// }\n// };\n// }\n//\n// /**\n// * Configure whether this traced span log is enabled or disabled.\n// *\n// * @param enabled if disabled, this span and all logs will be disabled\n// * @return updated builder instance\n// */\n// public Builder enabled(boolean enabled) {\n// this.enabled = Optional.of(enabled);\n// return this;\n// }\n//\n// /**\n// * Update this builder from {@link io.helidon.config.Config}.\n// *\n// * @param config config of a traced span log\n// * @return updated builder instance\n// */\n// public Builder config(Config config) {\n// config.get(\"enabled\").asBoolean().ifPresent(this::enabled);\n//\n// return this;\n// }\n// }\n//\n}", "public void reConfigure();", "Builder useGradleVersion(String gradleVersion);", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/builds/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Build> patchBuildStatus(\n @Path(\"name\") String name, \n @Body Build body);", "public void configure(FunctionRuntimeContext runtimeContext) {\n validateConfigurationMethods(runtimeContext.getMethodWrapper());\n applyUserConfigurationMethod(runtimeContext.getMethodWrapper(), runtimeContext);\n }", "private synchronized void addBuildWrapperPath(ProcessBuilder pb){\r\n \t\tif (needPath==null || needPath.booleanValue() && bwPath!=null){\r\n \t\t\tneedPath=false;\r\n \t\t\tString path=new File(bwPath).getParent();\r\n \t\t\tif (path!=null){\r\n \t\t\t\tMap<String,String> env=pb.environment();\r\n \t\t\t\tString pathValue=env.get(\"PATH\");\r\n \t\t\t\tif (Boolean.TRUE.equals(needPath) || pathValue==null || pathValue.length()==0 || !pathValue.contains(path)){\r\n \t\t\t\t\tif (pathValue==null || pathValue.length()==0){\r\n \t\t\t\t\t\tpathValue=path;\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tpathValue+=File.pathSeparator+path;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tenv.put(\"PATH\",pathValue);\r\n \t\t\t\t\tneedPath=true;\r\n \t\t\t\t} \r\n \t\t\t}\r\n \t\t}\r\n \t}", "public void updateProject(Task context) throws BuildException {\n //Properties codenameOneSettings = new Properties();\n if (projectDir == null) {\n throw new BuildException(\"Cannot update project with null projectDir\");\n }\n File codenameOneSettingsFile = new File(projectDir, \"codenameone_settings.properties\");\n if (!codenameOneSettingsFile.exists()) {\n throw new BuildException(\"No codenameone_settings.properties file found at \"+codenameOneSettingsFile);\n }\n \n File srcDir = new File(projectDir, \"src\");\n \n Properties codenameOneSettings = null;\n try {\n codenameOneSettings = Util.loadProperties(codenameOneSettingsFile);\n } catch (Exception ex) {\n throw new BuildException(\"Failed to load project settings \"+codenameOneSettingsFile, ex);\n }\n \n if (version != null) {\n try {\n double ver = Double.parseDouble(version);\n codenameOneSettings.setProperty(\"codename1.version\", \"\" + ver);\n } catch(NumberFormatException err) {\n System.out.println(\"Couldn't convert version, Codename One versions must be decimal numbers for increased portability\");\n } \n \n }\n \n if (packageId != null) {\n String oldPackage = codenameOneSettings.getProperty(\"codename1.packageName\");\n codenameOneSettings.setProperty(\"codename1.packageName\", packageId);\n String iosAppId = codenameOneSettings.getProperty(\"codename1.ios.appid\");\n if (iosAppId == null) {\n iosAppId = \"BQ5FVWYLLB.com.codename1.demos.cordova\";\n }\n iosAppId = iosAppId.substring(0, iosAppId.indexOf(\".\"))+\".\"+packageId;\n codenameOneSettings.setProperty(\"codename1.ios.appid\", iosAppId);\n \n if (!packageId.equals(oldPackage)) {\n String oldMainPath = oldPackage.replace(\".\", File.separator);\n String newMainPath = packageId.replace(\".\", File.separator);\n File oldMainDir = new File(srcDir, oldMainPath);\n File newMainDir = new File(srcDir, newMainPath);\n //String mainClassName = codenameOneSettings.getProperty(\"codename1.mainName\");\n\n if (!oldMainDir.exists()) {\n throw new BuildException(\"Could not find old main dir: \"+oldMainDir);\n }\n\n //File oldMainFile = new File(oldMainDir, mainClassName+\".java\");\n //File newMainFile = new File(newMainDir, mainClassName+\".java\");\n\n newMainDir.getParentFile().mkdirs();\n if (newMainDir.exists()) {\n for (File f : oldMainDir.listFiles()) {\n if (\".\".equals(f.getName()) || \"..\".equals(f.getName())) {\n continue;\n }\n f.renameTo(new File(newMainDir, f.getName()));\n }\n oldMainDir.delete();\n } else {\n\n oldMainDir.renameTo(newMainDir);\n }\n\n Replace replaceTask = (Replace)context.getProject().createTask(\"replace\");\n replaceTask.setDir(srcDir);\n replaceTask.setIncludes(\"**/*.java\");\n Replace.NestedString token = replaceTask.createReplaceToken();\n token.addText(oldPackage);\n\n replaceTask.createReplaceValue().addText(packageId);\n replaceTask.execute();\n }\n \n }\n \n if (projectName != null) {\n codenameOneSettings.setProperty(\"codename1.displayName\", projectName);\n }\n \n \n \n \n try {\n Util.saveProperties(codenameOneSettings, codenameOneSettingsFile, \"Updated by ImportCordovaAppTask on \"+new Date());\n } catch (IOException ex) {\n throw new BuildException(\"Failed to save codename one settings file \"+codenameOneSettingsFile, ex);\n }\n \n \n File nbprojectDir = new File(projectDir, \"nbproject\");\n \n new File(projectDir, \"override\").mkdirs();\n new File(projectDir, \"native\" + File.separator + \"internal_tmp\").mkdirs();\n File nbprojectPropertiesFile = new File(nbprojectDir, \"project.properties\");\n if (nbprojectPropertiesFile.exists()) {\n Properties nbprojectProperties = null;\n context.log(\"Updating Netbeans properties file \"+nbprojectPropertiesFile);\n try {\n nbprojectProperties = Util.loadProperties(nbprojectPropertiesFile);\n \n } catch (Exception ex) {\n throw new BuildException(\"Failed to load netbeans project properties at \"+nbprojectPropertiesFile);\n }\n if (projectName != null) {\n String normalizedName = projectName.replaceAll(\"[^a-zA-Z0-9]\", \"\");\n \n nbprojectProperties.setProperty(\"application.title\", projectName);\n nbprojectProperties.setProperty(\"dist.jar\", \"${dist.dir}/\"+normalizedName+\".jar\");\n }\n \n try {\n Util.saveProperties(nbprojectProperties, nbprojectPropertiesFile, \"updated by \"+context.getTaskName()+ new Date());\n \n } catch (Exception ex) {\n throw new BuildException(\"Failed to save changes to \"+nbprojectPropertiesFile, ex);\n } \n \n if (projectName != null) {\n \n Replace replaceProjectName = (Replace)context.getProject().createTask(\"replace\");\n replaceProjectName.setFile(new File(nbprojectDir, \"project.xml\"));\n replaceProjectName.createReplaceToken().addText(\"<name>CordovaProjectTemplate</name>\");\n replaceProjectName.createReplaceValue().addText(\"<name>\"+projectName.replace(\"<\", \"&lt;\").replace(\">\", \"&gt;\")+\"</name>\");\n replaceProjectName.execute();\n }\n }\n }", "public abstract boolean updateConfig();", "Builder useDistribution(URI gradleDistribution);", "interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next update stage\n */\n Update withCntkSettings(CNTKsettings cntkSettings);\n }", "java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;", "com.google.protobuf.Any getOldConfig();", "@Test\n public void testFallBackToPatchToolDueToPatchArgs() throws Exception {\n setUpPatchTestRepo(ImmutableList.of(\"-p1\", \"-b\"), null, true);\n BuilderRunner bazel = WorkspaceTestUtils.bazel(context());\n if (isWindows()) {\n // On Windows, we expect no patch tool in PATH after removing MSYS paths from PATH env var.\n bazel.shouldFail();\n }\n ProcessResult result = bazel.build(\"@test//:foo\");\n if (isWindows()) {\n assertThat(result.errString())\n .contains(\"CreateProcessW(\\\"C:\\\\foo\\\\bar\\\\usr\\\\bin\\\\bash.exe\\\" -c \\\"patch '-p1' '-b'\");\n assertThat(result.errString()).contains(\"The system cannot find the file specified.\");\n } else {\n assertFooIsPatched(bazel);\n // foo.sh.orig should be generated due to \"-b\" argument.\n Path fooOrig = context().resolveExecRootPath(bazel, \"external/test/foo.sh.orig\");\n assertThat(fooOrig.toFile().exists()).isTrue();\n }\n }", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/configurations/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Configuration> patchNamespacedConfiguration(\n @Path(\"name\") String name,\n @Path(\"namespace\") String namespace, \n @Body Configuration body);", "private Configtx.ConfigSignature signChannelConfigUpdate(Configtx.ConfigUpdate configUpdate){\n HFClient hfClient = chaincodeService.getHfClient();\n byte[] bytes = new byte[24];\n new Random().nextBytes(bytes);\n Common.SignatureHeader signatureHeader = Common.SignatureHeader.newBuilder().setCreator(ByteString.copyFromUtf8(hfClient.getUserContext().getName())).setNonce(ByteString.copyFrom(bytes)).build();\n byte[] signatureHeaderBytes = signatureHeader.toByteArray();\n byte[] configUpdateBytes = configUpdate.toByteArray();\n\n byte[] concat = Arrays.copyOf(signatureHeaderBytes, signatureHeaderBytes.length + configUpdateBytes.length);\n System.arraycopy(configUpdateBytes, 0, concat, signatureHeaderBytes.length, configUpdateBytes.length);\n byte[] signature = null;\n try {\n signature = hfClient.getCryptoSuite().sign(hfClient.getUserContext().getEnrollment().getKey(), concat);\n } catch (CryptoException e) {\n e.printStackTrace();\n }\n Configtx.ConfigSignature configSignature = Configtx.ConfigSignature.newBuilder().setSignatureHeader(signatureHeader.toByteString()).setSignature(ByteString.copyFrom(signature)).build();\n return configSignature;\n }", "private void configureOsgiManifest(Project project) {\n project.afterEvaluate(new Action<Project>() {\n @Override\n public void execute(Project project) {\n project.getTasks().withType(Jar.class, new Action<Jar>() {\n @Override\n public void execute(Jar jar) {\n if (jar.getManifest() instanceof OsgiManifest) {\n OsgiManifest manifest = (OsgiManifest) jar.getManifest();\n if (manifest.getInstructions().containsKey(\"Implementation-Version\")) {\n manifest.instructionReplace(\"Implementation-Version\", configurationStore.getProjectVersion());\n }\n if (manifest.getInstructions().containsKey(\"Specification-Version\")) {\n manifest.instructionReplace(\"Specification-Version\", configurationStore.getProjectVersion());\n }\n }\n }\n });\n }\n });\n }", "Observable<CustomerServiceProviderConfiguration> updateConfigurationAsync(String serviceProviderId, ServiceProviderConfigurationUpdateRequest configuration);", "@Incubating\npublic interface ProjectPluginDependenciesSpec extends PluginDependenciesSpec{\n\n /**\n * Configures the plugins on this project and all its sub-projects.\n *\n * @param configuration the configuration to apply\n */\n void allprojects(Action<? super ProjectPluginDependenciesSpec> configuration);\n\n /**\n * Configures the plugins on all of this project's sub-projects\n * @param configuration\n */\n void subprojects(Action<? super ProjectPluginDependenciesSpec> configuration);\n\n}", "@NonNull\n\t\tConfig build();", "private void updateTargetProductMetadata() {\n }", "private SubmitConfigSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void syncConfig(Configuration config)\n {\n userModCfgs = new HashMap<String, ThirdPartyModConfig>();\n /*\n * Get / Set 3rd Party Mod configs\n */\n TCSettings.userConfigOverridesIMC = config.getBoolean(\"userConfigOverridesIMC\", Reference.CTGY_TREE_MOD_CFG,\n TCSettings.userConfigOverridesIMCDefault, Reference.userConfigOverridesIMCDesc, \"bspkrs.tc.configgui.userConfigOverridesIMC\");\n TCSettings.saveIMCConfigsToFile = config.getBoolean(\"saveIMCConfigsToFile\", Reference.CTGY_TREE_MOD_CFG,\n TCSettings.saveIMCConfigsToFileDefault, Reference.saveIMCConfigsToFileDesc, \"bspkrs.tc.configgui.saveIMCConfigsToFile\");\n\n TCLog.configs(config, Reference.CTGY_TREE_MOD_CFG);\n\n config.setCategoryComment(Reference.CTGY_TREE_MOD_CFG, Reference.TREE_MOD_CFG_CTGY_DESC);\n config.setCategoryLanguageKey(Reference.CTGY_TREE_MOD_CFG, \"bspkrs.tc.configgui.ctgy.\" + Reference.CTGY_TREE_MOD_CFG);\n\n if (!config.hasCategory(Reference.CTGY_TREE_MOD_CFG + \".\" + Reference.CTGY_VAN_TREES_ITEMS))\n {\n // Write default tree/mod settings to config\n for (Entry<String, ThirdPartyModConfig> e : defaultConfigs().entrySet())\n e.getValue().writeToConfiguration(config, Reference.CTGY_TREE_MOD_CFG + \".\" + e.getKey());\n\n TCLog.info(\"Looks like a fresh config; default config loaded.\");\n }\n else\n TCLog.info(\"Proceeding to load tree/mod configs from file.\");\n\n config.setCategoryComment(Reference.CTGY_TREE_MOD_CFG + \".\" + Reference.CTGY_VAN_TREES_ITEMS, Reference.VAN_TREES_ITEMS_CTGY_DESC);\n config.setCategoryLanguageKey(Reference.CTGY_TREE_MOD_CFG + \".\" + Reference.CTGY_VAN_TREES_ITEMS,\n \"bspkrs.tc.configgui.ctgy.\" + Reference.CTGY_TREE_MOD_CFG + \".\" + Reference.CTGY_VAN_TREES_ITEMS);\n\n // Load all configs found in the file to ModConfigRegistry\n for (String ctgy : config.getCategoryNames())\n {\n ConfigCategory cc = config.getCategory(ctgy);\n if (ctgy.indexOf(Reference.CTGY_TREE_MOD_CFG + \".\") != -1 && cc.containsKey(Reference.MOD_ID)\n && (cc.get(Reference.MOD_ID).getString().equals(Reference.MINECRAFT) || Loader.isModLoaded(cc.get(Reference.MOD_ID).getString())))\n {\n TCLog.debug(\"Loading file config for mod %s (config category %s)...\", cc.get(Reference.MOD_ID).getString(), ctgy);\n registerUserModConfig(ThirdPartyModConfig.readFromConfiguration(config, ctgy));\n }\n }\n }", "public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }", "public void build() {\r\n\tfDoingBatchBuild = true;\r\n\tfNotifier = new BuildNotifier(fDC, true);\r\n\tgetBuilderEnvironment().setNotifier(fNotifier);\r\n\tfNotifier.begin();\r\n\ttry {\r\n\t\tfNewState.readClassPath();\r\n\t\tfNotifier.subTask(Util.bind(\"build.scrubbingOutput\"/*nonNLS*/));\r\n\t\tfNewState.getBinaryOutput().scrubOutput();\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\t\tfNotifier.subTask(Util.bind(\"build.analyzingPackages\"/*nonNLS*/));\r\n\t\tfNewState.buildInitialPackageMap();\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\r\n\t\t/* Force build all in build context */\r\n\t\tfNotifier.subTask(Util.bind(\"build.analyzingSources\"/*nonNLS*/));\r\n\t\tIPackage[] pkgs = fNewState.getPackageMap().getAllPackagesAsArray();\r\n\t\tfor (int i = 0; i < pkgs.length; ++i) {\r\n\t\t\tfNotifier.checkCancel();\r\n\t\t\tSourceEntry[] entries = fNewState.getSourceEntries(pkgs[i]);\r\n\t\t\tif (entries != null) {\r\n\t\t\t\tfor (int j = 0; j < entries.length; ++j) {\r\n\t\t\t\t\tSourceEntry sEntry = entries[j];\r\n\t\t\t\t\tif (sEntry.isSource()) {\r\n\t\t\t\t\t\tPackageElement element = fNewState.packageElementFromSourceEntry(sEntry);\r\n\t\t\t\t\t\tfWorkQueue.add(element);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\t\tVector vToCompile = fWorkQueue.getElementsToCompile();\r\n\t\tif (vToCompile.size() > 0) {\r\n\t\t\tfNotifier.setProgressPerCompilationUnit(0.75f / vToCompile.size());\r\n\t\t\tcompile(vToCompile);\r\n\t\t}\r\n\t\t/* Copy resources to binary output */\r\n\t\tnew ProjectResourceCopier(fNewState.getJavaProject(), fDC, fNotifier, 0.10f).copyAllResourcesOnClasspath();\r\n\t\t\r\n\t\tfNotifier.done();\r\n\t} finally {\r\n\t\tcleanUp();\r\n\t}\r\n}", "private void invokeCallConfigPre(SkinnyMethodAdapter mv) {\n mv.aload(0); // load method to get callconfig\n mv.getfield(p(DynamicMethod.class), \"callConfig\", ci(CallConfiguration.class));\n\n // load pre params\n mv.aload(THREADCONTEXT_INDEX); // tc\n mv.aload(RECEIVER_INDEX); // self\n mv.aload(0);\n mv.invokevirtual(p(DynamicMethod.class), \"getImplementationClass\", sig(RubyModule.class)); // clazz\n mv.aload(0);\n mv.getfield(p(JavaMethod.class), \"arity\", ci(Arity.class)); // arity\n mv.aload(NAME_INDEX); // name\n mv.aload(ARGS_INDEX); // args\n mv.aload(BLOCK_INDEX); // block\n mv.aconst_null(); // scope\n mv.aload(0); // jump target\n mv.invokevirtual(p(CallConfiguration.class), \"pre\", sig(void.class, params(ThreadContext.class, IRubyObject.class, RubyModule.class, Arity.class, String.class, IRubyObject[].class, Block.class, StaticScope.class, JumpTarget.class)));\n }", "@Override\n public boolean hasAdditionalConfig() { return true; }", "public interface ConfigurationHolder {\n\n /**\n * Gets OpenAPI Gateway host.\n *\n * @return the OpenAPI Gateway host.\n */\n public String getGatewayHost();\n\n /**\n * Gets the App ID.\n *\n * @return the App ID.\n */\n public String getAppId();\n\n /**\n * Gets the merchant number.\n *\n * @return the merchant number.\n */\n public String getMerchantNo();\n\n /**\n * Gets the message format.\n *\n * @return the message format.\n */\n public default String getFormat() {\n return Constants.FORMAT_JSON;\n }\n\n /**\n * Gets the message charset.\n *\n * @return the message charset.\n */\n public default String getCharset() {\n return Constants.CHARSET_UTF8;\n }\n\n /**\n * Gets the API version number.\n *\n * @return the API version number.\n */\n public default String getVersion() {\n return Constants.VERSION_1;\n }\n\n /**\n * Gets the language.\n *\n * @return the language.\n */\n public Language getLanguage();\n\n /**\n * Gets the signature type.\n *\n * @return the signature type.\n */\n public SignType getSignType();\n\n /**\n * Gets the public key (used by RSA only).\n *\n * @return the public key.\n */\n public String getPublicKey();\n\n /**\n * Gets the private key.\n *\n * @return the private key.\n */\n public String getPrivateKey();\n\n /**\n * Gets whether the client supports partial payment.\n * This feature is only available for Snaplii payment.\n *\n * @return true if the client supports partial payment, or false otherwise.\n */\n public boolean isPartialPaymentSupported();\n\n /**\n * Gets the prefix for generating alternative order number when making partial payment.\n *\n * @return the alternative order number prefix.\n */\n public String getAlternativeOrderNumberPrefix();\n\n /**\n * Gets the suffix for generating alternative order number when making partial payment.\n *\n * @return the alternative order number suffix.\n */\n public String getAlternativeOrderNumberSuffix();\n\n /**\n * Gets the connection timeout setting.\n *\n * @return connection timeout in seconds.\n */\n public int getConnectionTimeout();\n\n /**\n * Gets the read timeout setting.\n *\n * @return read timeout in seconds.\n */\n public int getReadTimeout();\n\n /**\n * Validates the configuration.\n *\n * @throws OpenApiConfigurationExcepiton if any configuration is missing.\n */\n public default void validate() throws OpenApiConfigurationExcepiton {\n if (StringUtils.isEmpty(getGatewayHost())) {\n throw new OpenApiConfigurationExcepiton(\"Gateway host is not configured\");\n }\n if (StringUtils.isEmpty(getAppId())) {\n throw new OpenApiConfigurationExcepiton(\"App ID is not configured\");\n }\n if (StringUtils.isEmpty(getMerchantNo())) {\n throw new OpenApiConfigurationExcepiton(\"Merchant number is not configured\");\n }\n if (StringUtils.isEmpty(getFormat())) {\n throw new OpenApiConfigurationExcepiton(\"Format is not configured\");\n }\n if (StringUtils.isEmpty(getCharset())) {\n throw new OpenApiConfigurationExcepiton(\"Charset is not configured\");\n }\n if (getLanguage() == null) {\n throw new OpenApiConfigurationExcepiton(\"Language is not configured\");\n }\n if (getSignType() == null) {\n throw new OpenApiConfigurationExcepiton(\"Signature type is not configured\");\n }\n if (StringUtils.isEmpty(getPrivateKey())) {\n throw new OpenApiConfigurationExcepiton(\"Private key is not configured\");\n }\n if (SignType.RSA == getSignType() && StringUtils.isEmpty(getPublicKey())) {\n throw new OpenApiConfigurationExcepiton(\"Public key is not configured\");\n }\n if (getConnectionTimeout() <= 0 || getConnectionTimeout() > 60) {\n throw new OpenApiConfigurationExcepiton(\"Connection timeout needs to be between 1 and 60\");\n }\n if (getReadTimeout() <= 0 || getReadTimeout() > 60) {\n throw new OpenApiConfigurationExcepiton(\"Read timeout needs to be between 1 and 60\");\n }\n }\n\n}", "@Test\n public void testConfigurationBuilderProvider()\n throws ConfigurationException\n {\n factory.addProperty(\"override.configuration[@fileName]\", TEST_FILE\n .getAbsolutePath());\n CombinedConfiguration cc = factory.getConfiguration(false);\n assertEquals(\"Wrong number of configurations\", 1, cc\n .getNumberOfConfigurations());\n checkProperties(cc);\n }", "public void fixConfigValues() {\n String cooldown = getConfig().getString(\"Config.Default-Cooldown\");\n if (cooldown.equalsIgnoreCase(\"-1\")) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Cooldown\", \"0\");\n }\n double price = getConfig().getDouble(\"Config.Default-Price\");\n if (price == -1) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Price\", 0);\n }\n int limit = getConfig().getInt(\"Config.Default-Kit-Limit\");\n if (limit == -1) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Kit-Limit\", 0);\n }\n }", "public abstract void changeConfiguration(Configuration configuration);", "@Configuration\n public Option[] config() {\n String pathToTestClass = ServiceOneBundleTest.class.getClassLoader().getResource(\".\").getPath();\n String[] pathParts = pathToTestClass.split(\"OsgiBundleTest\");\n StringBuilder pathToBundle = new StringBuilder(pathParts[0]);\n pathToBundle.append(\"ServiceOneModule/target/ServiceOneModule-1.0-SNAPSHOT.jar\");\n return CoreOptions.options(\n mavenBundle(\"com.google.guava\", \"guava\", \"13.0.1\").startLevel(30),\n bundle(new File(pathToBundle.toString()).toURI().toString()),\n junitBundles()\n );\n }", "@Override\n\tpublic void loadExtraConfigs(Configuration config)\n\t{\n\n\t}", "public RelyingPartyConfiguration getDefaultRelyingPartyConfiguration();", "private void buildOslpRequestSetConfiguration(final SetConfigurationDeviceRequest deviceRequest) {\n if (deviceRequest.getConfiguration().getRelayConfiguration() != null) {\n Collections.sort(\n deviceRequest.getConfiguration().getRelayConfiguration().getRelayMap(),\n (o1, o2) -> o1.getIndex().compareTo(o2.getIndex()));\n }\n\n final Oslp.SetConfigurationRequest setConfigurationRequest =\n this.mapper.map(deviceRequest.getConfiguration(), Oslp.SetConfigurationRequest.class);\n\n this.buildAndSignEnvelope(\n deviceRequest,\n Oslp.Message.newBuilder().setSetConfigurationRequest(setConfigurationRequest).build(),\n deviceRequest.getConfiguration());\n }", "interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next update stage\n */\n Update withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }", "public static void configureProjectAsPlugin(IFacetedProjectWorkingCopy fpjwc, IRuntime runtime, String sdkLocation)\n \t\tthrows CoreException {\n \n \t\tfpjwc.setTargetedRuntimes(Collections.<IRuntime> emptySet());\n \n \t\tif (runtime != null) {\n \t\t\t// final Set<IProjectFacetVersion> minFacets = new\n \t\t\t// HashSet<IProjectFacetVersion>();\n \t\t\t//\n \t\t\t// try {\n \t\t\t// for( IProjectFacet f : fpjwc.getFixedProjectFacets() ) {\n \t\t\t// minFacets.add( f.getLatestSupportedVersion( runtime ) );\n \t\t\t// }\n \t\t\t// }\n \t\t\t// catch( CoreException e ) {\n \t\t\t// throw new RuntimeException( e );\n \t\t\t// }\n \t\t\t//\n \t\t\t// fpjwc.setProjectFacets( minFacets );\n \n \t\t\tfpjwc.setTargetedRuntimes(Collections.singleton(runtime));\n \t\t}\n \n \t\tfpjwc.setPrimaryRuntime(runtime);\n \n \t\t// fpjwc.setSelectedPreset(\n \t\t// FacetedProjectFramework.DEFAULT_CONFIGURATION_PRESET_ID );\n \n \t\tIFacetedProjectTemplate template = getLiferayTemplateForProject(fpjwc);\n \t\tIPreset preset = getLiferayPresetForProject(fpjwc);\n \n \t\tif (preset == null) {\n \t\t\tthrow new CoreException(\n \t\t\t\tProjectCorePlugin.createErrorStatus( \"No facet preset found for project name \" +\n \t\t\t\t\tfpjwc.getProjectName() +\n \t\t\t\t\t\", make sure your project is a valid liferay plugins sdk project with an expected prefix, e.g. -portlet, -hook, etc.\" ) );\n \t\t}\n \n \t\tSet<IProjectFacetVersion> currentProjectFacetVersions = fpjwc.getProjectFacets();\n \n \t\tSet<IProjectFacet> requiredFacets = template.getFixedProjectFacets();\n \n \t\tfor (IProjectFacet requiredFacet : requiredFacets) {\n \t\t\tboolean hasRequiredFacet = false;\n \n \t\t\tfor (IProjectFacetVersion currentFacetVersion : currentProjectFacetVersions) {\n \t\t\t\tif (currentFacetVersion.getProjectFacet().equals(requiredFacet)) {\n \t\t\t\t\tboolean supports = runtime.supports(currentFacetVersion);\n \n \t\t\t\t\tif (supports) {\n \t\t\t\t\t\thasRequiredFacet = true;\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tfpjwc.removeProjectFacet(currentFacetVersion);\n \t\t\t\t\t}\n \n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (!hasRequiredFacet) {\n \t\t\t\tIProjectFacetVersion requiredFacetVersion = getRequiredFacetVersionFromPreset(requiredFacet, preset);\n \n \t\t\t\tif (requiredFacetVersion != null) {\n \t\t\t\t\tfpjwc.addProjectFacet(requiredFacetVersion);\n \n \t\t\t\t\tif (ProjectUtil.isJavaFacet(requiredFacetVersion)) {\n \t\t\t\t\t\tconfigureJavaFacet(fpjwc, requiredFacetVersion.getProjectFacet(), preset);\n \t\t\t\t\t}\n \t\t\t\t\telse if (ProjectUtil.isLiferayFacet(requiredFacetVersion)) {\n \t\t\t\t\t\tconfigureLiferayFacet(fpjwc, requiredFacetVersion, sdkLocation);\n \t\t\t\t\t}\n \t\t\t\t\telse if (ProjectUtil.isDynamicWebFacet(requiredFacetVersion)) {\n \t\t\t\t\t\tconfigureWebFacet(fpjwc, requiredFacetVersion.getProjectFacet(), preset);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tif (ProjectUtil.isJavaFacet(requiredFacet)) {\n \t\t\t\t\tconfigureJavaFacet(fpjwc, requiredFacet, preset);\n \t\t\t\t}\n \t\t\t\telse if ( ProjectUtil.isLiferayFacet( requiredFacet ) ) {\n \t\t\t\t\tconfigureLiferayFacet( fpjwc, requiredFacet, sdkLocation );\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "void configure();", "private void updateConfig(){\n try {\n BeanUtils.copyProperties(config_,newConfig_);//copy the properties of newConfig_ into config_\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n } catch (InvocationTargetException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n }\n }", "public SSLConfig build()\n {\n return new SSLConfig(\n isClient, verifyMode, this.caPath, this.certPath, this.keyPath);\n }", "@Override\n protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n Class cUserCeritificateSource = Class.forName(\"android.security.net.config.UserCertificateSource\");\n Object iUserCeritificateSource = cUserCeritificateSource.getDeclaredMethod(\"getInstance\").invoke(null);\n\n //Creating new CertificatesEntryRef with UserCertificateSource instance as source\n Class cCertificatesEntryRef = Class.forName(\"android.security.net.config.CertificatesEntryRef\");\n Object iCertificatesEntryRef = cCertificatesEntryRef.getConstructor(Class.forName(\"android.security.net.config.CertificateSource\"), boolean.class).newInstance(iUserCeritificateSource, true);\n\n\n //Injecting that CertificatesEntryRef entry into NetworkSecurityConfig.Builder, so we'll always have UserCertificateSource as root certificates source\n Class cNetworkSecurityConfigBuilder = Class.forName(\"android.security.net.config.NetworkSecurityConfig$Builder\");\n cNetworkSecurityConfigBuilder.getDeclaredMethod(\"addCertificatesEntryRef\", cCertificatesEntryRef).invoke(param.thisObject, iCertificatesEntryRef);\n\n Log.d(\"Eris\", \"Injected into \" + lpparam.packageName);\n }", "@Test\n public void testPatchApiUsingNativePatchFailed() throws Exception {\n setUpPatchTestRepo(ImmutableList.of(\"-p2\"), null, true);\n BuilderRunner bazel = WorkspaceTestUtils.bazel(context()).shouldFail();\n ProcessResult result = bazel.build(\"@test//:foo\");\n assertThat(result.errString())\n .contains(\"Cannot determine file name with strip = 2 at line 4:\\n--- a/foo.sh\");\n }", "BRMSPackageBuilder(PackageBuilderConfiguration config) {\n super(config);\n }", "void configure (CallbackUtilities cus) throws RootException;", "@Test\n public void testConfigurationBuilderProviderOverrideProperties()\n throws Exception\n {\n factory.addProperty(\"override.configuration[@fileName]\",\n TEST_FILE.getAbsolutePath());\n factory.addProperty(\"override.configuration[@basePath]\", \"base\");\n factory.addProperty(\"override.configuration[@throwExceptionOnMissing]\",\n \"false\");\n factory.setBasePath(\"conf\");\n factory.setThrowExceptionOnMissing(true);\n DefaultConfigurationBuilder.ConfigurationDeclaration decl =\n new DefaultConfigurationBuilder.ConfigurationDeclaration(\n factory,\n factory.configurationAt(\"override.configuration\"));\n DefaultConfigurationBuilder.ConfigurationBuilderProvider provider =\n new DefaultConfigurationBuilder.ConfigurationBuilderProvider();\n DefaultConfigurationBuilder child =\n (DefaultConfigurationBuilder) provider.createBean(\n provider.fetchConfigurationClass(), decl, null);\n assertEquals(\"Wrong base path\", \"base\", child.getBasePath());\n assertFalse(\"Wrong exception flag\", child.isThrowExceptionOnMissing());\n }", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/projects/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Project> patchProject(\n @Path(\"name\") String name, \n @Body Project body);", "@Test\n\tvoid thirdPartyConfigurationPropertiesWithImportAsConfigurationPropertiesCanOptInForJavaBeanConvention() {\n\t\tthis.contextRunner.withUserConfiguration(ImportThirdParty3PropertiesConfiguration.class)\n\t\t\t\t.withPropertyValues(\"test.name=test\", \"test.counter=20\").run((context) -> {\n\t\t\t\t\tThirdParty3Properties properties = context.getBean(ThirdParty3Properties.class);\n\t\t\t\t\tassertThat(properties.getName()).isEqualTo(\"test\");\n\t\t\t\t\tassertThat(properties.getCounter()).isEqualTo(42);\n\t\t\t\t});\n\t}", "@Test\n public void testFallBackToPatchToolWhenItIsSpecified() throws Exception {\n setUpPatchTestRepo(null, \"patch\", true);\n BuilderRunner bazel = WorkspaceTestUtils.bazel(context());\n if (isWindows()) {\n // On Windows, we expect no patch tool in PATH after removing MSYS paths from PATH env var.\n bazel.shouldFail();\n }\n ProcessResult result = bazel.build(\"@test//:foo\");\n if (isWindows()) {\n assertThat(result.errString())\n .contains(\"CreateProcessW(\\\"C:\\\\foo\\\\bar\\\\usr\\\\bin\\\\bash.exe\\\" -c \\\"patch '-p1'\");\n assertThat(result.errString()).contains(\"The system cannot find the file specified.\");\n } else {\n assertFooIsPatched(bazel);\n }\n }", "@Override\r\n public void doUpdateConfig(GameConfig game)\r\n {\n \r\n }", "@ProbeBuilder\n public TestProbeBuilder probeConfiguration(TestProbeBuilder probe) {\n probe.setHeader(Constants.DYNAMICIMPORT_PACKAGE, \"*\");\n return probe;\n }", "void overwriteConfiguration(Map<String, Object> config);", "public abstract void updatePendingActivityConfiguration(IBinder activityToken,\n Configuration overrideConfig);", "public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }", "public void configure(Object windingRule, Object spec)\n\tthrows UnsupportedOperationException, IllegalArgumentException\n {\n\tif (parent == null) {\n\t throw new UnsupportedOperationException(errorMsg(\"scripting\"));\n\t}\n\tif (configScriptProperties == null) {\n\t configScriptProperties = new Properties();\n\t try {\n\t\tjava.security.AccessController.doPrivileged\n\t\t (new java.security.PrivilegedExceptionAction<Void>() {\n\t\t\t public Void run() throws java.io.IOException {\n\t\t\t\tjava.io.InputStream is =\n\t\t\t\t AbstractSplinePathBuilder\n\t\t\t\t .class.getResourceAsStream\n\t\t\t\t (configScriptResource);\n\t\t\t\tconfigScriptProperties.loadFromXML(is);\n\t\t\t\treturn null;\n\t\t\t }\n\t\t\t});\n\t } catch (java.security.PrivilegedActionException e) {\n\t\tconfigScriptProperties = null;\n\t\tString msg = errorMsg(\"noResource\", configScriptResource);\n\t\tthrow new UnsupportedOperationException(msg,\n\t\t\t\t\t\t\t e.getException());\n\t }\n\t}\n\ttry {\n\t invokePrivateFunction(configScriptProperties,\n\t\t\t\t // ScriptingContext.PFMode.SANDBOXED,\n\t\t\t\t \"configurePathBuilder\",\n\t\t\t\t this, windingRule, spec);\n\t} catch (ScriptException e) {\n\t String msg = errorMsg(\"illformedConfig\");\n\t Throwable ee = e;\n\t Throwable cause = e.getCause();\n\t while (cause != null\n\t\t && !(cause instanceof IllegalArgumentException\n\t\t || cause instanceof ScriptException)) {\n\t\tcause = cause.getCause();\n\t }\n\t if (cause != null && cause instanceof IllegalArgumentException) {\n\t\tee = cause;\n\t }\n\t throw new IllegalArgumentException(msg, ee);\n\t}\n }", "@Override\n public Optional<GradleBuildUpdateProposal> apply(GradleBuild build,\n GradleProject project, GradleModuleDependency dependency) {\n var coords = ResolverGroupArtifact.from(dependency.getGroup(), dependency.getName());\n\n var version = ResolverVersionSpecification.from(dependency.getVersionSpec().getValue());\n Optional<ResolverArtifactVersion> optionalPinnedVersion = version.asPinnedVersion();\n if (optionalPinnedVersion.isEmpty()) {\n // the version is not pinned (e.g. it's a range)\n // another update-adaptor should be concerned with pinning versions\n return Optional.empty();\n }\n\n var artifacts = dependency.getArtifacts().stream()\n .map(artifact -> ResolverArtifact.from(artifact.getClassifier(), artifact.getExtension()))\n .collect(Collectors.toSet());\n\n var repositories = project.getRepositories().items()\n .map(repo -> ResolverMavenRepository.from(repo.getId(), repo.getUrl()))\n .collect(Collectors.toList());\n\n // many update strategies are possible\n // 1. update to latest minor\n // 2. update first to latest incremental (with auto-merge?), next iteration update to latest minor\n // 3. major ?\n\n // those strategies could be extracted in separate objects in the future\n // (once we do, is it possible to make those strategies independent from maven/ivy/... ?)\n // the result could be wrapped in an object and passed to DependencyVersionUpdate ?\n\n // for now, we hardcode (1) - update to latest minor\n var minorVersionRange = MavenVersionRange.getMinorVersionRange(optionalPinnedVersion.get());\n var versionRangeQueryResult = this.mavenResolver\n .resolveVersionRange(coords, minorVersionRange, artifacts, repositories);\n\n return versionRangeQueryResult.getHighestVersion()\n .map(newVersion -> new DependencyVersionUpdateProposal(build, project, dependency, newVersion));\n\n }", "@Nullable\n @Override\n public ModuleWizardStep getCustomOptionsStep(WizardContext context, Disposable parentDisposable) {\n\n final DlangModuleBuilder moduleBuilder = this;\n return new ProjectJdkForModuleStep(context, DlangSdkType.getInstance()) {\n public void updateDataModel() {\n super.updateDataModel();\n moduleBuilder.setModuleJdk(getJdk());\n }\n };\n }", "Lighter build();", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/configurations/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Configuration> patchNamespacedConfiguration(\n @Path(\"name\") String name,\n @Path(\"namespace\") String namespace, \n @Body Configuration body, \n @QueryMap PatchNamespacedConfiguration queryParameters);", "public C build() {\n if (configs.isEmpty()) {\n throw new RuntimeException(\"There should be at least one configuration provided\");\n }\n\n // Handling config files\n ConfigSource firstConfigSource = configs.get(0);\n Config firstConfigOrig = getConfigSupplier(firstConfigSource).getConfig();\n if (!(supportedConfig.isInstance(firstConfigOrig))) {\n throw new RuntimeException(\n String.format(\n \"Config is not of parameterized type %s, got instead %s\",\n supportedConfig.getName(), firstConfigOrig.getClass().getName()));\n }\n C firstConfig = (C) firstConfigOrig;\n for (int i = 1; i < configs.size(); ++i) {\n ConfigSource nextConfigSource = configs.get(i);\n Config nextConfig = getConfigSupplier(nextConfigSource).getConfig();\n try {\n firstConfig = copyProperties(firstConfig, nextConfig);\n } catch (Exception ex) {\n throw new RuntimeException(\n String.format(\"Failed to merge config %s into main config\", nextConfigSource), ex);\n }\n }\n\n // Handling string pathValue pairs config overrides\n for (Pair<String, Object> pathValue : pathValueOverrides) {\n try {\n PropertyUtils.setNestedProperty(firstConfig, pathValue.getValue0(), pathValue.getValue1());\n } catch (Exception e) {\n throw new RuntimeException(\n String.format(\n \"Cannot override property %s with value %s\",\n pathValue.getValue0(), pathValue.getValue1()),\n e);\n }\n }\n\n return firstConfig;\n }", "protected void postProcessEntryConfiguration(ModularConfigurationEntry<T> entry) {\n }", "public static native PatchResult patch(String oldApkPath, String patchPath, String newApkPath);", "private void invokeCallConfigPost(SkinnyMethodAdapter mv) {\n mv.aload(0); // load method to get callconfig\n mv.getfield(p(JavaMethod.class), \"callConfig\", ci(CallConfiguration.class));\n mv.aload(1);\n mv.invokevirtual(p(CallConfiguration.class), \"post\", sig(void.class, params(ThreadContext.class)));\n }", "void allprojects(Action<? super ProjectPluginDependenciesSpec> configuration);", "private DevConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}", "public abstract void configure(String[] args);", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/builds/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Build> replaceBuild(\n @Path(\"name\") String name, \n @Body Build body);" ]
[ "0.62060195", "0.58580977", "0.5725322", "0.5510807", "0.5417368", "0.5391552", "0.53743285", "0.52924496", "0.5276715", "0.52712727", "0.5265386", "0.509936", "0.5042677", "0.5033372", "0.49032402", "0.48854673", "0.4883815", "0.4882187", "0.48431915", "0.48426867", "0.48028028", "0.47680196", "0.47572902", "0.47512665", "0.47150126", "0.4708118", "0.4702836", "0.4689555", "0.46805632", "0.466956", "0.46533206", "0.46464065", "0.461507", "0.4609377", "0.4608636", "0.4605119", "0.45948088", "0.45918936", "0.45893648", "0.45665732", "0.4555338", "0.45536673", "0.45536056", "0.45528004", "0.4539768", "0.45358178", "0.4533868", "0.4513156", "0.45093578", "0.45034438", "0.44918427", "0.44915733", "0.44871706", "0.44851395", "0.44845793", "0.44837654", "0.44807607", "0.4478943", "0.44707206", "0.44698864", "0.44689852", "0.44658774", "0.44589984", "0.4450359", "0.44482106", "0.4444936", "0.444349", "0.44377708", "0.44375178", "0.44363165", "0.4434587", "0.4434145", "0.44292843", "0.44238454", "0.44223946", "0.44222942", "0.4421655", "0.442059", "0.44100243", "0.44098538", "0.44078514", "0.4407742", "0.44072664", "0.43988487", "0.43950734", "0.43947238", "0.43928438", "0.43856427", "0.43772683", "0.43768698", "0.4375852", "0.4375142", "0.43682578", "0.43581334", "0.43552142", "0.4353375", "0.43499246", "0.4347606", "0.43412367", "0.43356502" ]
0.4875743
18
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)"); } return patchThirdPartyConfigurationCall(generalContractId, body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract(Async)\");\n }\n\n return updateContractCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getOneValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getOne(Async)\");\n }\n\n return getOneCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchContract(Async)\");\n }\n\n return patchContractCall(generalContractId, body);\n }", "public TbContract verifyContractIdExist(int chainId, int contractId, int groupId) {\n ContractParam param = new ContractParam(chainId, contractId, groupId);\n TbContract contract = queryContract(param);\n if (Objects.isNull(contract)) {\n log.info(\"contractId is invalid. contractId:{}\", contractId);\n throw new BaseException(ConstantCode.INVALID_CONTRACT_ID);\n }\n return contract;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling revokeAccrual(Async)\");\n }\n\n return revokeAccrualCall(generalContractId);\n }", "public void setContractId(int value) {\n this.contractId = value;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getIframeOptionsValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getIframeOptions(Async)\");\n }\n\n return getIframeOptionsCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getTransferBalanceValidateBeforeCall(ProductInstanceID generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getTransferBalance(Async)\");\n }\n\n return getTransferBalanceCall(generalContractId);\n }", "public void setContractId(Integer contractId) {\n this.contractId = contractId;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailableCurrenciesValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailableCurrencies(Async)\");\n }\n\n return getAvailableCurrenciesCall(generalContractId);\n }", "public Call getOneCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public int getContractId() {\n return contractId;\n }", "public String getContractId() {\n return contractId;\n }", "public void setContractId(String contractId) {\n this.contractId = contractId == null ? null : contractId.trim();\n }", "public Integer getContractId() {\n return contractId;\n }", "public ValidationResult validateContract() {\n return validateContract(apiContract);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)\");\n }\n\n return updateThirdPartyConfigurationCall(generalContractId, body);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateBankAccountValidateBeforeCall(String generalContractId, BankAccountDescriptor body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateBankAccount(Async)\");\n }\n\n return updateBankAccountCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call terminateValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling terminate(Async)\");\n }\n\n return terminateCall(generalContractId);\n }", "public void setSContractNo(String sContractNo) {\n this.sContractNo = sContractNo;\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n String string0 = EWrapperMsgGenerator.bondContractDetails(1274, contractDetails0);\n assertEquals(\"reqId = 1274 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = FkqJC9O=9\\ntradingClass = null\\nconid = 0\\nminTick = -4322.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "public Call patchContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PATCH\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public Contract() {\n // initialise instance variables\n generateContractId();\n }", "public void setPartnerContractId(Integer partnerContractId) {\r\n this.partnerContractId = partnerContractId;\r\n }", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "public TbContract verifyContractDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() != contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_NOT_DEPLOY);\n }\n return contract;\n }", "public String getContractNumber() {\n return contractNumber;\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void setContractorID(int contractorID) {\n this.contractorID = contractorID;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addPaymentLinkConfigurationValidateBeforeCall(String generalContractId, PaymentLinkOptions body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addPaymentLinkConfiguration(Async)\");\n }\n\n return addPaymentLinkConfigurationCall(generalContractId, body);\n }", "boolean hasBusinessCircleId();", "public TbContract verifyContractNotDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() == contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_HAS_BEAN_DEPLOYED);\n }\n return contract;\n }", "public Call updateContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailablePaymentMethodsValidateBeforeCall(String generalContractId, GetAvailablePaymentMethodsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailablePaymentMethods(Async)\");\n }\n\n return getAvailablePaymentMethodsCall(generalContractId, body);\n }", "public void setContractAmount(Integer contractAmount) {\n this.contractAmount = contractAmount;\n }", "public Contracts() {\r\n super();\r\n \r\n }", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "public void createContract() {\n\r\n\t}", "public boolean isSetContractAddress() {\n return this.contractAddress != null;\n }", "public void initContract(ContractInfo contractInfo)\n {\n this.contractInfo = contractInfo;\n }", "void setContract(int contract) {\r\n\t\tif (contract == 24 || contract == 30 || contract == 36) {\r\n\t\t\tthis.contract = contract;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Vector<String> vector0 = new Vector<String>();\n Contract contract0 = new Contract(0, \"X_\", \"X_\", \"X_\", 1833, \"X_\", \"liquidHours = \", \"X_\", \"Error - \", (String) null, vector0, \"com.ib.client.Execution\", true, \"liquidHours = \", \"com.ib.client.Execution\");\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"\", (String) null, (-2818.2935355), \"\", \"H9~[N\\\"Hv`#|kr]\", 13, \"H9~[N\\\"Hv`#|kr]\", \" underComp.delta =\", \"\", \" underComp.delta =\", \"X_\", (String) null, \"M]G9k=@}tbK\", \"Bwn1n;uU*\");\n String string0 = EWrapperMsgGenerator.contractDetails(1833, contractDetails0);\n assertEquals(\"reqId = 1833 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = X_\\nsecType = X_\\nexpiry = X_\\nstrike = 1833.0\\nright = X_\\nmultiplier = liquidHours = \\nexchange = X_\\nprimaryExch = com.ib.client.Execution\\ncurrency = Error - \\nlocalSymbol = null\\nmarketName = \\ntradingClass = null\\nminTick = -2818.2935355\\nprice magnifier = 0\\norderTypes = \\nvalidExchanges = H9~[N\\\"Hv`#|kr]\\nunderConId = 13\\nlongName = H9~[N\\\"Hv`#|kr]\\ncontractMonth = underComp.delta =\\nindustry = \\ncategory = underComp.delta =\\nsubcategory = X_\\ntimeZoneId = null\\ntradingHours = M]G9k=@}tbK\\nliquidHours = Bwn1n;uU*\\n ---- Contract Details End ----\\n\", string0);\n }", "@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "boolean isSetCompanyBaseData();", "@Test\n public void shouldCreateContractWithPreconditions() {\n // Given\n final Clause precondition1 = ContractFactory.alwaysTrueDefaultClause();\n final Clause precondition2 = ContractFactory.alwaysTrueDefaultClause();\n\n // When\n final Contract contract = ContractFactory.contractWithPreconditions(precondition1, precondition2);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has not all given preconditions!\", contract.preconditions().length == 2);\n }", "public void setContractNumber(String contractNumber) {\n this.contractNumber = contractNumber == null ? null : contractNumber.trim();\n }", "public ContractMethod() {\n }", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)\");\n }\n // verify the required parameter 'thirdPartyName' is set\n if (thirdPartyName == null) {\n throw new ApiException(\"Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)\");\n }\n\n return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName);\n }", "@Test\n public void testGetBusinessId() {\n \n \n assertNull(o1.getBusinessId());\n o1.setBusinessId(Integer.MIN_VALUE);\n assertNotNull(o1.getBusinessId());\n assertEquals(new Integer(Integer.MIN_VALUE), o1.getBusinessId());\n }", "public Call terminateCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/terminate\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "@Test\n public void shouldCreateEmptyContract() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n }", "public abstract void deleteContract(String contractNumber);", "public void checkCreditCard() throws BusinessException;", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "@Test\n public void merchantidTest() {\n assertEquals(Integer.valueOf(12345), authResponse.getMerchantid());\n }", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "VerifyBasicCallback() {\n m_transactionType = null;\n m_procedureName = null;\n }", "private static void validateBaseRequest(final InvBaseRequest request) {\r\n\t\tif (request == null) {\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Request is Null.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Request is Null\");\r\n\t\t}\r\n\r\n\t\tif(request.getTransactionId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid Transaction ID.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid Transaction ID.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getUserId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid User Id.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid User Id.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(null == request.getDistributionCenter() || request.getDistributionCenter().isEmpty() || null == request.getShipToCustomer() || request.getShipToCustomer().isEmpty() ){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Account should not be empty.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Account should not be empty\");\r\n\t\t}\r\n\t}", "public void setXpeContractId(String value) {\n setAttributeInternal(XPECONTRACTID, value);\n }", "@Test\n public void testFailureParInvalidPkceSetting() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n updateClientByAdmin(clientId, (ClientRepresentation cRep)->{\n OIDCAdvancedConfigWrapper.fromClientRepresentation(cRep).setPkceCodeChallengeMethod(\"S256\");\n });\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(400, pResp.getStatusCode());\n assertEquals(OAuthErrorException.INVALID_REQUEST, pResp.getError());\n assertEquals(\"Missing parameter: code_challenge_method\", pResp.getErrorDescription());\n }", "public static int withContract() {\n\t\t{\n\t\t\tString choice;\n\t\t\tint startover;\n\t\t\tImageIcon picture;\n\t\t\tint selectedCode;\n\t\t\tint number1 = (int) (900 * Math.random() + 100);\n\t\t\tint number2 = (int) (9000 * Math.random() + 1000);\n\t\t\tString[] choices = modelsForContract();\n\t\t\t\n\t\t\t// asks which phone the user wants by showing the options based upon their contract preferences\n\t\t\t\n\t\t\tchoice = (String) JOptionPane.showInputDialog(null, \"Which phone whould you like?\", \"Phone Selection\", \n\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, icon, choices, null);\n\t\t\t\n\t\t\t// Depending on the selection, the phones image is displayed.\n\t\t\tif (choice == choices[0])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"galaxyS9.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[1])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"iphoneX.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[2])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"googlePixel.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[3])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"Motorola.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[4])\n\t\t\t{\n\t\t\t\tSystem.out.print(\"HI\");\n\t\t\t\tpicture = new ImageIcon(\"Huawei.png\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\t\t\tselectedCode = 0;\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\t// Then the area code selection is presented.\n\t\t\tselectedCode = JOptionPane.showOptionDialog(null, \"Please select an area code from below\",\n\t\t\t\t\t\"Area Code Selection\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, picture, areaCodes, areaCodes[0]);\n\t\t\t\n\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Congratulations, \" + firstName + \"!\\nYour new phone is the \" + choice + \".\"\n\t\t\t\t\t+ \"\\nAnd your new phone number is \" + areaCodes[selectedCode] + \"-\" + number1 + \"-\" + number2 + \"!\",\n\t\t\t\t\t\"Congratulations!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t\n\t\t\tstartover = JOptionPane.showOptionDialog(null, \"Would you like to buy another phone \" + firstName + \"?\",\n\t\t\t\t\t\"Awesome Smartphone\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon, null, 0);\n\t\t\t\n\t\t\tif (startover == 1)\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Thank you for your business!\",\n\t\t\t\t\t\t\"Thank You!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t}\n\t\t\treturn startover;\n\t\t}\n\t}", "void setIdVerificationResponseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData idVerificationResponseData);", "boolean isSetIdVerificationResponseData();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Ggeneral)) {\n return false;\n }\n Ggeneral other = (Ggeneral) object;\n if ((this.idgeneral == null && other.idgeneral != null) || (this.idgeneral != null && !this.idgeneral.equals(other.idgeneral))) {\n return false;\n }\n return true;\n }", "public void setCodeCombinationsIdFromGeneral(XxGamMaGeneralReqVORowImpl generalRow) {\n if (generalRow != null) {\n Number codeCombinationId = null;\n codeCombinationId = generalRow.getCostCenter();\n if (codeCombinationId != null) {\n\n RowSetIterator rowSetIter = getRowSetIterator();\n if (rowSetIter != null) {\n rowSetIter.reset();\n while (rowSetIter.hasNext()) {\n Row row = rowSetIter.next();\n XxGamMaPaymentReqVORowImpl detailRow = \n (XxGamMaPaymentReqVORowImpl)row;\n if (detailRow != null) {\n if (detailRow.getGeneralReqId().equals(generalRow.getId())) {\n detailRow.setCodeCombinationId(codeCombinationId);\n }\n }\n }\n rowSetIter.reset();\n }\n }\n }\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public int getContractorID() {\n return contractorID;\n }", "@Test\n public void shouldCreateContractWithPrecondition() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.contractWithPrecondition();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has no precondition!\", contract.preconditions().length == 1);\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "public boolean modifyContract(Contract contract) {\n\t\treturn contractdao.modifyContract(contract);\n\t}", "boolean isSetCapitalPayed();", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "protected boolean validateSubContract(SubContract subContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = subContract.getParentContract().getValidityPeriod();\n \n BasicDiagnostic parameterBlocksDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_BLOCK_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterBlocksValid = validateParameterBlocks(subContract, parameterBlocksDiagnostics, context);\n if(!parameterBlocksValid)\n diagnostics.add(parameterBlocksDiagnostics);\n\n BasicDiagnostic parameterMapsDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_MAP_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterMapsValid = validateParameterMaps(subContract, parameterMapsDiagnostics, context);\n if(!parameterMapsValid)\n diagnostics.add(parameterMapsDiagnostics);\n \n boolean parentValid = true;\n if(!subContract.getPrimaryContract().getValidityPeriod().contains(newPeriod)){\n parentValid &= false;\n diagnostics.add(new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_SUB_CONTRACT, SUB_CONTRACT__RANGE, String.format(\n \"[%s] '%s' conflicts with parent '%s'\", \"Range\",\n getDisplayString(newPeriod), getDisplayString(subContract\n .getPrimaryContract().getValidityPeriod())), new Object[]{subContract.getPrimaryContract()}));\n }\n \n return parameterBlocksValid && parameterMapsValid && parentValid;\n }", "@Override\n\tpublic void setFTGLId(FinancialTransactionGeneralLedger_Id arg0) {\n\n\t}", "@Test\n public void testInsuredPayerPayersId() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setPayersIdEnum,\n RdaFissPayer::getPayersId,\n FissPayersCode.PAYERS_CODE_AUTO_NO_FAULT,\n \"D\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setPayersIdUnrecognized,\n RdaFissPayer::getPayersId,\n RdaFissPayer.Fields.payersId,\n 1);\n }", "public Call revokeAccrualCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/revokeAccrual\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\r\n\tvoid testContactServiceUpdateContactWithInValidID() {\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.updateContactFirstName(\"none\", \"enon\");\r\n\t\t});\r\n\t}", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }", "public boolean isSetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENERAL$20) != 0;\r\n }\r\n }", "@Test\n public void testInsuredPayerTreatAuthCd() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }", "private Contract() {\n }", "VerifyBasicCallback(TPCCSimulation.Transaction transaction, String procName) {\n m_transactionType = transaction;\n m_procedureName = procName;\n }", "public void onClick(DialogInterface dialog, int id)\n {\n if(optionAddContract.isChecked())\n {\n selectedContractAddress = contractAddressField.getText().toString();\n dialogListener.onAddContract(selectedContractAddress, selectedContractType);\n }else{\n dialogListener.onCreateContract(selectedContractType);\n }\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Contract contract0 = new Contract();\n String string0 = EWrapperMsgGenerator.contractMsg(contract0);\n assertEquals(\"conid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\n\", string0);\n }", "boolean isSetNcbistdaa();", "public void m9130p() throws cf {\r\n if (this.f6007a == null) {\r\n throw new cz(\"Required field 'domain' was not present! Struct: \" + toString());\r\n } else if (this.f6009c == null) {\r\n throw new cz(\"Required field 'new_id' was not present! Struct: \" + toString());\r\n }\r\n }", "@Test\n public void testBeneZPayerTreatAuthCd() {\n new BeneZPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissBeneZPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }" ]
[ "0.65667087", "0.6498893", "0.64641535", "0.62215364", "0.6210321", "0.61307234", "0.6029447", "0.5991647", "0.58935875", "0.5867352", "0.57154477", "0.5708672", "0.565344", "0.55975854", "0.5568958", "0.5535204", "0.54849637", "0.5440859", "0.5439886", "0.5439886", "0.54083145", "0.538685", "0.5372101", "0.535575", "0.53002197", "0.5298278", "0.5284535", "0.5277213", "0.5228654", "0.5213922", "0.5213851", "0.5203466", "0.5203466", "0.5198705", "0.51919657", "0.5132997", "0.503143", "0.5030267", "0.502797", "0.5015527", "0.5008133", "0.49868008", "0.49842298", "0.49836314", "0.49824694", "0.49804395", "0.4969242", "0.4950973", "0.49493062", "0.49471316", "0.4928483", "0.49245524", "0.49162278", "0.4885365", "0.48522398", "0.4833596", "0.48331168", "0.48331168", "0.48331168", "0.48331168", "0.4830747", "0.4827253", "0.48129195", "0.48126492", "0.4799318", "0.4791708", "0.47801298", "0.4777395", "0.47646844", "0.47614396", "0.47599468", "0.47580373", "0.47508353", "0.47382933", "0.4732828", "0.47288087", "0.47212544", "0.4717133", "0.47137868", "0.47108936", "0.46979916", "0.46949527", "0.46938235", "0.469239", "0.46847698", "0.46842527", "0.46841192", "0.46748438", "0.46745366", "0.46736524", "0.46714628", "0.46679446", "0.4660473", "0.46603698", "0.46579075", "0.4655875", "0.4655484", "0.46554628", "0.46510994", "0.46478415" ]
0.53983784
21
Build call for removeThirdPartyConfiguration
public Call removeThirdPartyConfigurationCall(String generalContractId, String thirdPartyName) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/ThirdPartyConfiguration/{thirdPartyName}" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())) .replaceAll("\\{" + "thirdPartyName" + "\\}", apiClient.escapeString(thirdPartyName.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deconfigure() throws CoreException {\n\t\tPTJavaFileBuilder.removeBuilderFromProject(fProject);\n\t\t// TO DO: delete markers here\n\t}", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)\");\n }\n // verify the required parameter 'thirdPartyName' is set\n if (thirdPartyName == null) {\n throw new ApiException(\"Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)\");\n }\n\n return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName);\n }", "void removeDependsOnMe(DependencyItem dependency);", "void removeDependency(Integer baseOptionId, Integer dependentOptionId);", "UpdateOperationConfiguration build();", "public abstract CONFIG build();", "Builder useBuildDistribution();", "void subprojects(Action<? super ProjectPluginDependenciesSpec> configuration);", "public void removeFiBcoinPayconfig(final Long configId);", "@Test\n public void testBuildDefer() throws Exception {\n mockHttpClient = mock(OptimizelyHttpClient.class);\n\n projectConfigManager = builder()\n .withOptimizelyHttpClient(mockHttpClient)\n .withSdkKey(\"sdk-key\")\n .build(true);\n assertEquals(\"sdk-key\", projectConfigManager.getSDKKey());\n }", "void unsetServiceConfigurationList();", "void removeFramework(FrameworkContext fw) {\n bundleHandler.removeFramework(fw);\n synchronized (wrapMap) {\n for (Iterator<Map.Entry<String, URLStreamHandlerWrapper>> i = wrapMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry<String, URLStreamHandlerWrapper> e = i.next();\n if ((e.getValue()).removeFramework(fw)) {\n i.remove();\n }\n }\n framework.remove(fw);\n if (debug == fw.debug) {\n if (framework.isEmpty()) {\n debug = null;\n } else {\n debug = framework.get(0).debug;\n }\n }\n }\n }", "public Builder clearConfig() {\n if (configBuilder_ == null) {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n onChanged();\n }\n } else {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n }\n configBuilder_.clear();\n }\n return this;\n }", "public void removeProxyConfig(ProxyConfig config);", "public void preRemove(Configuration configuration) {\r\n preRemove();\r\n\r\n }", "protected void enhanceConfig(ConfigurationBuilder c) {\n }", "public void deconfigure() throws CoreException {\n\n }", "BuildClient createBuildClient();", "GradleBuild create();", "private void excludeFromWarPackaging() {\n getLog().info(\"excludeFromWarPackaging\");\n String pluginGroupId = \"org.apache.maven.plugins\";\n String pluginArtifactId = \"maven-war-plugin\";\n if (project.getBuildPlugins() != null) {\n for (Object o : project.getBuildPlugins()) {\n Plugin plugin = (Plugin) o;\n\n if (pluginGroupId.equals(plugin.getGroupId()) && pluginArtifactId.equals(plugin.getArtifactId())) {\n Xpp3Dom dom = (Xpp3Dom) plugin.getConfiguration();\n if (dom == null) {\n dom = new Xpp3Dom(\"configuration\");\n plugin.setConfiguration(dom);\n }\n Xpp3Dom excludes = dom.getChild(\"packagingExcludes\");\n if (excludes == null) {\n excludes = new Xpp3Dom(\"packagingExcludes\");\n dom.addChild(excludes);\n excludes.setValue(\"\");\n } else if (excludes.getValue().trim().length() > 0) {\n excludes.setValue(excludes.getValue() + \",\");\n }\n\n Set<Artifact> dependencies = getArtifacts();\n getLog().debug(\"Size of getArtifacts: \" + dependencies.size());\n String additionalExcludes = \"\";\n for (Artifact dependency : dependencies) {\n getLog().debug(\"Dependency: \" + dependency.getGroupId() + \":\" + dependency.getArtifactId() + \"type: \" + dependency.getType());\n if (!dependency.isOptional() && Types.JANGAROO_TYPE.equals(dependency.getType())) {\n getLog().debug(\"Excluding jangaroo dependency form war plugin [\" + dependency.toString() + \"]\");\n // Add two excludes. The first one is effective when no name clash occurs\n additionalExcludes += \"WEB-INF\" + File.separator + \"lib\" + File.separator + dependency.getArtifactId() + \"-\" + dependency.getVersion() + \".jar,\";\n // the second when a name clash occurs (artifact will hav groupId prepended before copying it into the lib dir)\n additionalExcludes += \"WEB-INF\" + File.separator + \"lib\" + File.separator + dependency.getGroupId() + \"-\" + dependency.getArtifactId() + \"-\" + dependency.getVersion() + \".jar,\";\n }\n }\n excludes.setValue(excludes.getValue() + additionalExcludes);\n }\n }\n }\n }", "@Issue(\"JENKINS-18804\")\n @Test\n public void testUpstreamWasRemoved() throws Exception {\n {\n FreeStyleProject upstream = j.createFreeStyleProject();\n FreeStyleProject downstream = j.createFreeStyleProject();\n \n upstream.getBuildersList().add(new FileWriteBuilder(\n \"artifact.txt\",\n \"foobar\"\n ));\n upstream.getPublishersList().add(new ArtifactArchiver(\n \"**/*\",\n \"\",\n false,\n false\n ));\n upstream.getPublishersList().add(new BuildTrigger(\n downstream.getFullName(),\n false\n ));\n \n downstream.getBuildersList().add(new RemoveUpstreamBuilder());\n downstream.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n upstream.getFullName(),\n \"\",\n new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false),\n \"**/*\",\n \"\",\n \"\",\n false,\n true, // This results build succeed even if the upstream build has been removed.\n false\n ));\n \n j.jenkins.rebuildDependencyGraph();\n \n upstream.scheduleBuild2(0);\n j.waitUntilNoActivity();\n \n assertNull(upstream.getLastBuild());\n j.assertBuildStatusSuccess(downstream.getLastBuild());\n }\n \n // upstream -> intermediate -> downstream\n // Remove the build of upstream.\n {\n FreeStyleProject upstream = j.createFreeStyleProject();\n FreeStyleProject intermediate = j.createFreeStyleProject();\n FreeStyleProject downstream = j.createFreeStyleProject();\n \n upstream.getBuildersList().add(new FileWriteBuilder(\n \"artifact.txt\",\n \"foobar\"\n ));\n upstream.getPublishersList().add(new ArtifactArchiver(\n \"**/*\",\n \"\",\n false,\n false\n ));\n upstream.getPublishersList().add(new BuildTrigger(\n intermediate.getFullName(),\n false\n ));\n \n intermediate.getBuildersList().add(new RemoveUpstreamBuilder());\n intermediate.getPublishersList().add(new BuildTrigger(\n downstream.getFullName(),\n false\n ));\n \n downstream.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n upstream.getFullName(),\n \"\",\n new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false),\n \"**/*\",\n \"\",\n \"\",\n false,\n true, // This results build succeed even if the upstream build has been removed.\n false\n ));\n \n j.jenkins.rebuildDependencyGraph();\n \n upstream.scheduleBuild2(0);\n j.waitUntilNoActivity();\n \n assertNull(upstream.getLastBuild());\n j.assertBuildStatusSuccess(intermediate.getLastBuild());\n j.assertBuildStatusSuccess(downstream.getLastBuild());\n }\n \n // upstream -> intermediate -> downstream\n // Remove the build of intermediate.\n {\n FreeStyleProject upstream = j.createFreeStyleProject();\n FreeStyleProject intermediate = j.createFreeStyleProject();\n FreeStyleProject downstream = j.createFreeStyleProject();\n \n upstream.getBuildersList().add(new FileWriteBuilder(\n \"artifact.txt\",\n \"foobar\"\n ));\n upstream.getPublishersList().add(new ArtifactArchiver(\n \"**/*\",\n \"\",\n false,\n false\n ));\n upstream.getPublishersList().add(new BuildTrigger(\n intermediate.getFullName(),\n false\n ));\n \n intermediate.getPublishersList().add(new BuildTrigger(\n downstream.getFullName(),\n false\n ));\n \n downstream.getBuildersList().add(new RemoveUpstreamBuilder());\n downstream.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n upstream.getFullName(),\n \"\",\n new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false),\n \"**/*\",\n \"\",\n \"\",\n false,\n true, // This results build succeed even if the upstream build has been removed.\n false\n ));\n \n j.jenkins.rebuildDependencyGraph();\n \n upstream.scheduleBuild2(0);\n j.waitUntilNoActivity();\n \n j.assertBuildStatusSuccess(upstream.getLastBuild());\n assertNull(intermediate.getLastBuild());\n j.assertBuildStatusSuccess(downstream.getLastBuild());\n }\n }", "public static void resetConfiguration() {\n\t\t// Ignore\n\t}", "public interface ApplicationRuntimeConfigurationBuilder\n{\n Repository createRepositoryFromModel( Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n\n void releaseRepository( Repository repository, Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n}", "protected void removeConfigFile ( URL configFileURL ) {\n log.info(\"Removing configuration file: \" + configFileURL); //$NON-NLS-1$\n synchronized ( this.extraConfigurationFiles ) {\n this.extraConfigurationFiles.remove(configFileURL);\n }\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)\");\n }\n\n return updateThirdPartyConfigurationCall(generalContractId, body);\n }", "public void reConfigure();", "public Builder clearConfigSource() {\n if (configSourceBuilder_ == null) {\n configSource_ = null;\n onChanged();\n } else {\n configSource_ = null;\n configSourceBuilder_ = null;\n }\n\n return this;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "public void removeServiceClient(final String serviceName) {\n boolean needToSave = ProjectManager.mutex().writeAccess(new Action<Boolean>() {\n public Boolean run() {\n boolean needsSave = false;\n boolean needsSave1 = false;\n\n /** Remove properties from project.properties\n */\n String featureProperty = \"wscompile.client.\" + serviceName + \".features\"; // NOI18N\n String packageProperty = \"wscompile.client.\" + serviceName + \".package\"; // NOI18N\n String proxyProperty = \"wscompile.client.\" + serviceName + \".proxy\"; //NOI18N\n\n EditableProperties ep = helper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n EditableProperties ep1 = helper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n\n if(ep.getProperty(featureProperty) != null) {\n ep.remove(featureProperty);\n needsSave = true;\n }\n\n if(ep.getProperty(packageProperty) != null) {\n ep.remove(packageProperty);\n needsSave = true;\n }\n\n if(ep1.getProperty(proxyProperty) != null) {\n ep1.remove(proxyProperty);\n needsSave1 = true;\n }\n\n if(needsSave) {\n helper.putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, ep);\n }\n\n if(needsSave1) {\n helper.putProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH, ep1);\n }\n\n /** Locate root of web service client node structure in project,xml\n */\n Element data = helper.getPrimaryConfigurationData(true);\n NodeList nodes = data.getElementsByTagName(WEB_SERVICE_CLIENTS);\n Element clientElements = null;\n\n /* If there is a root, get all the names of the child services and search\n * for the one we want to remove.\n */\n if(nodes.getLength() >= 1) {\n clientElements = (Element) nodes.item(0);\n NodeList clientNameList = clientElements.getElementsByTagNameNS(AppClientProjectType.PROJECT_CONFIGURATION_NAMESPACE, WEB_SERVICE_CLIENT_NAME);\n for(int i = 0; i < clientNameList.getLength(); i++ ) {\n Element clientNameElement = (Element) clientNameList.item(i);\n NodeList nl = clientNameElement.getChildNodes();\n if(nl.getLength() == 1) {\n Node n = nl.item(0);\n if(n.getNodeType() == Node.TEXT_NODE) {\n if(serviceName.equalsIgnoreCase(n.getNodeValue())) {\n // Found it! Now remove it.\n Node serviceNode = clientNameElement.getParentNode();\n clientElements.removeChild(serviceNode);\n helper.putPrimaryConfigurationData(data, true);\n needsSave = true;\n }\n }\n }\n }\n }\n return needsSave || needsSave1;\n }\n });\n \n // !PW Lastly, save the project if we actually made any changes to any\n // properties or the build script.\n if(needToSave) {\n try {\n ProjectManager.getDefault().saveProject(project);\n } catch(IOException ex) {\n NotifyDescriptor desc = new NotifyDescriptor.Message(\n NbBundle.getMessage(AppClientProjectWebServicesClientSupport.class,\"MSG_ErrorSavingOnWSClientRemove\", serviceName, ex.getMessage()), // NOI18N\n NotifyDescriptor.ERROR_MESSAGE);\n DialogDisplayer.getDefault().notify(desc);\n }\n }\n removeServiceRef(serviceName);\n }", "public void build()\n{\n\t_buildTime--;\n}", "public void clearProxyConfig();", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)\");\n }\n\n return patchThirdPartyConfigurationCall(generalContractId, body);\n }", "Builder useDistribution(URI gradleDistribution);", "void applyConfiguration(Configuration configuration);", "@Test\n public void testWebConfiguration() throws Exception {\n WebClient wc = j.createWebClient();\n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(true, TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertTrue(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest, selector.getUpstreamFilterStrategy());\n }\n \n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertFalse(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest, selector.getUpstreamFilterStrategy());\n }\n \n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(true, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertTrue(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, selector.getUpstreamFilterStrategy());\n }\n }", "public void deleteConfigurationValue(String name);", "private void configureOsgiManifest(Project project) {\n project.afterEvaluate(new Action<Project>() {\n @Override\n public void execute(Project project) {\n project.getTasks().withType(Jar.class, new Action<Jar>() {\n @Override\n public void execute(Jar jar) {\n if (jar.getManifest() instanceof OsgiManifest) {\n OsgiManifest manifest = (OsgiManifest) jar.getManifest();\n if (manifest.getInstructions().containsKey(\"Implementation-Version\")) {\n manifest.instructionReplace(\"Implementation-Version\", configurationStore.getProjectVersion());\n }\n if (manifest.getInstructions().containsKey(\"Specification-Version\")) {\n manifest.instructionReplace(\"Specification-Version\", configurationStore.getProjectVersion());\n }\n }\n }\n });\n }\n });\n }", "@Override\n public void onDestroy(boolean isChangingConfiguration) {\n\n }", "protected void copyValuesFrom(IProjectConfig config) {\n configuration = null;\n withMetaborgVersion(config.metaborgVersion());\n withCompileDeps(config.compileDeps());\n withSourceDeps(config.sourceDeps());\n withJavaDeps(config.javaDeps());\n }", "@Override\n\tpublic void configure() throws CoreException {\n\t\t// associate this builder with the project\n\t\tPTJavaFileBuilder.addBuilderToProject(fProject);\n\t\t\n\t\t// issue order to rebuild project\n\t\tnew Job(\"PTJava File Build\") {\n\t\t\tprotected IStatus run(IProgressMonitor monitor) {\n\t\t\t\ttry {\n\t\t\t\t\t// invoke a full build\n\t\t\t\t\tfProject.build(\n\t\t\t\t\t\t\tPTJavaFileBuilder.FULL_BUILD,\n\t\t\t\t\t\t\tPTJavaFileBuilder.BUILDER_ID,\n\t\t\t\t\t\t\tnull, monitor);\n\t\t\t\t}\n\t\t\t\tcatch (CoreException exception) {\n\t\t\t\t\tPTJavaLog.logError(exception);\n\t\t\t\t}\n\t\t\t\treturn Status.OK_STATUS;\n\t\t\t}\n\t\t}.schedule();\n\t}", "@After\n\tpublic void setupClean() {\n\n\t\tString server = serverRequirement.getConfig().getName();\n\t\tif (FuseServerManipulator.isServerStarted(server)) {\n\t\t\tFuseServerManipulator.stopServer(server);\n\t\t}\n\t\tnew ProjectExplorer().deleteAllProjects();\n\t}", "static void releaseConfigFiles() throws Exception {\r\n ConfigManager configManager = ConfigManager.getInstance();\r\n for (Iterator iterator = configManager.getAllNamespaces(); iterator.hasNext();) {\r\n configManager.removeNamespace((String) iterator.next());\r\n }\r\n }", "public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }", "void allprojects(Action<? super ProjectPluginDependenciesSpec> configuration);", "public Builder clearExtensions() {\n/* 1716 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testRemoveConfigurationProvider()\n {\n assertNull(\"Removing unknown provider\", factory\n .removeConfigurationProvider(\"test\"));\n assertNull(\"Removing provider for null tag\", factory\n .removeConfigurationProvider(null));\n DefaultConfigurationBuilder.ConfigurationProvider provider = new DefaultConfigurationBuilder.ConfigurationProvider();\n factory.addConfigurationProvider(\"test\", provider);\n assertSame(\"Failed to remove provider\", provider, factory\n .removeConfigurationProvider(\"test\"));\n assertNull(\"Provider still registered\", factory.providerForTag(\"test\"));\n }", "private OptimoveConfig() {\n }", "private ModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void removeInputTransportAdaptorConfiguration(String filePath, int tenantId) {\n List<InputTransportAdaptorFile> inputTransportAdaptorFileList = transportAdaptorFileMap.get(tenantId);\n if (inputTransportAdaptorFileList != null) {\n for (InputTransportAdaptorFile inputTransportAdaptorFile : inputTransportAdaptorFileList) {\n if ((inputTransportAdaptorFile.getFilePath().equals(filePath))) {\n if (inputTransportAdaptorFile.getStatus().equals(InputTransportAdaptorFile.Status.DEPLOYED)) {\n String transportAdaptorName = inputTransportAdaptorFile.getTransportAdaptorName();\n removeFromTenantSpecificTransportAdaptorInfoMap(tenantId, transportAdaptorName);\n Iterator<InputTransportAdaptorNotificationListener> deploymentListenerIterator = inputTransportAdaptorNotificationListener.iterator();\n while (deploymentListenerIterator.hasNext()) {\n InputTransportAdaptorNotificationListener inputTransportAdaptorNotificationListener = deploymentListenerIterator.next();\n if (tenantSpecificTransportAdaptorConfigurationMap.get(tenantId) != null) {\n inputTransportAdaptorNotificationListener.configurationRemoved(tenantId, tenantSpecificTransportAdaptorConfigurationMap.get(tenantId).get(transportAdaptorName));\n }\n }\n if (tenantSpecificTransportAdaptorConfigurationMap.get(tenantId) != null) {\n tenantSpecificTransportAdaptorConfigurationMap.get(tenantId).remove(transportAdaptorName);\n }\n }\n inputTransportAdaptorFileList.remove(inputTransportAdaptorFile);\n return;\n }\n }\n }\n }", "@Override\n\tprotected boolean configure(ConsoleManager cm, Host host, PhpBuild build, ScenarioSet scenario_set, String app_dir) {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean configure(ConsoleManager cm, Host host, PhpBuild build, ScenarioSet scenario_set, String app_dir) {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean configure(ConsoleManager cm, Host host, PhpBuild build, ScenarioSet scenario_set, String app_dir) {\n\t\treturn false;\n\t}", "public abstract void updatePendingConfiguration(Configuration config);", "java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;", "@NonNull\n\t\tConfig build();", "protected void makeConfigImmutable() {\n final Project project = speedment.getProjectComponent().getProject();\n if (project != null) {\n final Project immutableProject = ImmutableProject.wrap(project);\n speedment.getProjectComponent().setProject(immutableProject);\n }\n }", "@Test\n public void disableRunfiles_buildSuccessfully() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n write(\n \"BUILD\",\n \"genrule(\",\n \" name = 'foo',\",\n \" cmd = 'echo foo > $@',\",\n \" outs = ['foo.data'],\",\n \")\",\n \"sh_test(\",\n \" name = 'foobar',\",\n \" srcs = ['test.sh'],\",\n \" data = [':foo'],\",\n \")\");\n write(\"test.sh\");\n getWorkspace().getRelative(\"test.sh\").setExecutable(true);\n addOptions(\"--build_runfile_links\", \"--enable_runfiles=no\");\n\n buildTarget(\"//:foobar\");\n }", "Builder useInstallation(File gradleHome);", "public final WuicFacadeBuilder noXmlConfiguration() {\n this.wuicXmlPath = null;\n return this;\n }", "public void generateCleanVersion(File src, File target) {\n PreprocessorAPI pp = new PreprocessorAPI(new OnlyExpandMacrosInIfsController());\n pp.setInlineIncludes(false);\n pp.setKeepIncludes(true);\n pp.setKeepDefines(true);\n\n pp.preprocess(src, target);\n }", "public void configRemoved (ConfigEvent<ManagedConfig> event) {\n maybePostUndo(new ConfigEdit(ConfigEdit.Type.REMOVE,\n (ConfigGroup<?>)event.getSource(),\n null,\n event.getConfig()));\n }", "public void removeProjectEntries(String serviceName);", "public Builder clearDeclarativelyConfigured() {\n \n declarativelyConfigured_ = false;\n onChanged();\n return this;\n }", "private void tryClearDependences(InheritedComponentInstanceSelDTO dto) {\n\t\tmask(pmsMessages.mskClearOverrideConfiguration());\n\t\tAsyncCallback<InheritedComponentInstanceSelDTO> callback = new AsyncCallback<InheritedComponentInstanceSelDTO>() {\n\n\t\t\tpublic void onSuccess(InheritedComponentInstanceSelDTO result) {\n\t\t\t\tunmask();\n\t\t\t\tutil.info(pmsMessages.msgSuccessClearConfiguration());\n\t\t\t}\n\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tunmask();\n\t\t\t\tutil.error(pmsMessages.msgErrorClearConfiguration());\n\t\t\t}\n\t\t};\n\t\tcomponentsService.clearDependencies(portalNameDto.getId(), dto.getComponent().getId(), callback);\n\t}", "public void removeDownstreamTrigger(final BuildPipelineTrigger bpTrigger, final AbstractProject<?, ?> ownerProject,\n final String downstreamProjectName) {\n if (bpTrigger != null) {\n boolean changed = false;\n\n if (bpTrigger.onDownstreamProjectDeleted(downstreamProjectName)) {\n changed = true;\n }\n\n if (changed) {\n try {\n if (bpTrigger.getDownstreamProjectNames().length() == 0) {\n ownerProject.getPublishersList().remove(bpTrigger);\n }\n ownerProject.save();\n } catch (final IOException e) {\n Logger.getLogger(BuildPipelineTrigger.class.getName()).log(\n Level.SEVERE,\n au.com.centrumsystems.hudson.plugin.buildpipeline.Strings\n .getString(\"BuildPipelineTrigger.FailedPersistDuringRemoval\") + downstreamProjectName, e); //$NON-NLS-1$\n }\n }\n }\n }", "public Builder clearConfiguration() {\n if (configurationBuilder_ == null) {\n configuration_ = null;\n onChanged();\n } else {\n configuration_ = null;\n configurationBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearUserAgentBuildVersion() {\n if (userAgentBuildVersionBuilder_ == null) {\n if (userAgentVersionTypeCase_ == 8) {\n userAgentVersionTypeCase_ = 0;\n userAgentVersionType_ = null;\n onChanged();\n }\n } else {\n if (userAgentVersionTypeCase_ == 8) {\n userAgentVersionTypeCase_ = 0;\n userAgentVersionType_ = null;\n }\n userAgentBuildVersionBuilder_.clear();\n }\n return this;\n }", "@Override\n\tpublic void onConfigurationSkip(ITestResult itr) {\n\t\t\n\t}", "public Builder clearConfig() {\n if (configBuilder_ == null) {\n config_ = null;\n onChanged();\n } else {\n config_ = null;\n configBuilder_ = null;\n }\n\n return this;\n }", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n\n //begin zhixiong.liu.hz for XR 6107743 2018/3/14 \n //begin zhixiong.liu.hz remove useless code defect 7169297 20181130\n //if (!getResources().getBoolean(R.bool.def_settings_custom_build_version_enable)) {\n // removePreference(KEY_CUSTOM_BUILD_VERSION);\n //} else {\n // setValueSummary(KEY_CUSTOM_BUILD_VERSION, PROPERTY_CUSTOM_BUILD_VERSION);\n //} \n //end zhixiong.liu.hz remove useless code defect 7169297 20181130\n if (!getResources().getBoolean(R.bool.def_Settings_buildnum_display_enable)) {\n removePreference(KEY_BUILD_NUMBER);\n }\n\n if (!getResources().getBoolean(R.bool.def_Settings_typecode_enable)) {\n removePreference(KEY_TYPE_CODE);\n }else{\n findPreference(KEY_TYPE_CODE).setSummary(getResources().getString(R.string.def_Settings_typecode));\n }\n //end zhixiong.liu.hz for XR 6107743 2018/3/14\n \n //Begin added by miaoliu for XR6172796 on 2018/4/8\n if(!checkPackageExist(getActivity(), \"com.tct.gdpr\")){\n removePreference(\"policy\");\n }\n //End added by miaoliu for XR6172796 on 2018/4/8\n //begin zhixiong.liu.hz for defect 6272377 2018/4/29\n if(!getResources().getBoolean(R.bool.def_settings_baseband_show)){\n removePreference(KEY_BASEBAND_VERSION);\n }\n //end zhixiong.liu.hz for defect 6272377 2018/4/29 \n\n }", "@Before\n public void setUp() {\n configuration.resolveAdditionalDependenciesFromClassPath(false);\n }", "public Builder clearConfig() {\n bitField0_ = (bitField0_ & ~0x00000001);\n config_ = null;\n if (configBuilder_ != null) {\n configBuilder_.dispose();\n configBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public int deleteConfigurationsOfProject(String idProject) {\n\t\treturn this.jdbcTemplate.update(\"delete from configurationCrawlers where idProject = ?\", idProject);\n\t}", "public Builder clearImportConfiguration() {\n if (importConfigurationBuilder_ == null) {\n importConfiguration_ = null;\n onChanged();\n } else {\n importConfiguration_ = null;\n importConfigurationBuilder_ = null;\n }\n\n return this;\n }", "private static void cleanStatePrivate2(DropwizardTestSupport<DockstoreWebserviceConfiguration> support, String configPath,\n boolean isNewApplication) throws Exception {\n Application<DockstoreWebserviceConfiguration> application;\n if (isNewApplication) {\n application = support.newApplication();\n } else {\n application = support.getApplication();\n }\n application.run(\"db\", \"drop-all\", \"--confirm-delete-everything\", configPath);\n\n List<String> migrationList = Arrays\n .asList(\"1.3.0.generated\", \"1.3.1.consistency\", \"test.confidential2\", \"1.4.0\", \"1.5.0\", \"test.confidential2_1.5.0\", \"1.6.0\",\n \"1.7.0\", \"1.8.0\", \"1.9.0\");\n runMigration(migrationList, application, configPath);\n }", "public Builder clearBootclasspath() {\n bootclasspath_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }", "protected void buildBootstrap() {\n String command = \"-prod -mac -o2 rom -strip:d j2me imp\";\n if (includeDebugger) {\n command += \" debugger\";\n }\n command += \" -- translator\";\n builder(command);\n }", "private void handleConfigurationSkip(ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, XmlSuite suite) {\n recordConfigurationInvocationFailed(tm, annotation, suite);\n testResult.setStatus(ITestResult.SKIP);\n runConfigurationListeners(testResult);\n }", "@Test\n public void testLoadOptionalChildBuilderSuppressErrorLog()\n throws ConfigurationException\n {\n factory.addProperty(\"override.configuration[@fileName]\",\n OPTIONAL_FILE.getAbsolutePath());\n // a special invocation handler which checks that the warn() method of\n // a logger is not called\n InvocationHandler handler = new InvocationHandler()\n {\n public Object invoke(Object proxy, Method method, Object[] args)\n throws Throwable\n {\n String methodName = method.getName();\n if (methodName.startsWith(\"is\"))\n {\n return Boolean.TRUE;\n }\n if (\"warn\".equals(methodName))\n {\n fail(\"Unexpected log output!\");\n }\n return null;\n }\n };\n factory.setLogger((Log) Proxy.newProxyInstance(getClass()\n .getClassLoader(), new Class[] {\n Log.class\n }, handler));\n factory.getConfiguration(false);\n }", "@Override\n public void setupConfiguration(Configuration config)\n {\n\n }", "public final WuicFacadeBuilder disableMultipleConfigInTagSupport() {\n this.multipleConfigInTagSupport = Boolean.FALSE;\n return this;\n }", "private static void cleanStatePrivate1(DropwizardTestSupport<DockstoreWebserviceConfiguration> support, String configPath)\n throws Exception {\n Application<DockstoreWebserviceConfiguration> application = support.getApplication();\n application.run(\"db\", \"drop-all\", \"--confirm-delete-everything\", configPath);\n\n List<String> migrationList = Arrays\n .asList(\"1.3.0.generated\", \"1.3.1.consistency\", \"test.confidential1\", \"1.4.0\", \"1.5.0\", \"test.confidential1_1.5.0\", \"1.6.0\",\n \"1.7.0\", \"1.8.0\", \"1.9.0\");\n runMigration(migrationList, application, configPath);\n }", "protected void additionalConfig(ConfigType config){}", "void unsetInstallmentType();", "public boolean deleteBuild(int buildId);", "private void clearBuild() {\n bitField0_ = (bitField0_ & ~0x00000004);\n build_ = 0L;\n }", "protected void setIncompatibleWithSkymeld() {\n addOptions(\"--noexperimental_merged_skyframe_analysis_execution\");\n }", "private ProjectConfigurationFactory()\n {}", "public void updateProject(Task context) throws BuildException {\n //Properties codenameOneSettings = new Properties();\n if (projectDir == null) {\n throw new BuildException(\"Cannot update project with null projectDir\");\n }\n File codenameOneSettingsFile = new File(projectDir, \"codenameone_settings.properties\");\n if (!codenameOneSettingsFile.exists()) {\n throw new BuildException(\"No codenameone_settings.properties file found at \"+codenameOneSettingsFile);\n }\n \n File srcDir = new File(projectDir, \"src\");\n \n Properties codenameOneSettings = null;\n try {\n codenameOneSettings = Util.loadProperties(codenameOneSettingsFile);\n } catch (Exception ex) {\n throw new BuildException(\"Failed to load project settings \"+codenameOneSettingsFile, ex);\n }\n \n if (version != null) {\n try {\n double ver = Double.parseDouble(version);\n codenameOneSettings.setProperty(\"codename1.version\", \"\" + ver);\n } catch(NumberFormatException err) {\n System.out.println(\"Couldn't convert version, Codename One versions must be decimal numbers for increased portability\");\n } \n \n }\n \n if (packageId != null) {\n String oldPackage = codenameOneSettings.getProperty(\"codename1.packageName\");\n codenameOneSettings.setProperty(\"codename1.packageName\", packageId);\n String iosAppId = codenameOneSettings.getProperty(\"codename1.ios.appid\");\n if (iosAppId == null) {\n iosAppId = \"BQ5FVWYLLB.com.codename1.demos.cordova\";\n }\n iosAppId = iosAppId.substring(0, iosAppId.indexOf(\".\"))+\".\"+packageId;\n codenameOneSettings.setProperty(\"codename1.ios.appid\", iosAppId);\n \n if (!packageId.equals(oldPackage)) {\n String oldMainPath = oldPackage.replace(\".\", File.separator);\n String newMainPath = packageId.replace(\".\", File.separator);\n File oldMainDir = new File(srcDir, oldMainPath);\n File newMainDir = new File(srcDir, newMainPath);\n //String mainClassName = codenameOneSettings.getProperty(\"codename1.mainName\");\n\n if (!oldMainDir.exists()) {\n throw new BuildException(\"Could not find old main dir: \"+oldMainDir);\n }\n\n //File oldMainFile = new File(oldMainDir, mainClassName+\".java\");\n //File newMainFile = new File(newMainDir, mainClassName+\".java\");\n\n newMainDir.getParentFile().mkdirs();\n if (newMainDir.exists()) {\n for (File f : oldMainDir.listFiles()) {\n if (\".\".equals(f.getName()) || \"..\".equals(f.getName())) {\n continue;\n }\n f.renameTo(new File(newMainDir, f.getName()));\n }\n oldMainDir.delete();\n } else {\n\n oldMainDir.renameTo(newMainDir);\n }\n\n Replace replaceTask = (Replace)context.getProject().createTask(\"replace\");\n replaceTask.setDir(srcDir);\n replaceTask.setIncludes(\"**/*.java\");\n Replace.NestedString token = replaceTask.createReplaceToken();\n token.addText(oldPackage);\n\n replaceTask.createReplaceValue().addText(packageId);\n replaceTask.execute();\n }\n \n }\n \n if (projectName != null) {\n codenameOneSettings.setProperty(\"codename1.displayName\", projectName);\n }\n \n \n \n \n try {\n Util.saveProperties(codenameOneSettings, codenameOneSettingsFile, \"Updated by ImportCordovaAppTask on \"+new Date());\n } catch (IOException ex) {\n throw new BuildException(\"Failed to save codename one settings file \"+codenameOneSettingsFile, ex);\n }\n \n \n File nbprojectDir = new File(projectDir, \"nbproject\");\n \n new File(projectDir, \"override\").mkdirs();\n new File(projectDir, \"native\" + File.separator + \"internal_tmp\").mkdirs();\n File nbprojectPropertiesFile = new File(nbprojectDir, \"project.properties\");\n if (nbprojectPropertiesFile.exists()) {\n Properties nbprojectProperties = null;\n context.log(\"Updating Netbeans properties file \"+nbprojectPropertiesFile);\n try {\n nbprojectProperties = Util.loadProperties(nbprojectPropertiesFile);\n \n } catch (Exception ex) {\n throw new BuildException(\"Failed to load netbeans project properties at \"+nbprojectPropertiesFile);\n }\n if (projectName != null) {\n String normalizedName = projectName.replaceAll(\"[^a-zA-Z0-9]\", \"\");\n \n nbprojectProperties.setProperty(\"application.title\", projectName);\n nbprojectProperties.setProperty(\"dist.jar\", \"${dist.dir}/\"+normalizedName+\".jar\");\n }\n \n try {\n Util.saveProperties(nbprojectProperties, nbprojectPropertiesFile, \"updated by \"+context.getTaskName()+ new Date());\n \n } catch (Exception ex) {\n throw new BuildException(\"Failed to save changes to \"+nbprojectPropertiesFile, ex);\n } \n \n if (projectName != null) {\n \n Replace replaceProjectName = (Replace)context.getProject().createTask(\"replace\");\n replaceProjectName.setFile(new File(nbprojectDir, \"project.xml\"));\n replaceProjectName.createReplaceToken().addText(\"<name>CordovaProjectTemplate</name>\");\n replaceProjectName.createReplaceValue().addText(\"<name>\"+projectName.replace(\"<\", \"&lt;\").replace(\">\", \"&gt;\")+\"</name>\");\n replaceProjectName.execute();\n }\n }\n }", "public static void removeCurrentThreadLib() {\n\t\tcommonLibs.remove();\n\t}", "void deactivate(){\n \tthis.config.clear();\n\t\tlog.debug(bundleMarker,\"deactivating...\");\n\t}", "boolean k2h_unset_debug_file();", "@Override\n\tpublic boolean hasExtraConfigs()\n\t{\n\t\treturn false;\n\t}", "public Builder clearCryptoKeyConfig() {\n bitField0_ = (bitField0_ & ~0x04000000);\n cryptoKeyConfig_ = null;\n if (cryptoKeyConfigBuilder_ != null) {\n cryptoKeyConfigBuilder_.dispose();\n cryptoKeyConfigBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public ULocale build() {\n/* 1725 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "@After\n public void tearDown() {\n Configurator.setLevel(Main.class.getPackage().getName(), Level.INFO);\n }", "public void projectBuildDirChanged() { }", "public void projectBuildDirChanged() { }", "@Override\n public void configure(IgnoredTypesBuilder builder, ConfigProperties config) {\n builder\n .ignoreClass(\"org.mockito\")\n .ignoreClass(\"com.zaxxer.hikari.metrics.IMetricsTracker$MockitoMock$\");\n }" ]
[ "0.5617179", "0.56123924", "0.5175892", "0.5092647", "0.50692844", "0.49456143", "0.49271536", "0.49037173", "0.48367786", "0.48151377", "0.48037124", "0.47910067", "0.47807986", "0.4769599", "0.47624674", "0.47482035", "0.46780056", "0.46675676", "0.46592095", "0.46202478", "0.46189603", "0.46064675", "0.45630655", "0.4549783", "0.45220426", "0.4497056", "0.44937906", "0.44629782", "0.44363582", "0.44264838", "0.44186568", "0.44025958", "0.43878233", "0.4376945", "0.43713975", "0.43668", "0.43667227", "0.4361158", "0.4356595", "0.4342644", "0.43367404", "0.43353096", "0.43325585", "0.4331755", "0.43203333", "0.43198326", "0.4306078", "0.43043464", "0.4301688", "0.42998287", "0.42998287", "0.42998287", "0.4296377", "0.42810163", "0.42790434", "0.42729688", "0.42618915", "0.42406464", "0.42369032", "0.42340982", "0.42302305", "0.4226699", "0.42223188", "0.42203206", "0.4213525", "0.42085132", "0.42050442", "0.42040592", "0.41993183", "0.41960603", "0.4194121", "0.41940078", "0.41930896", "0.41898194", "0.41891614", "0.41878113", "0.4170596", "0.41696426", "0.41646612", "0.41534635", "0.41477886", "0.41470918", "0.41469613", "0.41257596", "0.41221166", "0.4113109", "0.41057897", "0.41030204", "0.40956005", "0.40890065", "0.4088757", "0.4082976", "0.4080858", "0.4077083", "0.40716553", "0.40675828", "0.40661877", "0.40632463", "0.40632463", "0.40562955" ]
0.45934367
22
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)"); } // verify the required parameter 'thirdPartyName' is set if (thirdPartyName == null) { throw new ApiException("Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)"); } return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract(Async)\");\n }\n\n return updateContractCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getOneValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getOne(Async)\");\n }\n\n return getOneCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchContract(Async)\");\n }\n\n return patchContractCall(generalContractId, body);\n }", "public TbContract verifyContractIdExist(int chainId, int contractId, int groupId) {\n ContractParam param = new ContractParam(chainId, contractId, groupId);\n TbContract contract = queryContract(param);\n if (Objects.isNull(contract)) {\n log.info(\"contractId is invalid. contractId:{}\", contractId);\n throw new BaseException(ConstantCode.INVALID_CONTRACT_ID);\n }\n return contract;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling revokeAccrual(Async)\");\n }\n\n return revokeAccrualCall(generalContractId);\n }", "public void setContractId(int value) {\n this.contractId = value;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getIframeOptionsValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getIframeOptions(Async)\");\n }\n\n return getIframeOptionsCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getTransferBalanceValidateBeforeCall(ProductInstanceID generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getTransferBalance(Async)\");\n }\n\n return getTransferBalanceCall(generalContractId);\n }", "public void setContractId(Integer contractId) {\n this.contractId = contractId;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailableCurrenciesValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailableCurrencies(Async)\");\n }\n\n return getAvailableCurrenciesCall(generalContractId);\n }", "public Call getOneCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public int getContractId() {\n return contractId;\n }", "public String getContractId() {\n return contractId;\n }", "public void setContractId(String contractId) {\n this.contractId = contractId == null ? null : contractId.trim();\n }", "public Integer getContractId() {\n return contractId;\n }", "public ValidationResult validateContract() {\n return validateContract(apiContract);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)\");\n }\n\n return updateThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateBankAccountValidateBeforeCall(String generalContractId, BankAccountDescriptor body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateBankAccount(Async)\");\n }\n\n return updateBankAccountCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)\");\n }\n\n return patchThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call terminateValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling terminate(Async)\");\n }\n\n return terminateCall(generalContractId);\n }", "public void setSContractNo(String sContractNo) {\n this.sContractNo = sContractNo;\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n String string0 = EWrapperMsgGenerator.bondContractDetails(1274, contractDetails0);\n assertEquals(\"reqId = 1274 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = FkqJC9O=9\\ntradingClass = null\\nconid = 0\\nminTick = -4322.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "public Call patchContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PATCH\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public Contract() {\n // initialise instance variables\n generateContractId();\n }", "public void setPartnerContractId(Integer partnerContractId) {\r\n this.partnerContractId = partnerContractId;\r\n }", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "public TbContract verifyContractDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() != contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_NOT_DEPLOY);\n }\n return contract;\n }", "public String getContractNumber() {\n return contractNumber;\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void setContractorID(int contractorID) {\n this.contractorID = contractorID;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addPaymentLinkConfigurationValidateBeforeCall(String generalContractId, PaymentLinkOptions body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addPaymentLinkConfiguration(Async)\");\n }\n\n return addPaymentLinkConfigurationCall(generalContractId, body);\n }", "boolean hasBusinessCircleId();", "public TbContract verifyContractNotDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() == contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_HAS_BEAN_DEPLOYED);\n }\n return contract;\n }", "public Call updateContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailablePaymentMethodsValidateBeforeCall(String generalContractId, GetAvailablePaymentMethodsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailablePaymentMethods(Async)\");\n }\n\n return getAvailablePaymentMethodsCall(generalContractId, body);\n }", "public void setContractAmount(Integer contractAmount) {\n this.contractAmount = contractAmount;\n }", "public Contracts() {\r\n super();\r\n \r\n }", "public boolean isSetContractAddress() {\n return this.contractAddress != null;\n }", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "public void createContract() {\n\r\n\t}", "public void initContract(ContractInfo contractInfo)\n {\n this.contractInfo = contractInfo;\n }", "void setContract(int contract) {\r\n\t\tif (contract == 24 || contract == 30 || contract == 36) {\r\n\t\t\tthis.contract = contract;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Vector<String> vector0 = new Vector<String>();\n Contract contract0 = new Contract(0, \"X_\", \"X_\", \"X_\", 1833, \"X_\", \"liquidHours = \", \"X_\", \"Error - \", (String) null, vector0, \"com.ib.client.Execution\", true, \"liquidHours = \", \"com.ib.client.Execution\");\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"\", (String) null, (-2818.2935355), \"\", \"H9~[N\\\"Hv`#|kr]\", 13, \"H9~[N\\\"Hv`#|kr]\", \" underComp.delta =\", \"\", \" underComp.delta =\", \"X_\", (String) null, \"M]G9k=@}tbK\", \"Bwn1n;uU*\");\n String string0 = EWrapperMsgGenerator.contractDetails(1833, contractDetails0);\n assertEquals(\"reqId = 1833 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = X_\\nsecType = X_\\nexpiry = X_\\nstrike = 1833.0\\nright = X_\\nmultiplier = liquidHours = \\nexchange = X_\\nprimaryExch = com.ib.client.Execution\\ncurrency = Error - \\nlocalSymbol = null\\nmarketName = \\ntradingClass = null\\nminTick = -2818.2935355\\nprice magnifier = 0\\norderTypes = \\nvalidExchanges = H9~[N\\\"Hv`#|kr]\\nunderConId = 13\\nlongName = H9~[N\\\"Hv`#|kr]\\ncontractMonth = underComp.delta =\\nindustry = \\ncategory = underComp.delta =\\nsubcategory = X_\\ntimeZoneId = null\\ntradingHours = M]G9k=@}tbK\\nliquidHours = Bwn1n;uU*\\n ---- Contract Details End ----\\n\", string0);\n }", "@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "boolean isSetCompanyBaseData();", "@Test\n public void shouldCreateContractWithPreconditions() {\n // Given\n final Clause precondition1 = ContractFactory.alwaysTrueDefaultClause();\n final Clause precondition2 = ContractFactory.alwaysTrueDefaultClause();\n\n // When\n final Contract contract = ContractFactory.contractWithPreconditions(precondition1, precondition2);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has not all given preconditions!\", contract.preconditions().length == 2);\n }", "public void setContractNumber(String contractNumber) {\n this.contractNumber = contractNumber == null ? null : contractNumber.trim();\n }", "public ContractMethod() {\n }", "@Test\n public void testGetBusinessId() {\n \n \n assertNull(o1.getBusinessId());\n o1.setBusinessId(Integer.MIN_VALUE);\n assertNotNull(o1.getBusinessId());\n assertEquals(new Integer(Integer.MIN_VALUE), o1.getBusinessId());\n }", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "@Test\n public void shouldCreateEmptyContract() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n }", "public Call terminateCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/terminate\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public abstract void deleteContract(String contractNumber);", "public void checkCreditCard() throws BusinessException;", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "@Test\n public void merchantidTest() {\n assertEquals(Integer.valueOf(12345), authResponse.getMerchantid());\n }", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "VerifyBasicCallback() {\n m_transactionType = null;\n m_procedureName = null;\n }", "private static void validateBaseRequest(final InvBaseRequest request) {\r\n\t\tif (request == null) {\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Request is Null.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Request is Null\");\r\n\t\t}\r\n\r\n\t\tif(request.getTransactionId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid Transaction ID.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid Transaction ID.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getUserId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid User Id.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid User Id.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(null == request.getDistributionCenter() || request.getDistributionCenter().isEmpty() || null == request.getShipToCustomer() || request.getShipToCustomer().isEmpty() ){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Account should not be empty.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Account should not be empty\");\r\n\t\t}\r\n\t}", "public void setXpeContractId(String value) {\n setAttributeInternal(XPECONTRACTID, value);\n }", "@Test\n public void testFailureParInvalidPkceSetting() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n updateClientByAdmin(clientId, (ClientRepresentation cRep)->{\n OIDCAdvancedConfigWrapper.fromClientRepresentation(cRep).setPkceCodeChallengeMethod(\"S256\");\n });\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(400, pResp.getStatusCode());\n assertEquals(OAuthErrorException.INVALID_REQUEST, pResp.getError());\n assertEquals(\"Missing parameter: code_challenge_method\", pResp.getErrorDescription());\n }", "public static int withContract() {\n\t\t{\n\t\t\tString choice;\n\t\t\tint startover;\n\t\t\tImageIcon picture;\n\t\t\tint selectedCode;\n\t\t\tint number1 = (int) (900 * Math.random() + 100);\n\t\t\tint number2 = (int) (9000 * Math.random() + 1000);\n\t\t\tString[] choices = modelsForContract();\n\t\t\t\n\t\t\t// asks which phone the user wants by showing the options based upon their contract preferences\n\t\t\t\n\t\t\tchoice = (String) JOptionPane.showInputDialog(null, \"Which phone whould you like?\", \"Phone Selection\", \n\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, icon, choices, null);\n\t\t\t\n\t\t\t// Depending on the selection, the phones image is displayed.\n\t\t\tif (choice == choices[0])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"galaxyS9.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[1])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"iphoneX.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[2])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"googlePixel.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[3])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"Motorola.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[4])\n\t\t\t{\n\t\t\t\tSystem.out.print(\"HI\");\n\t\t\t\tpicture = new ImageIcon(\"Huawei.png\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\t\t\tselectedCode = 0;\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\t// Then the area code selection is presented.\n\t\t\tselectedCode = JOptionPane.showOptionDialog(null, \"Please select an area code from below\",\n\t\t\t\t\t\"Area Code Selection\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, picture, areaCodes, areaCodes[0]);\n\t\t\t\n\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Congratulations, \" + firstName + \"!\\nYour new phone is the \" + choice + \".\"\n\t\t\t\t\t+ \"\\nAnd your new phone number is \" + areaCodes[selectedCode] + \"-\" + number1 + \"-\" + number2 + \"!\",\n\t\t\t\t\t\"Congratulations!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t\n\t\t\tstartover = JOptionPane.showOptionDialog(null, \"Would you like to buy another phone \" + firstName + \"?\",\n\t\t\t\t\t\"Awesome Smartphone\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon, null, 0);\n\t\t\t\n\t\t\tif (startover == 1)\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Thank you for your business!\",\n\t\t\t\t\t\t\"Thank You!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t}\n\t\t\treturn startover;\n\t\t}\n\t}", "void setIdVerificationResponseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData idVerificationResponseData);", "boolean isSetIdVerificationResponseData();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Ggeneral)) {\n return false;\n }\n Ggeneral other = (Ggeneral) object;\n if ((this.idgeneral == null && other.idgeneral != null) || (this.idgeneral != null && !this.idgeneral.equals(other.idgeneral))) {\n return false;\n }\n return true;\n }", "public void setCodeCombinationsIdFromGeneral(XxGamMaGeneralReqVORowImpl generalRow) {\n if (generalRow != null) {\n Number codeCombinationId = null;\n codeCombinationId = generalRow.getCostCenter();\n if (codeCombinationId != null) {\n\n RowSetIterator rowSetIter = getRowSetIterator();\n if (rowSetIter != null) {\n rowSetIter.reset();\n while (rowSetIter.hasNext()) {\n Row row = rowSetIter.next();\n XxGamMaPaymentReqVORowImpl detailRow = \n (XxGamMaPaymentReqVORowImpl)row;\n if (detailRow != null) {\n if (detailRow.getGeneralReqId().equals(generalRow.getId())) {\n detailRow.setCodeCombinationId(codeCombinationId);\n }\n }\n }\n rowSetIter.reset();\n }\n }\n }\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public int getContractorID() {\n return contractorID;\n }", "@Test\n public void shouldCreateContractWithPrecondition() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.contractWithPrecondition();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has no precondition!\", contract.preconditions().length == 1);\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "public boolean modifyContract(Contract contract) {\n\t\treturn contractdao.modifyContract(contract);\n\t}", "boolean isSetCapitalPayed();", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "protected boolean validateSubContract(SubContract subContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = subContract.getParentContract().getValidityPeriod();\n \n BasicDiagnostic parameterBlocksDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_BLOCK_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterBlocksValid = validateParameterBlocks(subContract, parameterBlocksDiagnostics, context);\n if(!parameterBlocksValid)\n diagnostics.add(parameterBlocksDiagnostics);\n\n BasicDiagnostic parameterMapsDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_MAP_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterMapsValid = validateParameterMaps(subContract, parameterMapsDiagnostics, context);\n if(!parameterMapsValid)\n diagnostics.add(parameterMapsDiagnostics);\n \n boolean parentValid = true;\n if(!subContract.getPrimaryContract().getValidityPeriod().contains(newPeriod)){\n parentValid &= false;\n diagnostics.add(new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_SUB_CONTRACT, SUB_CONTRACT__RANGE, String.format(\n \"[%s] '%s' conflicts with parent '%s'\", \"Range\",\n getDisplayString(newPeriod), getDisplayString(subContract\n .getPrimaryContract().getValidityPeriod())), new Object[]{subContract.getPrimaryContract()}));\n }\n \n return parameterBlocksValid && parameterMapsValid && parentValid;\n }", "@Test\n public void testInsuredPayerPayersId() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setPayersIdEnum,\n RdaFissPayer::getPayersId,\n FissPayersCode.PAYERS_CODE_AUTO_NO_FAULT,\n \"D\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setPayersIdUnrecognized,\n RdaFissPayer::getPayersId,\n RdaFissPayer.Fields.payersId,\n 1);\n }", "@Override\n\tpublic void setFTGLId(FinancialTransactionGeneralLedger_Id arg0) {\n\n\t}", "public Call revokeAccrualCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/revokeAccrual\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@Test\r\n\tvoid testContactServiceUpdateContactWithInValidID() {\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.updateContactFirstName(\"none\", \"enon\");\r\n\t\t});\r\n\t}", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }", "public boolean isSetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENERAL$20) != 0;\r\n }\r\n }", "private Contract() {\n }", "@Test\n public void testInsuredPayerTreatAuthCd() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }", "VerifyBasicCallback(TPCCSimulation.Transaction transaction, String procName) {\n m_transactionType = transaction;\n m_procedureName = procName;\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Contract contract0 = new Contract();\n String string0 = EWrapperMsgGenerator.contractMsg(contract0);\n assertEquals(\"conid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\n\", string0);\n }", "boolean isSetNcbistdaa();", "public void onClick(DialogInterface dialog, int id)\n {\n if(optionAddContract.isChecked())\n {\n selectedContractAddress = contractAddressField.getText().toString();\n dialogListener.onAddContract(selectedContractAddress, selectedContractType);\n }else{\n dialogListener.onCreateContract(selectedContractType);\n }\n }", "public void m9130p() throws cf {\r\n if (this.f6007a == null) {\r\n throw new cz(\"Required field 'domain' was not present! Struct: \" + toString());\r\n } else if (this.f6009c == null) {\r\n throw new cz(\"Required field 'new_id' was not present! Struct: \" + toString());\r\n }\r\n }", "@Test\n public void testBeneZPayerTreatAuthCd() {\n new BeneZPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissBeneZPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }" ]
[ "0.6566565", "0.6497611", "0.64637333", "0.622235", "0.6210186", "0.6131018", "0.60290796", "0.59923744", "0.58934605", "0.58661616", "0.57160485", "0.57071656", "0.5653759", "0.55980074", "0.5569409", "0.553539", "0.5487554", "0.5440618", "0.5440618", "0.5439598", "0.5408142", "0.53970677", "0.53854465", "0.53708893", "0.535706", "0.53022665", "0.5297568", "0.5285573", "0.52775395", "0.5228783", "0.52161616", "0.5215486", "0.5205767", "0.5205767", "0.5199093", "0.51915133", "0.51328886", "0.5033789", "0.5029831", "0.5028553", "0.5016704", "0.50105745", "0.498703", "0.49869227", "0.49858847", "0.49840963", "0.4981568", "0.49711713", "0.49521965", "0.49504304", "0.4947746", "0.49310437", "0.49262455", "0.49186945", "0.48525771", "0.4834332", "0.4834332", "0.4834332", "0.4834332", "0.48338956", "0.48318732", "0.48279566", "0.48160288", "0.4812081", "0.47995192", "0.47923365", "0.4781422", "0.47777963", "0.47646332", "0.47629628", "0.47589943", "0.4757054", "0.4750851", "0.47358122", "0.47310758", "0.4729941", "0.4721001", "0.47173005", "0.47168317", "0.47128192", "0.4699858", "0.4696607", "0.4694214", "0.4693992", "0.4684683", "0.4683533", "0.4683291", "0.46758085", "0.46754542", "0.4674884", "0.46742436", "0.46673056", "0.46622548", "0.466158", "0.46588138", "0.4658", "0.46564242", "0.46557775", "0.46517795", "0.46499386" ]
0.48840562
54
Build call for revokeAccrual
public Call revokeAccrualCall(String generalContractId) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/revokeAccrual" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void revoke();", "public Builder clearAccOpId() {\n \n accOpId_ = 0;\n onChanged();\n return this;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling revokeAccrual(Async)\");\n }\n\n return revokeAccrualCall(generalContractId);\n }", "public static URL getUrlForRequestDeleteAccRop()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/rop_cancellation_request\";\r\n return str2url( strUrl );\r\n }", "public Builder clearVacationAccrualRate() {\n \n vacationAccrualRate_ = 0F;\n onChanged();\n return this;\n }", "@Override\n protected void onPlusClientRevokeAccess() {\n }", "@Override\n protected void onPlusClientRevokeAccess() {\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 unsubscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), null, null)).get();\n LOG.info(\"Unsubscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't unsubscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "private native void destruirAplicacionNativa();", "public Builder clearAccX() {\n bitField0_ = (bitField0_ & ~0x00000004);\n accX_ = 0F;\n onChanged();\n return this;\n }", "@Override\n public void onCancel(Platform arg0, int arg1) {\n Log.d(TAG, \"onCancel: ============授权取消\");\n }", "public void unlink__customers( String qualificationId, String fk, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n invokeStaticMethod(\"prototype.__unlink__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }", "@Override\n\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 BillingService revokeDirectWithdraw(RevokeDirectWithdrawVo revokeDirectWithdrawVo, OnGetResponseListener onGetResponseListener)\n throws PodException {\n\n if (onGetResponseListener != null)\n service.revokeDirectWithdraw(revokeDirectWithdrawVo, onGetResponseListener);\n\n else throw PodException.invalidParameter(MESSAGE);\n\n return this;\n }", "public Builder clearVacationAccrued() {\n \n vacationAccrued_ = 0F;\n onChanged();\n return this;\n }", "@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 static URL getUrlForRequestDeleteAccAir()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/cancellation_request\";\r\n return str2url( strUrl );\r\n }", "public void revoke() {\n WebsitePreferenceBridge.nativeRevokeUsbPermission(mOrigin, mEmbedder, mObject);\n }", "public Builder clearAccY() {\n bitField0_ = (bitField0_ & ~0x00000008);\n accY_ = 0F;\n onChanged();\n return this;\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 }", "void expireComponentAccessToken();", "public static RevokeAndACK of(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg) {\n\t\tlong ret = bindings.RevokeAndACK_new(channel_id_arg, per_commitment_secret_arg, next_per_commitment_point_arg);\n\t\tif (ret < 1024) { return null; }\n\t\tRevokeAndACK ret_hu_conv = new RevokeAndACK(null, ret);\n\t\tret_hu_conv.ptrs_to.add(ret_hu_conv);\n\t\treturn ret_hu_conv;\n\t}", "private void revokeUserLoginAndUpdateNotes(long studentID) throws Exception {\n int fee = getPendingFee(studentID);\n fee += 25;\n\n String url = MASTER_URL + MEMBERS + studentID + \".api\";\n\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n con.setDoOutput(true);\n // request method\n con.setRequestMethod(\"PUT\");\n\n // request headers\n con.setRequestProperty(\"token\", USER_TOKEN);\n con.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n String data = \"user[description]=Owes $\" + fee;\n\n OutputStreamWriter writer = new OutputStreamWriter(con.getOutputStream());\n\n writer.write(data);\n writer.close();\n\n con.getResponseCode();\n\n revokeLogin(studentID);\n\n }", "protected void retirePreviousAuthorizations() {\n List<Document> relatedDocs = getTravelDocumentService().getDocumentsRelatedTo(this, TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT,\n TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT);\n\n //updating the related's document appDocStatus to be retired\n final DocumentAttributeIndexingQueue documentAttributeIndexingQueue = KewApiServiceLocator.getDocumentAttributeIndexingQueue();\n try {\n for (Document document : relatedDocs){\n if (!document.getDocumentNumber().equals(this.getDocumentNumber())) {\n ((TravelAuthorizationDocument) document).updateAndSaveAppDocStatus(TravelAuthorizationStatusCodeKeys.RETIRED_VERSION);\n documentAttributeIndexingQueue.indexDocument(document.getDocumentNumber());\n }\n }\n }\n catch (WorkflowException we) {\n throw new RuntimeException(\"Workflow document exception while updating related documents\", we);\n }\n }", "public abstract void revokeMembership(String nickname);", "public void setRevokeDate(String revokeDate) {\r\n this.revokeDate = revokeDate;\r\n\r\n }", "public Builder setAccOpId(int value) {\n \n accOpId_ = value;\n onChanged();\n return this;\n }", "@Test\n public void revokeApproved() {\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 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 }", "@DELETE\n @Path(RMWSConsts.DELEGATION_TOKEN)\n @Produces({ MediaType.APPLICATION_JSON + \"; \" + JettyUtils.UTF_8,\n MediaType.APPLICATION_XML + \"; \" + JettyUtils.UTF_8 })\n @Override\n public Response cancelDelegationToken(@Context HttpServletRequest hsr)\n throws AuthorizationException, IOException, InterruptedException,\n Exception {\n\n UserGroupInformation callerUGI = getCallerUserGroupInformation(hsr, true);\n initForWritableEndpoints(callerUGI, false);\n\n try {\n createKerberosUserGroupInformation(hsr, callerUGI);\n callerUGI.setAuthenticationMethod(AuthenticationMethod.KERBEROS);\n } catch (YarnException ye) {\n return Response.status(Status.FORBIDDEN).entity(ye.getMessage()).build();\n }\n\n Token<RMDelegationTokenIdentifier> token = extractToken(hsr);\n\n org.apache.hadoop.yarn.api.records.Token dToken = BuilderUtils\n .newDelegationToken(token.getIdentifier(), token.getKind().toString(),\n token.getPassword(), token.getService().toString());\n final CancelDelegationTokenRequest req =\n CancelDelegationTokenRequest.newInstance(dToken);\n\n try {\n callerUGI\n .doAs(new PrivilegedExceptionAction<CancelDelegationTokenResponse>() {\n @Override\n public CancelDelegationTokenResponse run()\n throws IOException, YarnException {\n return rm.getClientRMService().cancelDelegationToken(req);\n }\n });\n } catch (UndeclaredThrowableException ue) {\n if (ue.getCause() instanceof YarnException) {\n if (ue.getCause().getCause() instanceof InvalidToken) {\n throw new BadRequestException(ue.getCause().getCause().getMessage());\n } else if (ue.getCause()\n .getCause() instanceof org.apache.hadoop.security.AccessControlException) {\n return Response.status(Status.FORBIDDEN)\n .entity(ue.getCause().getCause().getMessage()).build();\n }\n LOG.info(\"Renew delegation token request failed\", ue);\n throw ue;\n }\n LOG.info(\"Renew delegation token request failed\", ue);\n throw ue;\n } catch (Exception e) {\n LOG.info(\"Renew delegation token request failed\", e);\n throw e;\n }\n\n return Response.status(Status.OK).build();\n }", "@DefaultMessage(\"Canceling changes ...\")\n @Key(\"gen.cancelChanges\")\n String gen_cancelChanges();", "private void releaseAndDeauthorize(final boolean deauthorizeNow, final int resultCode, boolean closeSocket)\n {\n synchronized(lock)\n {\n if (currentState == STATE_STOPPED)\n {\n if (log.isInfoEnabled())\n {\n log.info(\"ignoring releaseAndDeauthorize when already stopped\");\n }\n return;\n }\n //don't change state here\n }\n\n if (log.isInfoEnabled()) \n {\n log.info(\"releaseAndDeauthorize - now: \" + deauthorizeNow + \" - id: \" + connectionId + \", url: \" + url);\n }\n HNServerSessionManager.getInstance().release(this, closeSocket);\n if (deauthorizeNow)\n {\n HNServerSessionManager.getInstance().deauthorize(this, resultCode);\n }\n else\n {\n HNServerSessionManager.getInstance().scheduleDeauthorize(this, resultCode);\n }\n }", "private void revokeLogin(long studentID) throws Exception {\n String url = MASTER_URL + MEMBERS + studentID + \".api\";\n\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n con.setDoOutput(true);\n // request method\n con.setRequestMethod(\"PUT\");\n\n // request headers\n con.setRequestProperty(\"token\", USER_TOKEN);\n con.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n String data = \"user[login_enabled]=0\";\n\n OutputStreamWriter writer = new OutputStreamWriter(con.getOutputStream());\n\n writer.write(data);\n writer.close();\n\n con.getResponseCode();\n }", "private QueryGetRevokeCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void revokePermission(String objectId, User user, List<String> actions) throws UserManagementException;", "@ApiOperation(value=\"Login\", notes=\"Login action\")\n @RequestMapping(value=\"/user/logout\",method= RequestMethod.POST)\n @ResponseBody\n public RetObject logoutHomeconnect(@ApiParam(value = \"account logout\", required = true)@RequestHeader(value = \"PlatID\", required = true) String platID,@RequestHeader(value = \"AppID\", required = false) String appID,\n @RequestHeader HttpHeaders httpHeaders,\n\t\t\t\t\t@RequestHeader(value = \"AccessToken\", required = true) String AccessToken,\n @RequestBody(required = false) LoginReqVO body){\n String url = \"/api/translator/user/logout\";\n RetObject result = RetObject.fail();\n Map<String,String> headerMap = new HashedMap();\n headerMap.put(\"PlatID\", platID);\n headerMap.put(\"AppID\", appID);\n String headers = getJSONString(headerMap);\n String bodyText = getJSONString(body);\n Error headerError = validateHeaders(platID,appID);\n Error bodyError = validateLoginBodyError(body);\n if (bodyError == null && headerError == null){\n result = RetObject.success();\n }\n return result;\n}", "public Builder clearAccZ() {\n bitField0_ = (bitField0_ & ~0x00000010);\n accZ_ = 0F;\n onChanged();\n return this;\n }", "@SuppressWarnings(\"PMD.SignatureDeclareThrowsException\")\n public void redoLoanDisbursalWithPastDateUnpaid() throws Exception {\n // Testing redo loan\n RedoLoanDisbursalParameters paramsPastDate = new RedoLoanDisbursalParameters();\n paramsPastDate.setDisbursalDateDD(\"25\");\n paramsPastDate.setDisbursalDateMM(\"02\");\n paramsPastDate.setDisbursalDateYYYY(\"2011\");\n paramsPastDate.setLoanAmount(\"3000.0\");\n paramsPastDate.setInterestRate(\"10\");\n paramsPastDate.setNumberOfInstallments(\"52\");\n RedoLoanDisbursalParameters paramsCurrentDate = new RedoLoanDisbursalParameters();\n paramsCurrentDate.setDisbursalDateDD(\"22\");\n paramsCurrentDate.setDisbursalDateMM(\"2\");\n paramsCurrentDate.setDisbursalDateYYYY(\"2012\");\n LoanAccountPage loanAccountPage = loanTestHelper.redoLoanDisbursal(\"Default Group\", \"WeeklyGroupFlatLoanWithOnetimeFee\", paramsPastDate, paramsCurrentDate, 0, true);\n loanAccountPage.verifyStatus(\"Active in Good Standing\");\n loanAccountPage.verifyPerformanceHistory(\"51\", \"0\");\n // Testing multiple reverse payments\n String payAmount = \"63\";\n String reverseNote = \"Reversed \";\n int loanBalance = (int) (Float.parseFloat(loanAccountPage.getTotalBalance()) + 63 * 3);\n for (int i = 0; i < 3; i++) {\n ApplyAdjustmentPage applyAdjustmentPage = loanAccountPage.navigateToApplyAdjustment();\n applyAdjustmentPage.verifyAdjustment(payAmount, reverseNote + (i + 1));\n }\n verifyMultipleReversePayments(loanAccountPage, payAmount, reverseNote, loanBalance);\n }", "public Builder clearEnableRbac() {\n bitField0_ = (bitField0_ & ~0x02000000);\n enableRbac_ = false;\n onChanged();\n return this;\n }", "long getRevokeDelay();", "private QueryAllRevokeCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryGetRevokeCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "protected void testUncancelReal() {\n\n log.info(\"Starting testUncancel\");\n\n try {\n\n String prod = \"Shotgun\";\n BillingPeriod term = BillingPeriod.MONTHLY;\n String planSet = IPriceListSet.DEFAULT_PRICELIST_NAME;\n\n // CREATE\n Subscription subscription = createSubscription(prod, term, planSet);\n IPlanPhase trialPhase = subscription.getCurrentPhase();\n assertEquals(trialPhase.getPhaseType(), PhaseType.TRIAL);\n\n // NEXT PHASE\n DateTime expectedPhaseTrialChange = Clock.addDuration(subscription.getStartDate(), trialPhase.getDuration());\n checkNextPhaseChange(subscription, 1, expectedPhaseTrialChange);\n\n // MOVE TO NEXT PHASE\n testListener.pushExpectedEvent(NextEvent.PHASE);\n clock.setDeltaFromReality(trialPhase.getDuration(), DAY_IN_MS);\n assertTrue(testListener.isCompleted(2000));\n IPlanPhase currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n // SET CTD + RE READ SUBSCRIPTION + CHANGE PLAN\n IDuration ctd = getDurationMonth(1);\n DateTime newChargedThroughDate = Clock.addDuration(expectedPhaseTrialChange, ctd);\n billingApi.setChargedThroughDate(subscription.getId(), newChargedThroughDate);\n subscription = (Subscription) entitlementApi.getSubscriptionFromId(subscription.getId());\n\n testListener.pushExpectedEvent(NextEvent.CANCEL);\n\n // CANCEL\n subscription.cancel(clock.getUTCNow(), false);\n assertFalse(testListener.isCompleted(2000));\n\n subscription.uncancel();\n\n // MOVE TO EOT + RECHECK\n clock.addDeltaFromReality(ctd);\n DateTime future = clock.getUTCNow();\n assertFalse(testListener.isCompleted(2000));\n\n IPlan currentPlan = subscription.getCurrentPlan();\n assertEquals(currentPlan.getProduct().getName(), prod);\n currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n } catch (EntitlementUserApiException e) {\n Assert.fail(e.getMessage());\n }\n }", "@Test\n\tpublic void testRevokeRefreshToken0() throws Throwable {\n\t\tTokenController testedObject = new TokenController();\n\t\tString result = testedObject.revokeRefreshToken(\"Str 1.2 #\");\n\t\tassertEquals(\"Str 1.2 #\", result); \n\t\t// No exception thrown\n\t\t\n\t}", "private void revokeGplusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n updateUI(false);\n }\n });\n }\n }", "AuthenticationToken renewAuthentication(String headerToken);", "@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 interface DirectPreApprovalCancellation {\n\n /**\n * Get Direct Pre Approval Code\n *\n * @return Direct Pre Approval Code\n */\n String getCode();\n\n}", "@ApiOperation(value=\"Login\", notes=\"Login action\")\n @RequestMapping(value=\"/user/unregister\",method= RequestMethod.POST)\n @ResponseBody\n public RetObject unregisterHomeconnect(@ApiParam(value = \"account unregister\", required = true)@RequestHeader(value = \"PlatID\", required = true) String platID,@RequestHeader(value = \"AppID\", required = false) String appID,\n @RequestHeader HttpHeaders httpHeaders,\n @RequestBody(required = false) BSHDeviceReqVO body){\n String url = \"/v1/user/unregister\";\n RetObject result = RetObject.tokenError();\n Map<String,String> headerMap = new HashedMap();\n headerMap.put(\"PlatID\", platID);\n headerMap.put(\"AppID\", appID);\n String headers = getJSONString(headerMap);\n String bodyText = getJSONString(body);\n Error headerError = validateHeaders(platID,appID);\n Error bodyError = validateRequestBodyUserID(body);\n if (bodyError == null && headerError == null){\n result = RetObject.success();\n }\n return result;\n}", "public interface TokenInvalidator {\n C0117M invalidateAccessToken();\n}", "private String createReversalVoucher() throws ParseException {\n\n final String appConfigKey = \"GJV_FOR_RCPT_CHQ_DISHON\";\n final AppConfigValues appConfigValues = appConfigValuesService.getConfigValuesByModuleAndKey(\n FinancialConstants.MODULE_NAME_APPCONFIG, appConfigKey).get(0);\n appConfigValues.getValue();\n CVoucherHeader voucherHeader = null;\n // DishonoredEntriesDelegate delegat e = new DishonoredEntriesDelegate();\n\n // Create bank charges\n if (dishonorChequeView.getBankChargesAmt().compareTo(BigDecimal.ZERO) > 0)\n try {\n bankChargesReversalVoucher = createBankReversalVoucher();\n } catch (final HibernateException e) {\n LOGGER.error(e.getMessage(), e);\n final List<ValidationError> errors = new ArrayList<ValidationError>();\n errors.add(new ValidationError(\"exception\", e.getMessage()));\n throw new ValidationException(errors);\n } catch (final TaskFailedException e) {\n LOGGER.error(e.getMessage(), e);\n final List<ValidationError> errors = new ArrayList<ValidationError>();\n errors.add(new ValidationError(\"exception\", e.getMessage()));\n throw new ValidationException(errors);\n } catch (final SQLException e) {\n LOGGER.error(e.getMessage(), e);\n final List<ValidationError> errors = new ArrayList<ValidationError>();\n errors.add(new ValidationError(\"exception\", e.getMessage()));\n throw new ValidationException(errors);\n }\n // Create bank charges receipt reversal voucher\n if (null != dishonorChequeView.getOriginalVoucherHeader().getType()\n && dishonorChequeView.getOriginalVoucherHeader().getType().equalsIgnoreCase(RECEIPT)\n || JOURNAL_VOUCHER.equalsIgnoreCase(dishonorChequeView.getOriginalVoucherHeader().getType())) {\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(\"CREATING RECEIPT Reversal >>>>>>>>>>\");\n\n voucherHeader = createVoucherHeader(FinancialConstants.STANDARD_VOUCHER_TYPE_JOURNAL,\n dishonorChequeView.getInstrumentDishonorReason());\n /*\n * //If reversal for receipt, then according to appconfig value get the prefix for voucher. if\n * (dishonorChequeView.getOriginalVoucherHeader().getType().equalsIgnoreCase(RECEIPT) &&\n * gjvForRcpt.equalsIgnoreCase(\"Y\")){ voucherHeader =\n * createVoucherHeader(FinancialConstants.STANDARD_VOUCHER_TYPE_JOURNAL\n * ,dishonorChequeView.getInstrumentDishonorReason()); } else { voucherHeader =\n * createVoucherHeader(FinancialConstants.\n * STANDARD_VOUCHER_TYPE_PAYMENT,dishonorChequeView.getInstrumentDishonorReason()); }\n */\n if (!(null == dishonorChequeView.getInstrumentDishonorReason() && dishonorChequeView.getInstrumentDishonorReason()\n .equals(\"\"))) {\n final String narration = \"Reversal Voucher Entry for receipt number \"\n + dishonorChequeView.getOriginalVoucherHeader().getVoucherNumber() +\n \", Cheque Number \" + dishonorChequeView.getInstrumentHeader().getInstrumentNumber() + \" Cheque Dated :\"\n + getFormattedDate(dishonorChequeView.getInstrumentHeader().getInstrumentDate());\n voucherHeader.setDescription(narration);\n } else\n voucherHeader.setDescription(dishonorChequeView.getInstrumentDishonorReason());\n final List<InstrumentHeader> instrument = instrumentService.addToInstrument(createInstruments(\"1\", getTotalAmount(),\n FinancialConstants.INSTRUMENT_TYPE_BANK_TO_BANK));\n instrument.get(0).setStatusId(getReconciledStatus());\n instrumentHeaderService.persist(instrument.get(0));\n // if(LOGGER.isInfoEnabled()) LOGGER.info(\"---------------------------\"+debitAmount.toString());\n instrumentService.updateInstrumentOtherDetailsStatus(instrument.get(0), dishonorChequeView.getTransactionDate(),\n getTotalAmount());\n voucherHeader.setName(\"Receipt Reversal\");\n // voucherHeader.setDescription(dishonorChequeView.getInstrumentDishonorReason());\n final HashMap<String, Object> headerDetails = createHeaderAndMisDetails(voucherHeader);\n paymentVoucher = createVoucher(voucherHeader, headerDetails, \"Receipt Reversal\");\n // String reversalVhIdValue = paymentVoucher.getId().toString();\n instrumentService.addToBankReconcilation(voucherHeader, instrument.get(0));\n updateInstrumentVoucherReference(instrument, paymentVoucher);\n\n }\n\n return \"view\";\n }", "void clearUnactivatedAccounts(int unactivatedDays);", "void onOperationalCredentialsRequested(byte[] csr);", "public Object revokeGrants(final String id, final String filterXml) throws Exception {\r\n return null;\r\n }", "@Atomic\n public void deleteAdhocCustomer(AdhocCustomer adhocCustomer) {\n }", "private QueryAllRevokeCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Test\n public void acceptRevoked() {\n /*\n * Given\n */\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 var revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * When\n */\n var approved = revoked.approve(executor, Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(approved)\n .as(\"The approval should not be successful\")\n .satisfies(a -> {\n assertThat(a.isFailure()).isTrue();\n });\n }", "public Request<Key> revoke(String kid) {\n Asserts.assertNotNull(kid, \"kid\");\n\n String url = baseUrl\n .newBuilder()\n .addPathSegments(\"api/v2/keys/signing/\")\n .addPathSegment(kid)\n .addPathSegment(\"revoke\")\n .build()\n .toString();\n return new EmptyBodyRequest<>(this.client, tokenProvider, url, HttpMethod.PUT, new TypeReference<Key>() {\n });\n }", "private void revokeGooglePlusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n }\n\n });\n }\n }", "@SuppressWarnings(\"PMD.SignatureDeclareThrowsException\")\n public void redoLoanDisbursalWithPastDate() throws Exception {\n RedoLoanDisbursalParameters paramsPastDate = new RedoLoanDisbursalParameters();\n paramsPastDate.setDisbursalDateDD(\"25\");\n paramsPastDate.setDisbursalDateMM(\"02\");\n paramsPastDate.setDisbursalDateYYYY(\"2011\");\n LoanAccountPage loanAccountPage = loanTestHelper.redoLoanDisbursal(\"Default Group\", \"WeeklyGroupFlatLoanWithOnetimeFee\", paramsPastDate, null, 0, false);\n verifyRedoLoanDisbursalWithPastDate(loanAccountPage);\n }", "public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}", "public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}", "@SuppressWarnings(\"unused\")\n private void revokeGplusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient).setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n updateUI(false);\n }\n });\n }\n }", "private void deleteSubscription(RoutingContext routingContext) {\n LOGGER.debug(\"Info: deleteSubscription method started;\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String domain = request.getParam(JSON_DOMAIN);\n String usersha = request.getParam(JSON_USERSHA);\n String alias = request.getParam(JSON_ALIAS);\n String subsId = domain + \"/\" + usersha + \"/\" + alias;\n JsonObject requestJson = new JsonObject();\n String instanceID = request.getHeader(HEADER_HOST);\n requestJson.put(SUBSCRIPTION_ID, subsId);\n requestJson.put(JSON_INSTANCEID, instanceID);\n String subHeader = request.getHeader(HEADER_OPTIONS);\n String subscrtiptionType =\n subHeader != null && subHeader.contains(SubsType.STREAMING.getMessage())\n ? SubsType.STREAMING.getMessage()\n : SubsType.CALLBACK.getMessage();\n requestJson.put(SUB_TYPE, subscrtiptionType);\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n if (requestJson.containsKey(SUB_TYPE)) {\n JsonObject jsonObj = requestJson.copy();\n jsonObj.put(JSON_CONSUMER, authInfo.getString(JSON_CONSUMER));\n Future<JsonObject> subsReq = subsService.deleteSubscription(jsonObj, databroker, database);\n subsReq.onComplete(subHandler -> {\n if (subHandler.succeeded()) {\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n subHandler.result().toString());\n } else {\n processBackendResponse(response, subHandler.cause().getMessage());\n }\n });\n } else {\n handleResponse(response, ResponseType.BadRequestData, MSG_SUB_TYPE_NOT_FOUND);\n }\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 }", "@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af1428905e5778a9ca209f64592b5bf80\n // Renew token - TODO\n }", "@Override\n\t\t\tpublic void invoke (boolean requiresKeychainWipe, NSError error) {\n\t\t\t\tif (requiresKeychainWipe) {\n\t\t\t\t\ts.signOut();\n\t\t\t\t}\n\t\t\t\ts.authenticate();\n\t\t\t}", "void unsetCapitalPayed();", "@Test\n public void testLoanRefundByCashAccrualBasedAccounting() {\n Calendar fourMonthsfromNowCalendar = Calendar.getInstance(Utils.getTimeZoneOfTenant());\n fourMonthsfromNowCalendar.add(Calendar.MONTH, -4);\n\n // FINERACT-885: If the loan starts on day 27-31th of month and not all months have that\n // many days, then loan payment will get reset to a day of month less than today's day\n // and 4th payment will be in the past. In such case, start the loan a few days later,\n // so that 4th payment is guaranteed to be in the future.\n if (fourMonthsfromNowCalendar.get(Calendar.DAY_OF_MONTH) > 27) {\n fourMonthsfromNowCalendar.add(Calendar.DAY_OF_MONTH, 4);\n }\n\n String fourMonthsfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n /***\n * Create loan product with Default STYLE strategy\n */\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n final Integer loanProductID = createLoanProduct(\"0\", \"0\", LoanProductTestBuilder.DEFAULT_STRATEGY, ACCRUAL_UPFRONT, assetAccount,\n incomeAccount, expenseAccount, overpaymentAccount);// ,\n // LoanProductTestBuilder.EQUAL_INSTALLMENTS,\n // LoanProductTestBuilder.FLAT_BALANCE);\n Assertions.assertNotNull(loanProductID);\n\n /***\n * Apply for loan application and verify loan status\n */\n final String savingsId = null;\n final String principal = \"12,000.00\";\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n\n Integer flatInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatInstallmentFee, \"50\", null);\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanID = applyForLoanApplicationWithPaymentStrategyAndPastMonth(clientID, loanProductID, charges, savingsId,\n principal, LoanApplicationTestBuilder.DEFAULT_STRATEGY, -4, collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(fourMonthsfromNow, loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(fourMonthsfromNow, loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"1440\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"300.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, fourMonthsfromNow, assetAccountInitialEntry);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"2290\", String.valueOf(firstInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make payment for installment #1\n\n fourMonthsfromNowCalendar.add(Calendar.MONTH, 1);\n\n final String threeMonthsfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRepayment(threeMonthsfromNow, Float.parseFloat(\"2290\"), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"0.00\", String.valueOf(firstInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make payment for installment #2\n fourMonthsfromNowCalendar.add(Calendar.MONTH, 1);\n\n final String twoMonthsfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRepayment(twoMonthsfromNow, Float.parseFloat(\"2290\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, twoMonthsfromNow,\n new JournalEntry(Float.parseFloat(\"2290\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2290\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n Map secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0.00\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make payment for installment #3\n // Pay 2290 more than expected\n fourMonthsfromNowCalendar.add(Calendar.MONTH, 1);\n\n final String oneMonthfromNow = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRepayment(oneMonthfromNow, Float.parseFloat(\"4580\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, oneMonthfromNow,\n new JournalEntry(Float.parseFloat(\"4580\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"4580\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"0.00\", String.valueOf(thirdInstallment.get(\"totalOutstandingForPeriod\")));\n\n // Make refund of 20\n // max 2290 to refund. Pay 20 means only principal\n // Default style refund order(principal, interest, fees and penalties\n // paid: principal 2000, interest 240, fees 50, penalty 0\n // refund 20 means paid: principal 1980, interest 240, fees 50, penalty\n // 0\n\n // FINERACT-885: As loan may not have started exactly four months ago,\n // make final payment today and not four months from start (as that may be in the future)\n fourMonthsfromNowCalendar.setTime(Date.from(Utils.getLocalDateOfTenant().atStartOfDay(Utils.getZoneIdOfTenant()).toInstant()));\n final String now = Utils.convertDateToURLFormat(fourMonthsfromNowCalendar);\n\n LOAN_TRANSACTION_HELPER.makeRefundByCash(now, Float.parseFloat(\"20\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, now,\n new JournalEntry(Float.parseFloat(\"20\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"20\"), JournalEntry.TransactionType.DEBIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"20.00\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"20.00\", String.valueOf(fourthInstallment.get(\"principalOutstanding\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"interestOutstanding\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"feeChargesOutstanding\")));\n\n // Make refund of 2000\n // max 2270 to refund. Pay 2000 means only principal\n // paid: principal 1980, interest 240, fees 50, penalty 0\n // refund 2000 means paid: principal 0, interest 220, fees 50, penalty 0\n\n LOAN_TRANSACTION_HELPER.makeRefundByCash(now, Float.parseFloat(\"2000\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, now,\n new JournalEntry(Float.parseFloat(\"2000\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"1980\"), JournalEntry.TransactionType.DEBIT));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, now,\n new JournalEntry(Float.parseFloat(\"20\"), JournalEntry.TransactionType.DEBIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"2020.00\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"2000.00\", String.valueOf(fourthInstallment.get(\"principalOutstanding\")));\n validateNumberForEqual(\"20.00\", String.valueOf(fourthInstallment.get(\"interestOutstanding\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"feeChargesOutstanding\")));\n\n }", "public String getRevokeDate() {\r\n return revokeDate;\r\n }", "@Test\n public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n String[] permissions = new String[] {Manifest.permission.READ_CALENDAR};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Clear the denial with prejudice\n grantPermission(Manifest.permission.READ_CALENDAR);\n revokePermission(Manifest.permission.READ_CALENDAR);\n\n // We just committed a suicide by revoking the permission. See part2 below...\n }", "public void unlockCashDrawer(CashDrawer cd, String documentId);", "AgentPolicyBuilder clear();", "public abstract void revokeVoice(String nickname);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tADCLE.Admin_DDL_Revoke();\n\t\t\t\tADCL.setVisible(false);\n\t\t\t}", "User canceledUserRegistration(User user) throws LogicException;", "void unsetAuditingCompany();", "int deleteByExample(ErpOaLicKeyExample example);", "void unsetIssued();", "@Override\n protected Object execute0() throws Exception {\n String msg = \"requestor \" + name;\n\n String conf = Base64.encodeToString(X509Util.parseCert(IoUtil.read(certFile)).getEncoded());\n\n try {\n caManager.changeRequestor(name, RequestorEntry.TYPE_CERT, conf);\n println(\"updated \" + msg);\n return null;\n } catch (CaMgmtException ex) {\n throw new CmdFailure(\"could not update \" + msg + \", error: \" + ex.getMessage(), ex);\n }\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tnew LogoutSessionTask(AddCreditCard.this,\"FromManualLogOut\").execute();\r\n\t\t\t\t}", "@DELETE(\"/attractions/{attractionId}/visited\")\n Call<Void> unmarkVisitedAttraction(\n @Path(\"attractionId\") int attractionId,\n @Header(\"Authorization\") String bearer\n );", "public Action<PaymentState, PaymentEvent> authAction(){\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 5){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }", "public Builder clearReturnCode() {\n \n returnCode_ = 0;\n onChanged();\n return this;\n }", "public Builder clearReturnCode() {\n \n returnCode_ = 0;\n onChanged();\n return this;\n }", "public static URL getUrlForRequestSubCancel()\r\n {\r\n String rop = P.isCountryNop() ? \"rop_\" : \"\";\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/subscription/subscription_and_vehicle/\"+rop+\"cancellation_request\";\r\n return str2url( strUrl );\r\n }", "public void cancel(Configuration conf\n ) throws IOException, InterruptedException {\n getRenewer().cancel(this, conf);\n }", "private ClientAuthorizeRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public LinkedIntegrationRuntimeRbacAuthorization() {}", "@DirtiesDatabase\n\t@Test\n\tpublic void testSuccessfulReversePreAuthorization() {\n\t\torderPayment.setAuthorizationCode(AUTH_CODE1);\n\t\tGiftCertificateAuthorizationRequest authorizationRequest = createAuthorizationRequestFromOrderPayment(orderPayment);\n\n\t\tGiftCertificateTransactionResponse response = transactionService.preAuthorize(authorizationRequest, null);\n\t\t\n\t\torderPayment.setAuthorizationCode(response.getAuthorizationCode());\n\t\torderPayment.setReferenceId(response.getGiftCertificateCode());\n\n\t\torderPayment.setAmount(REGULAR_AUTH);\n\t\t\ttransactionService.reversePreAuthorization(orderPayment);\n\n\t\tassertEquals(BALANCE, transactionService.getBalance(giftCertificate));\n\t\t}", "public Action<PaymentState, PaymentEvent> preAuthAction(){\n\n// this is where you will implement business logic, like API call, check value in DB ect ...\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 8){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }", "@Test\n public void testRevokeAffectsWholeGroup_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n }", "void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);", "public void cancel() {\n LogUtil.enterBlock(\"RefreshAnnotatedCallLogNotifier.cancel\");\n\n Intent intent = new Intent();\n intent.setAction(IntentNames.ACTION_CANCEL_REFRESHING_ANNOTATED_CALL_LOG);\n\n LocalBroadcastManager.getInstance(appContext).sendBroadcast(intent);\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}", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2) {\n arg2.printStackTrace();\n qq.removeAccount(true);\n }", "default void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateAzureAccessTokenMethod(), responseObserver);\n }", "public void revokeAllPrivilegesForSubject(GrouperSession grouperSession, Subject subject);", "@DELETE\n @Path(\"/{id}/generation/{sourceKey}\")\n public Response cancelGeneration(@PathParam(\"id\") final Long id, @PathParam(\"sourceKey\") final String sourceKey) {\n service.cancelGeneration(id, sourceKey);\n return Response.ok().build();\n }", "@ZAttr(id=1201)\n public void unsetReverseProxyClientCertCA() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraReverseProxyClientCertCA, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }" ]
[ "0.57940173", "0.53907996", "0.5259085", "0.51173425", "0.50574625", "0.49812168", "0.49812168", "0.49776965", "0.49497116", "0.49215776", "0.49051294", "0.49022022", "0.48259544", "0.4822986", "0.4814741", "0.47989908", "0.47983938", "0.4783607", "0.47825614", "0.4753694", "0.47310075", "0.47226116", "0.46991155", "0.46608505", "0.46392107", "0.46325898", "0.46128675", "0.46075603", "0.45954838", "0.45919698", "0.45828822", "0.4581829", "0.45705324", "0.45585364", "0.4529103", "0.45195878", "0.4515474", "0.4514179", "0.4502579", "0.44997552", "0.4477976", "0.4473316", "0.44531107", "0.44496748", "0.44150934", "0.44111866", "0.43953386", "0.43795618", "0.4376108", "0.4371127", "0.43651387", "0.43631217", "0.4358469", "0.4358104", "0.43540624", "0.43472233", "0.4346503", "0.43433267", "0.43416104", "0.43403783", "0.43392533", "0.43392533", "0.43378007", "0.43293095", "0.43231723", "0.43197444", "0.43018794", "0.42852876", "0.42663446", "0.426427", "0.42579466", "0.42531675", "0.42507794", "0.4250188", "0.42373922", "0.42283112", "0.42265445", "0.42210707", "0.4211999", "0.4211793", "0.42042482", "0.41964245", "0.41953823", "0.4188681", "0.4188681", "0.41879293", "0.4183945", "0.417406", "0.41680565", "0.41505453", "0.41472048", "0.41468498", "0.41382852", "0.41376945", "0.41362232", "0.4135058", "0.41343772", "0.41322145", "0.4130689", "0.41274202" ]
0.5135513
3
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling revokeAccrual(Async)"); } return revokeAccrualCall(generalContractId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract(Async)\");\n }\n\n return updateContractCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getOneValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getOne(Async)\");\n }\n\n return getOneCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchContract(Async)\");\n }\n\n return patchContractCall(generalContractId, body);\n }", "public TbContract verifyContractIdExist(int chainId, int contractId, int groupId) {\n ContractParam param = new ContractParam(chainId, contractId, groupId);\n TbContract contract = queryContract(param);\n if (Objects.isNull(contract)) {\n log.info(\"contractId is invalid. contractId:{}\", contractId);\n throw new BaseException(ConstantCode.INVALID_CONTRACT_ID);\n }\n return contract;\n }", "public void setContractId(int value) {\n this.contractId = value;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getIframeOptionsValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getIframeOptions(Async)\");\n }\n\n return getIframeOptionsCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getTransferBalanceValidateBeforeCall(ProductInstanceID generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getTransferBalance(Async)\");\n }\n\n return getTransferBalanceCall(generalContractId);\n }", "public void setContractId(Integer contractId) {\n this.contractId = contractId;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailableCurrenciesValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailableCurrencies(Async)\");\n }\n\n return getAvailableCurrenciesCall(generalContractId);\n }", "public Call getOneCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public int getContractId() {\n return contractId;\n }", "public String getContractId() {\n return contractId;\n }", "public void setContractId(String contractId) {\n this.contractId = contractId == null ? null : contractId.trim();\n }", "public Integer getContractId() {\n return contractId;\n }", "public ValidationResult validateContract() {\n return validateContract(apiContract);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)\");\n }\n\n return updateThirdPartyConfigurationCall(generalContractId, body);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateBankAccountValidateBeforeCall(String generalContractId, BankAccountDescriptor body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateBankAccount(Async)\");\n }\n\n return updateBankAccountCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)\");\n }\n\n return patchThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call terminateValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling terminate(Async)\");\n }\n\n return terminateCall(generalContractId);\n }", "public void setSContractNo(String sContractNo) {\n this.sContractNo = sContractNo;\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n String string0 = EWrapperMsgGenerator.bondContractDetails(1274, contractDetails0);\n assertEquals(\"reqId = 1274 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = FkqJC9O=9\\ntradingClass = null\\nconid = 0\\nminTick = -4322.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "public Call patchContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PATCH\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public Contract() {\n // initialise instance variables\n generateContractId();\n }", "public void setPartnerContractId(Integer partnerContractId) {\r\n this.partnerContractId = partnerContractId;\r\n }", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "public TbContract verifyContractDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() != contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_NOT_DEPLOY);\n }\n return contract;\n }", "public String getContractNumber() {\n return contractNumber;\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void setContractorID(int contractorID) {\n this.contractorID = contractorID;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addPaymentLinkConfigurationValidateBeforeCall(String generalContractId, PaymentLinkOptions body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addPaymentLinkConfiguration(Async)\");\n }\n\n return addPaymentLinkConfigurationCall(generalContractId, body);\n }", "boolean hasBusinessCircleId();", "public TbContract verifyContractNotDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() == contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_HAS_BEAN_DEPLOYED);\n }\n return contract;\n }", "public Call updateContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailablePaymentMethodsValidateBeforeCall(String generalContractId, GetAvailablePaymentMethodsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailablePaymentMethods(Async)\");\n }\n\n return getAvailablePaymentMethodsCall(generalContractId, body);\n }", "public void setContractAmount(Integer contractAmount) {\n this.contractAmount = contractAmount;\n }", "public Contracts() {\r\n super();\r\n \r\n }", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "public void createContract() {\n\r\n\t}", "public boolean isSetContractAddress() {\n return this.contractAddress != null;\n }", "public void initContract(ContractInfo contractInfo)\n {\n this.contractInfo = contractInfo;\n }", "void setContract(int contract) {\r\n\t\tif (contract == 24 || contract == 30 || contract == 36) {\r\n\t\t\tthis.contract = contract;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Vector<String> vector0 = new Vector<String>();\n Contract contract0 = new Contract(0, \"X_\", \"X_\", \"X_\", 1833, \"X_\", \"liquidHours = \", \"X_\", \"Error - \", (String) null, vector0, \"com.ib.client.Execution\", true, \"liquidHours = \", \"com.ib.client.Execution\");\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"\", (String) null, (-2818.2935355), \"\", \"H9~[N\\\"Hv`#|kr]\", 13, \"H9~[N\\\"Hv`#|kr]\", \" underComp.delta =\", \"\", \" underComp.delta =\", \"X_\", (String) null, \"M]G9k=@}tbK\", \"Bwn1n;uU*\");\n String string0 = EWrapperMsgGenerator.contractDetails(1833, contractDetails0);\n assertEquals(\"reqId = 1833 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = X_\\nsecType = X_\\nexpiry = X_\\nstrike = 1833.0\\nright = X_\\nmultiplier = liquidHours = \\nexchange = X_\\nprimaryExch = com.ib.client.Execution\\ncurrency = Error - \\nlocalSymbol = null\\nmarketName = \\ntradingClass = null\\nminTick = -2818.2935355\\nprice magnifier = 0\\norderTypes = \\nvalidExchanges = H9~[N\\\"Hv`#|kr]\\nunderConId = 13\\nlongName = H9~[N\\\"Hv`#|kr]\\ncontractMonth = underComp.delta =\\nindustry = \\ncategory = underComp.delta =\\nsubcategory = X_\\ntimeZoneId = null\\ntradingHours = M]G9k=@}tbK\\nliquidHours = Bwn1n;uU*\\n ---- Contract Details End ----\\n\", string0);\n }", "@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "boolean isSetCompanyBaseData();", "@Test\n public void shouldCreateContractWithPreconditions() {\n // Given\n final Clause precondition1 = ContractFactory.alwaysTrueDefaultClause();\n final Clause precondition2 = ContractFactory.alwaysTrueDefaultClause();\n\n // When\n final Contract contract = ContractFactory.contractWithPreconditions(precondition1, precondition2);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has not all given preconditions!\", contract.preconditions().length == 2);\n }", "public void setContractNumber(String contractNumber) {\n this.contractNumber = contractNumber == null ? null : contractNumber.trim();\n }", "public ContractMethod() {\n }", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)\");\n }\n // verify the required parameter 'thirdPartyName' is set\n if (thirdPartyName == null) {\n throw new ApiException(\"Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)\");\n }\n\n return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName);\n }", "@Test\n public void testGetBusinessId() {\n \n \n assertNull(o1.getBusinessId());\n o1.setBusinessId(Integer.MIN_VALUE);\n assertNotNull(o1.getBusinessId());\n assertEquals(new Integer(Integer.MIN_VALUE), o1.getBusinessId());\n }", "public Call terminateCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/terminate\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "@Test\n public void shouldCreateEmptyContract() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n }", "public abstract void deleteContract(String contractNumber);", "public void checkCreditCard() throws BusinessException;", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "@Test\n public void merchantidTest() {\n assertEquals(Integer.valueOf(12345), authResponse.getMerchantid());\n }", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "VerifyBasicCallback() {\n m_transactionType = null;\n m_procedureName = null;\n }", "private static void validateBaseRequest(final InvBaseRequest request) {\r\n\t\tif (request == null) {\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Request is Null.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Request is Null\");\r\n\t\t}\r\n\r\n\t\tif(request.getTransactionId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid Transaction ID.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid Transaction ID.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getUserId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid User Id.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid User Id.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(null == request.getDistributionCenter() || request.getDistributionCenter().isEmpty() || null == request.getShipToCustomer() || request.getShipToCustomer().isEmpty() ){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Account should not be empty.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Account should not be empty\");\r\n\t\t}\r\n\t}", "public void setXpeContractId(String value) {\n setAttributeInternal(XPECONTRACTID, value);\n }", "@Test\n public void testFailureParInvalidPkceSetting() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n updateClientByAdmin(clientId, (ClientRepresentation cRep)->{\n OIDCAdvancedConfigWrapper.fromClientRepresentation(cRep).setPkceCodeChallengeMethod(\"S256\");\n });\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(400, pResp.getStatusCode());\n assertEquals(OAuthErrorException.INVALID_REQUEST, pResp.getError());\n assertEquals(\"Missing parameter: code_challenge_method\", pResp.getErrorDescription());\n }", "public static int withContract() {\n\t\t{\n\t\t\tString choice;\n\t\t\tint startover;\n\t\t\tImageIcon picture;\n\t\t\tint selectedCode;\n\t\t\tint number1 = (int) (900 * Math.random() + 100);\n\t\t\tint number2 = (int) (9000 * Math.random() + 1000);\n\t\t\tString[] choices = modelsForContract();\n\t\t\t\n\t\t\t// asks which phone the user wants by showing the options based upon their contract preferences\n\t\t\t\n\t\t\tchoice = (String) JOptionPane.showInputDialog(null, \"Which phone whould you like?\", \"Phone Selection\", \n\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, icon, choices, null);\n\t\t\t\n\t\t\t// Depending on the selection, the phones image is displayed.\n\t\t\tif (choice == choices[0])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"galaxyS9.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[1])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"iphoneX.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[2])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"googlePixel.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[3])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"Motorola.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[4])\n\t\t\t{\n\t\t\t\tSystem.out.print(\"HI\");\n\t\t\t\tpicture = new ImageIcon(\"Huawei.png\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\t\t\tselectedCode = 0;\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\t// Then the area code selection is presented.\n\t\t\tselectedCode = JOptionPane.showOptionDialog(null, \"Please select an area code from below\",\n\t\t\t\t\t\"Area Code Selection\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, picture, areaCodes, areaCodes[0]);\n\t\t\t\n\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Congratulations, \" + firstName + \"!\\nYour new phone is the \" + choice + \".\"\n\t\t\t\t\t+ \"\\nAnd your new phone number is \" + areaCodes[selectedCode] + \"-\" + number1 + \"-\" + number2 + \"!\",\n\t\t\t\t\t\"Congratulations!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t\n\t\t\tstartover = JOptionPane.showOptionDialog(null, \"Would you like to buy another phone \" + firstName + \"?\",\n\t\t\t\t\t\"Awesome Smartphone\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon, null, 0);\n\t\t\t\n\t\t\tif (startover == 1)\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Thank you for your business!\",\n\t\t\t\t\t\t\"Thank You!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t}\n\t\t\treturn startover;\n\t\t}\n\t}", "void setIdVerificationResponseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData idVerificationResponseData);", "boolean isSetIdVerificationResponseData();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Ggeneral)) {\n return false;\n }\n Ggeneral other = (Ggeneral) object;\n if ((this.idgeneral == null && other.idgeneral != null) || (this.idgeneral != null && !this.idgeneral.equals(other.idgeneral))) {\n return false;\n }\n return true;\n }", "public void setCodeCombinationsIdFromGeneral(XxGamMaGeneralReqVORowImpl generalRow) {\n if (generalRow != null) {\n Number codeCombinationId = null;\n codeCombinationId = generalRow.getCostCenter();\n if (codeCombinationId != null) {\n\n RowSetIterator rowSetIter = getRowSetIterator();\n if (rowSetIter != null) {\n rowSetIter.reset();\n while (rowSetIter.hasNext()) {\n Row row = rowSetIter.next();\n XxGamMaPaymentReqVORowImpl detailRow = \n (XxGamMaPaymentReqVORowImpl)row;\n if (detailRow != null) {\n if (detailRow.getGeneralReqId().equals(generalRow.getId())) {\n detailRow.setCodeCombinationId(codeCombinationId);\n }\n }\n }\n rowSetIter.reset();\n }\n }\n }\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public int getContractorID() {\n return contractorID;\n }", "@Test\n public void shouldCreateContractWithPrecondition() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.contractWithPrecondition();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has no precondition!\", contract.preconditions().length == 1);\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "public boolean modifyContract(Contract contract) {\n\t\treturn contractdao.modifyContract(contract);\n\t}", "boolean isSetCapitalPayed();", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "protected boolean validateSubContract(SubContract subContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = subContract.getParentContract().getValidityPeriod();\n \n BasicDiagnostic parameterBlocksDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_BLOCK_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterBlocksValid = validateParameterBlocks(subContract, parameterBlocksDiagnostics, context);\n if(!parameterBlocksValid)\n diagnostics.add(parameterBlocksDiagnostics);\n\n BasicDiagnostic parameterMapsDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_MAP_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterMapsValid = validateParameterMaps(subContract, parameterMapsDiagnostics, context);\n if(!parameterMapsValid)\n diagnostics.add(parameterMapsDiagnostics);\n \n boolean parentValid = true;\n if(!subContract.getPrimaryContract().getValidityPeriod().contains(newPeriod)){\n parentValid &= false;\n diagnostics.add(new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_SUB_CONTRACT, SUB_CONTRACT__RANGE, String.format(\n \"[%s] '%s' conflicts with parent '%s'\", \"Range\",\n getDisplayString(newPeriod), getDisplayString(subContract\n .getPrimaryContract().getValidityPeriod())), new Object[]{subContract.getPrimaryContract()}));\n }\n \n return parameterBlocksValid && parameterMapsValid && parentValid;\n }", "@Override\n\tpublic void setFTGLId(FinancialTransactionGeneralLedger_Id arg0) {\n\n\t}", "@Test\n public void testInsuredPayerPayersId() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setPayersIdEnum,\n RdaFissPayer::getPayersId,\n FissPayersCode.PAYERS_CODE_AUTO_NO_FAULT,\n \"D\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setPayersIdUnrecognized,\n RdaFissPayer::getPayersId,\n RdaFissPayer.Fields.payersId,\n 1);\n }", "public Call revokeAccrualCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/revokeAccrual\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\r\n\tvoid testContactServiceUpdateContactWithInValidID() {\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.updateContactFirstName(\"none\", \"enon\");\r\n\t\t});\r\n\t}", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }", "public boolean isSetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENERAL$20) != 0;\r\n }\r\n }", "@Test\n public void testInsuredPayerTreatAuthCd() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }", "private Contract() {\n }", "VerifyBasicCallback(TPCCSimulation.Transaction transaction, String procName) {\n m_transactionType = transaction;\n m_procedureName = procName;\n }", "public void onClick(DialogInterface dialog, int id)\n {\n if(optionAddContract.isChecked())\n {\n selectedContractAddress = contractAddressField.getText().toString();\n dialogListener.onAddContract(selectedContractAddress, selectedContractType);\n }else{\n dialogListener.onCreateContract(selectedContractType);\n }\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Contract contract0 = new Contract();\n String string0 = EWrapperMsgGenerator.contractMsg(contract0);\n assertEquals(\"conid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\n\", string0);\n }", "boolean isSetNcbistdaa();", "public void m9130p() throws cf {\r\n if (this.f6007a == null) {\r\n throw new cz(\"Required field 'domain' was not present! Struct: \" + toString());\r\n } else if (this.f6009c == null) {\r\n throw new cz(\"Required field 'new_id' was not present! Struct: \" + toString());\r\n }\r\n }", "@Test\n public void testBeneZPayerTreatAuthCd() {\n new BeneZPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissBeneZPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }" ]
[ "0.65667087", "0.6498893", "0.64641535", "0.62215364", "0.61307234", "0.6029447", "0.5991647", "0.58935875", "0.5867352", "0.57154477", "0.5708672", "0.565344", "0.55975854", "0.5568958", "0.5535204", "0.54849637", "0.5440859", "0.5439886", "0.5439886", "0.54083145", "0.53983784", "0.538685", "0.5372101", "0.535575", "0.53002197", "0.5298278", "0.5284535", "0.5277213", "0.5228654", "0.5213922", "0.5213851", "0.5203466", "0.5203466", "0.5198705", "0.51919657", "0.5132997", "0.503143", "0.5030267", "0.502797", "0.5015527", "0.5008133", "0.49868008", "0.49842298", "0.49836314", "0.49824694", "0.49804395", "0.4969242", "0.4950973", "0.49493062", "0.49471316", "0.4928483", "0.49245524", "0.49162278", "0.4885365", "0.48522398", "0.4833596", "0.48331168", "0.48331168", "0.48331168", "0.48331168", "0.4830747", "0.4827253", "0.48129195", "0.48126492", "0.4799318", "0.4791708", "0.47801298", "0.4777395", "0.47646844", "0.47614396", "0.47599468", "0.47580373", "0.47508353", "0.47382933", "0.4732828", "0.47288087", "0.47212544", "0.4717133", "0.47137868", "0.47108936", "0.46979916", "0.46949527", "0.46938235", "0.469239", "0.46847698", "0.46842527", "0.46841192", "0.46748438", "0.46745366", "0.46736524", "0.46714628", "0.46679446", "0.4660473", "0.46603698", "0.46579075", "0.4655875", "0.4655484", "0.46554628", "0.46510994", "0.46478415" ]
0.6210321
4
Build call for terminate
public Call terminateCall(String generalContractId) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/terminate" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void terminate();", "public void terminate() {\n }", "public abstract void terminate();", "@Override\n public final void terminate() {\n }", "public void terminate() {\n\t}", "public void terminate() {\n\t}", "public void terminate() {\n\t}", "@Override\r\n\tpublic void terminate() {\n\t\r\n\t}", "public void terminate() {\n logger.info(\"terminate not implemented\");\n }", "@Override\n\tpublic void onTerminate(Args args) {\n\t\t\n\t}", "void terminate();", "void terminate();", "void terminate();", "void terminate();", "void terminate();", "public void recTerminate(ATerm t0);", "@Override\n public void terminateProgram() {\n \n }", "protected void terminate()\n\t\tthrows Exception\n {\n }", "public void terminateAllCalls();", "@Override\r\n\tpublic boolean terminate() {\n\t\tString METHOD_NAME = \"::terminate::\";\r\n\t\tlogger.debug(CLASS_NAME + METHOD_NAME + \"Inside...\");\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic void onTerminate() {\n\t\tsuper.onTerminate();\r\n\t}", "public void exit() throws DynamicCallException, ExecutionException{\n call(\"exit\").get();\n }", "public void terminate() {\n terminated = true;\n }", "@Override\n public void terminate() throws HekateException {\n }", "public Future<Void> exit() throws DynamicCallException, ExecutionException{\n return call(\"exit\");\n }", "public void terminate() {\n\t\t// Do something more clever here...\n\t\toutput.console(\"AlarmClock exit.\");\n\t}", "final protected void callTerminated( String callId ) {\n callTerminated( getNativeObject(), callId );\n }", "public void terminate() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Stopping Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // set flag\n stopped.set(true);\n // shutdown\n Shutdown.main(commandLineArgs);\n System.out.println(\"Red5 stopped\");\n }\n }", "@Override\n public void onTerminate() {\n \tsuper.onTerminate();\n \t\n \tLog.e(\"LIFECYCLE = \", this.getClass().toString() + \".onTerminate\");\n \treturn;\n }", "public void terminate() {\n\t\trunning = false;\n\t}", "@Override\n\tprotected void onTermination() throws SimControlException {\n\t\t\n\t}", "void exit(String invocationId, Object returnValue);", "public void terminate() {\n this.terminated = true;\n executor.interrupt();\n this.handler = null;\n this.out = null;\n this.in = null;\n this.logger = null;\n this.buffer = null;\n }", "public interface Terminable {\n\n void terminate();\n\n}", "void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}", "void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}", "void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}", "void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}", "public void exit() throws CallError, InterruptedException{\n if (isAsynchronous)\n service.call(\"exit\");\n else\n service.call(\"exit\").get();\n }", "@Override\n public void abort(RuntimeStep exe) {\n }", "public void terminate() {\r\n running = false;\r\n }", "@Override\n public void terminate() throws InterruptedException {\n terminated.countDown();\n }", "public static void terminate() {\n\tStudentDA.terminate();\n }", "public synchronized void terminate () {\n shutdown = true;\n }", "protected final NextAction doTerminate(Throwable throwable, Packet packet) {\n NextAction na = new NextAction();\n na.terminate(throwable, packet);\n return na;\n }", "public void terminate(){\n running = false;\n }", "public void terminate()\n\t{\n\t\tsynchronized (this) { this.running = false; }\n\t}", "synchronized void terminate() {\n if (stdin != null) {\n try {\n stdin.write(\"{\\\"exit\\\":0}\\n\");\n stdin.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed, if the child exited already.\n } finally {\n stdin = null;\n }\n }\n\n // Cleaning up stdout (ensuring buffers are flushed, etc...)\n if (stdout != null) {\n try {\n stdout.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed.\n } finally {\n stdout = null;\n }\n }\n\n // Cleaning up error stream sink (ensuring all messages are flushed, etc...)\n if (this.errorStreamSink != null) {\n try {\n this.errorStreamSink.close();\n } catch (final InterruptedException ie) {\n // Ignore - we can no longer do anything about this...\n } finally {\n this.errorStreamSink = null;\n }\n }\n\n if (childProcess != null) {\n // Wait for the child process to complete\n try {\n // Giving the process up to 5 seconds to clean up and exit\n if (!childProcess.waitFor(5, TimeUnit.SECONDS)) {\n // If it's still not done, forcibly terminate it at this point.\n childProcess.destroyForcibly();\n }\n } catch (final InterruptedException ie) {\n throw new RuntimeException(ie);\n } finally {\n childProcess = null;\n }\n }\n\n // We shut down already, no need for the shutdown hook anymore\n if (this.shutdownHook != null) {\n try {\n Runtime.getRuntime().removeShutdownHook(this.shutdownHook);\n } catch (final IllegalStateException ise) {\n // VM Shutdown is in progress, removal is now impossible (and unnecessary)\n } finally {\n this.shutdownHook = null;\n }\n }\n }", "synchronized void terminate() {\n if (stdin != null) {\n try {\n stdin.write(\"{\\\"exit\\\":0}\\n\");\n stdin.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed, if the child exited already.\n } finally {\n stdin = null;\n }\n }\n\n // Cleaning up stdout (ensuring buffers are flushed, etc...)\n if (stdout != null) {\n try {\n stdout.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed.\n } finally {\n stdout = null;\n }\n }\n\n // Cleaning up error stream sink (ensuring all messages are flushed, etc...)\n if (this.errorStreamSink != null) {\n try {\n this.errorStreamSink.close();\n } catch (final InterruptedException ie) {\n // Ignore - we can no longer do anything about this...\n } finally {\n this.errorStreamSink = null;\n }\n }\n\n if (childProcess != null) {\n // Wait for the child process to complete\n try {\n // Giving the process up to 5 seconds to clean up and exit\n if (!childProcess.waitFor(5, TimeUnit.SECONDS)) {\n // If it's still not done, forcibly terminate it at this point.\n childProcess.destroyForcibly();\n }\n } catch (final InterruptedException ie) {\n throw new RuntimeException(ie);\n } finally {\n childProcess = null;\n }\n }\n\n // We shut down already, no need for the shutdown hook anymore\n if (this.shutdownHook != null) {\n try {\n Runtime.getRuntime().removeShutdownHook(this.shutdownHook);\n } catch (final IllegalStateException ise) {\n // VM Shutdown is in progress, removal is now impossible (and unnecessary)\n } finally {\n this.shutdownHook = null;\n }\n }\n }", "@JRubyMethod\n public IRubyObject terminate() {\n if (running()) {\n samplingThread.interrupt();\n return waitSamplingStop();\n } else {\n return this.getRuntime().getFalse();\n }\n }", "public void jvnTerminate()\tthrows jvn.JvnException {\n\t\t// to be completed \n\t\ttry {\n\t\t\tthis.jRCoordonator.jvnTerminate(js);\n\t\t} catch (RemoteException e) {\n\t\t\tSystem.out.println(\"Error : \" + e.getMessage());\n\t\t}\n\t}", "public abstract void exit();", "@ScriptyCommand(name = \"dbg-terminate\", description =\n \"(dbg-terminate)\\n\" +\n \"Terminate the debugging session that was started with dbg-expr.\\n\" +\n \"See also: dbg-expr.\")\n @ScriptyRefArgList(ref = \"no arguments\")\n public void dbgTerminate()\n throws CommandException {\n checkTrace();\n // Eat all exceptions at this point, we want to remove the trace.\n try {\n trace.terminate();\n }\n catch (Exception ignored) {\n }\n // Remove the trace from the context.\n trace = null;\n }", "@PreDestroy\r\n\t@Override\r\n\tpublic void terminate()\r\n\t{\r\n\t\tthis.cleanUpDone = true;\r\n\t\tthis.isRunning = false;\r\n\t\tthis.priceMap.clear();\r\n\t\tthis.priceUpdateBlockingQueue.clear();\r\n\t\tthis.executorService.shutdownNow();\r\n\t\t\r\n\t\tif(logger.isInfoEnabled())\r\n\t\t\tlogger.info(\"Termination of price service has been completed successfully.\");\r\n\t}", "abstract public void exit();", "public void terminate(final boolean error);", "private void runStop() throws IOException {\n final Shell.Plain gripShell = new Shell.Plain(new Shell.Safe(details.createSSHShell()));\n gripShell.exec(deploymentCommands.getKillCommand(coreJar.getName()));\n }", "java.lang.String postServiceNameTerminate(java.lang.String serviceName) throws java.io.IOException;", "public void terminate() throws DebugException {\n\t\tfTerminated = true;\n\t\tfireTerminateEvent();\n\t}", "public abstract void exit (int status);", "@Test\n public void constructAndStop() {\n kit.stopAsync();\n kit.awaitTerminated();\n }", "public void exit();", "@Override\r\n public int stop(int exitCode) {\r\n IS.stopAll();\r\n return exitCode;\r\n }", "void exit() throws Exception;", "@ForOverride\n public void onTerminated(InternalSubchannel internalSubchannel) {\n }", "@Override\n\tpublic int exit() {\n\t\treturn 0;\n\t}", "public final int term()\n\t{\n\t\tSTAFResult result = super.terminate();\n\t\treturn result.rc;\n\t}", "public void simulationTerminating() {\n }", "public void terminate() {\n\t\tpostEvent(new IpcEvent(SimulationEvents.EVENT_TYPE_TERMINATE, this, null));\n\t}", "public void terminate() {\n TerminalAtomics.cancel(this, REQUESTED);\n UNSAFE.putOrderedObject(this, REMOVE, null);\n }", "@Override\n public synchronized void term() {\n if (terminated) {\n return;\n }\n\n messageState.closeAll();\n context.term();\n\n terminated = true;\n }", "public Void run() {\n System.exit(0);\n return null;\n }", "@Override\n protected void onFailure(Throwable e) {\n // terminate thread\n terminate(false);\n }", "private static void exit() {\n dvm.exit();\n stop = true;\n }", "Node exit();", "private void onTerminate(Terminated t){\n\t\t//If a device stops, we must remove it from the group\n\t\tActorRef deviceActor = t.getActor();\n\t\tString deviceId = actorsIds.get(deviceActor);\n\t\t\n\t\tlog.info(\"Device actor {} has been terminated\",deviceId);\n\t\t\n\t\tactorsIds.remove(deviceActor);\n\t\tdeviceActors.remove(deviceId);\n\t\t\n\t}", "private void runExit() {\n new Thread(new Runnable() {\n public void run() {\n System.exit(0);\n }\n }).start();\n }", "@Override\n public void terminate(String state, double reward, boolean writeLearningData) {\n }", "public abstract void terminate(long timeout) throws ClassNotFoundException, IOException, InterruptedException, RemoteReadException;", "void terminated(@Nullable Throwable cause);", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}", "public void terminate() {\n\t\t//terminate probes\n\t\tfor (Entry<String,IProbe> entry :this.probes.entrySet())\n\t\t\tentry.getValue().terminate();\n\t\t//terminate collector\n\t\tthis.collector.terminate();\n\t\tthis.distributorWorker.terminate();\n\t}", "@Override\n\t\t\tpublic void cancel() {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\tpublic void exit() {\n\n\t}", "void exit();", "void handleSubchannelTerminated() {\n executorPool.returnObject(executor);\n terminatedLatch.countDown();\n }", "public int terminate(){\n switch (ttype) {\n case TERM_FULL:\n //sets the remaining bits of the last byte of the coded bits.\n int tempc=c+a;\n c=c|0xFFFF;\n if(c>=tempc)\n c=c-0x8000;\n\n int remainingBits = 27-cT;\n\n // Flushes remainingBits\n do{\n c <<= cT;\n if(b != 0xFF)\n remainingBits -= 8;\n else\n remainingBits -= 7;\n byteOut();\n }\n while(remainingBits > 0);\n\n b |= (1<<(-remainingBits))-1;\n if (b==0xFF) { // Delay 0xFF bytes\n delFF = true;\n }\n else {\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n }\n break;\n case TERM_PRED_ER:\n case TERM_EASY:\n // The predictable error resilient and easy termination are the\n // same, except for the fact that the easy one can modify the\n // spare bits in the last byte to maximize the likelihood of\n // having a 0xFF, while the error resilient one can not touch\n // these bits.\n\n // In the predictable error resilient case the spare bits will be\n // recalculated by the decoder and it will check if they are the\n // same as as in the codestream and then deduce an error\n // probability from there.\n\n int k; // number of bits to push out\n\n k = (11-cT)+1;\n\n c <<= cT;\n for (; k > 0; k-=cT, c<<=cT){\n byteOut();\n }\n\n // Make any spare bits 1s if in easy termination\n if (k < 0 && ttype == TERM_EASY) {\n // At this stage there is never a carry bit in C, so we can\n // freely modify the (-k) least significant bits.\n b |= (1<<(-k))-1;\n }\n\n byteOut(); // Push contents of byte buffer\n break;\n case TERM_NEAR_OPT:\n\n // This algorithm terminates in the shortest possible way, besides\n // the fact any previous 0xFF 0x7F sequences are not\n // eliminated. The probabalility of having those sequences is\n // extremely low.\n\n // The calculation of the length is based on the fact that the\n // decoder will pad the codestream with an endless string of\n // (binary) 1s. If the codestream, padded with 1s, is within the\n // bounds of the current interval then correct decoding is\n // guaranteed. The lower inclusive bound of the current interval\n // is the value of C (i.e. if only lower intervals would be coded\n // in the future). The upper exclusive bound of the current\n // interval is C+A (i.e. if only upper intervals would be coded in\n // the future). We therefore calculate the minimum length that\n // would be needed so that padding with 1s gives a codestream\n // within the interval.\n\n // In general, such a calculation needs the value of the next byte\n // that appears in the codestream. Here, since we are terminating,\n // the next value can be anything we want that lies within the\n // interval, we use the lower bound since this minimizes the\n // length. To calculate the necessary length at any other place\n // than the termination it is necessary to know the next bytes\n // that will appear in the codestream, which involves storing the\n // codestream and the sate of the MQCoder at various points (a\n // worst case approach can be used, but it is much more\n // complicated and the calculated length would be only marginally\n // better than much simple calculations, if not the same).\n\n int cLow;\n int cUp;\n int bLow;\n int bUp;\n\n // Initialize the upper (exclusive) and lower bound (inclusive) of\n // the valid interval (the actual interval is the concatenation of\n // bUp and cUp, and bLow and cLow).\n cLow = c;\n cUp = c+a;\n bLow = bUp = b;\n\n // We start by normalizing the C register to the sate cT = 0\n // (i.e., just before byteOut() is called)\n cLow <<= cT;\n cUp <<= cT;\n // Progate eventual carry bits and reset them in Clow, Cup NOTE:\n // carry bit can never be set if the byte buffer was empty so no\n // problem with propagating a carry into an empty byte buffer.\n if ((cLow & (1<<27)) != 0) { // Carry bit in cLow\n if (bLow == 0xFF) {\n // We can not propagate carry bit, do bit stuffing\n delFF = true; // delay 0xFF\n // Get next byte buffer\n bLow = cLow>>>20;\n bUp = cUp>>>20;\n cLow &= 0xFFFFF;\n cUp &= 0xFFFFF;\n // Normalize to cT = 0\n cLow <<= 7;\n cUp <<= 7;\n }\n else { // we can propagate carry bit\n bLow++; // propagate\n cLow &= ~(1<<27); // reset carry in cLow\n }\n }\n if ((cUp & (1<<27)) != 0) {\n bUp++; // propagate\n cUp &= ~(1<<27); // reset carry\n }\n\n // From now on there can never be a carry bit on cLow, since we\n // always output bLow.\n\n // Loop testing for the condition and doing byte output if they\n // are not met.\n while(true){\n // If decoder's codestream is within interval stop\n // If preceding byte is 0xFF only values [0,127] are valid\n if(delFF){ // If delayed 0xFF\n if (bLow <= 127 && bUp > 127) break;\n // We will write more bytes so output delayed 0xFF now\n out.write(0xFF);\n nrOfWrittenBytes++;\n delFF = false;\n }\n else{ // No delayed 0xFF\n if (bLow <= 255 && bUp > 255) break;\n }\n\n // Output next byte\n // We could output anything within the interval, but using\n // bLow simplifies things a lot.\n\n // We should not have any carry bit here\n\n // Output bLow\n if (bLow < 255) {\n // Transfer byte bits from C to B\n // (if the byte buffer was empty output nothing)\n if (nrOfWrittenBytes >= 0) out.write(bLow);\n nrOfWrittenBytes++;\n bUp -= bLow;\n bUp <<= 8;\n // Here bLow would be 0\n bUp |= (cUp >>> 19) & 0xFF;\n bLow = (cLow>>> 19) & 0xFF;\n // Clear upper bits (just pushed out) from cUp Clow.\n cLow &= 0x7FFFF;\n cUp &= 0x7FFFF;\n // Goto next state where CT is 0\n cLow <<= 8;\n cUp <<= 8;\n // Here there can be no carry on Cup, Clow\n }\n else { // bLow = 0xFF\n // Transfer byte bits from C to B\n // Since the byte to output is 0xFF we can delay it\n delFF = true;\n bUp -= bLow;\n bUp <<= 7;\n // Here bLow would be 0\n bUp |= (cUp>>20) & 0x7F;\n bLow = (cLow>>20) & 0x7F;\n // Clear upper bits (just pushed out) from cUp Clow.\n cLow &= 0xFFFFF;\n cUp &= 0xFFFFF;\n // Goto next state where CT is 0\n cLow <<= 7;\n cUp <<= 7;\n // Here there can be no carry on Cup, Clow\n }\n }\n break;\n default:\n throw new Error(\"Illegal termination type code\");\n }\n\n // Reinitialize the state (without modifying the contexts)\n int len;\n\n len = nrOfWrittenBytes;\n a = 0x8000;\n c = 0;\n b = 0;\n cT = 12;\n delFF = false;\n nrOfWrittenBytes = -1;\n\n // Return the terminated length\n return len;\n }", "@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tThread.sleep((long) timeout);\n\t\t\t\t\t\tif (buildProcess.isAlive())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuildProcess.destroy();\n\t\t\t\t\t\t\tal.add(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}", "public static void main(String args[]) {\n\t\tnew Cancellation();\r\n\t}", "public void terminate() {\n config.closeConnection();\n }", "native long nativeBuildWithFinish(long memoryPool, byte[] schemaBuf, byte[] exprListBuf, byte[] finishExprListBuf)\n throws RuntimeException, IOException;", "@Override\n public void exit() {\n super.exit();\n }", "@Override\r\n\tpublic void exit() {\n\r\n\t}", "private static void exit(int i) {\n\t\t\n\t}", "public void quit(){\n this.println(\"Bad news!!! The library has been cancelled!\");\n System.exit(0);\n\n }", "public void exit () {\r\n System.out.println(\"Desligando aplicação...\");\r\n this.stub.killStub();\r\n }", "@Override\n public String toString() {\n return \"exit\";\n }", "public int exitOperations() {\n\t\tlogger.info(\" terminating the readers \");\n\t\tReadersManager.terminateReadersManager();\n\t\t\n\t\t// 2. terminate the presenter\n\t\tlogger.info(\" terminating the webpager \");\n\t\tpresenterOperations.terminate();\n\t\t\n\t\t// 3. close the db manager\n\t\tlogger.info(\" terminating the db \");\n\t\tdbOperations.releaseOperations();\n\t\t\n\t\t// ALL end\n\t\tlogger.info(\" ptv operations exit! \");\n\t\t\n\t\treturn 0;\n\t}", "@GuardedBy(\"lock\")\n public void handleTermination() {\n this.channelLogger.log(ChannelLogger.ChannelLogLevel.INFO, \"Terminated\");\n this.syncContext.executeLater(new Runnable() {\n public void run() {\n InternalSubchannel.this.callback.onTerminated(InternalSubchannel.this);\n }\n });\n }" ]
[ "0.69939685", "0.69256", "0.6877401", "0.68448496", "0.6722823", "0.6722823", "0.6722823", "0.6689884", "0.6671844", "0.66622245", "0.66147757", "0.66147757", "0.66147757", "0.66147757", "0.66147757", "0.6234823", "0.6137633", "0.611819", "0.6083595", "0.60390747", "0.6021185", "0.600457", "0.59899837", "0.59624636", "0.5908475", "0.5852845", "0.58417064", "0.5819903", "0.57999635", "0.57789916", "0.574806", "0.57175", "0.5691929", "0.5626881", "0.5610337", "0.5610337", "0.5610337", "0.5610337", "0.5608764", "0.5586448", "0.55847317", "0.5583502", "0.55681515", "0.55612594", "0.55520374", "0.55350477", "0.5519736", "0.54992306", "0.54992306", "0.54977936", "0.54723305", "0.54704744", "0.5463906", "0.545908", "0.5454858", "0.5448871", "0.5405397", "0.54025847", "0.54001707", "0.53992224", "0.5392874", "0.5384255", "0.5379154", "0.5376077", "0.53631455", "0.53613776", "0.5357172", "0.5337904", "0.5334823", "0.533155", "0.53263944", "0.5321902", "0.52437174", "0.52394795", "0.5236555", "0.5234772", "0.52315927", "0.5223258", "0.52104986", "0.52038205", "0.5196112", "0.5196112", "0.5192239", "0.51859313", "0.51595175", "0.51589555", "0.5146003", "0.51419723", "0.5129011", "0.5128351", "0.5126965", "0.5112512", "0.51107687", "0.5108919", "0.51080394", "0.5106869", "0.50966454", "0.509384", "0.5091504", "0.5075113", "0.50595886" ]
0.0
-1
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call terminateValidateBeforeCall(String generalContractId) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling terminate(Async)"); } return terminateCall(generalContractId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract(Async)\");\n }\n\n return updateContractCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getOneValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getOne(Async)\");\n }\n\n return getOneCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchContract(Async)\");\n }\n\n return patchContractCall(generalContractId, body);\n }", "public TbContract verifyContractIdExist(int chainId, int contractId, int groupId) {\n ContractParam param = new ContractParam(chainId, contractId, groupId);\n TbContract contract = queryContract(param);\n if (Objects.isNull(contract)) {\n log.info(\"contractId is invalid. contractId:{}\", contractId);\n throw new BaseException(ConstantCode.INVALID_CONTRACT_ID);\n }\n return contract;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling revokeAccrual(Async)\");\n }\n\n return revokeAccrualCall(generalContractId);\n }", "public void setContractId(int value) {\n this.contractId = value;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getIframeOptionsValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getIframeOptions(Async)\");\n }\n\n return getIframeOptionsCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getTransferBalanceValidateBeforeCall(ProductInstanceID generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getTransferBalance(Async)\");\n }\n\n return getTransferBalanceCall(generalContractId);\n }", "public void setContractId(Integer contractId) {\n this.contractId = contractId;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailableCurrenciesValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailableCurrencies(Async)\");\n }\n\n return getAvailableCurrenciesCall(generalContractId);\n }", "public Call getOneCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public int getContractId() {\n return contractId;\n }", "public String getContractId() {\n return contractId;\n }", "public void setContractId(String contractId) {\n this.contractId = contractId == null ? null : contractId.trim();\n }", "public Integer getContractId() {\n return contractId;\n }", "public ValidationResult validateContract() {\n return validateContract(apiContract);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)\");\n }\n\n return updateThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateBankAccountValidateBeforeCall(String generalContractId, BankAccountDescriptor body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateBankAccount(Async)\");\n }\n\n return updateBankAccountCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)\");\n }\n\n return patchThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "public void setSContractNo(String sContractNo) {\n this.sContractNo = sContractNo;\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n String string0 = EWrapperMsgGenerator.bondContractDetails(1274, contractDetails0);\n assertEquals(\"reqId = 1274 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = FkqJC9O=9\\ntradingClass = null\\nconid = 0\\nminTick = -4322.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "public Call patchContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PATCH\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public Contract() {\n // initialise instance variables\n generateContractId();\n }", "public void setPartnerContractId(Integer partnerContractId) {\r\n this.partnerContractId = partnerContractId;\r\n }", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "public TbContract verifyContractDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() != contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_NOT_DEPLOY);\n }\n return contract;\n }", "public String getContractNumber() {\n return contractNumber;\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void setContractorID(int contractorID) {\n this.contractorID = contractorID;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addPaymentLinkConfigurationValidateBeforeCall(String generalContractId, PaymentLinkOptions body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addPaymentLinkConfiguration(Async)\");\n }\n\n return addPaymentLinkConfigurationCall(generalContractId, body);\n }", "boolean hasBusinessCircleId();", "public TbContract verifyContractNotDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() == contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_HAS_BEAN_DEPLOYED);\n }\n return contract;\n }", "public Call updateContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailablePaymentMethodsValidateBeforeCall(String generalContractId, GetAvailablePaymentMethodsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailablePaymentMethods(Async)\");\n }\n\n return getAvailablePaymentMethodsCall(generalContractId, body);\n }", "public void setContractAmount(Integer contractAmount) {\n this.contractAmount = contractAmount;\n }", "public Contracts() {\r\n super();\r\n \r\n }", "public boolean isSetContractAddress() {\n return this.contractAddress != null;\n }", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "public void createContract() {\n\r\n\t}", "public void initContract(ContractInfo contractInfo)\n {\n this.contractInfo = contractInfo;\n }", "void setContract(int contract) {\r\n\t\tif (contract == 24 || contract == 30 || contract == 36) {\r\n\t\t\tthis.contract = contract;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Vector<String> vector0 = new Vector<String>();\n Contract contract0 = new Contract(0, \"X_\", \"X_\", \"X_\", 1833, \"X_\", \"liquidHours = \", \"X_\", \"Error - \", (String) null, vector0, \"com.ib.client.Execution\", true, \"liquidHours = \", \"com.ib.client.Execution\");\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"\", (String) null, (-2818.2935355), \"\", \"H9~[N\\\"Hv`#|kr]\", 13, \"H9~[N\\\"Hv`#|kr]\", \" underComp.delta =\", \"\", \" underComp.delta =\", \"X_\", (String) null, \"M]G9k=@}tbK\", \"Bwn1n;uU*\");\n String string0 = EWrapperMsgGenerator.contractDetails(1833, contractDetails0);\n assertEquals(\"reqId = 1833 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = X_\\nsecType = X_\\nexpiry = X_\\nstrike = 1833.0\\nright = X_\\nmultiplier = liquidHours = \\nexchange = X_\\nprimaryExch = com.ib.client.Execution\\ncurrency = Error - \\nlocalSymbol = null\\nmarketName = \\ntradingClass = null\\nminTick = -2818.2935355\\nprice magnifier = 0\\norderTypes = \\nvalidExchanges = H9~[N\\\"Hv`#|kr]\\nunderConId = 13\\nlongName = H9~[N\\\"Hv`#|kr]\\ncontractMonth = underComp.delta =\\nindustry = \\ncategory = underComp.delta =\\nsubcategory = X_\\ntimeZoneId = null\\ntradingHours = M]G9k=@}tbK\\nliquidHours = Bwn1n;uU*\\n ---- Contract Details End ----\\n\", string0);\n }", "@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "boolean isSetCompanyBaseData();", "@Test\n public void shouldCreateContractWithPreconditions() {\n // Given\n final Clause precondition1 = ContractFactory.alwaysTrueDefaultClause();\n final Clause precondition2 = ContractFactory.alwaysTrueDefaultClause();\n\n // When\n final Contract contract = ContractFactory.contractWithPreconditions(precondition1, precondition2);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has not all given preconditions!\", contract.preconditions().length == 2);\n }", "public void setContractNumber(String contractNumber) {\n this.contractNumber = contractNumber == null ? null : contractNumber.trim();\n }", "public ContractMethod() {\n }", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)\");\n }\n // verify the required parameter 'thirdPartyName' is set\n if (thirdPartyName == null) {\n throw new ApiException(\"Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)\");\n }\n\n return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName);\n }", "@Test\n public void testGetBusinessId() {\n \n \n assertNull(o1.getBusinessId());\n o1.setBusinessId(Integer.MIN_VALUE);\n assertNotNull(o1.getBusinessId());\n assertEquals(new Integer(Integer.MIN_VALUE), o1.getBusinessId());\n }", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "@Test\n public void shouldCreateEmptyContract() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n }", "public Call terminateCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/terminate\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public abstract void deleteContract(String contractNumber);", "public void checkCreditCard() throws BusinessException;", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "@Test\n public void merchantidTest() {\n assertEquals(Integer.valueOf(12345), authResponse.getMerchantid());\n }", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "VerifyBasicCallback() {\n m_transactionType = null;\n m_procedureName = null;\n }", "private static void validateBaseRequest(final InvBaseRequest request) {\r\n\t\tif (request == null) {\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Request is Null.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Request is Null\");\r\n\t\t}\r\n\r\n\t\tif(request.getTransactionId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid Transaction ID.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid Transaction ID.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getUserId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid User Id.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid User Id.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(null == request.getDistributionCenter() || request.getDistributionCenter().isEmpty() || null == request.getShipToCustomer() || request.getShipToCustomer().isEmpty() ){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Account should not be empty.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Account should not be empty\");\r\n\t\t}\r\n\t}", "public void setXpeContractId(String value) {\n setAttributeInternal(XPECONTRACTID, value);\n }", "@Test\n public void testFailureParInvalidPkceSetting() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n updateClientByAdmin(clientId, (ClientRepresentation cRep)->{\n OIDCAdvancedConfigWrapper.fromClientRepresentation(cRep).setPkceCodeChallengeMethod(\"S256\");\n });\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(400, pResp.getStatusCode());\n assertEquals(OAuthErrorException.INVALID_REQUEST, pResp.getError());\n assertEquals(\"Missing parameter: code_challenge_method\", pResp.getErrorDescription());\n }", "public static int withContract() {\n\t\t{\n\t\t\tString choice;\n\t\t\tint startover;\n\t\t\tImageIcon picture;\n\t\t\tint selectedCode;\n\t\t\tint number1 = (int) (900 * Math.random() + 100);\n\t\t\tint number2 = (int) (9000 * Math.random() + 1000);\n\t\t\tString[] choices = modelsForContract();\n\t\t\t\n\t\t\t// asks which phone the user wants by showing the options based upon their contract preferences\n\t\t\t\n\t\t\tchoice = (String) JOptionPane.showInputDialog(null, \"Which phone whould you like?\", \"Phone Selection\", \n\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, icon, choices, null);\n\t\t\t\n\t\t\t// Depending on the selection, the phones image is displayed.\n\t\t\tif (choice == choices[0])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"galaxyS9.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[1])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"iphoneX.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[2])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"googlePixel.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[3])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"Motorola.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[4])\n\t\t\t{\n\t\t\t\tSystem.out.print(\"HI\");\n\t\t\t\tpicture = new ImageIcon(\"Huawei.png\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\t\t\tselectedCode = 0;\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\t// Then the area code selection is presented.\n\t\t\tselectedCode = JOptionPane.showOptionDialog(null, \"Please select an area code from below\",\n\t\t\t\t\t\"Area Code Selection\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, picture, areaCodes, areaCodes[0]);\n\t\t\t\n\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Congratulations, \" + firstName + \"!\\nYour new phone is the \" + choice + \".\"\n\t\t\t\t\t+ \"\\nAnd your new phone number is \" + areaCodes[selectedCode] + \"-\" + number1 + \"-\" + number2 + \"!\",\n\t\t\t\t\t\"Congratulations!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t\n\t\t\tstartover = JOptionPane.showOptionDialog(null, \"Would you like to buy another phone \" + firstName + \"?\",\n\t\t\t\t\t\"Awesome Smartphone\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon, null, 0);\n\t\t\t\n\t\t\tif (startover == 1)\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Thank you for your business!\",\n\t\t\t\t\t\t\"Thank You!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t}\n\t\t\treturn startover;\n\t\t}\n\t}", "void setIdVerificationResponseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData idVerificationResponseData);", "boolean isSetIdVerificationResponseData();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Ggeneral)) {\n return false;\n }\n Ggeneral other = (Ggeneral) object;\n if ((this.idgeneral == null && other.idgeneral != null) || (this.idgeneral != null && !this.idgeneral.equals(other.idgeneral))) {\n return false;\n }\n return true;\n }", "public void setCodeCombinationsIdFromGeneral(XxGamMaGeneralReqVORowImpl generalRow) {\n if (generalRow != null) {\n Number codeCombinationId = null;\n codeCombinationId = generalRow.getCostCenter();\n if (codeCombinationId != null) {\n\n RowSetIterator rowSetIter = getRowSetIterator();\n if (rowSetIter != null) {\n rowSetIter.reset();\n while (rowSetIter.hasNext()) {\n Row row = rowSetIter.next();\n XxGamMaPaymentReqVORowImpl detailRow = \n (XxGamMaPaymentReqVORowImpl)row;\n if (detailRow != null) {\n if (detailRow.getGeneralReqId().equals(generalRow.getId())) {\n detailRow.setCodeCombinationId(codeCombinationId);\n }\n }\n }\n rowSetIter.reset();\n }\n }\n }\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public int getContractorID() {\n return contractorID;\n }", "@Test\n public void shouldCreateContractWithPrecondition() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.contractWithPrecondition();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has no precondition!\", contract.preconditions().length == 1);\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "public boolean modifyContract(Contract contract) {\n\t\treturn contractdao.modifyContract(contract);\n\t}", "boolean isSetCapitalPayed();", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "protected boolean validateSubContract(SubContract subContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = subContract.getParentContract().getValidityPeriod();\n \n BasicDiagnostic parameterBlocksDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_BLOCK_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterBlocksValid = validateParameterBlocks(subContract, parameterBlocksDiagnostics, context);\n if(!parameterBlocksValid)\n diagnostics.add(parameterBlocksDiagnostics);\n\n BasicDiagnostic parameterMapsDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_MAP_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterMapsValid = validateParameterMaps(subContract, parameterMapsDiagnostics, context);\n if(!parameterMapsValid)\n diagnostics.add(parameterMapsDiagnostics);\n \n boolean parentValid = true;\n if(!subContract.getPrimaryContract().getValidityPeriod().contains(newPeriod)){\n parentValid &= false;\n diagnostics.add(new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_SUB_CONTRACT, SUB_CONTRACT__RANGE, String.format(\n \"[%s] '%s' conflicts with parent '%s'\", \"Range\",\n getDisplayString(newPeriod), getDisplayString(subContract\n .getPrimaryContract().getValidityPeriod())), new Object[]{subContract.getPrimaryContract()}));\n }\n \n return parameterBlocksValid && parameterMapsValid && parentValid;\n }", "@Test\n public void testInsuredPayerPayersId() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setPayersIdEnum,\n RdaFissPayer::getPayersId,\n FissPayersCode.PAYERS_CODE_AUTO_NO_FAULT,\n \"D\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setPayersIdUnrecognized,\n RdaFissPayer::getPayersId,\n RdaFissPayer.Fields.payersId,\n 1);\n }", "@Override\n\tpublic void setFTGLId(FinancialTransactionGeneralLedger_Id arg0) {\n\n\t}", "public Call revokeAccrualCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/revokeAccrual\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@Test\r\n\tvoid testContactServiceUpdateContactWithInValidID() {\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.updateContactFirstName(\"none\", \"enon\");\r\n\t\t});\r\n\t}", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }", "public boolean isSetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENERAL$20) != 0;\r\n }\r\n }", "private Contract() {\n }", "@Test\n public void testInsuredPayerTreatAuthCd() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }", "VerifyBasicCallback(TPCCSimulation.Transaction transaction, String procName) {\n m_transactionType = transaction;\n m_procedureName = procName;\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Contract contract0 = new Contract();\n String string0 = EWrapperMsgGenerator.contractMsg(contract0);\n assertEquals(\"conid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\n\", string0);\n }", "boolean isSetNcbistdaa();", "public void onClick(DialogInterface dialog, int id)\n {\n if(optionAddContract.isChecked())\n {\n selectedContractAddress = contractAddressField.getText().toString();\n dialogListener.onAddContract(selectedContractAddress, selectedContractType);\n }else{\n dialogListener.onCreateContract(selectedContractType);\n }\n }", "public void m9130p() throws cf {\r\n if (this.f6007a == null) {\r\n throw new cz(\"Required field 'domain' was not present! Struct: \" + toString());\r\n } else if (this.f6009c == null) {\r\n throw new cz(\"Required field 'new_id' was not present! Struct: \" + toString());\r\n }\r\n }", "@Test\n public void testBeneZPayerTreatAuthCd() {\n new BeneZPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissBeneZPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }" ]
[ "0.6566565", "0.6497611", "0.64637333", "0.622235", "0.6210186", "0.6131018", "0.60290796", "0.59923744", "0.58934605", "0.58661616", "0.57160485", "0.57071656", "0.5653759", "0.55980074", "0.5569409", "0.553539", "0.5487554", "0.5440618", "0.5440618", "0.5439598", "0.5408142", "0.53970677", "0.53854465", "0.535706", "0.53022665", "0.5297568", "0.5285573", "0.52775395", "0.5228783", "0.52161616", "0.5215486", "0.5205767", "0.5205767", "0.5199093", "0.51915133", "0.51328886", "0.5033789", "0.5029831", "0.5028553", "0.5016704", "0.50105745", "0.498703", "0.49869227", "0.49858847", "0.49840963", "0.4981568", "0.49711713", "0.49521965", "0.49504304", "0.4947746", "0.49310437", "0.49262455", "0.49186945", "0.48840562", "0.48525771", "0.4834332", "0.4834332", "0.4834332", "0.4834332", "0.48338956", "0.48318732", "0.48279566", "0.48160288", "0.4812081", "0.47995192", "0.47923365", "0.4781422", "0.47777963", "0.47646332", "0.47629628", "0.47589943", "0.4757054", "0.4750851", "0.47358122", "0.47310758", "0.4729941", "0.4721001", "0.47173005", "0.47168317", "0.47128192", "0.4699858", "0.4696607", "0.4694214", "0.4693992", "0.4684683", "0.4683533", "0.4683291", "0.46758085", "0.46754542", "0.4674884", "0.46742436", "0.46673056", "0.46622548", "0.466158", "0.46588138", "0.4658", "0.46564242", "0.46557775", "0.46517795", "0.46499386" ]
0.53708893
23
Build call for updateBankAccount
public Call updateBankAccountCall(String generalContractId, BankAccountDescriptor body) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/updateBankAccount" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateAccount();", "int updateAccountInfo(Account account);", "void updateAccount(Account account);", "public static String payCurrentBill(String account){\n return \"update current_bills set cb_paid = 1 where cb_account = '\"+account+\"'\";\n }", "Account.Update update();", "public void setBP_BankAccount(MBPBankAccount ba) {\n log.fine(\"\" + ba);\n if (ba == null) {\n return;\n }\n setC_BPartner_ID(ba.getC_BPartner_ID());\n setAccountAddress(ba.getA_Name(), ba.getA_Street(), ba.getA_City(),\n ba.getA_State(), ba.getA_Zip(), ba.getA_Country());\n setA_EMail(ba.getA_EMail());\n setA_Ident_DL(ba.getA_Ident_DL());\n setA_Ident_SSN(ba.getA_Ident_SSN());\n //\tCC\n if (ba.getCreditCardType() != null) {\n setCreditCardType(ba.getCreditCardType());\n }\n if (ba.getCreditCardNumber() != null) {\n setCreditCardNumber(ba.getCreditCardNumber());\n }\n if (ba.getCreditCardExpMM() != 0) {\n setCreditCardExpMM(ba.getCreditCardExpMM());\n }\n if (ba.getCreditCardExpYY() != 0) {\n setCreditCardExpYY(ba.getCreditCardExpYY());\n }\n if (ba.getCreditCardVV() != null) {\n setCreditCardVV(ba.getCreditCardVV());\n }\n //\tBank\n if (ba.getAccountNo() != null) {\n setAccountNo(ba.getAccountNo());\n }\n if (ba.getRoutingNo() != null) {\n setRoutingNo(ba.getRoutingNo());\n }\n }", "@Override\n\tpublic void updateAccount(String pwd, String field, String company) {\n\t}", "void update(Account... accounts);", "int updateByExample(CusBankAccount record, CusBankAccountExample example);", "int updateByPrimaryKey(CusBankAccount record);", "public void update(Account account) {\n\t\t\n\t}", "UpdateOperationConfiguration build();", "void addBankAccountDetails(BankAccountDTO bankAccountDTO,String name)throws EOTException;", "public Builder setAccountBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n account_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void updateStockAccountInfo(StockAccount account) {\n\t\t\n\t}", "void setBank(shared.data.Bank bank);", "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public abstract void updateAccount(JSONObject account);", "public static String updateLate(String account){\n return \"update current_bills set cb_late = 1 where cb_account = '\"+account+\"'\";\n }", "public Builder setAccountBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n account_ = value;\n onChanged();\n return this;\n }", "int updateByPrimaryKey(BankUserInfo record);", "int updateByPrimaryKey(BankUserInfo record);", "public Builder setBankNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "int updateByPrimaryKeySelective(CusBankAccount record);", "@Test\n\tpublic void updateAccount() throws Exception {\n\n\t\tFacebookAdaccountBuilder fbAccount = SocialEntity\n\t\t\t\t.facebookAccount(accessToken);\n\t\tfbAccount.addAccount(\"New Test AdAccount\", \"USD\", 1);\n\t\t// fbAccount.create();\n\n\t\tfbAccount.updateAccountName(\"275668082617836\",\n\t\t\t\t\"Update Test New AdAccount\");\n\t\tfbAccount.updateAccountName(\"1419302888335966\",\n\t\t\t\t\"Batch AdAccount Name Update\");\n\t\tSystem.out.println(fbAccount.update());\n\t}", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "private void updateAccountStatus() {\n\r\n }", "public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {\n return listOptionsAccountBookCall(limit, offset, from, to, type, _callback);\n }", "public void setBankAccount(final int newBAccount) {\n this.bankAccount = newBAccount;\n }", "public Builder setBankName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n bankName_ = value;\n onChanged();\n return this;\n }", "public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}", "public void setBankAccountType (String BankAccountType);", "public Builder setBankNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n bankName_ = value;\n onChanged();\n return this;\n }", "private ApplicationAddressReqType buildUpdateApplicationAddressChangeRequest(\n UpdateApplicationAddressForm updateApplicationAddressForm) {\n System.out.println(\"inside buildUpdateApplicationAddressChangeRequest\");\n ApplicationAddressReqType applicationAddressReqType = new ApplicationAddressReqType();\n AuditAdmin audit = new AuditAdmin();\n audit.setLastModifiedUser(\"erinkklein FQT Attor\");\n applicationAddressReqType.setAudit(audit);\n System.out.println(audit.getLastModifiedUser());\n \n LifecycleAdmin lifecycle= new LifecycleAdmin();\n lifecycle.setBeginDate(\"1595704744\");\n lifecycle.setEndDate(\"1595704744\");\n applicationAddressReqType.setLifeCycle(lifecycle);\n applicationAddressReqType.setChangeCustomerNumber(updateApplicationAddressForm.getCustomerNumber());\n applicationAddressReqType.setNoticeActionCd(\"addressChange\");\n applicationAddressReqType.setRegistrationNumber(updateApplicationAddressForm.getRegistrationNumber());\n applicationAddressReqType.setRequestIdentifier(updateApplicationAddressForm.getPairId());\n \n List<AddressChangeSupportData> addressSupportingDataArray = new ArrayList<AddressChangeSupportData>();\n \n AddressChangeSupportData addressSupportingData = new AddressChangeSupportData();\n addressSupportingData.setNameLineText(updateApplicationAddressForm.getCommonName());\n \n addressSupportingData.setSignature(updateApplicationAddressForm.getSubmitterSignature());\n addressSupportingDataArray.add(addressSupportingData);\n applicationAddressReqType.setSupportData(addressSupportingDataArray);\n System.out.println(applicationAddressReqType.getChangeCustomerNumber());\n \n return applicationAddressReqType;\n }", "public Account update(Account user);", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "@Override\n\tpublic int updateBankInfo(TBankInfo bankInfo) {\n\t\treturn tBankInfoMapper.updateBankInfo(bankInfo);\n\t}", "public int pushBank(boolean override) {\n\t\t// Can't push invalid data\n\t\tif (!this.validateBankPackage())\n\t\t\treturn this.validateBankPackageResult();\n\t\t// Manual if's are easier\n\t\tif (this.employeeExists()) {\n\t\t\tif (this.bankExists()) {\n\t\t\t\tif (override) {\n\t\t\t\t\tint b = super.update(\"UPDATE \" + C.TABLE_BANK + \" SET \"\n\t\t\t\t\t\t\t+ C.COLUMN_BANK + \"='\" + this.getBank() + \"' WHERE \"\n\t\t\t\t\t\t\t+ C.COLUMN_ID + \"=\" + this.getID() + \" AND \"\n\t\t\t\t\t\t\t+ C.COLUMN_BSB_NUMBER + \"='\" + this.getBSB() + \"' AND \"\n\t\t\t\t\t\t\t+ C.COLUMN_ACCOUNT_NUMBER + \"='\" + this.getAccountNumber() + \"'\");\n\t\t\t\t\treturn b > 0 ? EmployeeConnection.SUCCESS :\n\t\t\t\t\t\t\tb < 0 ? EmployeeConnection.SQL_ERROR :\n\t\t\t\t\t\t\t\t\tEmployeeConnection.DRIVER_ERROR;\n\t\t\t\t} else\n\t\t\t\t\treturn EmployeeConnection.DUPLICATE_BANK;\n\t\t\t} else {\n\t\t\t\tint b = super.update(\"INSERT INTO \" + C.TABLE_BANK + \" (\" + C.COLUMN_ID\n\t\t\t\t\t\t+ \", \" + C.COLUMN_BANK + \", \" + C.COLUMN_BSB_NUMBER + \", \"\n\t\t\t\t\t\t+ C.COLUMN_ACCOUNT_NUMBER + \") VALUES (\" + this.getID() + \", '\" + this.getBank()\n\t\t\t\t\t\t+ \"', '\" + this.getBSB() + \"', '\" + this.getAccountNumber() + \"'\");\n\t\t\t\treturn b > 0 ? EmployeeConnection.SUCCESS :\n\t\t\t\t\t\tb < 0 ? EmployeeConnection.SQL_ERROR :\n\t\t\t\t\t\t\t\tEmployeeConnection.DRIVER_ERROR;\n\t\t\t}\n\t\t} else\n\t\t\treturn EmployeeConnection.UNKNOWN_EMPLOYEE;\n\t}", "int updateByPrimaryKeySelective(BankUserInfo record);", "int updateByPrimaryKeySelective(BankUserInfo record);", "private Builder(QueryBankBalanceMessage other) {\n super(QueryBankBalanceMessage.SCHEMA$);\n if (isValidValue(fields()[0], other.transferId)) {\n this.transferId = data().deepCopy(fields()[0].schema(), other.transferId);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.brokerId)) {\n this.brokerId = data().deepCopy(fields()[1].schema(), other.brokerId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.accountID)) {\n this.accountID = data().deepCopy(fields()[2].schema(), other.accountID);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.accountAuthId)) {\n this.accountAuthId = data().deepCopy(fields()[3].schema(), other.accountAuthId);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.accountPassword)) {\n this.accountPassword = data().deepCopy(fields()[4].schema(), other.accountPassword);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.fundPassword)) {\n this.fundPassword = data().deepCopy(fields()[5].schema(), other.fundPassword);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.tradeCode)) {\n this.tradeCode = data().deepCopy(fields()[6].schema(), other.tradeCode);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.bankID)) {\n this.bankID = data().deepCopy(fields()[7].schema(), other.bankID);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.bankBranchID)) {\n this.bankBranchID = data().deepCopy(fields()[8].schema(), other.bankBranchID);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.bankPassword)) {\n this.bankPassword = data().deepCopy(fields()[9].schema(), other.bankPassword);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.currencyID)) {\n this.currencyID = data().deepCopy(fields()[10].schema(), other.currencyID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.secuPwdFlag)) {\n this.secuPwdFlag = data().deepCopy(fields()[11].schema(), other.secuPwdFlag);\n fieldSetFlags()[11] = true;\n }\n }", "public void setAccount(String bank, String account)\n\t{\n\t\tbank = bank.trim().replaceAll(\" +\",\" \");\n\t\t\n\t\tif(account.length() == 19) //length of digits including hyphen(-)\n\t\t{\n\t\t this.account = MaskDigits.mask(account, \"xxxx-xxxx-xxxx-####\");\n\t\t}\n\t\tif(bank.equals(\"HSBC Canada\"))\n\t\t{\n\t\t\t\n\t\t\tthis.account = MaskDigits.mask(account, \"##xx-xxxx-xxxx-xxxx\");\n\t\t}\n\t\t\n\t\tif(bank.equals(\"Royal Bank of Canada\"))\n\t\t{\n\t\t\tthis.account = MaskDigits.mask(account, \"####-xxxx-xxxx-xxxx\");\n\t\t}\n\t\t\n\t\tif(bank.equals(\"American Express\"))\n\t\t{\n\t\t\tthis.account = MaskDigits.mask(account, \"xxxx-xxxx-xxxx-###\");\n\t\t}\n\t}", "abstract void updateRecurringTransactions(Ui ui) throws BankException;", "@Override\n\tpublic Integer update(Map<String, Object> params) throws Exception {\n\t\treturn bankService.update(params);\n\t}", "int updateByExampleSelective(CusBankAccount record, CusBankAccountExample example);", "@Override\r\n\tpublic void update(Account account) throws ServiceException {\n\r\n\t}", "void updateAccount(int id, double accountBalance, String account) {\n // Update only the required keys\n sql = \"UPDATE CashiiDB2 \" + \"SET \" + account + \" ='\" + accountBalance + \"' WHERE AccountNum in ('\" + id + \"')\";\n try {\n st.executeUpdate(sql);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public interface PrimaryBankService {\n\n @GET(\"/user/bank\")\n void getPrimaryBankDetail(Callback<List<BankDetail>> callback);\n\n @POST(\"/user/bank\")\n void createPrimaryBankDetail(@Body List<BankDetail> bankDetail, Callback<List<BankDetail>> callback);\n\n @POST(\"/user/netBankingperfios\")\n void uploadPerfiosTransactionStatus(@Body PerfiosService.TransactionStatusResponse perfiosTransactionResponse, Callback<PerfiosTransactionResponse> callback);\n\n @POST(\"/user/netBankingperfios\")\n PerfiosTransactionResponse uploadPerfiosTransactionStatus(@Body PerfiosService.TransactionStatusResponse perfiosTransactionResponse);\n //@PUT(\"/user/bank\")\n //void updatePrimaryBankDetail(@Body BankDetail bankDetail, Callback<BankDetail> callback);\n\n\n public static class PerfiosTransactionResponse{\n private String message;\n\n public String getMessage() {\n return message;\n }\n\n public void setMessage(String message) {\n this.message = message;\n }\n }\n\n public static class BankDetail{\n\n @SerializedName(value = \"name\")\n private String bankName;\n @SerializedName(value = \"account_no\")\n private String accountNumber;\n private boolean isPrimary = false;\n private boolean userStatementPresent = false;\n\n public boolean isUserStatementPresent() {\n return userStatementPresent;\n }\n\n public void setUserStatementPresent(boolean userStatementPresent) {\n this.userStatementPresent = userStatementPresent;\n }\n\n public String getBankName() {\n return bankName;\n }\n\n public void setBankName(String bankName) {\n this.bankName = bankName;\n }\n\n public String getAccountNumber() {\n return accountNumber;\n }\n\n public String getAccountNumberLast4Digits() {\n if(accountNumber!= null && accountNumber.length()>4)\n {\n return accountNumber.substring(accountNumber.length()-4);\n }\n return accountNumber;\n }\n\n public void setAccountNumber(String accountNumber) {\n this.accountNumber = accountNumber;\n }\n\n public boolean isPrimary() {\n return isPrimary;\n }\n\n public void setIsPrimary(boolean isPrimary) {\n this.isPrimary = isPrimary;\n }\n\n @Override\n public boolean equals(Object obj)\n {\n if(obj != null && obj instanceof BankDetail)\n {\n BankDetail second = (BankDetail)obj;\n return this.bankName.equals(second.getBankName())\n && this.getAccountNumberLast4Digits().equals(second.getAccountNumberLast4Digits());\n }\n return false;\n }\n }\n\n}", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "public Banking addFundsToAccount(Banking banking){\n return client.addBanking(banking);\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 setJP_BankAccount_Value (String JP_BankAccount_Value);", "@Override\n\tpublic void modifyBankingDetail(BankingDetail baningDetail) {\n\t\t\n\t}", "@Override\r\n\tpublic void buildSettlement() {\n\t\t\r\n\t}", "public void addAccountInfo(StringBuilder sb) {\n sb.append(\"\\n\\nUser:\");\n sb.append(getUser());\n sb.append('\\n');\n sb.append(\"Phone:\");\n sb.append(getPhoneNumber());\n int overpaidDays = DonationManager.instance().getOverpaidDays();\n if (overpaidDays > 0) {\n sb.append(\"\\nOverpaid:\");\n sb.append(overpaidDays);\n }\n }", "public boolean collectAccountInfo(IBankAPI bankAPI){\n\t}", "public void setBankId(long bankId) {\n this.bankId = bankId;\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 boolean saveToBP_BankAccount(MBPBankAccount ba) {\n if (ba == null) {\n return false;\n }\n ba.setA_Name(getA_Name());\n ba.setA_Street(getA_Street());\n ba.setA_City(getA_City());\n ba.setA_State(getA_State());\n ba.setA_Zip(getA_Zip());\n ba.setA_Country(getA_Country());\n ba.setA_EMail(getA_EMail());\n ba.setA_Ident_DL(getA_Ident_DL());\n ba.setA_Ident_SSN(getA_Ident_SSN());\n //\tCC\n ba.setCreditCardType(getCreditCardType());\n ba.setCreditCardNumber(getCreditCardNumber());\n ba.setCreditCardExpMM(getCreditCardExpMM());\n ba.setCreditCardExpYY(getCreditCardExpYY());\n ba.setCreditCardVV(getCreditCardVV());\n //\tBank\n if (getAccountNo() != null) {\n ba.setAccountNo(getAccountNo());\n }\n if (getRoutingNo() != null) {\n ba.setRoutingNo(getRoutingNo());\n }\n //\tTrx\n ba.setR_AvsAddr(getR_AvsAddr());\n ba.setR_AvsZip(getR_AvsZip());\n //\n boolean ok = ba.save(get_TrxName());\n log.fine(\"saveToBP_BankAccount - \" + ba);\n return ok;\n }", "public Builder setBankBranchID(String value) {\n validate(fields()[8], value);\n this.bankBranchID = value;\n fieldSetFlags()[8] = true;\n return this; \n }", "private ResponseBank(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void updateUi(BankAccount account) {\n if (account != null) {\n mBinding.bankName.setText(account.nickname);\n mBinding.accountNo.setText(getString(R.string.account_xxx, account.bankAccountNumber.substring(account.bankAccountNumber.length() - 4)));\n }\n }", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "private void Updatebrand(final String Brand_Id,final String Brand_Name,final String description,final String brand_status,final String reason,final String Creation_Date,final String Updated_Date,final String Admin_Id) {\n String tag_string_req = \"req_update\";\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.Url_editBrand, response -> {\n\n\n int jsonStart = response.indexOf(\"{\");\n int jsonEnd = response.lastIndexOf(\"}\");\n\n if (jsonStart >= 0 && jsonEnd >= 0 && jsonEnd > jsonStart) {\n response = response.substring(jsonStart, jsonEnd + 1);\n } else {\n // deal with the absence of JSON content here\n }\n\n response = response.replaceAll(\"<.*?>\", \"\");\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n if (!error) {\n\n } else {\n\n\n String errorMsg = jObj.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(),\n errorMsg, Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n\n }\n\n }, error -> {\n }) {\n @Override\n protected Map<String, String> getParams() {\n // Posting params to register url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Brand_Id\", Brand_Id);\n params.put(\"Brand_Name\", Brand_Name);\n params.put(\"description\", description);\n params.put(\"brand_status\",brand_status);\n params.put(\"reason\", reason);\n params.put(\"Creation_Date\", Creation_Date);\n params.put(\"Updated_Date\", Updated_Date);\n params.put(\"Admin_Id\", Admin_Id);\n\n return params;\n }\n\n };\n\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n }", "String updateClientAccount(ClientAccount account) throws ServiceException;", "public void setBankAccountNumber(int bankAccountNumber) {\n this.bankAccountNumber = bankAccountNumber;\n }", "Builder addAccountablePerson(Person.Builder value);", "public abstract void updateAccount(final GDataAccount account)\n throws ServiceException;", "public GlAccountBank (\n\t\t\tLong in_id\n ) {\n\t\tthis.setId(in_id);\n }", "public boolean updateAccount(UserAccount userAccount){\n\n String updateQuery = \"UPDATE UserAccount SET \";\n boolean updated = false;\n int counter = 0;//counter to see if we add a ,\n\n //Try / catch because when connection to database there is possible problem\n //Can handle connection problem, etc.\n try{\n //Code to udpate\n if(!userAccount.getFirstName().equals(this.firstName))\n updateQuery = updateQuery + ((counter++<1)?\"\":\",\") + \" firstName=\\\"\" + userAccount.getFirstName() + \"\\\"\";\n //If counter is 0 then put empty string because it is the first\n //Else put \",\" to seperate\n if(!userAccount.getLastName().euqals(this.lastName))\n updateQuery = updateQuery + ((counter++<1)?\"\":\",\") + \" lastName=\\\"\" + userAccount.getLastName() + \"\\\"\";\n\n if(!userAccount.getDateOfBirth().euqals(this.dateOfBirth))\n updateQuery = updateQuery + ((counter++<1)?\"\":\",\") + \" dateOfBirth=\\\"\" + userAccount.getDateOfBirth() + \"\\\"\";\n\n if(!userAccount.getPassword().euqals(this.password))\n updateQuery = updateQuery + ((counter++<1)?\"\":\",\") + \" password=\\\"\" + userAccount.getPassword() + \"\\\"\";\n\n if(!userAccount.getUserName().euqals(this.userName))\n updateQuery = updateQuery + ((counter++<1)?\"\":\",\") + \" userName=\\\"\" + userAccount.getUserName() + \"\\\"\";\n\n\n updateQuery = updateQuery + \" WHERE id=\" + this.ID;\n //Do the query\n }\n catch(Exception ex)//Error in database, lost connection or something\n {\n return(false);\n }\n\n return(false);\n }", "public abstract void updateBalance(Balance balance, LedgerEntry.Subtype subtype, long amount) throws TransactionException;", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public void changeBanksForPayment(){\n\t\t\tgetLocalBankListforIndicator();\n\t\t\tsetPaymentmodeId(null);\n\t\t\tif(getPaymentCode()!=null && getPaymentCode().equalsIgnoreCase(\"B\"))\n\t\t\t{\n\t\t\t\t\n\t\t\t\tsetBooChequePanel(true);\n\t\t\t\tsetBooCardPanel(false);\n\t\t\t\tsetRemitamount(null);\n\t\t\t\tBigDecimal PaymentId=placeOrderPendingTransctionService.toFetchPaymentId(getPaymentCode());\n\t\t\t\tsetPaymentmodeId(PaymentId);\n\t\t\t\t//clearKnetDetails();\n\t\t\t}else\n\t\t\t{\n\t\t\t\tsetBooChequePanel(false);\n\t\t\t\tsetBooCardPanel(true);\n\t\t\t\tsetRemitamount(null);\n\t\t\t\tBigDecimal PaymentId=placeOrderPendingTransctionService.toFetchPaymentId(getPaymentCode());\n\t\t\t\tsetPaymentmodeId(PaymentId);\n\t\t\t}\n\t\t\tsetBooRenderSaveOrExit(true);\n\t\t}", "@Override\n\tpublic String updateByCondition(Familybranch record, Familybranch con, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}", "Update withBranch(String branch);", "public void AddToAccountInfo();", "Account apply();", "public void updateRebill(HashMap<String, String> params) {\n\t\tTRANSACTION_TYPE = \"SET\";\n\t\tREBILL_ID = params.get(\"rebillID\");\n\t\tTEMPLATE_ID = params.get(\"templateID\");\n\t\tNEXT_DATE = params.get(\"nextDate\");\n\t\tREB_EXPR = params.get(\"expr\");\n\t\tREB_CYCLES = params.get(\"cycles\");\n\t\tREB_AMOUNT = params.get(\"rebillAmount\");\n\t\tNEXT_AMOUNT = params.get(\"nextAmount\");\n\t\tAPI = \"bp20rebadmin\";\n\t}", "public void updateAccount() {\r\n\t\t\r\n\t\t//update all totals\r\n\t\ttotalYouOwe = 0.0;\r\n\t\ttotalOwedToYou = 0.0;\r\n\t\tbalance = 0.0;\r\n\t\tnetBalance = 0.0;\r\n\t\t\r\n\t\t//totalYouOwe and totalOwedToYou\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.isParticipantByGID(GID)) {\r\n\t\t\t\tif (e.getParticipantByGID(GID).getBalance() > 0) {\r\n\t\t\t\t\ttotalOwedToYou = totalOwedToYou + e.getParticipantByGID(GID).getBalance(); \r\n\t\t\t\t} else {\r\n\t\t\t\t\ttotalYouOwe = totalYouOwe + (-e.getParticipantByGID(GID).getBalance());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//netBalance/balance - the same in current implementation\r\n\t\tnetBalance = totalOwedToYou - totalYouOwe;\r\n\t\tbalance = totalOwedToYou - totalYouOwe;\r\n\t\t\r\n\t\tupdatePastRelations();\r\n\t}", "public Builder setAccount(\n net.nyhm.protonet.example.proto.AccountProto.Account.Builder builderForValue) {\n if (accountBuilder_ == null) {\n account_ = builderForValue.build();\n onChanged();\n } else {\n accountBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "public Builder setAccount(\n net.nyhm.protonet.example.proto.AccountProto.Account.Builder builderForValue) {\n if (accountBuilder_ == null) {\n account_ = builderForValue.build();\n onChanged();\n } else {\n accountBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "int updateByPrimaryKey(ResPartnerBankEntity record);", "private void doBankRequest(final String amount) {\n ParseObject bankRequest = new ParseObject(Constants.CLASS_TRANSACTIONS);\n bankRequest.put(Constants.CLASS_TRANSACTIONS_FROM, mCurrentUser);\n bankRequest.put(Constants.CLASS_TRANSACTIONS_TYPE, Constants.CLASS_TRANSACTIONS_TYPE_FUNDS_REQUEST_BANK);\n bankRequest.put(Constants.CLASS_TRANSACTIONS_AMOUNT, Integer.parseInt(amount));\n bankRequest.put(Constants.CLASS_TRANSACTIONS_RESOLUTION, false);\n bankRequest.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n mProgressBar.setVisibility(View.INVISIBLE);\n if (e == null) {\n\n bankRequestObject = new JSONObject();\n try {\n bankRequestObject.put(Constants.CLASS_TRANSACTIONS_FROM, mUserId);\n bankRequestObject.put(Constants.CLASS_TRANSACTIONS_TYPE, Constants.CLASS_TRANSACTIONS_TYPE_FUNDS_REQUEST_BANK);\n bankRequestObject.put(Constants.CLASS_TRANSACTIONS_AMOUNT, Integer.parseInt(amount));\n } catch (JSONException el) {\n el.printStackTrace();\n }\n\n saveTransaction(amount, Constants.CLASS_TRANSACTIONS_TYPE_FUNDS_REQUEST_BANK);\n\n Logger.s(getApplicationContext(), getString(R.string.request_sent_message_txt));\n IntentUtils.startActivity(RequestFundsActivity.this, HomeActivity.class);\n finish();\n } else if (e.getCode() == ParseException.CONNECTION_FAILED || e.getCode() == ParseException.TIMEOUT) {\n mButton.setEnabled(true);\n Logger.s(getApplicationContext(), getString(R.string.network_timeout_message_txt));\n } else {\n mButton.setEnabled(true);\n Logger.s(getApplicationContext(), getString(R.string.general_error_message_txt));\n }\n }\n });\n }", "public Builder mergeAccount(net.nyhm.protonet.example.proto.AccountProto.Account value) {\n if (accountBuilder_ == null) {\n if (((bitField0_ & 0x00000004) == 0x00000004) &&\n account_ != null &&\n account_ != net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance()) {\n account_ =\n net.nyhm.protonet.example.proto.AccountProto.Account.newBuilder(account_).mergeFrom(value).buildPartial();\n } else {\n account_ = value;\n }\n onChanged();\n } else {\n accountBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "public Builder mergeAccount(net.nyhm.protonet.example.proto.AccountProto.Account value) {\n if (accountBuilder_ == null) {\n if (((bitField0_ & 0x00000004) == 0x00000004) &&\n account_ != null &&\n account_ != net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance()) {\n account_ =\n net.nyhm.protonet.example.proto.AccountProto.Account.newBuilder(account_).mergeFrom(value).buildPartial();\n } else {\n account_ = value;\n }\n onChanged();\n } else {\n accountBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "public AccountSQLCall buildSQLCalll(boolean create, final Set<Attribute> attrs) {\r\n final AccountSQLCallBuilder asb = new AccountSQLCallBuilder(cfg, create);\r\n for (Attribute attribute : attrs) {\r\n asb.setAttribute(ObjectClass.ACCOUNT, attribute, null);\r\n }\r\n return asb.build();\r\n }", "public Bank updateBankInfo(Bank bank) {\n\t\treturn bankDAOImpl.updateBankInfo(bank);\n\t}", "public Builder setBankNoBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n bankNo_ = value;\n onChanged();\n return this;\n }", "public LoanCompany(String str, CurrentBankAccount currBankAccount, ThreadGroup group) {\n \n super(group, str);\n \n this.currBankAccount = currBankAccount;\n this.companyGroup = group; \n \n c1[0] = new Transaction(university_names, 2550);\n c1[1] = new Transaction(university_names, 500);\n c1[2] = new Transaction(university_names, 1500);\n \n \n }", "private void updateSingleAccount(double amount, String account_name) {\n if (account_name.equals(\"bankomat\")){\n status_disp.transfer_resources(\"karta konto 1\", \"gotowka\", (float) amount); // TODO: remove hardcoded account names...crashes if names dont match\n }\n else {\n status_disp.reduce_wealth(account_name, (float) amount);\n Log.e(TAG, account_name + \" \" + amount);\n }\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "int updateByExample(@Param(\"record\") BankUserInfo record, @Param(\"example\") BankUserInfoExample example);", "public net.nyhm.protonet.example.proto.AccountProto.Account.Builder getAccountBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getAccountFieldBuilder().getBuilder();\n }", "public net.nyhm.protonet.example.proto.AccountProto.Account.Builder getAccountBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getAccountFieldBuilder().getBuilder();\n }", "private void updateUserAccount() {\n final UserDetails details = new UserDetails(HomeActivity.this);\n //Get Stored User Account\n final Account user_account = details.getUserAccount();\n //Read Updates from Firebase\n final Database database = new Database(HomeActivity.this);\n DatabaseReference user_ref = database.getUserReference().child(user_account.getUser().getUser_id());\n user_ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //Read Account Balance\n String account_balance = dataSnapshot.child(Database.USER_ACC_BALANCE).getValue().toString();\n //Read Expire date\n String expire_date = dataSnapshot.child(Database.USER_ACC_SUB_EXP_DATE).getValue().toString();\n //Read Bundle Type\n String bundle_type = dataSnapshot.child(Database.USER_BUNDLE_TYPE).getValue().toString();\n //Attach new Values to the Account Object\n user_account.setBalance(Double.parseDouble(account_balance));\n //Attach Expire date\n user_account.setExpire_date(expire_date);\n //Attach Bundle Type\n user_account.setBundle_type(bundle_type);\n //Update Local User Account\n details.updateUserAccount(user_account);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n //No Implementation\n }\n });\n }", "public BmAccountsRecord(String bmAccountsId, String id, String bmCorpId, String bmAccstatus, String bmAccounttype, Double bmAccountbalance,\n Timestamp createdAt, Timestamp updatedAt) {\n super(Tue4BmAccounts.BM_ACCOUNTS);\n\n set(0, bmAccountsId);\n set(1, id);\n set(2, bmCorpId);\n set(3, bmAccstatus);\n set(4, bmAccounttype);\n set(5, bmAccountbalance);\n set(6, createdAt);\n set(7, updatedAt);\n }", "public Builder setAccount(net.nyhm.protonet.example.proto.AccountProto.Account value) {\n if (accountBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n account_ = value;\n onChanged();\n } else {\n accountBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "public Builder setAccount(net.nyhm.protonet.example.proto.AccountProto.Account value) {\n if (accountBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n account_ = value;\n onChanged();\n } else {\n accountBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "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 }", "private Account(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }" ]
[ "0.59548193", "0.59125996", "0.5869653", "0.5745686", "0.57400566", "0.56080645", "0.56047195", "0.55835927", "0.5556834", "0.54850185", "0.5479705", "0.5453298", "0.5426729", "0.5405824", "0.5389323", "0.5362046", "0.5338735", "0.53382134", "0.5333968", "0.53334785", "0.52960134", "0.52960134", "0.52767515", "0.52685475", "0.5251134", "0.5250097", "0.52240664", "0.522394", "0.5216156", "0.52153367", "0.52050906", "0.51974595", "0.5184834", "0.5184323", "0.5172388", "0.51598895", "0.5152812", "0.5123022", "0.5121892", "0.5121892", "0.51174885", "0.509831", "0.5096241", "0.50708437", "0.50627583", "0.5056311", "0.5052687", "0.5043832", "0.5043375", "0.5032984", "0.50266206", "0.501866", "0.50157076", "0.5013224", "0.50099456", "0.4995137", "0.499241", "0.49868095", "0.49849716", "0.4984632", "0.49762326", "0.49674302", "0.49632227", "0.4959749", "0.49526802", "0.49432963", "0.4943061", "0.49253964", "0.49219298", "0.49175948", "0.49154785", "0.49142778", "0.4909871", "0.49074548", "0.48970795", "0.48868644", "0.4885896", "0.48841935", "0.48832875", "0.4882893", "0.4882893", "0.48809472", "0.48714578", "0.4866137", "0.4866137", "0.4861987", "0.4857166", "0.48561648", "0.4850533", "0.48478717", "0.4845545", "0.48365375", "0.4833139", "0.4833139", "0.4826389", "0.48143104", "0.48137313", "0.48137313", "0.48097953", "0.4807266", "0.48034212" ]
0.0
-1
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call updateBankAccountValidateBeforeCall(String generalContractId, BankAccountDescriptor body) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling updateBankAccount(Async)"); } return updateBankAccountCall(generalContractId, body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract(Async)\");\n }\n\n return updateContractCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getOneValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getOne(Async)\");\n }\n\n return getOneCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchContract(Async)\");\n }\n\n return patchContractCall(generalContractId, body);\n }", "public TbContract verifyContractIdExist(int chainId, int contractId, int groupId) {\n ContractParam param = new ContractParam(chainId, contractId, groupId);\n TbContract contract = queryContract(param);\n if (Objects.isNull(contract)) {\n log.info(\"contractId is invalid. contractId:{}\", contractId);\n throw new BaseException(ConstantCode.INVALID_CONTRACT_ID);\n }\n return contract;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling revokeAccrual(Async)\");\n }\n\n return revokeAccrualCall(generalContractId);\n }", "public void setContractId(int value) {\n this.contractId = value;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getIframeOptionsValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getIframeOptions(Async)\");\n }\n\n return getIframeOptionsCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getTransferBalanceValidateBeforeCall(ProductInstanceID generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getTransferBalance(Async)\");\n }\n\n return getTransferBalanceCall(generalContractId);\n }", "public void setContractId(Integer contractId) {\n this.contractId = contractId;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailableCurrenciesValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailableCurrencies(Async)\");\n }\n\n return getAvailableCurrenciesCall(generalContractId);\n }", "public Call getOneCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public int getContractId() {\n return contractId;\n }", "public String getContractId() {\n return contractId;\n }", "public void setContractId(String contractId) {\n this.contractId = contractId == null ? null : contractId.trim();\n }", "public Integer getContractId() {\n return contractId;\n }", "public ValidationResult validateContract() {\n return validateContract(apiContract);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)\");\n }\n\n return updateThirdPartyConfigurationCall(generalContractId, body);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)\");\n }\n\n return patchThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call terminateValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling terminate(Async)\");\n }\n\n return terminateCall(generalContractId);\n }", "public void setSContractNo(String sContractNo) {\n this.sContractNo = sContractNo;\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n String string0 = EWrapperMsgGenerator.bondContractDetails(1274, contractDetails0);\n assertEquals(\"reqId = 1274 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = FkqJC9O=9\\ntradingClass = null\\nconid = 0\\nminTick = -4322.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "public Call patchContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PATCH\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public Contract() {\n // initialise instance variables\n generateContractId();\n }", "public void setPartnerContractId(Integer partnerContractId) {\r\n this.partnerContractId = partnerContractId;\r\n }", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "public TbContract verifyContractDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() != contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_NOT_DEPLOY);\n }\n return contract;\n }", "public String getContractNumber() {\n return contractNumber;\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void setContractorID(int contractorID) {\n this.contractorID = contractorID;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addPaymentLinkConfigurationValidateBeforeCall(String generalContractId, PaymentLinkOptions body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addPaymentLinkConfiguration(Async)\");\n }\n\n return addPaymentLinkConfigurationCall(generalContractId, body);\n }", "boolean hasBusinessCircleId();", "public TbContract verifyContractNotDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() == contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_HAS_BEAN_DEPLOYED);\n }\n return contract;\n }", "public Call updateContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailablePaymentMethodsValidateBeforeCall(String generalContractId, GetAvailablePaymentMethodsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailablePaymentMethods(Async)\");\n }\n\n return getAvailablePaymentMethodsCall(generalContractId, body);\n }", "public void setContractAmount(Integer contractAmount) {\n this.contractAmount = contractAmount;\n }", "public Contracts() {\r\n super();\r\n \r\n }", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "public void createContract() {\n\r\n\t}", "public boolean isSetContractAddress() {\n return this.contractAddress != null;\n }", "public void initContract(ContractInfo contractInfo)\n {\n this.contractInfo = contractInfo;\n }", "void setContract(int contract) {\r\n\t\tif (contract == 24 || contract == 30 || contract == 36) {\r\n\t\t\tthis.contract = contract;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Vector<String> vector0 = new Vector<String>();\n Contract contract0 = new Contract(0, \"X_\", \"X_\", \"X_\", 1833, \"X_\", \"liquidHours = \", \"X_\", \"Error - \", (String) null, vector0, \"com.ib.client.Execution\", true, \"liquidHours = \", \"com.ib.client.Execution\");\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"\", (String) null, (-2818.2935355), \"\", \"H9~[N\\\"Hv`#|kr]\", 13, \"H9~[N\\\"Hv`#|kr]\", \" underComp.delta =\", \"\", \" underComp.delta =\", \"X_\", (String) null, \"M]G9k=@}tbK\", \"Bwn1n;uU*\");\n String string0 = EWrapperMsgGenerator.contractDetails(1833, contractDetails0);\n assertEquals(\"reqId = 1833 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = X_\\nsecType = X_\\nexpiry = X_\\nstrike = 1833.0\\nright = X_\\nmultiplier = liquidHours = \\nexchange = X_\\nprimaryExch = com.ib.client.Execution\\ncurrency = Error - \\nlocalSymbol = null\\nmarketName = \\ntradingClass = null\\nminTick = -2818.2935355\\nprice magnifier = 0\\norderTypes = \\nvalidExchanges = H9~[N\\\"Hv`#|kr]\\nunderConId = 13\\nlongName = H9~[N\\\"Hv`#|kr]\\ncontractMonth = underComp.delta =\\nindustry = \\ncategory = underComp.delta =\\nsubcategory = X_\\ntimeZoneId = null\\ntradingHours = M]G9k=@}tbK\\nliquidHours = Bwn1n;uU*\\n ---- Contract Details End ----\\n\", string0);\n }", "@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "boolean isSetCompanyBaseData();", "@Test\n public void shouldCreateContractWithPreconditions() {\n // Given\n final Clause precondition1 = ContractFactory.alwaysTrueDefaultClause();\n final Clause precondition2 = ContractFactory.alwaysTrueDefaultClause();\n\n // When\n final Contract contract = ContractFactory.contractWithPreconditions(precondition1, precondition2);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has not all given preconditions!\", contract.preconditions().length == 2);\n }", "public void setContractNumber(String contractNumber) {\n this.contractNumber = contractNumber == null ? null : contractNumber.trim();\n }", "public ContractMethod() {\n }", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)\");\n }\n // verify the required parameter 'thirdPartyName' is set\n if (thirdPartyName == null) {\n throw new ApiException(\"Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)\");\n }\n\n return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName);\n }", "@Test\n public void testGetBusinessId() {\n \n \n assertNull(o1.getBusinessId());\n o1.setBusinessId(Integer.MIN_VALUE);\n assertNotNull(o1.getBusinessId());\n assertEquals(new Integer(Integer.MIN_VALUE), o1.getBusinessId());\n }", "public Call terminateCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/terminate\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "@Test\n public void shouldCreateEmptyContract() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n }", "public abstract void deleteContract(String contractNumber);", "public void checkCreditCard() throws BusinessException;", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "@Test\n public void merchantidTest() {\n assertEquals(Integer.valueOf(12345), authResponse.getMerchantid());\n }", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "VerifyBasicCallback() {\n m_transactionType = null;\n m_procedureName = null;\n }", "private static void validateBaseRequest(final InvBaseRequest request) {\r\n\t\tif (request == null) {\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Request is Null.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Request is Null\");\r\n\t\t}\r\n\r\n\t\tif(request.getTransactionId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid Transaction ID.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid Transaction ID.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getUserId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid User Id.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid User Id.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(null == request.getDistributionCenter() || request.getDistributionCenter().isEmpty() || null == request.getShipToCustomer() || request.getShipToCustomer().isEmpty() ){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Account should not be empty.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Account should not be empty\");\r\n\t\t}\r\n\t}", "public void setXpeContractId(String value) {\n setAttributeInternal(XPECONTRACTID, value);\n }", "@Test\n public void testFailureParInvalidPkceSetting() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n updateClientByAdmin(clientId, (ClientRepresentation cRep)->{\n OIDCAdvancedConfigWrapper.fromClientRepresentation(cRep).setPkceCodeChallengeMethod(\"S256\");\n });\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(400, pResp.getStatusCode());\n assertEquals(OAuthErrorException.INVALID_REQUEST, pResp.getError());\n assertEquals(\"Missing parameter: code_challenge_method\", pResp.getErrorDescription());\n }", "public static int withContract() {\n\t\t{\n\t\t\tString choice;\n\t\t\tint startover;\n\t\t\tImageIcon picture;\n\t\t\tint selectedCode;\n\t\t\tint number1 = (int) (900 * Math.random() + 100);\n\t\t\tint number2 = (int) (9000 * Math.random() + 1000);\n\t\t\tString[] choices = modelsForContract();\n\t\t\t\n\t\t\t// asks which phone the user wants by showing the options based upon their contract preferences\n\t\t\t\n\t\t\tchoice = (String) JOptionPane.showInputDialog(null, \"Which phone whould you like?\", \"Phone Selection\", \n\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, icon, choices, null);\n\t\t\t\n\t\t\t// Depending on the selection, the phones image is displayed.\n\t\t\tif (choice == choices[0])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"galaxyS9.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[1])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"iphoneX.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[2])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"googlePixel.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[3])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"Motorola.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[4])\n\t\t\t{\n\t\t\t\tSystem.out.print(\"HI\");\n\t\t\t\tpicture = new ImageIcon(\"Huawei.png\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\t\t\tselectedCode = 0;\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\t// Then the area code selection is presented.\n\t\t\tselectedCode = JOptionPane.showOptionDialog(null, \"Please select an area code from below\",\n\t\t\t\t\t\"Area Code Selection\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, picture, areaCodes, areaCodes[0]);\n\t\t\t\n\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Congratulations, \" + firstName + \"!\\nYour new phone is the \" + choice + \".\"\n\t\t\t\t\t+ \"\\nAnd your new phone number is \" + areaCodes[selectedCode] + \"-\" + number1 + \"-\" + number2 + \"!\",\n\t\t\t\t\t\"Congratulations!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t\n\t\t\tstartover = JOptionPane.showOptionDialog(null, \"Would you like to buy another phone \" + firstName + \"?\",\n\t\t\t\t\t\"Awesome Smartphone\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon, null, 0);\n\t\t\t\n\t\t\tif (startover == 1)\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Thank you for your business!\",\n\t\t\t\t\t\t\"Thank You!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t}\n\t\t\treturn startover;\n\t\t}\n\t}", "void setIdVerificationResponseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData idVerificationResponseData);", "boolean isSetIdVerificationResponseData();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Ggeneral)) {\n return false;\n }\n Ggeneral other = (Ggeneral) object;\n if ((this.idgeneral == null && other.idgeneral != null) || (this.idgeneral != null && !this.idgeneral.equals(other.idgeneral))) {\n return false;\n }\n return true;\n }", "public void setCodeCombinationsIdFromGeneral(XxGamMaGeneralReqVORowImpl generalRow) {\n if (generalRow != null) {\n Number codeCombinationId = null;\n codeCombinationId = generalRow.getCostCenter();\n if (codeCombinationId != null) {\n\n RowSetIterator rowSetIter = getRowSetIterator();\n if (rowSetIter != null) {\n rowSetIter.reset();\n while (rowSetIter.hasNext()) {\n Row row = rowSetIter.next();\n XxGamMaPaymentReqVORowImpl detailRow = \n (XxGamMaPaymentReqVORowImpl)row;\n if (detailRow != null) {\n if (detailRow.getGeneralReqId().equals(generalRow.getId())) {\n detailRow.setCodeCombinationId(codeCombinationId);\n }\n }\n }\n rowSetIter.reset();\n }\n }\n }\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public int getContractorID() {\n return contractorID;\n }", "@Test\n public void shouldCreateContractWithPrecondition() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.contractWithPrecondition();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has no precondition!\", contract.preconditions().length == 1);\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "public boolean modifyContract(Contract contract) {\n\t\treturn contractdao.modifyContract(contract);\n\t}", "boolean isSetCapitalPayed();", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "protected boolean validateSubContract(SubContract subContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = subContract.getParentContract().getValidityPeriod();\n \n BasicDiagnostic parameterBlocksDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_BLOCK_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterBlocksValid = validateParameterBlocks(subContract, parameterBlocksDiagnostics, context);\n if(!parameterBlocksValid)\n diagnostics.add(parameterBlocksDiagnostics);\n\n BasicDiagnostic parameterMapsDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_MAP_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterMapsValid = validateParameterMaps(subContract, parameterMapsDiagnostics, context);\n if(!parameterMapsValid)\n diagnostics.add(parameterMapsDiagnostics);\n \n boolean parentValid = true;\n if(!subContract.getPrimaryContract().getValidityPeriod().contains(newPeriod)){\n parentValid &= false;\n diagnostics.add(new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_SUB_CONTRACT, SUB_CONTRACT__RANGE, String.format(\n \"[%s] '%s' conflicts with parent '%s'\", \"Range\",\n getDisplayString(newPeriod), getDisplayString(subContract\n .getPrimaryContract().getValidityPeriod())), new Object[]{subContract.getPrimaryContract()}));\n }\n \n return parameterBlocksValid && parameterMapsValid && parentValid;\n }", "@Override\n\tpublic void setFTGLId(FinancialTransactionGeneralLedger_Id arg0) {\n\n\t}", "@Test\n public void testInsuredPayerPayersId() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setPayersIdEnum,\n RdaFissPayer::getPayersId,\n FissPayersCode.PAYERS_CODE_AUTO_NO_FAULT,\n \"D\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setPayersIdUnrecognized,\n RdaFissPayer::getPayersId,\n RdaFissPayer.Fields.payersId,\n 1);\n }", "public Call revokeAccrualCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/revokeAccrual\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\r\n\tvoid testContactServiceUpdateContactWithInValidID() {\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.updateContactFirstName(\"none\", \"enon\");\r\n\t\t});\r\n\t}", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }", "public boolean isSetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENERAL$20) != 0;\r\n }\r\n }", "@Test\n public void testInsuredPayerTreatAuthCd() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }", "private Contract() {\n }", "VerifyBasicCallback(TPCCSimulation.Transaction transaction, String procName) {\n m_transactionType = transaction;\n m_procedureName = procName;\n }", "public void onClick(DialogInterface dialog, int id)\n {\n if(optionAddContract.isChecked())\n {\n selectedContractAddress = contractAddressField.getText().toString();\n dialogListener.onAddContract(selectedContractAddress, selectedContractType);\n }else{\n dialogListener.onCreateContract(selectedContractType);\n }\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Contract contract0 = new Contract();\n String string0 = EWrapperMsgGenerator.contractMsg(contract0);\n assertEquals(\"conid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\n\", string0);\n }", "boolean isSetNcbistdaa();", "public void m9130p() throws cf {\r\n if (this.f6007a == null) {\r\n throw new cz(\"Required field 'domain' was not present! Struct: \" + toString());\r\n } else if (this.f6009c == null) {\r\n throw new cz(\"Required field 'new_id' was not present! Struct: \" + toString());\r\n }\r\n }", "@Test\n public void testBeneZPayerTreatAuthCd() {\n new BeneZPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissBeneZPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }" ]
[ "0.65667087", "0.6498893", "0.64641535", "0.62215364", "0.6210321", "0.61307234", "0.6029447", "0.5991647", "0.58935875", "0.5867352", "0.57154477", "0.5708672", "0.565344", "0.55975854", "0.5568958", "0.5535204", "0.54849637", "0.5440859", "0.5439886", "0.5439886", "0.53983784", "0.538685", "0.5372101", "0.535575", "0.53002197", "0.5298278", "0.5284535", "0.5277213", "0.5228654", "0.5213922", "0.5213851", "0.5203466", "0.5203466", "0.5198705", "0.51919657", "0.5132997", "0.503143", "0.5030267", "0.502797", "0.5015527", "0.5008133", "0.49868008", "0.49842298", "0.49836314", "0.49824694", "0.49804395", "0.4969242", "0.4950973", "0.49493062", "0.49471316", "0.4928483", "0.49245524", "0.49162278", "0.4885365", "0.48522398", "0.4833596", "0.48331168", "0.48331168", "0.48331168", "0.48331168", "0.4830747", "0.4827253", "0.48129195", "0.48126492", "0.4799318", "0.4791708", "0.47801298", "0.4777395", "0.47646844", "0.47614396", "0.47599468", "0.47580373", "0.47508353", "0.47382933", "0.4732828", "0.47288087", "0.47212544", "0.4717133", "0.47137868", "0.47108936", "0.46979916", "0.46949527", "0.46938235", "0.469239", "0.46847698", "0.46842527", "0.46841192", "0.46748438", "0.46745366", "0.46736524", "0.46714628", "0.46679446", "0.4660473", "0.46603698", "0.46579075", "0.4655875", "0.4655484", "0.46554628", "0.46510994", "0.46478415" ]
0.54083145
20
Build call for updateContract
public Call updateContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UpdateOperationConfiguration build();", "public @ResponseBody Contract updateContract(@RequestBody Contract Contract);", "public void createContract() {\n\r\n\t}", "public Builder setContract(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n contract_ = value;\n onChanged();\n return this;\n }", "public Builder setContract(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n contract_ = value;\n onChanged();\n return this;\n }", "public Builder setContract(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n contract_ = value;\n onChanged();\n return this;\n }", "public Builder setContract(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n contract_ = value;\n onChanged();\n return this;\n }", "private UpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public UpdateRequest() {\n super(ServiceType.UPDATE);\n }", "public void Update(StokContract entity) {\n\t\t\n\t}", "interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState, UpdateStages.WithProvisioningState {\n }", "void createOrUpdateContracts(List<PsdContract> wrapContracts);", "public boolean updateContract(double rem, String day, String time, String location, String batch, long tID,long cID) {\n\t\treturn new Contract().updateContract(rem, day, time, location, batch, tID,cID);\n\t}", "private ApplicationAddressReqType buildUpdateApplicationAddressChangeRequest(\n UpdateApplicationAddressForm updateApplicationAddressForm) {\n System.out.println(\"inside buildUpdateApplicationAddressChangeRequest\");\n ApplicationAddressReqType applicationAddressReqType = new ApplicationAddressReqType();\n AuditAdmin audit = new AuditAdmin();\n audit.setLastModifiedUser(\"erinkklein FQT Attor\");\n applicationAddressReqType.setAudit(audit);\n System.out.println(audit.getLastModifiedUser());\n \n LifecycleAdmin lifecycle= new LifecycleAdmin();\n lifecycle.setBeginDate(\"1595704744\");\n lifecycle.setEndDate(\"1595704744\");\n applicationAddressReqType.setLifeCycle(lifecycle);\n applicationAddressReqType.setChangeCustomerNumber(updateApplicationAddressForm.getCustomerNumber());\n applicationAddressReqType.setNoticeActionCd(\"addressChange\");\n applicationAddressReqType.setRegistrationNumber(updateApplicationAddressForm.getRegistrationNumber());\n applicationAddressReqType.setRequestIdentifier(updateApplicationAddressForm.getPairId());\n \n List<AddressChangeSupportData> addressSupportingDataArray = new ArrayList<AddressChangeSupportData>();\n \n AddressChangeSupportData addressSupportingData = new AddressChangeSupportData();\n addressSupportingData.setNameLineText(updateApplicationAddressForm.getCommonName());\n \n addressSupportingData.setSignature(updateApplicationAddressForm.getSubmitterSignature());\n addressSupportingDataArray.add(addressSupportingData);\n applicationAddressReqType.setSupportData(addressSupportingDataArray);\n System.out.println(applicationAddressReqType.getChangeCustomerNumber());\n \n return applicationAddressReqType;\n }", "public void updateCard (final WebsiteInterface.WebsiteResult verification,\n HashMap<String, String> updateParams){\n JSONObject jsonBody = jsonifyParams(updateParams);\n //set the standard response listener with the verification interface that was given.\n Response.Listener<JSONObject> updateCard = setResponse(verification);\n //create endpoint\n String api = WebsiteInterface.SET_CARD;\n NetworkRequest networkRequest = new NetworkRequest(this.appContext);\n int method = networkRequest.getMethod(\"PUT\");\n networkRequest.addToRequestQueue(new JsonObjectRequest(\n method,\n api,\n jsonBody,\n updateCard,\n error\n ));\n\n\n }", "public Builder setContractBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n contract_ = value;\n onChanged();\n return this;\n }", "public Builder setContractBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n contract_ = value;\n onChanged();\n return this;\n }", "public Builder setContractBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n contract_ = value;\n onChanged();\n return this;\n }", "public Builder setContractBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n contract_ = value;\n onChanged();\n return this;\n }", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "JobResponse.Update update();", "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract(Async)\");\n }\n\n return updateContractCall(generalContractId, body);\n }", "@Test\n public void testUpdateCoin() throws Exception {\n VirtualCoinAddReq update = new VirtualCoinAddReq();\n update.setId(1l);\n update.setShortName(\"btc\");\n update.setName(\"btc\");\n update.setSecretKey(\"btc123456\");\n update.setAccessKey(\"btcabc87654321\");\n update.setIp(\"130.252.100.93\");\n update.setPort(\"8385\");\n update.setIconUrl(\"xx\");\n update.setIsWithDraw(\"\");\n update.setIsRecharge(\"\");\n update.setIsAuto(\"\");\n update.setMainAddress(\"main1\");\n update.setLowRechargeFees(new BigDecimal(1.0));\n update.setRechargeFees(new BigDecimal(1.0));\n update.setLowWithdrawFees(new BigDecimal(1.0));\n update.setWithdrawFees(new BigDecimal(1.0));\n update.setSingleLowRecharge(new BigDecimal(1.0));\n update.setSingleHighRecharge(new BigDecimal(1.0));\n update.setDayHighRecharge(new BigDecimal(1.0));\n update.setSingleLowWithdraw(new BigDecimal(1.0));\n update.setSingleHighWithdraw(new BigDecimal(1.0));\n update.setDayHighWithdraw(new BigDecimal(1.0));\n update.setLowTradeFees(new BigDecimal(6.0));\n update.setTradeFees(new BigDecimal(9.0));\n String token = CacheHelper.buildTestToken(\"1\");\n update.setToken(token);\n LOG.d(this,update);\n WebApiResponse response = virtualCoinCtrl. updateCoin(update);\n LOG.d(this,response);\n }", "public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {\n return listOptionsContractsCall(underlying, expiration, _callback);\n }", "public void updateContract(Contract contract) {\r\n\r\n\t\ttry {\r\n\t\t\tthis.em.merge(contract);\r\n\t\t} catch (PersistenceException e) {\r\n\t\t\tthrow new TechnicalException(\r\n\t\t\t\t\t\"Technical Exception in updateContract()\", e);\r\n\t\t}\t\t\r\n\r\n\t}", "interface Update extends\n Appliable<NamespaceAuthorizationRule>,\n AuthorizationRule.UpdateStages.WithListenOrSendOrManage<Update> {\n }", "public static String buildRequestForUpdate() throws Exception {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"<sfdc:sObjects xmlns:sfdc='sfdc' type='\" + cmbSObjectType.getText() + \"'>\");\n\t\tsb.append(\"<sfdc:sObject>\");\n\t\tMap<String, String> fields = callDescribeSObject(cmbSObjectType.getText());\n\n\t\tfor (String key : fields.keySet()) {\n\t\t\tsb.append(\"<sfdc:\" + key + \">\");\n\t\t\tif (fields.get(key).equals(\"boolean\")) {\n\t\t\t\tsb.append(true);\n\t\t\t} else if (fields.get(key).equals(\"id\")) {\n\t\t\t\tsb.append(\"0012800000uQ6LXAA0\");\n\t\t\t} else if (fields.get(key).equals(\"double\")) {\n\t\t\t\tsb.append(3.1542);\n\t\t\t} else if (fields.get(key).equals(\"int\")) {\n\t\t\t\tsb.append(1);\n\t\t\t} else if (fields.get(key).equals(\"float\")) {\n\t\t\t\tsb.append(2147483648L);\n\t\t\t} else {\n\t\t\t\tsb.append(\"value\");\n\t\t\t}\n\t\t\tsb.append(\"</sfdc:\" + key + \">\");\n\t\t}\n\t\tsb.append(\"</sfdc:sObject>\");\n\t\tsb.append(\"</sfdc:sObjects>\");\n\t\tStringBuilder sb1 = new StringBuilder();\n\t\tsb1.append(\"<root>\");\n\t\tsb1.append(\"<allOrNone>\" + \"0\" + \"</allOrNone>\" + \"<allowFieldTruncate>\" + \"0\" + \"</allowFieldTruncate>\"\n\t\t\t\t+ sb.toString());\n\t\tsb1.append(\"</root>\");\n\n\t\treturn sb1.toString();\n\t}", "private MsgExecuteContract(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public interface RimetContract {\n\n interface View extends BaseView {\n\n /**\n * 提示用户更新\n * @param model\n */\n void onUpdate(UpdateModel model);\n\n /**\n * 更新失败\n * @param msg\n */\n void onUpdateFailed(String msg);\n\n /**\n * 更新配置成功\n */\n void onUpdateConfigSucceed();\n\n /**\n * 更新配置失败\n * @param msg\n */\n void onUpdateConfigFailed(String msg);\n\n /**\n * 清除成功\n */\n void onClearConfigSucceed();\n\n /**\n * 清除失败\n * @param msg\n */\n void onClearConfigFailed(String msg);\n }\n\n interface Presenter extends BasePresenter {\n\n /**\n * 检测更新\n */\n void checkUpdate(boolean auto);\n\n /**\n * 更新配置\n */\n void updateConfig(boolean auto);\n\n /**\n * 清除配置\n */\n void clearConfig();\n }\n}", "@Override\r\n\tpublic void buildSettlement() {\n\t\t\r\n\t}", "public @ResponseBody Contract addContract(@RequestBody Contract Contract);", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "private UpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void updateById__customers( String qualificationId, String fk, Map<String, ? extends Object> data, final ObjectCallback<Customer> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"prototype.__updateById__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);\n if(context != null){\n try {\n Method method = customerRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(customerRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //customerRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Customer customer = customerRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = customer.getClass().getMethod(\"save__db\");\n method.invoke(customer);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(customer);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }", "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithCancelRequested,\n UpdateStages.WithState,\n UpdateStages.WithReturnAddress,\n UpdateStages.WithReturnShipping,\n UpdateStages.WithDeliveryPackage,\n UpdateStages.WithLogLevel,\n UpdateStages.WithBackupDriveManifest,\n UpdateStages.WithDriveList {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n JobResponse apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n JobResponse apply(Context context);\n }", "public RequestUpdateCancha() {\n }", "private void buildRpcRequest(BindingOperation bindingOperation, XmlCursor cursor, SampleXmlUtility xmlGenerator, List<String> parametersToBeRemoved, List<Parameter> parametersToTry, String serviceName)\r\n throws Exception {\n String ns = WsdlUtils.getSoapBodyNamespace(bindingOperation.getBindingInput().getExtensibilityElements());\r\n if (ns == null) {\r\n ns = WsdlUtils.getTargetNamespace(wsdlContext.getDefinition());\r\n log.warn(\"missing namespace on soapbind:body for RPC request, using targetNamespace instead (BP violation)\");\r\n }\r\n cursor.beginElement(new QName(ns, bindingOperation.getName()));\r\n if (xmlGenerator.isSoapEnc()) {\r\n cursor.insertAttributeWithValue(new QName(wsdlContext.getSoapVersion().getEnvelopeNamespace(),\r\n \"encodingStyle\"), wsdlContext.getSoapVersion().getEncodingNamespace());\r\n }\r\n Part[] inputParts = WsdlUtils.getInputParts(bindingOperation);\r\n for (int i = 0; i < inputParts.length; i++) {\r\n Part part = inputParts[i];\r\n if (WsdlUtils.isAttachmentInputPart(part, bindingOperation)) {\r\n if (iface.getSettings().getBoolean(WsdlSettings.ATTACHMENT_PARTS)) {\r\n XmlCursor c = cursor.newCursor();\r\n c.toLastChild();\r\n c.beginElement(part.getName());\r\n c.insertAttributeWithValue(\"href\", part.getName() + \"Attachment\");\r\n c.dispose();\r\n }\r\n } else {\r\n if (wsdlContext.hasSchemaTypes()) {\r\n QName typeName = part.getTypeName();\r\n if (typeName != null) {\r\n SchemaType type = wsdlContext.getInterfaceDefinition().findType(typeName);\r\n if (type != null) {\r\n XmlCursor c = cursor.newCursor();\r\n c.toLastChild();\r\n c.insertElement(part.getName());\r\n c.toPrevToken();\r\n xmlGenerator.createSampleForType(type, c, null, null, null, parametersToBeRemoved, parametersToTry, serviceName, null);\r\n c.dispose();\r\n } else {\r\n log.warn(\"Failed to find type [\" + typeName + \"]\");\r\n }\r\n } else {\r\n SchemaGlobalElement element = wsdlContext.getSchemaTypeLoader().findElement(part.getElementName());\r\n if (element != null) {\r\n XmlCursor c = cursor.newCursor();\r\n c.toLastChild();\r\n c.insertElement(element.getName());\r\n c.toPrevToken();\r\n xmlGenerator.createSampleForType(element.getType(), c, null, null, null, parametersToBeRemoved, parametersToTry, serviceName, null);\r\n c.dispose();\r\n } else {\r\n log.warn(\"Failed to find element [\" + part.getElementName() + \"]\");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "public void initContract(ContractInfo contractInfo)\n {\n this.contractInfo = contractInfo;\n }", "interface Update extends UpdateStages.WithLevel, UpdateStages.WithNotes, UpdateStages.WithOwners {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n ManagementLockObject apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n ManagementLockObject apply(Context context);\n }", "@Override\n\tpublic ResponseInfo addPurchasecontract(Map<String, Object> map) {\n\t\tResponseInfo info = new ResponseInfo();\n\t\tint result = 0;\n\t\tint upResult = 0;\n\t\tint staratCount = 0;\n\t\tString flag = map.get(\"flag\").toString();\n\t\tString purchaseorderinfoMapString = map.get(\"purchaseorderinfoMap\").toString();\n\t\tMap<String,Object> purchaseorder= JSON.parseObject(purchaseorderinfoMapString);\n\t\tMap <String,Object> updateApplySignMap = new HashMap<>();\n\t\tif(!purchaseorder.get(\"contractState\").toString().equals(\"3\")) {\n\t\t\tpurchaseorder.put(\"cancellationCause\", \"\");\n\t\t}\n\t\tif(!flag.equals(\"1\")) {\n\t\t\tresult = purchaseDao.addPurchasecontract(purchaseorder);\n\t\t}else {\n\t\t\tresult = purchaseDao.updatePurchasecontractById(purchaseorder);\n\t\t}\n\t\tif(result>0) {\n\t\t\tif(map.get(\"fileName\")!=null && map.get(\"fileName\") != \"\") {\n\t\t\t\tMap<String,Object> upLoadMap = new HashMap<>();\n\t\t\t\tupLoadMap.put(\"serialID\",map.get(\"contractNumber\"));\n\t\t\t\tupLoadMap.put(\"fileName\",map.get(\"fileName\"));\n\t\t\t\tupLoadMap.put(\"fileRoute\",map.get(\"uploadAddress\"));\n\t\t\t\tupResult = purchaseDao.adduploadfile(upLoadMap);\n\t\t\t\tif(!(upResult>0)) {\n\t\t\t\t\tinfo.setMessage(\"操作失败002\");\n\t\t\t\t\tinfo.setCode(\"error\");\n\t\t\t\t\tTransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t\t\t\treturn info;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString purchaseorderinfoListMap = map.get(\"purchaseorderinfoListMap\").toString();\n\t\t\tList<Object> list =JSON.parseArray(purchaseorderinfoListMap);\n\t\t\tfor (Object object : list){\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tMap <String,Object> ret = (Map<String, Object>) object;//取出list里面的值转为map\n\t\t\t\tret.put(\"purchaseOrderId\", purchaseorder.get(\"Id\"));\n\t\t\t\tupdateApplySignMap.put(\"id\", Integer.parseInt(ret.get(\"purchaseRequisitionId\").toString()));\n\t\t\t\tif(!flag.equals(\"1\")) {\n\t\t\t\t\tinfo = this.addPurchaseorderinfo(ret);\n\t\t\t\t\tif(info.getCode().equals(\"success\")) {\n\t\t\t\t\t\tupdateApplySignMap.put(\"applySign\",1);\n\t\t\t\t\t\tinfo = this.updatePurchaserequisitionIsApplySign(updateApplySignMap);\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tMap<String,Object> orderinfoId = new HashMap<>();\n\t\t\t\t\torderinfoId.put(\"id\", purchaseorder.get(\"Id\"));\n\t\t\t\t\t//麻烦死了\n\t\t\t\t\tList<Map<String,Object>> PurchaserequisitionByPurchasecontractIdList = purchaseDao.getPurchaserequisitionByPurchasecontractId(orderinfoId);\n\t\t\t\t\tif(staratCount == 0) {\n\t\t\t\t\t\tfor (int i = 0; i < PurchaserequisitionByPurchasecontractIdList.size(); i++) {\n\t\t\t\t\t\t\tPurchaserequisitionByPurchasecontractIdList.get(i).put(\"applySign\", 0);\n\t\t\t\t\t\t\tresult = purchaseDao.updatePurchaserequisitionIsApplySign(PurchaserequisitionByPurchasecontractIdList.get(i));\n\t\t\t\t\t\t\tif(result<0) {\n\t\t\t\t\t\t\t\tinfo.setMessage(\"操作失败\");\n\t\t\t\t\t\t\t\tinfo.setCode(\"error\");\n\t\t\t\t\t\t\t\tTransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t\t\t\t\t\t\treturn info;\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\tList<Map <String,Object>> PurchaseorderinfoList = purchaseDao.getPurchaseorderinfoById(orderinfoId);\n\t\t\t\t\tboolean isHave = false;\n\t\t\t\t\tfor (int i = 0; i < PurchaseorderinfoList.size(); i++) {\n\t\t\t\t\t\tif(PurchaseorderinfoList.get(i).get(\"serialID\").toString().equals(ret.get(\"serialID\").toString())) {\n\t\t\t\t\t\t\tisHave = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tisHave = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(isHave) {\n\t\t\t\t\t\tinfo = this.updatePurchaseorderinfoById(ret);\n\t\t\t\t\t\tif(info.getCode().equals(\"success\")) {\n\t\t\t\t\t\t\tupdateApplySignMap.put(\"applySign\",1);\n\t\t\t\t\t\t\tinfo = this.updatePurchaserequisitionIsApplySign(updateApplySignMap);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tinfo = this.addPurchaseorderinfo(ret);\n\t\t\t\t\t\tif(info.getCode().equals(\"success\")) {\n\t\t\t\t\t\t\tupdateApplySignMap.put(\"applySign\",1);\n\t\t\t\t\t\t\tinfo = this.updatePurchaserequisitionIsApplySign(updateApplySignMap);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tstaratCount += 1;\n\t\t\t\t}\n\t\t\t\tif(info.getCode().equals(\"error\")) {\n\t\t\t\t\tinfo.setMessage(\"操作失败003\");\n\t\t\t\t\tinfo.setCode(\"error\");\n\t\t\t\t\tTransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t\t\t\treturn info;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tinfo.setMessage(\"操作失败001\");\n\t\t\tinfo.setCode(\"error\");\n\t\t\tTransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t}\n\t\treturn info;\n\t}", "public ContractRequest() {\n\t\tsuper(PREFERENCES_NAMES);\n\t}", "@Override\n\tpublic void update(BatimentoCardiaco t, String[] params) {\n\t\t\n\t}", "public void updateAttributes( String qualificationId, Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"prototype.updateAttributes\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);\n if(context != null){\n try {\n Method method = qualificationRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(qualificationRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //qualificationRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Qualification qualification = qualificationRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = qualification.getClass().getMethod(\"save__db\");\n method.invoke(qualification);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(qualification);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }", "public Builder clearContract() {\n \n contract_ = getDefaultInstance().getContract();\n onChanged();\n return this;\n }", "public Builder clearContract() {\n \n contract_ = getDefaultInstance().getContract();\n onChanged();\n return this;\n }", "public Builder clearContract() {\n \n contract_ = getDefaultInstance().getContract();\n onChanged();\n return this;\n }", "public Builder clearContract() {\n \n contract_ = getDefaultInstance().getContract();\n onChanged();\n return this;\n }", "interface WithState {\n /**\n * Specifies the state property: If specified, the value must be Shipping, which tells the Import/Export\n * service that the package for the job has been shipped. The ReturnAddress and DeliveryPackage properties\n * must have been set either in this request or in a previous request, otherwise the request will fail. .\n *\n * @param state If specified, the value must be Shipping, which tells the Import/Export service that the\n * package for the job has been shipped. The ReturnAddress and DeliveryPackage properties must have been\n * set either in this request or in a previous request, otherwise the request will fail.\n * @return the next definition stage.\n */\n Update withState(String state);\n }", "public ContractMethod() {\n }", "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithKind,\n UpdateStages.WithSku,\n UpdateStages.WithIdentity,\n UpdateStages.WithProperties {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Account apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Account apply(Context context);\n }", "public MRequestUpdate( MRequest parent ) {\n super( parent.getCtx(),0,parent.get_TrxName());\n setClientOrg( parent );\n setR_Request_ID( parent.getR_Request_ID());\n set_ValueNoCheck( \"Created\",parent.getUpdated());\n set_ValueNoCheck( \"CreatedBy\",new Integer( parent.getUpdatedBy()));\n set_ValueNoCheck( \"Updated\",parent.getUpdated());\n set_ValueNoCheck( \"UpdatedBy\",new Integer( parent.getUpdatedBy()));\n\n //\n\n setStartTime( parent.getStartTime());\n setEndTime( parent.getEndTime());\n setResult( parent.getResult());\n setQtySpent( parent.getQtySpent());\n setQtyInvoiced( parent.getQtyInvoiced());\n setM_ProductSpent_ID( parent.getM_ProductSpent_ID());\n setConfidentialTypeEntry( parent.getConfidentialTypeEntry());\n }", "Update createUpdate();", "private Builder(com.autodesk.ws.avro.Call other) {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n if (isValidValue(fields()[0], other.responding_product_id)) {\n this.responding_product_id = (java.lang.CharSequence) data().deepCopy(fields()[0].schema(), other.responding_product_id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.requesting_product_id)) {\n this.requesting_product_id = (java.lang.CharSequence) data().deepCopy(fields()[1].schema(), other.requesting_product_id);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.module)) {\n this.module = (java.lang.CharSequence) data().deepCopy(fields()[2].schema(), other.module);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.operation)) {\n this.operation = (java.lang.CharSequence) data().deepCopy(fields()[3].schema(), other.operation);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.suboperation)) {\n this.suboperation = (java.lang.CharSequence) data().deepCopy(fields()[4].schema(), other.suboperation);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.target_object_uri)) {\n this.target_object_uri = (java.lang.CharSequence) data().deepCopy(fields()[5].schema(), other.target_object_uri);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.object_size)) {\n this.object_size = (java.lang.Long) data().deepCopy(fields()[6].schema(), other.object_size);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.execution_time)) {\n this.execution_time = (java.lang.Integer) data().deepCopy(fields()[7].schema(), other.execution_time);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.status)) {\n this.status = (java.lang.CharSequence) data().deepCopy(fields()[8].schema(), other.status);\n fieldSetFlags()[8] = true;\n }\n }", "public interface EditUserInfoContract {\n\n interface View extends BaseView<Presenter> {\n boolean isActive();\n\n void showInfo(ApiService.PersonInfo personInfo);\n\n void showError(String error);\n\n void showModifySuccess();\n }\n\n interface Presenter extends BasePresenter {\n void modifyInfo(String nickName,\n String signature,\n String sex,\n String telephone,\n String faculty,\n String specialty,\n String grade,\n String dormitory);\n }\n}", "interface Update extends Appliable<JobTargetGroup>, UpdateStages.WithMembers {\n }", "public com.google.common.util.concurrent.ListenableFuture<yandex.cloud.api.operation.OperationOuterClass.Operation> updateAccessBindings(\n yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getUpdateAccessBindingsMethod(), getCallOptions()), request);\n }", "public static void updateContractor(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects\" +\r\n \" SET contract_name = ?, contract_tel = ?, contract_email = ?, contract_address = ?\" +\r\n \"WHERE project_num = \" +projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, NewProject.contract_name);\r\n pstmt.setString(2, NewProject.contract_tel);\r\n pstmt.setString(3, NewProject.contract_email);\r\n pstmt.setString(4, NewProject.contract_address);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "interface Update extends Appliable<Secret>, UpdateStages.WithProperties, UpdateStages.WithTags {\n }", "public interface RequestContract {\n\n public void save_request(String note);\n\n public void save_request();\n}", "private void update(RequestInfo requestInfo) throws DefectException {\r\n\t\tlog.info(\"Start - update\");\r\n\t\tcreateInstance();\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to update, request information is missing\");\r\n\t\t}\r\n try{\r\n\r\n \tString ref = requestInfo.getRefField();\r\n\r\n \t//Update\r\n \tJsonObject updateEntry = convertMapToJson(requestInfo.getEntry().get(RallyConstants.UPDATE));\t \r\n \tUpdateRequest updateRequest = new UpdateRequest(ref, updateEntry);\r\n \tUpdateResponse updateResponse = null;\r\n\r\n \ttry {\r\n \t \t\t\tupdateResponse = restApi.update(updateRequest);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"failed to update, message : \" + e.toString() + \"RequestInfo -\" + requestInfo);\r\n\t \tthrow new DefectException(\"failed to update, message : \" + e.toString());\r\n\t\t\t}\r\n\r\n if (updateResponse.wasSuccessful()) {\r\n \tlog.info(String.format(\"Updated %s\", updateResponse.getObject().get(RallyConstants._REF).getAsString())); \r\n } else {\r\n List<String> lstResult = new ArrayList<String>();\r\n for (String err : updateResponse.getErrors()) {\r\n System.err.println(\"\\t\" + err);\r\n lstResult.add(err);\r\n }\r\n log.error(\"Error in updating : \" + lstResult);\r\n throw new DefectException(\"Error in updating : \" + lstResult);\r\n }\r\n } finally {\r\n \tcloseDefect();\r\n \tlog.info(\"End - update\");\r\n }\r\n \t}", "public interface QuizzesListContract extends BaseContract {\n}", "private MsgMigrateContractResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private MsgExecuteContractResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithSku,\n UpdateStages.WithOsType,\n UpdateStages.WithDiskSizeGB,\n UpdateStages.WithEncryptionSettingsCollection,\n UpdateStages.WithEncryption {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Snapshot apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Snapshot apply(Context context);\n }", "Account.Update update();", "interface Update extends Appliable<Job>, Resource.UpdateWithTags<Update>, UpdateStages.WithCaffe2Settings, UpdateStages.WithCaffeSettings, UpdateStages.WithChainerSettings, UpdateStages.WithCntkSettings, UpdateStages.WithConstraints, UpdateStages.WithContainerSettings, UpdateStages.WithCustomToolkitSettings, UpdateStages.WithEnvironmentVariables, UpdateStages.WithExperimentName, UpdateStages.WithInputDirectories, UpdateStages.WithJobPreparation, UpdateStages.WithOutputDirectories, UpdateStages.WithPriority, UpdateStages.WithTensorFlowSettings {\n }", "public Contracts() {\r\n super();\r\n \r\n }", "public Ordercl askUpdate (Ordercl toUpdate){\n Double value = askDouble(\"Set a new order value: \");\n System.out.println(\"Set a new order status: \");\n String status = in.nextLine();\n Integer client_id = askInt(\"Set a new order receiver (client_id) \");\n \n toUpdate.setOrd_value(value);\n toUpdate.setStatus(status);\n toUpdate.setClient(client_id);\n \n return toUpdate;\n }", "private RequestUpdateAction(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }", "public interface EditProfileContract {\n\n interface EditProfilePresenter extends BasePresenter {\n\n void fetchUserDetails();\n\n void handleNecessaryDataSave();\n\n void updateInputById(int id, String content);\n\n void updateEmail(String email);\n\n void updateMobile(String fullNumber);\n\n void handleProfileImageChangeRequest();\n\n void handleProfileImageRemoved();\n\n void handleClickProfileImageRequest();\n\n void handleExitOnUnsavedChanges();\n\n void onDialogNegative();\n\n void onDialogPositive();\n }\n\n interface EditProfileView extends BaseView<EditProfilePresenter> {\n\n void showDefaultImageByUsername(String fullName);\n\n void showUsername(String username);\n\n void showEmail(String email);\n\n void showVpa(String vpa);\n\n void showMobileNumber(String mobileNumber);\n\n void removeProfileImage();\n\n void changeProfileImage();\n\n void clickProfileImage();\n\n void onUpdateEmailError(String message);\n\n void onUpdateMobileError(String message);\n\n void showToast(String message);\n\n void showFab();\n\n void hideFab();\n\n void hideKeyboard();\n\n void startProgressBar();\n\n void stopProgressBar();\n\n void showDiscardChangesDialog();\n\n void closeActivity();\n }\n}", "private UpdateFriendRequest(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "public interface EditAddressContract {\n interface View extends BaseView<Presenter> {\n void startRegisterSuccessActivity();\n\n void startDialogLibraryCapture();\n\n void showError();\n\n void startCamera();\n\n void startGallery();\n }\n\n interface Presenter extends BasePresenter {\n\n void editProfile(Bitmap avatar, String fullName, String address1, String address2, String email);\n }\n}", "@Update({\r\n \"update cwv_game_contract_address\",\r\n \"set contract_address = #{contractAddress,jdbcType=VARCHAR},\",\r\n \"contract_type = #{contractType,jdbcType=VARCHAR},\",\r\n \"contract_state = #{contractState,jdbcType=CHAR},\",\r\n \"contract_num = #{contractNum,jdbcType=INTEGER},\",\r\n \"chain_status = #{chainStatus,jdbcType=TINYINT},\",\r\n \"chain_trans_hash = #{chainTransHash,jdbcType=VARCHAR},\",\r\n \"create_time = #{createTime,jdbcType=TIMESTAMP}\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n int updateByPrimaryKey(CWVGameContractAddress record);", "private BinStatusUpdate buildNewStatus() {\n return BinStatusUpdate.newBuilder()\n .setAmount(StuffAmount.newBuilder().setStuffAmount(bin.getStuffAmount()).build())\n .setStuff(Stuff.newBuilder().setStuffName(bin.getStuffName()).build())\n .setMaxAmount(bin.MAX_AMOUNT)\n .build();\n }", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "public String assembleUpdate(String tableName, List<String> colList,\n\t\t\tList<String> valList, String whereClauseStr) {\n\t\tStringBuilder buffer = new StringBuilder();\n\t\tbuffer.append(\"update \");\n\t\tbuffer.append(tableName + \" set \");\n\t\tfor (int i = 0; i < colList.size(); i++) {\n\t\t\tbuffer.append(colList.get(i) + \" = \");\n\t\t\tbuffer.append(this.get_Value_In_Correct_Format(tableName,\n\t\t\t\t\tcolList.get(i), valList.get(i))\n\t\t\t\t\t+ \",\");\n\t\t}\n\t\tbuffer.deleteCharAt(buffer.lastIndexOf(\",\"));\n\t\tbuffer.append(\" where \" + whereClauseStr + \";\"); // with the \";\"\n\t\tDebug.println(\"Newly generated update is \" + buffer.toString());\n\t\treturn buffer.toString();\n\t}", "interface FullCaseUpdated {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT_UPDATE)\n .numberField(NUMBER_UPDATE)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "LicenseUpdate create(LicenseUpdate newLicenseUpdate);", "interface UpdateProfileContract {\n /**\n * View.\n */\n interface ViewModel extends BaseViewModel<Presenter> {\n void onGetUserProfile(User user);\n\n void onUpdateProfileSuccess();\n\n void onUpdateProfileError(BaseException throwable);\n\n void setAvatar(String image);\n\n void onShowProgressDialog();\n\n void onHideProgressDialog();\n }\n\n /**\n * Presenter.\n */\n interface Presenter extends BasePresenter {\n void updateProfile(UpdateProfileRequest updateProfileRequest, String name,\n String chatworkId, String description);\n\n void getUserProfile();\n\n boolean validateDataInputChange(String userName, String chatwordId, String description);\n }\n}", "public interface WithDrawalContract extends BaseContract {\n void getWithDrawData(WithDrawDataBean results);\n void withDrawSuccess();\n}", "@Override\n\tpublic ResponseInfo ZuoFeiPurchasecontract(Map<String, Object> map) {\n\t\tResponseInfo info = new ResponseInfo();\n\t\tint result = purchaseDao.ZuoFeiPurchasecontract(map);\n\t\tif(result > 0) {\n\t\t\tList<Map<String,Object>> PurchaserequisitionList = purchaseDao.getPurchaserequisitionByPurchasecontractId(map);\n\t\t\tfor (int i = 0; i < PurchaserequisitionList.size(); i++) {\n\t\t\t\tPurchaserequisitionList.get(i).put(\"applySign\", 0);\n\t\t\t\tresult = purchaseDao.updatePurchaserequisitionIsApplySign(PurchaserequisitionList.get(i));\n\t\t\t\tif(result<0) {\n\t\t\t\t\tinfo.setMessage(\"操作失败\");\n\t\t\t\t\tinfo.setCode(\"error\");\n\t\t\t\t\tTransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tinfo.setMessage(\"操作成功\");\n\t\t\t\tinfo.setCode(\"success\");\n\t\t\t}else {\n\t\t\t\tinfo.setMessage(\"操作失败\");\n\t\t\t\tinfo.setCode(\"error\");\n\t\t}\n\t\treturn info;\n\t}", "public Contract() {\n // initialise instance variables\n generateContractId();\n }", "void setContractAddress(String contractAddress) {\n this.contractAddress = contractAddress;\n if(this.getNextContractMethods() != null && this.getNextContractMethods().size() != 0) {\n this.getNextContractMethods().stream().forEach(contractMethod -> {\n contractMethod.contractAddress = contractAddress;\n });\n }\n }", "public interface CoinService {\n void triggerUpdate(List<String> symbols, WidgetUpdator widgetUpdator);\n\n void triggerListLoading(Context context, BrowserUpdator currencyBrowserUpdator);\n}", "public ContractMethod(Caver caver, String type, String name, List<ContractIOType> inputs, List<ContractIOType> outputs, String signature, String contractAddress) {\n this.caver = caver;\n this.type = type;\n this.name = name;\n this.inputs = inputs;\n this.outputs = outputs;\n this.signature = signature;\n this.contractAddress = contractAddress;\n }", "@Override\n public Void call() throws Exception {\n ContractDetailFragment.this.contract = contract;\n verifyIdentity = contract.getVerifyIdentity().get();\n state = contract.getState().get();\n seller = contract.getSeller().get();\n\n //check if the local content matches the remote content hash (used for light contracts only)\n final boolean contentVerified = contract.verifyContent().get();\n\n final String description = contract.getDescription().get();\n final String title = contract.getTitle().get();\n final List<String> imageSignatures = contract.getImageSignatures().get();\n\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n if(verifyIdentity && contract.getUserProfile().getVCard() == null)\n {\n //hide interaction view and display notification if identity verification is required\n contractInteractionView.setVisibility(View.GONE);\n appContext.getMessageService().showMessage(\"You must first scan the user profile of the other party to interact with this contract!\");\n }\n\n if(!contentVerified)\n {\n //notify the user that the local and remote content do not match (only for light contracts)\n //This can happen when the user scanned the contract by QR-Code and the contract contains images...\n appContext.getMessageService().showMessage(\"The content for this local contract could not be verified.\\n Please try to import the contract again.\");\n }\n\n //create a bitmap image that contains a QR code with all the details of the contract\n Bitmap bm = QRCode.from(contract.toJson()).withSize(250, 250).bitmap();\n qrImageView.setImageBitmap(bm);\n\n //init text views\n stateView.setText(state.toString());\n titleView.setText(title);\n descriptionView.setText(description);\n addressView.setText(contract.getContractAddress());\n\n //add images to container\n imageContainer.removeAllViews();\n images.clear();\n\n if(imageSignatures != null)\n {\n for(String sig : imageSignatures)\n {\n addImage(contract.getImages().get(sig));\n }\n }\n }\n });\n\n return null;\n }", "void onAddContract(String contractAddress, ContractType type);", "public interface IAccessPackageCatalogReferenceRequest extends IHttpRequest {\n\n void delete(final ICallback<? super AccessPackageCatalog> callback);\n\n AccessPackageCatalog delete() throws ClientException;\n\n /**\n * Sets the select clause for the request\n *\n * @param value the select clause\n * @return the updated request\n */\n IAccessPackageCatalogReferenceRequest select(final String value);\n\n /**\n * Sets the expand clause for the request\n *\n * @param value the expand clause\n * @return the updated request\n */\n IAccessPackageCatalogReferenceRequest expand(final String value);\n\n /**\n * Puts the AccessPackageCatalog\n *\n * @param srcAccessPackageCatalog the AccessPackageCatalog to PUT\n * @param callback the callback to be called after success or failure\n */\n void put(AccessPackageCatalog srcAccessPackageCatalog, final ICallback<? super AccessPackageCatalog> callback);\n\n /**\n * Puts the AccessPackageCatalog\n *\n * @param srcAccessPackageCatalog the AccessPackageCatalog to PUT\n * @return the AccessPackageCatalog\n * @throws ClientException an exception occurs if there was an error while the request was sent\n */\n AccessPackageCatalog put(AccessPackageCatalog srcAccessPackageCatalog) throws ClientException;\n}", "public interface WithHoldOrderContract {\r\n\r\n ResponseData resendWithholdOrder();\r\n \r\n}", "public Request <String, ArrayList<Connection>> buildHttpContactRequest ()\n\t{\n\t\tHttpBuilder<String, ArrayList<Connection>> builder = new HttpBuilder<String, ArrayList<Connection>>(null, getApiKey());\n\t\t\n\t\tif (this.getAuthInfo() != null)\n\t\t\tbuilder.setAuthInfo(this.getAuthInfo().getBytes());\n\t\t\n\t\tif (this.getPath() != null)\n\t\t\tbuilder.setPath(this.getPath());\n\t\t\n\t\treturn new HttpContactRequest(builder);\n\t}", "@Override\n public List<ActionBuilder> updateAction(List<ActionBuilder> actions, Map<String, Object> params, Integer order,\n NetworkElements netElements, PolicyPair policyPair, FlowMap flowMap, OfContext ctx, Direction direction) {\n String chainName = null;\n if (params != null) {\n LOG.debug(\"updateAction: Searching for named chain\");\n for (String name : params.keySet()) {\n if (name instanceof String) {\n if (name.equals(SFC_CHAIN_NAME)) {\n chainName = (String) params.get(name);\n if (chainName == null) {\n LOG.error(\"updateAction: Chain name was null\");\n return null;\n }\n }\n }\n }\n } else {\n LOG.error(\"updateAction: Parameters null for chain action\");\n return null;\n }\n\n if (chainName == null) {\n LOG.error(\"updateAction: Chain name was null\");\n return null;\n }\n\n /*\n * If path is symmetrical then there are two RSPs.\n * if srcEp is in consumer EPG use \"rspName\"\n * else srcEp is in provider EPG, \"rspName-Reverse\".\n */\n ServiceFunctionPath sfcPath = getSfcPath(chainName);\n if (sfcPath == null || sfcPath.getName() == null) {\n LOG.error(\"updateAction: SFC Path was invalid. Either null or name was null.\", sfcPath);\n return null;\n }\n // Find existing RSP based on following naming convention, else create it.\n String rspName = sfcPath.getName() + \"-gbp-rsp\";\n ReadOnlyTransaction rTx = ctx.getDataBroker().newReadOnlyTransaction();\n RenderedServicePath renderedServicePath;\n RenderedServicePath rsp = getRspByName(rspName, rTx);\n if (rsp == null) {\n renderedServicePath = createRsp(sfcPath, rspName);\n if (renderedServicePath != null) {\n LOG.info(\"updateAction: Could not find RSP {} for Chain {}, created.\", rspName, chainName);\n } else {\n LOG.error(\"updateAction: Could not create RSP {} for Chain {}\", rspName, chainName);\n return null;\n }\n } else {\n renderedServicePath = rsp;\n }\n\n NodeId tunnelDestNodeId;\n if (netElements.getDstNodeId().equals(netElements.getLocalNodeId())) {\n // Return destination is here\n tunnelDestNodeId = netElements.getLocalNodeId();\n } else {\n tunnelDestNodeId = netElements.getDstNodeId();\n }\n\n Long returnVnid = (long) netElements.getSrcEpOrds().getTunnelId();\n\n try {\n if (sfcPath.isSymmetric() && direction.equals(Direction.Out)){\n rspName = rspName + \"-Reverse\";\n rsp = getRspByName(rspName, rTx);\n if (rsp == null) {\n LOG.info(\"updateAction: Could not find Reverse RSP {} for Chain {}\", rspName, chainName);\n renderedServicePath = createSymmetricRsp(renderedServicePath);\n if (renderedServicePath == null) {\n LOG.error(\"updateAction: Could not create RSP {} for Chain {}\", rspName, chainName);\n return null;\n }\n } else {\n renderedServicePath = rsp;\n }\n if(isSrcEpConsumer(netElements.getSrcEp(), policyPair.getConsumerEpgId(), ctx)) {\n if (netElements.getSrcNodeId().equals(netElements.getLocalNodeId())) {\n // Return destination is here\n tunnelDestNodeId = netElements.getLocalNodeId();\n } else {\n tunnelDestNodeId = netElements.getSrcNodeId();\n }\n returnVnid = (long) netElements.getDstEpOrds().getTunnelId();\n }\n }\n } catch (Exception e) {\n LOG.error(\"updateAction: Attemping to determine if srcEp {} was consumer.\", netElements.getSrcEp().getKey(), e);\n return null;\n }\n\n RenderedServicePathFirstHop rspFirstHop = SfcProviderRenderedPathAPI.readRenderedServicePathFirstHop(rspName);\n if (!isValidRspFirstHop(rspFirstHop)) {\n // Errors logged in method.\n return null;\n }\n\n IpAddress tunnelDest = ctx.getSwitchManager().getTunnelIP(tunnelDestNodeId, TunnelTypeVxlanGpe.class);\n if (tunnelDest == null || tunnelDest.getIpv4Address() == null) {\n LOG.error(\"updateAction: Invalid tunnelDest for NodeId: {}\", tunnelDestNodeId);\n return null;\n }\n\n RenderedServicePathHop firstRspHop = renderedServicePath.getRenderedServicePathHop().get(0);\n RenderedServicePathHop lastRspHop = Iterables.getLast(renderedServicePath.getRenderedServicePathHop());\n SfcNshHeader sfcNshHeader = new SfcNshHeaderBuilder().setNshTunIpDst(rspFirstHop.getIp().getIpv4Address())\n .setNshTunUdpPort(rspFirstHop.getPort())\n .setNshNsiToChain(firstRspHop.getServiceIndex())\n .setNshNspToChain(renderedServicePath.getPathId())\n .setNshNsiFromChain((short) (lastRspHop.getServiceIndex().intValue() - 1))\n .setNshNspFromChain(renderedServicePath.getPathId())\n .setNshMetaC1(SfcNshHeader.convertIpAddressToLong(tunnelDest.getIpv4Address()))\n .setNshMetaC2(returnVnid)\n .build();\n\n // Cannot set all actions here. Some actions are destination specific, and we don't know\n // a destination is to be\n // chained until we reach this point. Need to write match/action in External Table for\n // chained packets.\n actions = addActionBuilder(actions, nxSetNsiAction(sfcNshHeader.getNshNsiToChain()), order);\n actions = addActionBuilder(actions, nxSetNspAction(sfcNshHeader.getNshNspToChain()), order);\n boolean swap=false;\n if ((direction.equals(Direction.Out) && !(isSrcEpConsumer(netElements.getSrcEp(), policyPair.getConsumerEpgId(), ctx)))\n || (direction.equals(Direction.In) && (isSrcEpConsumer(netElements.getSrcEp(), policyPair.getConsumerEpgId(), ctx)))){\n swap = true;\n }\n createChainTunnelFlows(sfcNshHeader, netElements, flowMap, ctx, swap);\n return actions;\n }", "public HrJBorrowcontract update(HrJBorrowcontract entity);", "public String compileSolidity(String contract) {\n String code = \"\";\n List<BlockchainProperties.BcInfo> bcInfos = blockchainProperties.getBcInfos();\n BlockchainProperties.BcInfo bcInfo = bcInfos.get(0);\n logger.info(\"contract:\" + contract);\n String[] methodParams = {contract};\n\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"jsonrpc\", \"2.0\");\n params.put(\"method\", \"eth_compileSolidity\");\n params.put(\"params\", methodParams);\n params.put(\"id\", \"1\");\n\n try {\n RestTemplate restTemplate = new RestTemplate();\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(org.springframework.http.MediaType.APPLICATION_JSON);\n HttpEntity<Map<String, Object>> request = new HttpEntity<Map<String, Object>>(params, headers);\n ResponseEntity<String> compileResult = restTemplate.exchange(bcInfo.getClientUrl(), HttpMethod.POST, request, String.class);\n logger.info(String.valueOf(compileResult));\n logger.info(String.valueOf(compileResult.getBody()));\n String compileResultBody = compileResult.getBody();\n if (compileResult.getStatusCode() == HttpStatus.OK) {\n String tempResult1 = compileResultBody.substring(compileResultBody.indexOf(\"\\\"code\\\":\\\"\") + 8);\n String tempResult2 = tempResult1.split(\"\\\",\\\"\")[0];\n code = tempResult2;\n }\n\n } catch (Throwable e) {\n e.printStackTrace();\n }\n\n return code;\n }", "@JsonCreator(mode = JsonCreator.Mode.DEFAULT)\n private UpdateTransaction() {\n this.sourceId = Optional.empty();\n this.type = Optional.empty();\n this.description = Optional.empty();\n this.balance = Optional.empty();\n this.inputDate = Optional.empty();\n }", "@Async(value = \"asyncExecutor\")\r\n public void saveMethodFromContract(TbContract tbContract) {\r\n Instant startTime = Instant.now();\r\n log.info(\"start saveMethodFromContract startTime:{}\", startTime.toEpochMilli());\r\n \r\n TbChain tbChain = tbChainMapper.selectByPrimaryKey(tbContract.getChainId());\r\n if (ObjectUtils.isEmpty(tbChain)) {\r\n return;\r\n }\r\n List<Method> methodList;\r\n try {\r\n methodList = new ArrayList<>(Web3Tools.\r\n getMethodFromAbi(tbContract.getContractAbi(), cryptoSuiteMap.get((int)tbChain.getChainType())));\r\n } catch (IOException e) {\r\n log.error(\"saveMethod failed:[]\", e);\r\n throw new BaseException(ConstantCode.ABI_PARSE_ERROR);\r\n }\r\n\r\n TbMethod tbMethod = new TbMethod();\r\n BeanUtils.copyProperties(tbContract, tbMethod);\r\n // save each method\r\n for (Method method : methodList) {\r\n BeanUtils.copyProperties(method, tbMethod);\r\n tbMethodMapper.replaceInto(tbMethod);\r\n }\r\n \r\n log.info(\"end saveMethodFromContract useTime:{}\",\r\n Duration.between(startTime, Instant.now()).toMillis());\r\n }", "public ApiReleaseContractInner() {\n }", "public boolean modifyContract(Contract contract) {\n\t\treturn contractdao.modifyContract(contract);\n\t}" ]
[ "0.6531194", "0.6008839", "0.56700534", "0.54316884", "0.54316884", "0.54316884", "0.54316884", "0.54201275", "0.5399288", "0.538654", "0.5305781", "0.5303065", "0.53021437", "0.51907086", "0.51511353", "0.5100067", "0.5100067", "0.5100067", "0.5100067", "0.5084082", "0.5063778", "0.5048425", "0.504577", "0.5026516", "0.5016672", "0.50020814", "0.50008136", "0.49803722", "0.49663705", "0.49640682", "0.4962586", "0.49457303", "0.49431095", "0.49187344", "0.4917073", "0.49126297", "0.48930565", "0.48915994", "0.48905125", "0.48903146", "0.48894858", "0.48781627", "0.48739418", "0.48730877", "0.48730877", "0.48730877", "0.48730877", "0.48566258", "0.48564053", "0.48558247", "0.48546517", "0.4829936", "0.4828501", "0.48222023", "0.48221013", "0.48184618", "0.480472", "0.48032257", "0.4802592", "0.480128", "0.4797981", "0.47959438", "0.47939876", "0.47833782", "0.47830975", "0.47820616", "0.4780688", "0.47674754", "0.47596565", "0.47549945", "0.4742692", "0.4741084", "0.47406688", "0.47355527", "0.47355413", "0.47352725", "0.47352725", "0.47352725", "0.47352725", "0.47342628", "0.4732123", "0.47305816", "0.47300956", "0.4725544", "0.47234932", "0.47223842", "0.4716994", "0.47125354", "0.47065702", "0.47063497", "0.4702678", "0.47007883", "0.4696607", "0.46889856", "0.46788526", "0.46704227", "0.46653402", "0.465961", "0.4649426", "0.46490175", "0.46423924" ]
0.0
-1
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling updateContract(Async)"); } return updateContractCall(generalContractId, body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call getOneValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getOne(Async)\");\n }\n\n return getOneCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchContract(Async)\");\n }\n\n return patchContractCall(generalContractId, body);\n }", "public TbContract verifyContractIdExist(int chainId, int contractId, int groupId) {\n ContractParam param = new ContractParam(chainId, contractId, groupId);\n TbContract contract = queryContract(param);\n if (Objects.isNull(contract)) {\n log.info(\"contractId is invalid. contractId:{}\", contractId);\n throw new BaseException(ConstantCode.INVALID_CONTRACT_ID);\n }\n return contract;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling revokeAccrual(Async)\");\n }\n\n return revokeAccrualCall(generalContractId);\n }", "public void setContractId(int value) {\n this.contractId = value;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getIframeOptionsValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getIframeOptions(Async)\");\n }\n\n return getIframeOptionsCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getTransferBalanceValidateBeforeCall(ProductInstanceID generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getTransferBalance(Async)\");\n }\n\n return getTransferBalanceCall(generalContractId);\n }", "public void setContractId(Integer contractId) {\n this.contractId = contractId;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailableCurrenciesValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailableCurrencies(Async)\");\n }\n\n return getAvailableCurrenciesCall(generalContractId);\n }", "public Call getOneCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public int getContractId() {\n return contractId;\n }", "public String getContractId() {\n return contractId;\n }", "public void setContractId(String contractId) {\n this.contractId = contractId == null ? null : contractId.trim();\n }", "public Integer getContractId() {\n return contractId;\n }", "public ValidationResult validateContract() {\n return validateContract(apiContract);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)\");\n }\n\n return updateThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateBankAccountValidateBeforeCall(String generalContractId, BankAccountDescriptor body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateBankAccount(Async)\");\n }\n\n return updateBankAccountCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)\");\n }\n\n return patchThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call terminateValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling terminate(Async)\");\n }\n\n return terminateCall(generalContractId);\n }", "public void setSContractNo(String sContractNo) {\n this.sContractNo = sContractNo;\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n String string0 = EWrapperMsgGenerator.bondContractDetails(1274, contractDetails0);\n assertEquals(\"reqId = 1274 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = FkqJC9O=9\\ntradingClass = null\\nconid = 0\\nminTick = -4322.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "public Call patchContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PATCH\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public Contract() {\n // initialise instance variables\n generateContractId();\n }", "public void setPartnerContractId(Integer partnerContractId) {\r\n this.partnerContractId = partnerContractId;\r\n }", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "public TbContract verifyContractDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() != contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_NOT_DEPLOY);\n }\n return contract;\n }", "public String getContractNumber() {\n return contractNumber;\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void setContractorID(int contractorID) {\n this.contractorID = contractorID;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addPaymentLinkConfigurationValidateBeforeCall(String generalContractId, PaymentLinkOptions body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addPaymentLinkConfiguration(Async)\");\n }\n\n return addPaymentLinkConfigurationCall(generalContractId, body);\n }", "boolean hasBusinessCircleId();", "public TbContract verifyContractNotDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() == contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_HAS_BEAN_DEPLOYED);\n }\n return contract;\n }", "public Call updateContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailablePaymentMethodsValidateBeforeCall(String generalContractId, GetAvailablePaymentMethodsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailablePaymentMethods(Async)\");\n }\n\n return getAvailablePaymentMethodsCall(generalContractId, body);\n }", "public void setContractAmount(Integer contractAmount) {\n this.contractAmount = contractAmount;\n }", "public Contracts() {\r\n super();\r\n \r\n }", "public boolean isSetContractAddress() {\n return this.contractAddress != null;\n }", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "public void createContract() {\n\r\n\t}", "public void initContract(ContractInfo contractInfo)\n {\n this.contractInfo = contractInfo;\n }", "void setContract(int contract) {\r\n\t\tif (contract == 24 || contract == 30 || contract == 36) {\r\n\t\t\tthis.contract = contract;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Vector<String> vector0 = new Vector<String>();\n Contract contract0 = new Contract(0, \"X_\", \"X_\", \"X_\", 1833, \"X_\", \"liquidHours = \", \"X_\", \"Error - \", (String) null, vector0, \"com.ib.client.Execution\", true, \"liquidHours = \", \"com.ib.client.Execution\");\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"\", (String) null, (-2818.2935355), \"\", \"H9~[N\\\"Hv`#|kr]\", 13, \"H9~[N\\\"Hv`#|kr]\", \" underComp.delta =\", \"\", \" underComp.delta =\", \"X_\", (String) null, \"M]G9k=@}tbK\", \"Bwn1n;uU*\");\n String string0 = EWrapperMsgGenerator.contractDetails(1833, contractDetails0);\n assertEquals(\"reqId = 1833 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = X_\\nsecType = X_\\nexpiry = X_\\nstrike = 1833.0\\nright = X_\\nmultiplier = liquidHours = \\nexchange = X_\\nprimaryExch = com.ib.client.Execution\\ncurrency = Error - \\nlocalSymbol = null\\nmarketName = \\ntradingClass = null\\nminTick = -2818.2935355\\nprice magnifier = 0\\norderTypes = \\nvalidExchanges = H9~[N\\\"Hv`#|kr]\\nunderConId = 13\\nlongName = H9~[N\\\"Hv`#|kr]\\ncontractMonth = underComp.delta =\\nindustry = \\ncategory = underComp.delta =\\nsubcategory = X_\\ntimeZoneId = null\\ntradingHours = M]G9k=@}tbK\\nliquidHours = Bwn1n;uU*\\n ---- Contract Details End ----\\n\", string0);\n }", "@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "boolean isSetCompanyBaseData();", "@Test\n public void shouldCreateContractWithPreconditions() {\n // Given\n final Clause precondition1 = ContractFactory.alwaysTrueDefaultClause();\n final Clause precondition2 = ContractFactory.alwaysTrueDefaultClause();\n\n // When\n final Contract contract = ContractFactory.contractWithPreconditions(precondition1, precondition2);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has not all given preconditions!\", contract.preconditions().length == 2);\n }", "public void setContractNumber(String contractNumber) {\n this.contractNumber = contractNumber == null ? null : contractNumber.trim();\n }", "public ContractMethod() {\n }", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)\");\n }\n // verify the required parameter 'thirdPartyName' is set\n if (thirdPartyName == null) {\n throw new ApiException(\"Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)\");\n }\n\n return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName);\n }", "@Test\n public void testGetBusinessId() {\n \n \n assertNull(o1.getBusinessId());\n o1.setBusinessId(Integer.MIN_VALUE);\n assertNotNull(o1.getBusinessId());\n assertEquals(new Integer(Integer.MIN_VALUE), o1.getBusinessId());\n }", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "@Test\n public void shouldCreateEmptyContract() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n }", "public Call terminateCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/terminate\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public abstract void deleteContract(String contractNumber);", "public void checkCreditCard() throws BusinessException;", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "@Test\n public void merchantidTest() {\n assertEquals(Integer.valueOf(12345), authResponse.getMerchantid());\n }", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "VerifyBasicCallback() {\n m_transactionType = null;\n m_procedureName = null;\n }", "private static void validateBaseRequest(final InvBaseRequest request) {\r\n\t\tif (request == null) {\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Request is Null.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Request is Null\");\r\n\t\t}\r\n\r\n\t\tif(request.getTransactionId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid Transaction ID.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid Transaction ID.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getUserId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid User Id.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid User Id.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(null == request.getDistributionCenter() || request.getDistributionCenter().isEmpty() || null == request.getShipToCustomer() || request.getShipToCustomer().isEmpty() ){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Account should not be empty.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Account should not be empty\");\r\n\t\t}\r\n\t}", "public void setXpeContractId(String value) {\n setAttributeInternal(XPECONTRACTID, value);\n }", "@Test\n public void testFailureParInvalidPkceSetting() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n updateClientByAdmin(clientId, (ClientRepresentation cRep)->{\n OIDCAdvancedConfigWrapper.fromClientRepresentation(cRep).setPkceCodeChallengeMethod(\"S256\");\n });\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(400, pResp.getStatusCode());\n assertEquals(OAuthErrorException.INVALID_REQUEST, pResp.getError());\n assertEquals(\"Missing parameter: code_challenge_method\", pResp.getErrorDescription());\n }", "public static int withContract() {\n\t\t{\n\t\t\tString choice;\n\t\t\tint startover;\n\t\t\tImageIcon picture;\n\t\t\tint selectedCode;\n\t\t\tint number1 = (int) (900 * Math.random() + 100);\n\t\t\tint number2 = (int) (9000 * Math.random() + 1000);\n\t\t\tString[] choices = modelsForContract();\n\t\t\t\n\t\t\t// asks which phone the user wants by showing the options based upon their contract preferences\n\t\t\t\n\t\t\tchoice = (String) JOptionPane.showInputDialog(null, \"Which phone whould you like?\", \"Phone Selection\", \n\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, icon, choices, null);\n\t\t\t\n\t\t\t// Depending on the selection, the phones image is displayed.\n\t\t\tif (choice == choices[0])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"galaxyS9.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[1])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"iphoneX.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[2])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"googlePixel.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[3])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"Motorola.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[4])\n\t\t\t{\n\t\t\t\tSystem.out.print(\"HI\");\n\t\t\t\tpicture = new ImageIcon(\"Huawei.png\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\t\t\tselectedCode = 0;\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\t// Then the area code selection is presented.\n\t\t\tselectedCode = JOptionPane.showOptionDialog(null, \"Please select an area code from below\",\n\t\t\t\t\t\"Area Code Selection\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, picture, areaCodes, areaCodes[0]);\n\t\t\t\n\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Congratulations, \" + firstName + \"!\\nYour new phone is the \" + choice + \".\"\n\t\t\t\t\t+ \"\\nAnd your new phone number is \" + areaCodes[selectedCode] + \"-\" + number1 + \"-\" + number2 + \"!\",\n\t\t\t\t\t\"Congratulations!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t\n\t\t\tstartover = JOptionPane.showOptionDialog(null, \"Would you like to buy another phone \" + firstName + \"?\",\n\t\t\t\t\t\"Awesome Smartphone\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon, null, 0);\n\t\t\t\n\t\t\tif (startover == 1)\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Thank you for your business!\",\n\t\t\t\t\t\t\"Thank You!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t}\n\t\t\treturn startover;\n\t\t}\n\t}", "void setIdVerificationResponseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData idVerificationResponseData);", "boolean isSetIdVerificationResponseData();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Ggeneral)) {\n return false;\n }\n Ggeneral other = (Ggeneral) object;\n if ((this.idgeneral == null && other.idgeneral != null) || (this.idgeneral != null && !this.idgeneral.equals(other.idgeneral))) {\n return false;\n }\n return true;\n }", "public void setCodeCombinationsIdFromGeneral(XxGamMaGeneralReqVORowImpl generalRow) {\n if (generalRow != null) {\n Number codeCombinationId = null;\n codeCombinationId = generalRow.getCostCenter();\n if (codeCombinationId != null) {\n\n RowSetIterator rowSetIter = getRowSetIterator();\n if (rowSetIter != null) {\n rowSetIter.reset();\n while (rowSetIter.hasNext()) {\n Row row = rowSetIter.next();\n XxGamMaPaymentReqVORowImpl detailRow = \n (XxGamMaPaymentReqVORowImpl)row;\n if (detailRow != null) {\n if (detailRow.getGeneralReqId().equals(generalRow.getId())) {\n detailRow.setCodeCombinationId(codeCombinationId);\n }\n }\n }\n rowSetIter.reset();\n }\n }\n }\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public int getContractorID() {\n return contractorID;\n }", "@Test\n public void shouldCreateContractWithPrecondition() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.contractWithPrecondition();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has no precondition!\", contract.preconditions().length == 1);\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "public boolean modifyContract(Contract contract) {\n\t\treturn contractdao.modifyContract(contract);\n\t}", "boolean isSetCapitalPayed();", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "protected boolean validateSubContract(SubContract subContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = subContract.getParentContract().getValidityPeriod();\n \n BasicDiagnostic parameterBlocksDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_BLOCK_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterBlocksValid = validateParameterBlocks(subContract, parameterBlocksDiagnostics, context);\n if(!parameterBlocksValid)\n diagnostics.add(parameterBlocksDiagnostics);\n\n BasicDiagnostic parameterMapsDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_MAP_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterMapsValid = validateParameterMaps(subContract, parameterMapsDiagnostics, context);\n if(!parameterMapsValid)\n diagnostics.add(parameterMapsDiagnostics);\n \n boolean parentValid = true;\n if(!subContract.getPrimaryContract().getValidityPeriod().contains(newPeriod)){\n parentValid &= false;\n diagnostics.add(new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_SUB_CONTRACT, SUB_CONTRACT__RANGE, String.format(\n \"[%s] '%s' conflicts with parent '%s'\", \"Range\",\n getDisplayString(newPeriod), getDisplayString(subContract\n .getPrimaryContract().getValidityPeriod())), new Object[]{subContract.getPrimaryContract()}));\n }\n \n return parameterBlocksValid && parameterMapsValid && parentValid;\n }", "@Test\n public void testInsuredPayerPayersId() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setPayersIdEnum,\n RdaFissPayer::getPayersId,\n FissPayersCode.PAYERS_CODE_AUTO_NO_FAULT,\n \"D\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setPayersIdUnrecognized,\n RdaFissPayer::getPayersId,\n RdaFissPayer.Fields.payersId,\n 1);\n }", "@Override\n\tpublic void setFTGLId(FinancialTransactionGeneralLedger_Id arg0) {\n\n\t}", "public Call revokeAccrualCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/revokeAccrual\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@Test\r\n\tvoid testContactServiceUpdateContactWithInValidID() {\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.updateContactFirstName(\"none\", \"enon\");\r\n\t\t});\r\n\t}", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }", "public boolean isSetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENERAL$20) != 0;\r\n }\r\n }", "private Contract() {\n }", "@Test\n public void testInsuredPayerTreatAuthCd() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }", "VerifyBasicCallback(TPCCSimulation.Transaction transaction, String procName) {\n m_transactionType = transaction;\n m_procedureName = procName;\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Contract contract0 = new Contract();\n String string0 = EWrapperMsgGenerator.contractMsg(contract0);\n assertEquals(\"conid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\n\", string0);\n }", "boolean isSetNcbistdaa();", "public void onClick(DialogInterface dialog, int id)\n {\n if(optionAddContract.isChecked())\n {\n selectedContractAddress = contractAddressField.getText().toString();\n dialogListener.onAddContract(selectedContractAddress, selectedContractType);\n }else{\n dialogListener.onCreateContract(selectedContractType);\n }\n }", "public void m9130p() throws cf {\r\n if (this.f6007a == null) {\r\n throw new cz(\"Required field 'domain' was not present! Struct: \" + toString());\r\n } else if (this.f6009c == null) {\r\n throw new cz(\"Required field 'new_id' was not present! Struct: \" + toString());\r\n }\r\n }", "@Test\n public void testBeneZPayerTreatAuthCd() {\n new BeneZPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissBeneZPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }" ]
[ "0.6497611", "0.64637333", "0.622235", "0.6210186", "0.6131018", "0.60290796", "0.59923744", "0.58934605", "0.58661616", "0.57160485", "0.57071656", "0.5653759", "0.55980074", "0.5569409", "0.553539", "0.5487554", "0.5440618", "0.5440618", "0.5439598", "0.5408142", "0.53970677", "0.53854465", "0.53708893", "0.535706", "0.53022665", "0.5297568", "0.5285573", "0.52775395", "0.5228783", "0.52161616", "0.5215486", "0.5205767", "0.5205767", "0.5199093", "0.51915133", "0.51328886", "0.5033789", "0.5029831", "0.5028553", "0.5016704", "0.50105745", "0.498703", "0.49869227", "0.49858847", "0.49840963", "0.4981568", "0.49711713", "0.49521965", "0.49504304", "0.4947746", "0.49310437", "0.49262455", "0.49186945", "0.48840562", "0.48525771", "0.4834332", "0.4834332", "0.4834332", "0.4834332", "0.48338956", "0.48318732", "0.48279566", "0.48160288", "0.4812081", "0.47995192", "0.47923365", "0.4781422", "0.47777963", "0.47646332", "0.47629628", "0.47589943", "0.4757054", "0.4750851", "0.47358122", "0.47310758", "0.4729941", "0.4721001", "0.47173005", "0.47168317", "0.47128192", "0.4699858", "0.4696607", "0.4694214", "0.4693992", "0.4684683", "0.4683533", "0.4683291", "0.46758085", "0.46754542", "0.4674884", "0.46742436", "0.46673056", "0.46622548", "0.466158", "0.46588138", "0.4658", "0.46564242", "0.46557775", "0.46517795", "0.46499386" ]
0.6566565
0
Build call for updateThirdPartyConfiguration
public Call updateThirdPartyConfigurationCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/ThirdPartyConfiguration" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UpdateOperationConfiguration build();", "public abstract CONFIG build();", "Builder useBuildDistribution();", "protected void enhanceConfig(ConfigurationBuilder c) {\n }", "public abstract void updatePendingConfiguration(Configuration config);", "BuildClient createBuildClient();", "@Override\n\tpublic void configure() throws CoreException {\n\t\t// associate this builder with the project\n\t\tPTJavaFileBuilder.addBuilderToProject(fProject);\n\t\t\n\t\t// issue order to rebuild project\n\t\tnew Job(\"PTJava File Build\") {\n\t\t\tprotected IStatus run(IProgressMonitor monitor) {\n\t\t\t\ttry {\n\t\t\t\t\t// invoke a full build\n\t\t\t\t\tfProject.build(\n\t\t\t\t\t\t\tPTJavaFileBuilder.FULL_BUILD,\n\t\t\t\t\t\t\tPTJavaFileBuilder.BUILDER_ID,\n\t\t\t\t\t\t\tnull, monitor);\n\t\t\t\t}\n\t\t\t\tcatch (CoreException exception) {\n\t\t\t\t\tPTJavaLog.logError(exception);\n\t\t\t\t}\n\t\t\t\treturn Status.OK_STATUS;\n\t\t\t}\n\t\t}.schedule();\n\t}", "java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;", "public void updateProject(Task context) throws BuildException {\n //Properties codenameOneSettings = new Properties();\n if (projectDir == null) {\n throw new BuildException(\"Cannot update project with null projectDir\");\n }\n File codenameOneSettingsFile = new File(projectDir, \"codenameone_settings.properties\");\n if (!codenameOneSettingsFile.exists()) {\n throw new BuildException(\"No codenameone_settings.properties file found at \"+codenameOneSettingsFile);\n }\n \n File srcDir = new File(projectDir, \"src\");\n \n Properties codenameOneSettings = null;\n try {\n codenameOneSettings = Util.loadProperties(codenameOneSettingsFile);\n } catch (Exception ex) {\n throw new BuildException(\"Failed to load project settings \"+codenameOneSettingsFile, ex);\n }\n \n if (version != null) {\n try {\n double ver = Double.parseDouble(version);\n codenameOneSettings.setProperty(\"codename1.version\", \"\" + ver);\n } catch(NumberFormatException err) {\n System.out.println(\"Couldn't convert version, Codename One versions must be decimal numbers for increased portability\");\n } \n \n }\n \n if (packageId != null) {\n String oldPackage = codenameOneSettings.getProperty(\"codename1.packageName\");\n codenameOneSettings.setProperty(\"codename1.packageName\", packageId);\n String iosAppId = codenameOneSettings.getProperty(\"codename1.ios.appid\");\n if (iosAppId == null) {\n iosAppId = \"BQ5FVWYLLB.com.codename1.demos.cordova\";\n }\n iosAppId = iosAppId.substring(0, iosAppId.indexOf(\".\"))+\".\"+packageId;\n codenameOneSettings.setProperty(\"codename1.ios.appid\", iosAppId);\n \n if (!packageId.equals(oldPackage)) {\n String oldMainPath = oldPackage.replace(\".\", File.separator);\n String newMainPath = packageId.replace(\".\", File.separator);\n File oldMainDir = new File(srcDir, oldMainPath);\n File newMainDir = new File(srcDir, newMainPath);\n //String mainClassName = codenameOneSettings.getProperty(\"codename1.mainName\");\n\n if (!oldMainDir.exists()) {\n throw new BuildException(\"Could not find old main dir: \"+oldMainDir);\n }\n\n //File oldMainFile = new File(oldMainDir, mainClassName+\".java\");\n //File newMainFile = new File(newMainDir, mainClassName+\".java\");\n\n newMainDir.getParentFile().mkdirs();\n if (newMainDir.exists()) {\n for (File f : oldMainDir.listFiles()) {\n if (\".\".equals(f.getName()) || \"..\".equals(f.getName())) {\n continue;\n }\n f.renameTo(new File(newMainDir, f.getName()));\n }\n oldMainDir.delete();\n } else {\n\n oldMainDir.renameTo(newMainDir);\n }\n\n Replace replaceTask = (Replace)context.getProject().createTask(\"replace\");\n replaceTask.setDir(srcDir);\n replaceTask.setIncludes(\"**/*.java\");\n Replace.NestedString token = replaceTask.createReplaceToken();\n token.addText(oldPackage);\n\n replaceTask.createReplaceValue().addText(packageId);\n replaceTask.execute();\n }\n \n }\n \n if (projectName != null) {\n codenameOneSettings.setProperty(\"codename1.displayName\", projectName);\n }\n \n \n \n \n try {\n Util.saveProperties(codenameOneSettings, codenameOneSettingsFile, \"Updated by ImportCordovaAppTask on \"+new Date());\n } catch (IOException ex) {\n throw new BuildException(\"Failed to save codename one settings file \"+codenameOneSettingsFile, ex);\n }\n \n \n File nbprojectDir = new File(projectDir, \"nbproject\");\n \n new File(projectDir, \"override\").mkdirs();\n new File(projectDir, \"native\" + File.separator + \"internal_tmp\").mkdirs();\n File nbprojectPropertiesFile = new File(nbprojectDir, \"project.properties\");\n if (nbprojectPropertiesFile.exists()) {\n Properties nbprojectProperties = null;\n context.log(\"Updating Netbeans properties file \"+nbprojectPropertiesFile);\n try {\n nbprojectProperties = Util.loadProperties(nbprojectPropertiesFile);\n \n } catch (Exception ex) {\n throw new BuildException(\"Failed to load netbeans project properties at \"+nbprojectPropertiesFile);\n }\n if (projectName != null) {\n String normalizedName = projectName.replaceAll(\"[^a-zA-Z0-9]\", \"\");\n \n nbprojectProperties.setProperty(\"application.title\", projectName);\n nbprojectProperties.setProperty(\"dist.jar\", \"${dist.dir}/\"+normalizedName+\".jar\");\n }\n \n try {\n Util.saveProperties(nbprojectProperties, nbprojectPropertiesFile, \"updated by \"+context.getTaskName()+ new Date());\n \n } catch (Exception ex) {\n throw new BuildException(\"Failed to save changes to \"+nbprojectPropertiesFile, ex);\n } \n \n if (projectName != null) {\n \n Replace replaceProjectName = (Replace)context.getProject().createTask(\"replace\");\n replaceProjectName.setFile(new File(nbprojectDir, \"project.xml\"));\n replaceProjectName.createReplaceToken().addText(\"<name>CordovaProjectTemplate</name>\");\n replaceProjectName.createReplaceValue().addText(\"<name>\"+projectName.replace(\"<\", \"&lt;\").replace(\">\", \"&gt;\")+\"</name>\");\n replaceProjectName.execute();\n }\n }\n }", "Builder useInstallation(File gradleHome);", "@SuppressWarnings(\"rawtypes\")\n private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)\");\n }\n\n return updateThirdPartyConfigurationCall(generalContractId, body);\n }", "@Test\n public void testBuildDefer() throws Exception {\n mockHttpClient = mock(OptimizelyHttpClient.class);\n\n projectConfigManager = builder()\n .withOptimizelyHttpClient(mockHttpClient)\n .withSdkKey(\"sdk-key\")\n .build(true);\n assertEquals(\"sdk-key\", projectConfigManager.getSDKKey());\n }", "GradleBuild create();", "void configurationUpdated();", "@NonNull\n\t\tConfig build();", "Builder useDistribution(URI gradleDistribution);", "public void build() {\r\n\tfDoingBatchBuild = true;\r\n\tfNotifier = new BuildNotifier(fDC, true);\r\n\tgetBuilderEnvironment().setNotifier(fNotifier);\r\n\tfNotifier.begin();\r\n\ttry {\r\n\t\tfNewState.readClassPath();\r\n\t\tfNotifier.subTask(Util.bind(\"build.scrubbingOutput\"/*nonNLS*/));\r\n\t\tfNewState.getBinaryOutput().scrubOutput();\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\t\tfNotifier.subTask(Util.bind(\"build.analyzingPackages\"/*nonNLS*/));\r\n\t\tfNewState.buildInitialPackageMap();\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\r\n\t\t/* Force build all in build context */\r\n\t\tfNotifier.subTask(Util.bind(\"build.analyzingSources\"/*nonNLS*/));\r\n\t\tIPackage[] pkgs = fNewState.getPackageMap().getAllPackagesAsArray();\r\n\t\tfor (int i = 0; i < pkgs.length; ++i) {\r\n\t\t\tfNotifier.checkCancel();\r\n\t\t\tSourceEntry[] entries = fNewState.getSourceEntries(pkgs[i]);\r\n\t\t\tif (entries != null) {\r\n\t\t\t\tfor (int j = 0; j < entries.length; ++j) {\r\n\t\t\t\t\tSourceEntry sEntry = entries[j];\r\n\t\t\t\t\tif (sEntry.isSource()) {\r\n\t\t\t\t\t\tPackageElement element = fNewState.packageElementFromSourceEntry(sEntry);\r\n\t\t\t\t\t\tfWorkQueue.add(element);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\t\tVector vToCompile = fWorkQueue.getElementsToCompile();\r\n\t\tif (vToCompile.size() > 0) {\r\n\t\t\tfNotifier.setProgressPerCompilationUnit(0.75f / vToCompile.size());\r\n\t\t\tcompile(vToCompile);\r\n\t\t}\r\n\t\t/* Copy resources to binary output */\r\n\t\tnew ProjectResourceCopier(fNewState.getJavaProject(), fDC, fNotifier, 0.10f).copyAllResourcesOnClasspath();\r\n\t\t\r\n\t\tfNotifier.done();\r\n\t} finally {\r\n\t\tcleanUp();\r\n\t}\r\n}", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "@Override\n\tpublic void onConfigurationUpdate() {\n\t}", "CustomerServiceProviderConfiguration updateConfiguration(String serviceProviderId, ServiceProviderConfigurationUpdateRequest configuration);", "public abstract boolean updateConfig();", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)\");\n }\n\n return patchThirdPartyConfigurationCall(generalContractId, body);\n }", "public interface ApplicationRuntimeConfigurationBuilder\n{\n Repository createRepositoryFromModel( Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n\n void releaseRepository( Repository repository, Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n}", "interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next update stage\n */\n Update withCntkSettings(CNTKsettings cntkSettings);\n }", "private ModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void applyConfiguration(Configuration configuration);", "Observable<CustomerServiceProviderConfiguration> updateConfigurationAsync(String serviceProviderId, ServiceProviderConfigurationUpdateRequest configuration);", "Builder useGradleVersion(String gradleVersion);", "interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next update stage\n */\n Update withChainerSettings(ChainerSettings chainerSettings);\n }", "void subprojects(Action<? super ProjectPluginDependenciesSpec> configuration);", "protected void additionalConfig(ConfigType config){}", "public void projectBuildDirChanged() { }", "public void projectBuildDirChanged() { }", "@Test\n public void testWebConfiguration() throws Exception {\n WebClient wc = j.createWebClient();\n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(true, TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertTrue(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest, selector.getUpstreamFilterStrategy());\n }\n \n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertFalse(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest, selector.getUpstreamFilterStrategy());\n }\n \n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(true, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertTrue(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, selector.getUpstreamFilterStrategy());\n }\n }", "public boolean updateBuild(Build build);", "protected void makeConfigImmutable() {\n final Project project = speedment.getProjectComponent().getProject();\n if (project != null) {\n final Project immutableProject = ImmutableProject.wrap(project);\n speedment.getProjectComponent().setProject(immutableProject);\n }\n }", "private SubmitConfigSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public SSLConfig build()\n {\n return new SSLConfig(\n isClient, verifyMode, this.caPath, this.certPath, this.keyPath);\n }", "public void ativarBuild() {\n this.build = true;\n }", "public void store() {\n \n try {\n ProjectManager.mutex().writeAccess(new Mutex.ExceptionAction<Object>() {\n public Object run() {\n \n resolveProjectDependencies();\n \n // Some properties need special handling e.g. if the\n // property changes the project.xml files\n for(final PropertyInfo pi:properties.values()) {\n pi.encode();\n }\n \n final ProjectConfiguration configs[] = configHelper.getConfigurations().toArray(new ProjectConfiguration[0]);\n final HashSet<ProjectConfiguration> newConfigs = new HashSet<ProjectConfiguration>(Arrays.asList(devConfigs));\n for (int i=0; i<configs.length; i++) {\n if (!newConfigs.remove(configs[i])) {\n configHelper.removeConfiguration(configs[i]);\n }\n }\n for (ProjectConfiguration cfg:newConfigs) {\n configHelper.addConfiguration(cfg.getDisplayName());\n }\n \n \n // Reread the properties. It may have changed when\n // e.g. when setting references to another projects\n EditableProperties sharedProps = antProjectHelper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n EditableProperties privateProps = antProjectHelper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n\n // Set the changed properties\n for( final PropertyInfo pi:properties.values()) {\n final PropertyDescriptor pd = pi.getPropertyDescriptor();\n if (pd != null && pi.isModified()) {\n final String newValueEncoded = pi.getNewValueEncoded();\n if ( newValueEncoded != null ) {\n (pd.isShared() ? sharedProps : privateProps).setProperty( pd.getName(), newValueEncoded );\n } else {\n // remove property\n (pd.isShared() ? sharedProps : privateProps).remove(pd.getName());\n }\n }\n }\n \n // Store the property changes into the project\n antProjectHelper.putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, sharedProps);\n antProjectHelper.putProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH, privateProps);\n \n // Invoke this method to perform cyclic dependencies check and potentionally show warning dilalog\n CustomizerGeneral cg = new CustomizerGeneral();\n cg.initValues(J2MEProjectProperties.this, null);\n cg.getSortedSubprojectsList();\n \n //storing global default encoding by dcurrent project (see issue #97855)\n String enc = sharedProps.getProperty(DefaultPropertiesDescriptor.JAVAC_ENCODING);\n if (enc != null) FileEncodingQuery.setDefaultEncoding(Charset.forName(enc));\n \n // save the project under write lock\n try {\n ProjectManager.getDefault().saveProject(project);\n } catch (IOException ex) {\n ErrorManager.getDefault().notify(ex);\n }\n\n return null;\n }\n });\n } catch (MutexException e) {\n ErrorManager.getDefault().notify(e.getException());\n }\n \n }", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/builds/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Build> patchBuild(\n @Path(\"name\") String name, \n @Body Build body);", "interface WithAutoSync {\n /**\n * Specifies the autoSync property: The auto sync of the source control. Default is false..\n *\n * @param autoSync The auto sync of the source control. Default is false.\n * @return the next definition stage.\n */\n Update withAutoSync(Boolean autoSync);\n }", "private void updateTargetProductMetadata() {\n }", "void onConfigChanged(ConfigUpdate update);", "protected void buildBootstrap() {\n String command = \"-prod -mac -o2 rom -strip:d j2me imp\";\n if (includeDebugger) {\n command += \" debugger\";\n }\n command += \" -- translator\";\n builder(command);\n }", "@Override\r\n public void doUpdateConfig(GameConfig game)\r\n {\n \r\n }", "interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next update stage\n */\n Update withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }", "private void updateConfig(){\n try {\n BeanUtils.copyProperties(config_,newConfig_);//copy the properties of newConfig_ into config_\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n } catch (InvocationTargetException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n }\n }", "Lighter build();", "public void getConfiguration(final long lastupdate) {\n Logger.log(Logger.Level.DEBUG, TAG, \"getConfiguration\");\n\n configurationApi.getConfiguration(lastupdate)\n .subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(\n p -> onConfigurationRequestSucess(p),\n this::onConfigurationRequestFailed\n );\n }", "interface WithCaffe2Settings {\n /**\n * Specifies caffe2Settings.\n * @param caffe2Settings the caffe2Settings parameter value\n * @return the next update stage\n */\n Update withCaffe2Settings(Caffe2Settings caffe2Settings);\n }", "void configure (CallbackUtilities cus) throws RootException;", "public abstract void configure(String[] args);", "void build(String name, Project project);", "@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}", "private synchronized void addBuildWrapperPath(ProcessBuilder pb){\r\n \t\tif (needPath==null || needPath.booleanValue() && bwPath!=null){\r\n \t\t\tneedPath=false;\r\n \t\t\tString path=new File(bwPath).getParent();\r\n \t\t\tif (path!=null){\r\n \t\t\t\tMap<String,String> env=pb.environment();\r\n \t\t\t\tString pathValue=env.get(\"PATH\");\r\n \t\t\t\tif (Boolean.TRUE.equals(needPath) || pathValue==null || pathValue.length()==0 || !pathValue.contains(path)){\r\n \t\t\t\t\tif (pathValue==null || pathValue.length()==0){\r\n \t\t\t\t\t\tpathValue=path;\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tpathValue+=File.pathSeparator+path;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tenv.put(\"PATH\",pathValue);\r\n \t\t\t\t\tneedPath=true;\r\n \t\t\t\t} \r\n \t\t\t}\r\n \t\t}\r\n \t}", "Pair<T, U> build(ConfigurationSourceProvider provider, String path) throws IOException, ConfigurationException;", "public void configure(FunctionRuntimeContext runtimeContext) {\n validateConfigurationMethods(runtimeContext.getMethodWrapper());\n applyUserConfigurationMethod(runtimeContext.getMethodWrapper(), runtimeContext);\n }", "public void execute() throws BuildException {\n \tServiceClientFactory scf=super.getServiceClientFactory();\n\n \ttry {\n \t\tApplicationManagerClient amClient=new ApplicationManagerClient(scf);\n \t\tamClient.deployApplication(applicationName,version);\n \t\t\n \t\t// Log success message for feedback\n \t\tlog(\"Successfully deployed application: \" + applicationName + \"/\" + version);\n\n \t} catch (Exception e){\n \t\tthrow new BuildException(\"Error deploying application:\"+e.getMessage());\n \t}\n }", "interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n Update withPublishRunbook(Boolean publishRunbook);\n }", "@Incubating\npublic interface GradleBuild {\n /**\n * Builds a new Gradle composite participant.\n */\n @Incubating\n interface Builder {\n\n /**\n * Sets the root project directory for this Gradle Build.\n *\n * @param projectDir root project directory.\n * @return this\n */\n Builder forProjectDirectory(File projectDir);\n\n /**\n * Specifies the Gradle distribution described in the build should be used.\n *\n * @return this\n */\n Builder useBuildDistribution();\n\n /**\n * Specifies the Gradle distribution to use.\n *\n * @param gradleHome The Gradle installation directory.\n * @return this\n */\n Builder useInstallation(File gradleHome);\n\n /**\n * Specifies the version of Gradle to use.\n *\n * @param gradleVersion The version to use.\n * @return this\n */\n Builder useGradleVersion(String gradleVersion);\n\n /**\n * Specifies the Gradle distribution to use.\n *\n * @param gradleDistribution The distribution to use.\n *\n * @return this\n */\n Builder useDistribution(URI gradleDistribution);\n\n /**\n * Creates an immutable GradleBuild instance based on this builder.\n *\n * @return a new instance, never null.\n */\n GradleBuild create();\n }\n\n /**\n * Build Identity to be used to correlate results.\n *\n * @return this build's identity, never null\n */\n BuildIdentity toBuildIdentity();\n\n /**\n * Project Identity to be used to correlate results.\n *\n * @param projectPath path to project in a Gradle build (e.g., :foo:bar)\n * @return identity for a project in this build with the given path\n */\n ProjectIdentity toProjectIdentity(String projectPath);\n}", "public static void configureProjectAsPlugin(IFacetedProjectWorkingCopy fpjwc, IRuntime runtime, String sdkLocation)\n \t\tthrows CoreException {\n \n \t\tfpjwc.setTargetedRuntimes(Collections.<IRuntime> emptySet());\n \n \t\tif (runtime != null) {\n \t\t\t// final Set<IProjectFacetVersion> minFacets = new\n \t\t\t// HashSet<IProjectFacetVersion>();\n \t\t\t//\n \t\t\t// try {\n \t\t\t// for( IProjectFacet f : fpjwc.getFixedProjectFacets() ) {\n \t\t\t// minFacets.add( f.getLatestSupportedVersion( runtime ) );\n \t\t\t// }\n \t\t\t// }\n \t\t\t// catch( CoreException e ) {\n \t\t\t// throw new RuntimeException( e );\n \t\t\t// }\n \t\t\t//\n \t\t\t// fpjwc.setProjectFacets( minFacets );\n \n \t\t\tfpjwc.setTargetedRuntimes(Collections.singleton(runtime));\n \t\t}\n \n \t\tfpjwc.setPrimaryRuntime(runtime);\n \n \t\t// fpjwc.setSelectedPreset(\n \t\t// FacetedProjectFramework.DEFAULT_CONFIGURATION_PRESET_ID );\n \n \t\tIFacetedProjectTemplate template = getLiferayTemplateForProject(fpjwc);\n \t\tIPreset preset = getLiferayPresetForProject(fpjwc);\n \n \t\tif (preset == null) {\n \t\t\tthrow new CoreException(\n \t\t\t\tProjectCorePlugin.createErrorStatus( \"No facet preset found for project name \" +\n \t\t\t\t\tfpjwc.getProjectName() +\n \t\t\t\t\t\", make sure your project is a valid liferay plugins sdk project with an expected prefix, e.g. -portlet, -hook, etc.\" ) );\n \t\t}\n \n \t\tSet<IProjectFacetVersion> currentProjectFacetVersions = fpjwc.getProjectFacets();\n \n \t\tSet<IProjectFacet> requiredFacets = template.getFixedProjectFacets();\n \n \t\tfor (IProjectFacet requiredFacet : requiredFacets) {\n \t\t\tboolean hasRequiredFacet = false;\n \n \t\t\tfor (IProjectFacetVersion currentFacetVersion : currentProjectFacetVersions) {\n \t\t\t\tif (currentFacetVersion.getProjectFacet().equals(requiredFacet)) {\n \t\t\t\t\tboolean supports = runtime.supports(currentFacetVersion);\n \n \t\t\t\t\tif (supports) {\n \t\t\t\t\t\thasRequiredFacet = true;\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tfpjwc.removeProjectFacet(currentFacetVersion);\n \t\t\t\t\t}\n \n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (!hasRequiredFacet) {\n \t\t\t\tIProjectFacetVersion requiredFacetVersion = getRequiredFacetVersionFromPreset(requiredFacet, preset);\n \n \t\t\t\tif (requiredFacetVersion != null) {\n \t\t\t\t\tfpjwc.addProjectFacet(requiredFacetVersion);\n \n \t\t\t\t\tif (ProjectUtil.isJavaFacet(requiredFacetVersion)) {\n \t\t\t\t\t\tconfigureJavaFacet(fpjwc, requiredFacetVersion.getProjectFacet(), preset);\n \t\t\t\t\t}\n \t\t\t\t\telse if (ProjectUtil.isLiferayFacet(requiredFacetVersion)) {\n \t\t\t\t\t\tconfigureLiferayFacet(fpjwc, requiredFacetVersion, sdkLocation);\n \t\t\t\t\t}\n \t\t\t\t\telse if (ProjectUtil.isDynamicWebFacet(requiredFacetVersion)) {\n \t\t\t\t\t\tconfigureWebFacet(fpjwc, requiredFacetVersion.getProjectFacet(), preset);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tif (ProjectUtil.isJavaFacet(requiredFacet)) {\n \t\t\t\t\tconfigureJavaFacet(fpjwc, requiredFacet, preset);\n \t\t\t\t}\n \t\t\t\telse if ( ProjectUtil.isLiferayFacet( requiredFacet ) ) {\n \t\t\t\t\tconfigureLiferayFacet( fpjwc, requiredFacet, sdkLocation );\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "private void configureOsgiManifest(Project project) {\n project.afterEvaluate(new Action<Project>() {\n @Override\n public void execute(Project project) {\n project.getTasks().withType(Jar.class, new Action<Jar>() {\n @Override\n public void execute(Jar jar) {\n if (jar.getManifest() instanceof OsgiManifest) {\n OsgiManifest manifest = (OsgiManifest) jar.getManifest();\n if (manifest.getInstructions().containsKey(\"Implementation-Version\")) {\n manifest.instructionReplace(\"Implementation-Version\", configurationStore.getProjectVersion());\n }\n if (manifest.getInstructions().containsKey(\"Specification-Version\")) {\n manifest.instructionReplace(\"Specification-Version\", configurationStore.getProjectVersion());\n }\n }\n }\n });\n }\n });\n }", "void configure();", "public IotdmSimpleConfig build() {\n return new IotdmSimpleConfig(this.builder.build());\n }", "private void preSyncConfiguration() {\n customPreSyncConfiguration.accept(caller, listener);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "@Override\n public void setupConfiguration(Configuration config)\n {\n\n }", "public void updateConfig(ContestConfig arg0) throws ContestManagementException {\r\n }", "void configure (Settings settings);", "Pair<T, U> build() throws IOException, ConfigurationException;", "public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }", "@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/builds/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Build> patchBuild(\n @Path(\"name\") String name, \n @Body Build body, \n @QueryMap PatchBuild queryParameters);", "@Override\n public void setUpstreamRepository(ConfigRepository upstreamConfigRepository) {\n }", "private Configtx.ConfigSignature signChannelConfigUpdate(Configtx.ConfigUpdate configUpdate){\n HFClient hfClient = chaincodeService.getHfClient();\n byte[] bytes = new byte[24];\n new Random().nextBytes(bytes);\n Common.SignatureHeader signatureHeader = Common.SignatureHeader.newBuilder().setCreator(ByteString.copyFromUtf8(hfClient.getUserContext().getName())).setNonce(ByteString.copyFrom(bytes)).build();\n byte[] signatureHeaderBytes = signatureHeader.toByteArray();\n byte[] configUpdateBytes = configUpdate.toByteArray();\n\n byte[] concat = Arrays.copyOf(signatureHeaderBytes, signatureHeaderBytes.length + configUpdateBytes.length);\n System.arraycopy(configUpdateBytes, 0, concat, signatureHeaderBytes.length, configUpdateBytes.length);\n byte[] signature = null;\n try {\n signature = hfClient.getCryptoSuite().sign(hfClient.getUserContext().getEnrollment().getKey(), concat);\n } catch (CryptoException e) {\n e.printStackTrace();\n }\n Configtx.ConfigSignature configSignature = Configtx.ConfigSignature.newBuilder().setSignatureHeader(signatureHeader.toByteString()).setSignature(ByteString.copyFrom(signature)).build();\n return configSignature;\n }", "private DevConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n public Optional<GradleBuildUpdateProposal> apply(GradleBuild build,\n GradleProject project, GradleModuleDependency dependency) {\n var coords = ResolverGroupArtifact.from(dependency.getGroup(), dependency.getName());\n\n var version = ResolverVersionSpecification.from(dependency.getVersionSpec().getValue());\n Optional<ResolverArtifactVersion> optionalPinnedVersion = version.asPinnedVersion();\n if (optionalPinnedVersion.isEmpty()) {\n // the version is not pinned (e.g. it's a range)\n // another update-adaptor should be concerned with pinning versions\n return Optional.empty();\n }\n\n var artifacts = dependency.getArtifacts().stream()\n .map(artifact -> ResolverArtifact.from(artifact.getClassifier(), artifact.getExtension()))\n .collect(Collectors.toSet());\n\n var repositories = project.getRepositories().items()\n .map(repo -> ResolverMavenRepository.from(repo.getId(), repo.getUrl()))\n .collect(Collectors.toList());\n\n // many update strategies are possible\n // 1. update to latest minor\n // 2. update first to latest incremental (with auto-merge?), next iteration update to latest minor\n // 3. major ?\n\n // those strategies could be extracted in separate objects in the future\n // (once we do, is it possible to make those strategies independent from maven/ivy/... ?)\n // the result could be wrapped in an object and passed to DependencyVersionUpdate ?\n\n // for now, we hardcode (1) - update to latest minor\n var minorVersionRange = MavenVersionRange.getMinorVersionRange(optionalPinnedVersion.get());\n var versionRangeQueryResult = this.mavenResolver\n .resolveVersionRange(coords, minorVersionRange, artifacts, repositories);\n\n return versionRangeQueryResult.getHighestVersion()\n .map(newVersion -> new DependencyVersionUpdateProposal(build, project, dependency, newVersion));\n\n }", "public void buildTwitterBaseConfiguration() {\n ConfigurationBuilder configurationBuilder = new ConfigurationBuilder();\n configurationBuilder\n .setOAuthConsumerKey(getBaseContext().getString(R.string.consumer_key))\n .setOAuthConsumerSecret(getBaseContext().getString(R.string.consumer_secret))\n .setOAuthAccessToken(getBaseContext().getString(R.string.access_token))\n .setOAuthAccessTokenSecret(getBaseContext().getString(R.string.access_token_secret));\n\n Configuration configuration = configurationBuilder.build();\n\n twitterStreamFactory = new TwitterStreamFactory(configuration);\n }", "public abstract ICMakeBuildElement createBuildProperties(Path path);", "interface WithCaffeSettings {\n /**\n * Specifies caffeSettings.\n * @param caffeSettings the caffeSettings parameter value\n * @return the next update stage\n */\n Update withCaffeSettings(CaffeSettings caffeSettings);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)\");\n }\n // verify the required parameter 'thirdPartyName' is set\n if (thirdPartyName == null) {\n throw new ApiException(\"Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)\");\n }\n\n return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName);\n }", "@Override\n Builder overrideConfiguration(ClientOverrideConfiguration clientOverrideConfiguration);", "public C build() {\n if (configs.isEmpty()) {\n throw new RuntimeException(\"There should be at least one configuration provided\");\n }\n\n // Handling config files\n ConfigSource firstConfigSource = configs.get(0);\n Config firstConfigOrig = getConfigSupplier(firstConfigSource).getConfig();\n if (!(supportedConfig.isInstance(firstConfigOrig))) {\n throw new RuntimeException(\n String.format(\n \"Config is not of parameterized type %s, got instead %s\",\n supportedConfig.getName(), firstConfigOrig.getClass().getName()));\n }\n C firstConfig = (C) firstConfigOrig;\n for (int i = 1; i < configs.size(); ++i) {\n ConfigSource nextConfigSource = configs.get(i);\n Config nextConfig = getConfigSupplier(nextConfigSource).getConfig();\n try {\n firstConfig = copyProperties(firstConfig, nextConfig);\n } catch (Exception ex) {\n throw new RuntimeException(\n String.format(\"Failed to merge config %s into main config\", nextConfigSource), ex);\n }\n }\n\n // Handling string pathValue pairs config overrides\n for (Pair<String, Object> pathValue : pathValueOverrides) {\n try {\n PropertyUtils.setNestedProperty(firstConfig, pathValue.getValue0(), pathValue.getValue1());\n } catch (Exception e) {\n throw new RuntimeException(\n String.format(\n \"Cannot override property %s with value %s\",\n pathValue.getValue0(), pathValue.getValue1()),\n e);\n }\n }\n\n return firstConfig;\n }", "default void buildMainSpace() throws Exception {\n buildMainBuildModules();\n buildMainCheckModules();\n buildMainGenerateAPIDocumentation();\n buildMainGenerateCustomRuntimeImage();\n }", "public abstract void handleConfigurationChanged(Configuration config);", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/builds/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Build> replaceBuild(\n @Path(\"name\") String name, \n @Body Build body);", "@Override\r\n public void execute() throws BuildException {\r\n this.validateProperties(); // sanity check.\r\n if (this.isVerbose) {\r\n System.out.printf(\"Processing changelists for %s %s between %s and %s. %n\",\r\n this.port, this.depotPath, this.fromDate, this.toDate);\r\n }\r\n\r\n try {\r\n Map<String, SensorShell> shellCache = new HashMap<String, SensorShell>();\r\n SensorShellMap shellMap = new SensorShellMap(this.tool);\r\n if (this.isVerbose) {\r\n System.out.println(\"Checking for user maps at: \" + shellMap.getUserMapFile());\r\n System.out.println(\"Perforce accounts found: \" + shellMap.getToolAccounts(this.tool));\r\n }\r\n try {\r\n shellMap.validateHackystatInfo(this.tool);\r\n }\r\n catch (Exception e) {\r\n System.out.println(\"Warning: UserMap validation failed: \" + e.getMessage());\r\n }\r\n \r\n P4Environment p4Env = new P4Environment();\r\n p4Env.setP4Port(this.port);\r\n p4Env.setP4User(this.userName);\r\n p4Env.setP4Password(this.password);\r\n p4Env.setP4Executable(this.p4ExecutablePath);\r\n // These are given default values above. User need not set them in the Ant task unless\r\n // the defaults are not correct.\r\n p4Env.setP4SystemDrive(this.p4SysDrive);\r\n p4Env.setP4SystemRoot(this.p4SysRoot);\r\n p4Env.setVerbose(false); // could set this to true for lots of p4 debugging output. \r\n PerforceCommitProcessor processor = new PerforceCommitProcessor(p4Env, this.depotPath);\r\n processor.setIgnoreWhitespace(this.ignoreWhitespace);\r\n processor.processChangeLists(dateFormat.format(this.fromDate), \r\n dateFormat.format(this.toDate));\r\n int entriesAdded = 0;\r\n TstampSet tstampSet = new TstampSet();\r\n for (PerforceChangeListData data : processor.getChangeListDataList()) {\r\n if (this.isVerbose) {\r\n System.out.printf(\"Retrieved Perforce changelist: %d%n\", data.getId());\r\n }\r\n String author = data.getOwner();\r\n Date commitTime = data.getModTime();\r\n for (PerforceChangeListData.PerforceFileData fileData : data.getFileData()) {\r\n SensorShell shell = this.getShell(shellCache, shellMap, author);\r\n this.processCommitEntry(shell, author, tstampSet\r\n .getUniqueTstamp(commitTime.getTime()), commitTime, data.getId(), fileData);\r\n entriesAdded++;\r\n }\r\n }\r\n // Always make sure you call cleanup() at the end. \r\n processor.cleanup();\r\n if (this.isVerbose) {\r\n System.out.println(\"Found \" + entriesAdded + \" commit records.\");\r\n }\r\n\r\n // Send the sensor data after all entries have been processed.\r\n for (SensorShell shell : shellCache.values()) {\r\n if (this.isVerbose) {\r\n System.out.println(\"Sending data to \" + shell.getProperties().getSensorBaseUser() + \r\n \" at \" + shell.getProperties().getSensorBaseHost());\r\n }\r\n shell.send();\r\n shell.quit();\r\n }\r\n }\r\n catch (Exception ex) {\r\n throw new BuildException(ex);\r\n }\r\n }", "private boolean updateWsCompileProperties(String serviceName) {\n boolean globalPropertiesChanged = false;\n \n EditableProperties globalProperties = PropertyUtils.getGlobalProperties();\n if(globalProperties.getProperty(WSCOMPILE_TOOLS_CLASSPATH) == null) {\n globalProperties.setProperty(WSCOMPILE_TOOLS_CLASSPATH, \"${java.home}\\\\..\\\\lib\\\\tools.jar\"); // NOI18N\n \n try {\n PropertyUtils.putGlobalProperties(globalProperties);\n } catch(IOException ex) {\n NotifyDescriptor desc = new NotifyDescriptor.Message(\n NbBundle.getMessage(AppClientProjectWebServicesClientSupport.class,\"MSG_ErrorSavingGlobalProperties\", serviceName, ex.getMessage()), // NOI18N\n NotifyDescriptor.ERROR_MESSAGE);\n DialogDisplayer.getDefault().notify(desc);\n }\n \n globalPropertiesChanged = true;\n }\n \n \n boolean projectPropertiesChanged = false;\n EditableProperties projectProperties = helper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n \n { // Block that adjusts wscompile.client.classpath as necessary.\n Set<String> wscJars = new HashSet<String>();\n boolean newWscJars = false;\n String wscClientClasspath = projectProperties.getProperty(WSCOMPILE_CLASSPATH);\n if(wscClientClasspath != null) {\n String [] libs = PropertyUtils.tokenizePath(wscClientClasspath);\n for(int i = 0; i < libs.length; i++) {\n wscJars.add(libs[i]);\n }\n }\n \n for(int i = 0; i < WSCOMPILE_JARS.length; i++) {\n if(!wscJars.contains(WSCOMPILE_JARS[i])) {\n wscJars.add(WSCOMPILE_JARS[i]);\n newWscJars = true;\n }\n }\n \n if(newWscJars) {\n StringBuffer newClasspathBuf = new StringBuffer(256);\n for(Iterator<String> iter = wscJars.iterator(); iter.hasNext(); ) {\n newClasspathBuf.append(iter.next().toString());\n if(iter.hasNext()) {\n newClasspathBuf.append(':');\n }\n }\n projectProperties.put(WSCOMPILE_CLASSPATH, newClasspathBuf.toString());\n projectPropertiesChanged = true;\n }\n }\n \n // set tools.jar property if not set\n if(projectProperties.getProperty(WSCOMPILE_TOOLS_CLASSPATH) == null) {\n projectProperties.setProperty(WSCOMPILE_TOOLS_CLASSPATH, \"${java.home}\\\\..\\\\lib\\\\tools.jar\"); // NOI18N\n projectPropertiesChanged = true;\n }\n \n if(projectPropertiesChanged) {\n helper.putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, projectProperties);\n }\n \n return globalPropertiesChanged || projectPropertiesChanged;\n }", "private void registerBuildTarget(Configuration configuration, Build.Project project, Path.Root sourceRoot,\n\t\t\t\tTrie pkg, List<Path.Entry<JavaScriptFile>> jsIncludes) throws IOException {\n\t\t\tTrie target= Trie.fromString(configuration.get(Value.UTF8.class, TARGET_CONFIG_OPTION).unwrap());\n\t\t\t// Extract target JS standard\n\t\t\tString standard = configuration.get(Value.UTF8.class, STANDARD_CONFIG_OPTION).unwrap();\n\t\t\t// Extract strict mode setting\n\t\t\tboolean strict = configuration.get(Value.Bool.class, STRICTMODE_CONFIG_OPTION).unwrap();\n\t\t\t// Specify set of files included\n\t\t\tContent.Filter<WyilFile> wyilIncludes = Content.filter(\"**\", WyilFile.ContentType);\n\t\t\t// Specify whether debug mode enabled or not.\n\t\t\tboolean debug = configuration.get(Value.Bool.class, DEBUG_CONFIG_OPTION).get();;\n\t\t\t// Construct the binary root\n\t\t\tPath.Root binaryRoot = project.getRoot().createRelativeRoot(target);\n\t\t\t// Initialise the target file being built\n\t\t\tPath.Entry<JavaScriptFile> binary = initialiseBinaryTarget(binaryRoot, pkg, strict, standard);\n\t\t\t//\n\t\t\tproject.getRules().add(new AbstractBuildRule<WyilFile, JavaScriptFile>(sourceRoot, wyilIncludes, null) {\n\n\t\t\t\t@Override\n\t\t\t\tprotected void apply(List<Entry<WyilFile>> matches, Collection<Task> tasks) throws IOException {\n\t\t\t\t\t// FIXME: this looks like a bug when we have multiple matches\n\t\t\t\t\tJavaScriptCompileTask task = new JavaScriptCompileTask(project, binary, matches.get(0));\n\t\t\t\t\ttask.setDebug(debug);\n\t\t\t\t\ttask.setIncludes(jsIncludes);\n\t\t\t\t\ttasks.add(task);\n\t\t\t\t}\n\n\t\t\t});\n\t\t}", "void allprojects(Action<? super ProjectPluginDependenciesSpec> configuration);", "default Pair<T, U> build(File file) throws IOException, ConfigurationException {\n return build(new FileConfigurationSourceProvider(), file.toString());\n }", "public void notifyConfigChange() {\n }", "public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }", "public abstract void changeConfiguration(Configuration configuration);", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "private void fireConfigChanged()\n {\n ScmEventBus.getInstance().post(\n new RepositoryHandlerConfigChangedEvent<C>(config));\n }", "private void initialiseConfiguration(final JobExecutionContext context)\n \n {\n // PRECONDITIONS\n assert context != null : \"context must not be null.\";\n \n // Body\n \n // Pull state from the job configuration data.\n JobDataMap jobData = context.getJobDetail().getJobDataMap();\n Object transactionServiceObj = jobData.get(JOB_DATA_PARAMETER_NAME_TRANSACTION_SERVICE);\n Object deploymentReportCleanupServiceObj = jobData.get(JOB_DATA_PARAMETER_NAME_DEPLOYMENT_REPORT_CLEANUP_SERVICE);\n Object webProjectNodeRefObj = jobData.get(JOB_DATA_PARAMETER_NAME_WEB_PROJECT_NODE_REF);\n Object webProjectDNSNameObj = jobData.get(JOB_DATA_PARAMETER_NAME_WEB_PROJECT_DNS_NAME);\n Object maxReportsToPrunePerBatchObj = jobData.get(JOB_DATA_PARAMETER_NAME_MAX_REPORTS_TO_PRUNE_PER_BATCH);\n\n \n // Service Registry\n if (transactionServiceObj == null ||\n !(transactionServiceObj instanceof TransactionService))\n {\n throw new AlfrescoRuntimeException(JOB_DATA_PARAMETER_NAME_TRANSACTION_SERVICE + \" must be provided and must be a reference to an instance of org.alfresco.service.transaction.TransactionService.\");\n }\n \n this.transactionService = (TransactionService)transactionServiceObj;\n \n \n // Timed Deployment Service\n if (deploymentReportCleanupServiceObj == null ||\n !(deploymentReportCleanupServiceObj instanceof DeploymentReportCleanupService))\n {\n throw new AlfrescoRuntimeException(JOB_DATA_PARAMETER_NAME_DEPLOYMENT_REPORT_CLEANUP_SERVICE + \" must be provided and must be a reference to an instance of org.alfresco.extension.deployment.reports.DeploymentReportCleanupService.\");\n }\n \n this.deploymentReportCleanupService = (DeploymentReportCleanupService)deploymentReportCleanupServiceObj;\n\n \n // Web Project, either by NodeRef or DNS Name\n if (webProjectNodeRefObj == null &&\n webProjectDNSNameObj == null)\n {\n throw new AlfrescoRuntimeException(\"Either \" + JOB_DATA_PARAMETER_NAME_WEB_PROJECT_NODE_REF + \" or \" +\n JOB_DATA_PARAMETER_NAME_WEB_PROJECT_DNS_NAME + \" must be provided.\");\n }\n \n if (webProjectNodeRefObj != null)\n {\n this.webProjectNodeRef = new NodeRef((String)webProjectNodeRefObj);\n }\n \n if (webProjectDNSNameObj != null)\n {\n this.webProjectDNSName = (String)webProjectDNSNameObj;\n }\n \n \n // Max reports to prune per batch\n if (maxReportsToPrunePerBatchObj != null &&\n maxReportsToPrunePerBatchObj instanceof String)\n {\n int maxReportsToPrunePerBatch = -1;\n \n try\n {\n maxReportsToPrunePerBatch = Integer.valueOf((String)maxReportsToPrunePerBatchObj);\n \n this.deploymentReportCleanupService.setMaxReportsToPrunePerBatch(maxReportsToPrunePerBatch);\n }\n catch (NumberFormatException nfe)\n {\n // Swallow and move on\n log.warn(\"Unable to parse \" + JOB_DATA_PARAMETER_NAME_MAX_REPORTS_TO_PRUNE_PER_BATCH + \" value '\" + (String)maxReportsToPrunePerBatchObj + \"' - reverting to default.\");\n }\n }\n }", "@Override\n public boolean hasAdditionalConfig() { return true; }", "public Call addThirdPartyConfigurationCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/ThirdPartyConfiguration\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "private void updateQueryWithSpecificConditions(BuildParams buildParams, StringBuilder builder) {\n if (buildParams.isExcludeInternalDependencies()) {\n // exclude internal dependencies\n builder.append(\" where c not in (select build_modules.module_name_id from build_modules \\n\" +\n \"inner join builds on builds.build_id = build_modules.build_id\\n\" +\n \" where builds.build_number=? and builds.build_date=?)\");\n }\n }", "public interface PluginAdapterBuild extends PluginAdapterBase {\n\n /**\n * Defines the project frontend directory from where resources should be\n * copied from for use with webpack.\n *\n * @return {@link File}\n */\n\n File frontendResourcesDirectory();\n\n /**\n * Whether to generate a bundle from the project frontend sources or not.\n *\n * @return boolean\n */\n\n boolean generateBundle();\n\n /**\n * Whether to generate embeddable web components from WebComponentExporter\n * inheritors.\n *\n * @return boolean\n */\n\n boolean generateEmbeddableWebComponents();\n\n /**\n * Whether to use byte code scanner strategy to discover frontend\n * components.\n *\n * @return boolean\n */\n boolean optimizeBundle();\n\n /**\n * Whether to run <code>npm install</code> after updating dependencies.\n *\n * @return boolean\n */\n boolean runNpmInstall();\n\n}" ]
[ "0.66721636", "0.5903664", "0.5605112", "0.55307984", "0.54632705", "0.54334986", "0.53485036", "0.53198355", "0.5242069", "0.5230039", "0.5222986", "0.5194377", "0.5158292", "0.5090018", "0.50786775", "0.50662434", "0.5026396", "0.4970826", "0.4942699", "0.4926749", "0.4883571", "0.4882925", "0.4875404", "0.48746052", "0.48635918", "0.48439053", "0.48179716", "0.4814139", "0.47847182", "0.4773225", "0.4743533", "0.47317946", "0.47317946", "0.4723621", "0.4720762", "0.47063595", "0.46994326", "0.46846768", "0.46827236", "0.46820873", "0.4659977", "0.46259838", "0.4622242", "0.46063828", "0.4600197", "0.45963815", "0.45660138", "0.4552018", "0.4549092", "0.4547921", "0.45474416", "0.4543874", "0.4539451", "0.4535836", "0.4515445", "0.45117462", "0.4509297", "0.45073852", "0.4507126", "0.45037955", "0.45016235", "0.44955474", "0.44955447", "0.44864973", "0.44848338", "0.44824845", "0.44792694", "0.4476348", "0.4464376", "0.4449356", "0.4449265", "0.44352466", "0.4416974", "0.44143128", "0.44100288", "0.44081634", "0.44054842", "0.44039854", "0.440115", "0.44004735", "0.43991563", "0.4390369", "0.43855107", "0.43710968", "0.43687776", "0.43537048", "0.43525714", "0.4345294", "0.43421587", "0.43415692", "0.43394467", "0.43347526", "0.4333141", "0.43273702", "0.4321332", "0.43153012", "0.43105498", "0.42988542", "0.42988238", "0.4297663", "0.429691" ]
0.0
-1
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)"); } return updateThirdPartyConfigurationCall(generalContractId, body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract(Async)\");\n }\n\n return updateContractCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getOneValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getOne(Async)\");\n }\n\n return getOneCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchContract(Async)\");\n }\n\n return patchContractCall(generalContractId, body);\n }", "public TbContract verifyContractIdExist(int chainId, int contractId, int groupId) {\n ContractParam param = new ContractParam(chainId, contractId, groupId);\n TbContract contract = queryContract(param);\n if (Objects.isNull(contract)) {\n log.info(\"contractId is invalid. contractId:{}\", contractId);\n throw new BaseException(ConstantCode.INVALID_CONTRACT_ID);\n }\n return contract;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling revokeAccrual(Async)\");\n }\n\n return revokeAccrualCall(generalContractId);\n }", "public void setContractId(int value) {\n this.contractId = value;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getIframeOptionsValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getIframeOptions(Async)\");\n }\n\n return getIframeOptionsCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getTransferBalanceValidateBeforeCall(ProductInstanceID generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getTransferBalance(Async)\");\n }\n\n return getTransferBalanceCall(generalContractId);\n }", "public void setContractId(Integer contractId) {\n this.contractId = contractId;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getThirdPartyConfigurationValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getThirdPartyConfiguration(Async)\");\n }\n\n return getThirdPartyConfigurationCall(generalContractId);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailableCurrenciesValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailableCurrencies(Async)\");\n }\n\n return getAvailableCurrenciesCall(generalContractId);\n }", "public Call getOneCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public int getContractId() {\n return contractId;\n }", "public String getContractId() {\n return contractId;\n }", "public void setContractId(String contractId) {\n this.contractId = contractId == null ? null : contractId.trim();\n }", "public Integer getContractId() {\n return contractId;\n }", "public ValidationResult validateContract() {\n return validateContract(apiContract);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "public boolean isSetSledContractId() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEDCONTRACTID_ISSET_ID);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call updateBankAccountValidateBeforeCall(String generalContractId, BankAccountDescriptor body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateBankAccount(Async)\");\n }\n\n return updateBankAccountCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)\");\n }\n\n return patchThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addThirdPartyConfiguration(Async)\");\n }\n\n return addThirdPartyConfigurationCall(generalContractId, body);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call terminateValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling terminate(Async)\");\n }\n\n return terminateCall(generalContractId);\n }", "public void setSContractNo(String sContractNo) {\n this.sContractNo = sContractNo;\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n String string0 = EWrapperMsgGenerator.bondContractDetails(1274, contractDetails0);\n assertEquals(\"reqId = 1274 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = FkqJC9O=9\\ntradingClass = null\\nconid = 0\\nminTick = -4322.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "public Call patchContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PATCH\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "public Contract() {\n // initialise instance variables\n generateContractId();\n }", "public void setPartnerContractId(Integer partnerContractId) {\r\n this.partnerContractId = partnerContractId;\r\n }", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "public TbContract verifyContractDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() != contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_NOT_DEPLOY);\n }\n return contract;\n }", "public String getContractNumber() {\n return contractNumber;\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void setContractorID(int contractorID) {\n this.contractorID = contractorID;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call addPaymentLinkConfigurationValidateBeforeCall(String generalContractId, PaymentLinkOptions body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling addPaymentLinkConfiguration(Async)\");\n }\n\n return addPaymentLinkConfigurationCall(generalContractId, body);\n }", "boolean hasBusinessCircleId();", "public TbContract verifyContractNotDeploy(int chainId, int contractId, int groupId) {\n TbContract contract = verifyContractIdExist(chainId, contractId, groupId);\n if (ContractStatus.DEPLOYED.getValue() == contract.getContractStatus()) {\n log.info(\"contract had bean deployed contractId:{}\", contractId);\n throw new BaseException(ConstantCode.CONTRACT_HAS_BEAN_DEPLOYED);\n }\n return contract;\n }", "public Call updateContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n Object localVarPostBody = body;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@SuppressWarnings(\"rawtypes\")\n private Call getAvailablePaymentMethodsValidateBeforeCall(String generalContractId, GetAvailablePaymentMethodsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getAvailablePaymentMethods(Async)\");\n }\n\n return getAvailablePaymentMethodsCall(generalContractId, body);\n }", "public void setContractAmount(Integer contractAmount) {\n this.contractAmount = contractAmount;\n }", "public Contracts() {\r\n super();\r\n \r\n }", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "public void createContract() {\n\r\n\t}", "public boolean isSetContractAddress() {\n return this.contractAddress != null;\n }", "public void initContract(ContractInfo contractInfo)\n {\n this.contractInfo = contractInfo;\n }", "void setContract(int contract) {\r\n\t\tif (contract == 24 || contract == 30 || contract == 36) {\r\n\t\t\tthis.contract = contract;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Vector<String> vector0 = new Vector<String>();\n Contract contract0 = new Contract(0, \"X_\", \"X_\", \"X_\", 1833, \"X_\", \"liquidHours = \", \"X_\", \"Error - \", (String) null, vector0, \"com.ib.client.Execution\", true, \"liquidHours = \", \"com.ib.client.Execution\");\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"\", (String) null, (-2818.2935355), \"\", \"H9~[N\\\"Hv`#|kr]\", 13, \"H9~[N\\\"Hv`#|kr]\", \" underComp.delta =\", \"\", \" underComp.delta =\", \"X_\", (String) null, \"M]G9k=@}tbK\", \"Bwn1n;uU*\");\n String string0 = EWrapperMsgGenerator.contractDetails(1833, contractDetails0);\n assertEquals(\"reqId = 1833 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = X_\\nsecType = X_\\nexpiry = X_\\nstrike = 1833.0\\nright = X_\\nmultiplier = liquidHours = \\nexchange = X_\\nprimaryExch = com.ib.client.Execution\\ncurrency = Error - \\nlocalSymbol = null\\nmarketName = \\ntradingClass = null\\nminTick = -2818.2935355\\nprice magnifier = 0\\norderTypes = \\nvalidExchanges = H9~[N\\\"Hv`#|kr]\\nunderConId = 13\\nlongName = H9~[N\\\"Hv`#|kr]\\ncontractMonth = underComp.delta =\\nindustry = \\ncategory = underComp.delta =\\nsubcategory = X_\\ntimeZoneId = null\\ntradingHours = M]G9k=@}tbK\\nliquidHours = Bwn1n;uU*\\n ---- Contract Details End ----\\n\", string0);\n }", "@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "boolean isSetCompanyBaseData();", "@Test\n public void shouldCreateContractWithPreconditions() {\n // Given\n final Clause precondition1 = ContractFactory.alwaysTrueDefaultClause();\n final Clause precondition2 = ContractFactory.alwaysTrueDefaultClause();\n\n // When\n final Contract contract = ContractFactory.contractWithPreconditions(precondition1, precondition2);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has not all given preconditions!\", contract.preconditions().length == 2);\n }", "public void setContractNumber(String contractNumber) {\n this.contractNumber = contractNumber == null ? null : contractNumber.trim();\n }", "public ContractMethod() {\n }", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)\");\n }\n // verify the required parameter 'thirdPartyName' is set\n if (thirdPartyName == null) {\n throw new ApiException(\"Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)\");\n }\n\n return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName);\n }", "@Test\n public void testGetBusinessId() {\n \n \n assertNull(o1.getBusinessId());\n o1.setBusinessId(Integer.MIN_VALUE);\n assertNotNull(o1.getBusinessId());\n assertEquals(new Integer(Integer.MIN_VALUE), o1.getBusinessId());\n }", "public Call terminateCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/terminate\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "java.lang.String getContract();", "@Test\n public void shouldCreateEmptyContract() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n }", "public abstract void deleteContract(String contractNumber);", "public void checkCreditCard() throws BusinessException;", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "@Test\n public void merchantidTest() {\n assertEquals(Integer.valueOf(12345), authResponse.getMerchantid());\n }", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "VerifyBasicCallback() {\n m_transactionType = null;\n m_procedureName = null;\n }", "private static void validateBaseRequest(final InvBaseRequest request) {\r\n\t\tif (request == null) {\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Request is Null.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Request is Null\");\r\n\t\t}\r\n\r\n\t\tif(request.getTransactionId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid Transaction ID.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid Transaction ID.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getUserId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid User Id.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid User Id.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(null == request.getDistributionCenter() || request.getDistributionCenter().isEmpty() || null == request.getShipToCustomer() || request.getShipToCustomer().isEmpty() ){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Account should not be empty.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Account should not be empty\");\r\n\t\t}\r\n\t}", "public void setXpeContractId(String value) {\n setAttributeInternal(XPECONTRACTID, value);\n }", "@Test\n public void testFailureParInvalidPkceSetting() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n updateClientByAdmin(clientId, (ClientRepresentation cRep)->{\n OIDCAdvancedConfigWrapper.fromClientRepresentation(cRep).setPkceCodeChallengeMethod(\"S256\");\n });\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(400, pResp.getStatusCode());\n assertEquals(OAuthErrorException.INVALID_REQUEST, pResp.getError());\n assertEquals(\"Missing parameter: code_challenge_method\", pResp.getErrorDescription());\n }", "public static int withContract() {\n\t\t{\n\t\t\tString choice;\n\t\t\tint startover;\n\t\t\tImageIcon picture;\n\t\t\tint selectedCode;\n\t\t\tint number1 = (int) (900 * Math.random() + 100);\n\t\t\tint number2 = (int) (9000 * Math.random() + 1000);\n\t\t\tString[] choices = modelsForContract();\n\t\t\t\n\t\t\t// asks which phone the user wants by showing the options based upon their contract preferences\n\t\t\t\n\t\t\tchoice = (String) JOptionPane.showInputDialog(null, \"Which phone whould you like?\", \"Phone Selection\", \n\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, icon, choices, null);\n\t\t\t\n\t\t\t// Depending on the selection, the phones image is displayed.\n\t\t\tif (choice == choices[0])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"galaxyS9.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[1])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"iphoneX.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[2])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"googlePixel.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[3])\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"Motorola.png\");\n\t\t\t}\n\t\t\telse if (choice == choices[4])\n\t\t\t{\n\t\t\t\tSystem.out.print(\"HI\");\n\t\t\t\tpicture = new ImageIcon(\"Huawei.png\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\t\t\tselectedCode = 0;\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\t// Then the area code selection is presented.\n\t\t\tselectedCode = JOptionPane.showOptionDialog(null, \"Please select an area code from below\",\n\t\t\t\t\t\"Area Code Selection\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, picture, areaCodes, areaCodes[0]);\n\t\t\t\n\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Congratulations, \" + firstName + \"!\\nYour new phone is the \" + choice + \".\"\n\t\t\t\t\t+ \"\\nAnd your new phone number is \" + areaCodes[selectedCode] + \"-\" + number1 + \"-\" + number2 + \"!\",\n\t\t\t\t\t\"Congratulations!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t\n\t\t\tstartover = JOptionPane.showOptionDialog(null, \"Would you like to buy another phone \" + firstName + \"?\",\n\t\t\t\t\t\"Awesome Smartphone\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon, null, 0);\n\t\t\t\n\t\t\tif (startover == 1)\n\t\t\t{\n\t\t\t\tpicture = new ImageIcon(\"phoneStoreLogo.png\");\n\t\t\t\tUIManager.put(\"OptionPane.informationIcon\", picture);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Thank you for your business!\",\n\t\t\t\t\t\t\"Thank You!\", JOptionPane.INFORMATION_MESSAGE, null);\n\t\t\t}\n\t\t\treturn startover;\n\t\t}\n\t}", "void setIdVerificationResponseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData idVerificationResponseData);", "boolean isSetIdVerificationResponseData();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Ggeneral)) {\n return false;\n }\n Ggeneral other = (Ggeneral) object;\n if ((this.idgeneral == null && other.idgeneral != null) || (this.idgeneral != null && !this.idgeneral.equals(other.idgeneral))) {\n return false;\n }\n return true;\n }", "public void setCodeCombinationsIdFromGeneral(XxGamMaGeneralReqVORowImpl generalRow) {\n if (generalRow != null) {\n Number codeCombinationId = null;\n codeCombinationId = generalRow.getCostCenter();\n if (codeCombinationId != null) {\n\n RowSetIterator rowSetIter = getRowSetIterator();\n if (rowSetIter != null) {\n rowSetIter.reset();\n while (rowSetIter.hasNext()) {\n Row row = rowSetIter.next();\n XxGamMaPaymentReqVORowImpl detailRow = \n (XxGamMaPaymentReqVORowImpl)row;\n if (detailRow != null) {\n if (detailRow.getGeneralReqId().equals(generalRow.getId())) {\n detailRow.setCodeCombinationId(codeCombinationId);\n }\n }\n }\n rowSetIter.reset();\n }\n }\n }\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public int getContractorID() {\n return contractorID;\n }", "@Test\n public void shouldCreateContractWithPrecondition() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.contractWithPrecondition();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has no precondition!\", contract.preconditions().length == 1);\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "public boolean modifyContract(Contract contract) {\n\t\treturn contractdao.modifyContract(contract);\n\t}", "boolean isSetCapitalPayed();", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "protected boolean validateSubContract(SubContract subContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = subContract.getParentContract().getValidityPeriod();\n \n BasicDiagnostic parameterBlocksDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_BLOCK_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterBlocksValid = validateParameterBlocks(subContract, parameterBlocksDiagnostics, context);\n if(!parameterBlocksValid)\n diagnostics.add(parameterBlocksDiagnostics);\n\n BasicDiagnostic parameterMapsDiagnostics = new BasicDiagnostic(Diagnostic.OK,\n SOURCE_SUB_CONTRACT,\n PARAMETER_MAP_CAT,\n \"\",\n new Object[]{subContract});\n boolean parameterMapsValid = validateParameterMaps(subContract, parameterMapsDiagnostics, context);\n if(!parameterMapsValid)\n diagnostics.add(parameterMapsDiagnostics);\n \n boolean parentValid = true;\n if(!subContract.getPrimaryContract().getValidityPeriod().contains(newPeriod)){\n parentValid &= false;\n diagnostics.add(new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_SUB_CONTRACT, SUB_CONTRACT__RANGE, String.format(\n \"[%s] '%s' conflicts with parent '%s'\", \"Range\",\n getDisplayString(newPeriod), getDisplayString(subContract\n .getPrimaryContract().getValidityPeriod())), new Object[]{subContract.getPrimaryContract()}));\n }\n \n return parameterBlocksValid && parameterMapsValid && parentValid;\n }", "@Override\n\tpublic void setFTGLId(FinancialTransactionGeneralLedger_Id arg0) {\n\n\t}", "@Test\n public void testInsuredPayerPayersId() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setPayersIdEnum,\n RdaFissPayer::getPayersId,\n FissPayersCode.PAYERS_CODE_AUTO_NO_FAULT,\n \"D\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setPayersIdUnrecognized,\n RdaFissPayer::getPayersId,\n RdaFissPayer.Fields.payersId,\n 1);\n }", "public Call revokeAccrualCall(String generalContractId) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/General/Contracts/{generalContractId}/revokeAccrual\"\n .replaceAll(\"\\\\{\" + \"generalContractId\" + \"\\\\}\", apiClient.escapeString(generalContractId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"oauth_token\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\r\n\tvoid testContactServiceUpdateContactWithInValidID() {\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.updateContactFirstName(\"none\", \"enon\");\r\n\t\t});\r\n\t}", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }", "public boolean isSetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENERAL$20) != 0;\r\n }\r\n }", "@Test\n public void testInsuredPayerTreatAuthCd() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }", "private Contract() {\n }", "VerifyBasicCallback(TPCCSimulation.Transaction transaction, String procName) {\n m_transactionType = transaction;\n m_procedureName = procName;\n }", "public void onClick(DialogInterface dialog, int id)\n {\n if(optionAddContract.isChecked())\n {\n selectedContractAddress = contractAddressField.getText().toString();\n dialogListener.onAddContract(selectedContractAddress, selectedContractType);\n }else{\n dialogListener.onCreateContract(selectedContractType);\n }\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Contract contract0 = new Contract();\n String string0 = EWrapperMsgGenerator.contractMsg(contract0);\n assertEquals(\"conid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\n\", string0);\n }", "boolean isSetNcbistdaa();", "public void m9130p() throws cf {\r\n if (this.f6007a == null) {\r\n throw new cz(\"Required field 'domain' was not present! Struct: \" + toString());\r\n } else if (this.f6009c == null) {\r\n throw new cz(\"Required field 'new_id' was not present! Struct: \" + toString());\r\n }\r\n }", "@Test\n public void testBeneZPayerTreatAuthCd() {\n new BeneZPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissBeneZPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }" ]
[ "0.65667087", "0.6498893", "0.64641535", "0.62215364", "0.6210321", "0.61307234", "0.6029447", "0.5991647", "0.58935875", "0.5867352", "0.57154477", "0.5708672", "0.565344", "0.55975854", "0.5568958", "0.5535204", "0.54849637", "0.5439886", "0.5439886", "0.54083145", "0.53983784", "0.538685", "0.5372101", "0.535575", "0.53002197", "0.5298278", "0.5284535", "0.5277213", "0.5228654", "0.5213922", "0.5213851", "0.5203466", "0.5203466", "0.5198705", "0.51919657", "0.5132997", "0.503143", "0.5030267", "0.502797", "0.5015527", "0.5008133", "0.49868008", "0.49842298", "0.49836314", "0.49824694", "0.49804395", "0.4969242", "0.4950973", "0.49493062", "0.49471316", "0.4928483", "0.49245524", "0.49162278", "0.4885365", "0.48522398", "0.4833596", "0.48331168", "0.48331168", "0.48331168", "0.48331168", "0.4830747", "0.4827253", "0.48129195", "0.48126492", "0.4799318", "0.4791708", "0.47801298", "0.4777395", "0.47646844", "0.47614396", "0.47599468", "0.47580373", "0.47508353", "0.47382933", "0.4732828", "0.47288087", "0.47212544", "0.4717133", "0.47137868", "0.47108936", "0.46979916", "0.46949527", "0.46938235", "0.469239", "0.46847698", "0.46842527", "0.46841192", "0.46748438", "0.46745366", "0.46736524", "0.46714628", "0.46679446", "0.4660473", "0.46603698", "0.46579075", "0.4655875", "0.4655484", "0.46554628", "0.46510994", "0.46478415" ]
0.5440859
17
Methods Writes a report file (or files) containing the results from the execution of MAESTRO. If there are too many lines in the resulting file, the report is written to a various files with a consecutive number after the provided name.
public static ArrayList<String> writeReport(MAESTROptimizer manager, String fileRoute, boolean writeConfig, boolean writeICHist, boolean writeGenHist, boolean writeEliteHist, boolean writeAllSolutions) throws IOException { ReportFile file = new ReportFile(); // Write header file.addLineToHeader(REPORT_HEADER_1); DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy K:mm:ss a"); Date date = new Date(manager.getStartTime()); file.addLineToHeader(STARTING_TIME_LABEL + dateFormat.format(date)); date = new Date(); file.addLineToHeader(TERMINATION_TIME_LABEL + dateFormat.format(date)); file.addLineToHeader(SOLUTIONS_LABEL + manager.getSolutionCount()); file.addLineToHeader(TERMINATION_LABEL + manager.getTerminationMessage()); file.addLineToHeader(""); if(writeConfig) { String restartElitism = manager.getRestartElitism() == MAESTROptimizer.RESTART_ELITISM_NO ? RESTART_ELITISM_NO : (manager.getRestartElitism() == MAESTROptimizer.RESTART_ELITISM_ALWAYS ? RESTART_ELITISM_ALWAYS : (manager.getRestartElitism() == MAESTROptimizer.RESTART_ELITISM_DEPENDS ? RESTART_ELITISM_DEPENDS : "N/A")); // Add general parameters int paramTable = file.addTable(); file.addLineToTableHeader(paramTable, PARAMETERS_TABLE_HEADER); file.addLineToTableBody(paramTable, PARAM_UPDATE_DIST + "\t" + manager.getUpdateDist()); file.addLineToTableBody(paramTable, PARAM_GEN_RATIO + "\t" + manager.getGenRatio()); file.addLineToTableBody(paramTable, PARAM_GEN_MIN + "\t" + manager.getGenMin()); file.addLineToTableBody(paramTable, PARAM_GEN_WEIGHT_POP + "\t" + manager.getGenWeightPop()); file.addLineToTableBody(paramTable, PARAM_GEN_WEIGHT_PART1 + "\t" + manager.getGenWeightPart1()); file.addLineToTableBody(paramTable, PARAM_GEN_WEIGHT_ELITE + "\t" + manager.getGenWeightElite()); file.addLineToTableBody(paramTable, PARAM_POP_GROWTH_RATE + "\t" + manager.getPopGrowthRate()); file.addLineToTableBody(paramTable, PARAM_PARTITION_COUNT + "\t" + manager.getPartitionCount()); file.addLineToTableBody(paramTable, PARAM_MIN_RARITY_STD + "\t" + manager.getMinRarityStd()); file.addLineToTableBody(paramTable, PARAM_MAX_RARITY_STD + "\t" + manager.getMaxRarityStd()); file.addLineToTableBody(paramTable, PARAM_ICT_REFUSE + "\t" + manager.getIctRefuse()); file.addLineToTableBody(paramTable, PARAM_ICT_UNIFORMITY + "\t" + manager.getIctUniformity()); file.addLineToTableBody(paramTable, PARAM_RESTART_ELITISM + "\t" + restartElitism); file.addLineToTableBody(paramTable, PARAM_THREAD_COUNT + "\t" + manager.getThreadCount()); file.addLineToTableBody(paramTable, PARAM_TIME_LIMIT + "\t" + manager.getTimeLimit() + " ms"); file.addLineToTableBody(paramTable, PARAM_SOLUTION_LIMIT + "\t" + manager.getSolutionLimit()); file.addLineToTableFooter(paramTable, ""); // Add generator configuration int genTable = file.addTable(); file.addLineToTableHeader(genTable, GENERATORS_TABLE_HEADER); file.addLineToTableHeader(genTable, GENERATORS_ID + "\t" + GEN_TOTAL_ID + "\t" + PARAMETERS_ID); ArrayList<GenWrapper> generators = manager.getGenerators(); for(GenWrapper generator : generators) { String line = ""; line += generator.getId() + " (" + generator.getShortId() + ")"; line += "\t" + generator.getGenTotal(); line += "\t" + generator.getParamSummary(); file.addLineToTableBody(genTable, line); } file.addLineToTableFooter(genTable, ""); } // Add inner cycle history if(writeICHist) { int icHistTable = file.addTable(); file.addLineToTableHeader(icHistTable, IC_HIST_TABLE_HEADER); file.addLineToTableHeader(icHistTable, INNER_CYCLE_ID + "\t" + POPULATION_ID + "\t" + SOLUTION_COUNT_ID + "\t" + FOUND_BETTER_ID + "\t" + IC_TERMINATION_ID); ArrayList<ICLogEntry> icLog = manager.getICLog(); for(int i = 0 ; i < icLog.size() ; i++) { ICLogEntry entry = icLog.get(i); String line = (i + 1) + ""; line += "\t" + entry.getPopulation(); line += "\t" + entry.getSolutions(); line += "\t" + entry.foundBest(); int term = entry.getTermination(); line += "\t" + (term == ICLogEntry.REFUSED ? IC_TERM_REFUSE : (term == ICLogEntry.UNIFORMITY ? IC_TERM_UNIFORMITY : IC_TERM_OC_ENDED)); file.addLineToTableBody(icHistTable, line); } file.addLineToTableFooter(icHistTable, ""); } // Add generator use history if(writeGenHist) { int genHistTable = file.addTable(); file.addLineToTableHeader(genHistTable, GEN_HIST_TABLE_HEADER); file.addLineToTableHeader(genHistTable, GENERATION_ID + "\t" + INNER_CYCLE_ID + "\t" + GENERATORS_ID + "\t" + GEN_SOLUTIONS_ID + "\t" + GEN_TIME + "\t" + GEN_TIME_PER_SOLUTION); ArrayList<String> gens = manager.getGenHist(); for(int i = 0 ; i < gens.size() ; i++) file.addLineToTableBody(genHistTable, (i + 1) + "\t" + gens.get(i)); file.addLineToTableFooter(genHistTable, ""); } // Add best solutions TreeSet<SolutionWrapper> bestSolutions = manager.getBestSolutions(); if(bestSolutions != null) if(bestSolutions.size() > 0) { int bestTable = file.addTable(); file.addLineToTableHeader(bestTable, BEST_SOLUTIONS_TABLE_HEADER); addSolutionHeader(manager, bestSolutions.first(), file, bestTable); Iterator<SolutionWrapper> solutions = bestSolutions.descendingIterator(); addSolutionList(manager, solutions, file, bestTable); file.addLineToTableFooter(bestTable, ""); } // Add elite solution history if(writeEliteHist) { ArrayList<SolutionWrapper> eliteHistory = manager.getEliteHistory(); if(eliteHistory.size() > 0) { int eliteTable = file.addTable(); file.addLineToTableHeader(eliteTable, ELITE_SOLUTIONS_TABLE_HEADER); addSolutionHeader(manager, eliteHistory.get(0), file, eliteTable); Iterator<SolutionWrapper> solutions = eliteHistory.iterator(); addSolutionList(manager, solutions, file, eliteTable); file.addLineToTableFooter(eliteTable, ""); } } // Add all solutions if(writeAllSolutions) { ArrayList<SolutionWrapper> allSolutions = manager.getAllSolutions(); if(allSolutions.size() > 0) { int allTable = file.addTable(); file.addLineToTableHeader(allTable, ALL_SOLUTIONS_TABLE_HEADER); addSolutionHeader(manager, allSolutions.get(0), file, allTable); Iterator<SolutionWrapper> solutions = allSolutions.iterator(); addSolutionList(manager, solutions, file, allTable); file.addLineToTableFooter(allTable, ""); } } // Save to file return file.writeFile(fileRoute); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeToFile(String outputName) throws Exception{\n if (trials == null || data == null) throw new Exception(\"Must read marker and data file before writing it out\");\n BufferedWriter bw = new BufferedWriter(new FileWriter(outputName));\n \n //.. write out the headers\n for (int i= FIRSTPROBEINDEX; i < header.length; i++) {\n bw.write(header[i]);\n bw.write(\",\");\n }\n \n //.. write out condition\n bw.write(\"condition\");\n \n bw.write(\"\\n\");\n int rowNum =0;\n \n //.. write out actual data\n for (String [] row : data) {\n if (row.length!= header.length) System.out.println(\"Row has \" + row.length + \" whereas header has \" + header.length);\n String label =null;\n for (int i = FIRSTPROBEINDEX; i < row.length; i++) {\n label = getLabel(rowNum); //.. will be null if it doesn't exist\n \n if (label != null ) {\n bw.write(row[i]);\n bw.write(\",\");\n }\n }\n if (label!=null) {\n //System.out.println(\"Writing \" + getLabel(rowNum));\n String condition = getLabel(rowNum);\n bw.write(condition);\n bw.write(\"\\n\");\n \n //.. this is a hack since my program gives an error if a conditon jsut has one line\n if (condition.equals(\"passed\")) duplicateLastLine(bw, row, condition,20 );\n \n }\n rowNum++;\n }\n \n bw.close();\n }", "private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }", "public static void createResponseReportTxt(String fileName) {\r\n\t\t\ttry {\r\n\t\t\tConnector con = new Connector();\r\n\t\t\tcon.connect();\r\n\t\t\t\r\n\t\t\tResultSet resultSet = con.MakeQuery(\"SELECT \\\"studentEmail\\\" FROM \\\"\" + fileName+\"\\\"\");\r\n\t\t\t\r\n\t\t\twhile(resultSet.next()) {\r\n\t\t\t\tString email = resultSet.getString(1);\r\n\t\t\t\temail = email.substring(0, 6);\r\n\t\t\t\tString userHomePath = System.getProperty(\"user.home\");\r\n\t\t\t\tFile gradeReport = new File(userHomePath+\"\\\\Documents\\\\Reports\\\\Responses\\\\\"+fileName+ email+\".answers.txt\");\r\n\t\t\t\tif (gradeReport.createNewFile()){\r\n\t\t \t}else{\r\n\t\t \t}\r\n\t\t\t}\r\n\t \t\t \r\n\t\t\t//Change file to where ever Harris wants\r\n\t\t\t//userHomePath is the default user default account \r\n\t\t\t//Ex. C:\\Users\\as12660\r\n\t\t\r\n\t \t} catch (IOException e) {\r\n\t \t\te.printStackTrace();\r\n\t \t} catch (Exception ie) {\r\n\t \t\tie.printStackTrace();\r\n\t\t}\r\n\t}", "public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }", "private static void writeStatistics(String name) throws IOException {\n fileWriter = new BufferedWriter(new FileWriter(PATH + \"/uid/\" + name));\n fileWriter.write(\"Number of Nodes total: \" + globalVertexCount);\n fileWriter.newLine();\n fileWriter.write(\"Number of Edges total: \" + globalEdgeCount);\n fileWriter.newLine();\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Nodes counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapNodes.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Edges counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapEdges.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.close();\n }", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "public void saveFinalReportToFile(int b, int k) {\n updateGeneralParameters();\n\n try {\n\n String fileName = (\"K_\" + k + \"_B_\" + b +\".txt\");\n File file = new File(fileName);\n FileWriter fileWriter = new FileWriter(file);\n\n if (simulator_numberOfCompletedSingleSimulations == 1) {\n fileWriter.write(\"-----> Parametry wejściowe: \\n\");\n fileWriter.write(\"C = \" + simulator_serverCapacity + \"\\n\");\n fileWriter.write(\"PR = \" + stream_maxIntensityOfIncomingPackets + \"\\n\");\n fileWriter.write(\"SR = \" + stream_meanIntensityOfIncomingPackets + \"\\n\");\n fileWriter.write(\"M = \" + stream_packetLength + \"\\n\");\n\n fileWriter.write(\"N = \" + numberOfIncomingStreams + \"\\n\");\n fileWriter.write(\"n_all = \" + simulator_numberOfRequestedSingleSimulations + \"\\n\");\n fileWriter.write(\"n_one = \" + simulationEndParameterValue + \"\\n\");\n\n fileWriter.write(\"-----> Parametry wyliczone: \" + \"\\n\");\n fileWriter.write(\"t_on = \" + stream_onStateDuration + \"\\n\");\n fileWriter.write(\"t_off = \" + stream_offStateDuration + \"\\n\");\n fileWriter.write(\"service = \" + stream_serviceTime + \"\\n\");\n fileWriter.write(\"delta1 = \" + stream_intervalBetweenPacketsInOneBurst + \"\\n\");\n fileWriter.write(\"delta2 = \" + stream_intervalBetweenPacketsInDifferentBursts + \"\\n\");\n }\n\n\n fileWriter.write(\"K = \" + stream_burstLength + \"\\n\");\n fileWriter.write(\"B = \" + queueSizeLimit + \"\\n\");\n\n fileWriter.write(\"-----> Wyniki symulacji: \" + \"\\n\");\n fileWriter.write(\"Uśrednione prawdopodobieństwo utraty pakietów = \" + simulator_probabilityOfClientRejection + \"\\n\");\n fileWriter.write(\"Uśredniona zajętość serwera obsługi = \" + simulator_meanServerStatusBusy + \"\\n\");\n fileWriter.write(\"Uśredniona liczba pakietów w kolejce = \" + simulator_meanNumberOfClientsInQueue + \"\\n\");\n fileWriter.write(\"Uśredniony czas oczekiwania = \" + simulator_meanWaitingTimeInQueue + \"\\n\");\n\n\n fileWriter.write(\"-----> Tablice wyników jednostkowych: \" + \"\\n\");\n fileWriter.write(lossProbabilityScoresList.toString() + \"\\n\");\n\n\n fileWriter.flush();\n fileWriter.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n };\n }", "public void writeResults(ArrayList<SampleSpectrum> spectra, String mgfFilename, int maxResults) throws FileNotFoundException\n\t{\n\t\tFile mgfFile = new File(mgfFilename);\n\t\tString parentFolder = mgfFile.getParent();\n\t\tString resultFileName = mgfFile.getName().substring(0,mgfFile.getName().lastIndexOf(\".\"))+\"_Results.csv\";\n\n\t\t//Check if results exists and if not create results folder in mgf file folder\n\t\tFile resultsDir = new File(parentFolder);\n\t\tif (!resultsDir.exists()) resultsDir.mkdir();\n\n\t\tPrintWriter pw = new PrintWriter(resultsDir.toString()+\"\\\\\"+resultFileName);\n\n\t\tpw.println(\"MS2 ID,Retention Time (min),Rank,Identification,\"\n\t\t\t\t+ \"Precursor Mass,Library Mass,Delta m/z,Dot Product,Reverse Dot Product,Purity,Spectral Components,Optimal Polarity,LipiDex Spectrum,Library,Potential Fragments\");\n\n\t\tfor (int i=0; i<spectra.size(); i++)\n\t\t{\n\t\t\tif (spectra.get(i).idArray.size() > 0)\n\t\t\t{ \n\t\t\t\tif(spectra.get(i).idArray.get(0).dotProduct>1)\n\t\t\t\t{\n\t\t\t\t\tpw.println(spectra.get(i).toString(maxResults));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tpw.close();\n\t}", "public static void createFile(String name)\n {\n file = new File(name);\n try\n {\n if(file.exists())\n {\n file.delete();\n file.createNewFile();\n }else file.createNewFile();\n \n fileWriter = new FileWriter(file);\n fileWriter.append(\"Generation, \");\n fileWriter.append(\"Fitness, \");\n fileWriter.append(\"Average\\n\");\n \n }catch (IOException e) \n {\n System.out.println(e);\n }\n \n }", "public String generateResultsReport(HashMap<String, Integer> data) throws IOException {\n Date today = new Date();\n\n String resultData = generateJsonDataForReport(data);\n String directoryPath = properties.getProperty(\"path.to.reports\");\n String fileLocation = directoryPath + \"dataTrendsResults\" + \"_\" + today.getTime() + \".html\";\n try {\n\n File directory = new File(directoryPath);\n if (!directory.exists()) {\n directory.mkdirs();\n }\n\n File report = new File(fileLocation);\n FileOutputStream os = new FileOutputStream(report);\n OutputStreamWriter osw = new OutputStreamWriter(os);\n Writer writer = new BufferedWriter(osw);\n writer.write(generatePageReportHtml(resultData));\n writer.close();\n } catch (IOException e) {\n System.out.println(\"There was a problem writing the report to \" + fileLocation + \", exception: \" + e.getMessage());\n }\n\n return fileLocation;\n }", "public static void rep_WriteResults(String strTemplatePath, String strOutputPath) {\n String strStatus;\n strStatus = \"Pass\";\n intPassCount = 0;\n intFailCount = 0;\n intInfoCount = 0;\n try {\n String reportIn = new String(Files.readAllBytes(Paths.get(strTemplatePath)));\n for (int i = 0; i < details.size(); i++) {\n //if statement to prevent duplication of test step numbers in the report\n if (i == 0) {\n\n\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else if (details.get(i).getResult().equals(\"Step\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=left width=100><font color=\\\"blue\\\">\" + details.get(i).getResult() + \"</font></td><td><font color=\\\"blue\\\">\" +\n details.get(i).getResultText() + \"</font></td></tr>\" + resultPlaceholder);\n\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n\n\n } else if (details.get(i).getintTestStep() == details.get(i - 1).getintTestStep()) {\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n } else {\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else if (details.get(i).getResult().equals(\"Step\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=left width=100><font color=\\\"blue\\\">\" + details.get(i).getResult() + \"</font></td><td><font color=\\\"blue\\\">\" +\n details.get(i).getResultText() + \"</font></td></tr>\" + resultPlaceholder);\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n }\n\n }\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</table>\");\n String currentDate = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\n\n\n String currentTime = CommonFunctionTest.com_CurrentTime();\n String reportPath = strOutputPath + \"\\\\report_\" + currentDate + \"_\" + currentTime + \"_\" + strStatus + \".html\";\n\n Files.write(Paths.get(reportPath), reportIn.getBytes(), StandardOpenOption.CREATE);\n\n } catch (Exception e) {\n System.out.println(\"Error when writing report file:\\n\" + e.toString());\n }\n }", "private void writeSizeReport()\n {\n Writer reportOut = null;\n try\n {\n reportOut = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(sizeReportFile), \"UTF8\"));\n reportOut.write(report.generate());\n reportOut.flush();\n }\n catch (Exception e)\n {\n // TODO: report a problem\n throw new RuntimeException(e);\n }\n finally\n {\n if (reportOut != null)\n try\n {\n reportOut.close();\n }\n catch (IOException e)\n {\n // ignore\n }\n }\n }", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "private void writeResults() {\n File externalStorage = Environment.getExternalStorageDirectory();\n if (!externalStorage.canWrite()) {\n Log.v(TAG, \"sdcard is not writable\");\n return;\n }\n File resultFile = new File(externalStorage, RESULT_FILE);\n resultFile.setWritable(true, false);\n try {\n BufferedWriter rsWriter = new BufferedWriter(new FileWriter(resultFile));\n Log.v(TAG, \"Saved results in: \" + resultFile.getAbsolutePath());\n java.text.DecimalFormat df = new java.text.DecimalFormat(\"######.##\");\n\n for (int ct=0; ct < IPTestListJB.TestName.values().length; ct++) {\n IPTestListJB.TestName t = IPTestListJB.TestName.values()[ct];\n final float r = mResults[ct];\n float r2 = rebase(r, t);\n String s = new String(\"\" + t.toString() + \", \" + df.format(r) + \", \" + df.format(r2));\n rsWriter.write(s + \"\\n\");\n }\n rsWriter.close();\n } catch (IOException e) {\n Log.v(TAG, \"Unable to write result file \" + e.getMessage());\n }\n }", "public void toFile (String nameFile)\n {\n //definir dados\n int i, j;\n int lin;\n int col;\n FILE arquivo;\n\n //obter dimensoes\n lin = lines();\n col = columns();\n\n //verificar se as dimensoes sao validas\n if( lin <= 0 || col <= 0 )\n {\n IO.println(\"ERRO: Tamanho(s) invalido(s). \");\n } //end\n else\n {\n //verificar se tabela e' valida\n if( table == null )\n {\n IO.println(\"ERRO: Matriz invalida. \" );\n } //end\n else\n {\n arquivo = new FILE(FILE.OUTPUT, nameFile);\n arquivo.println(\"\"+ lin);\n arquivo.println(\"\"+ col);\n\n //pecorre para preencher a matriz\n for( i = 0; i < lin; i++)\n {\n for(j = 0; j < col; j++)\n {\n arquivo.println(\"\" + table[ i ][ j ]);\n } //end repetir\n } //end repetir\n //fechar arquivo (indispensavel)\n arquivo.close();\n } //end se\n } //end se\n }", "@Override\n\tprotected void saveResults(){\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"_yyyy_MM_dd_HH:mm:ss\");\n\t\tDate date = new Date();\n\t\ttry(BufferedWriter bw=new BufferedWriter(new FileWriter(\"/home/daniel/results/\"+this.mAffinityType+\"/\"+this.getClass().getSimpleName()+\"/\"+MAX_TASK_AGE+\"/\"+mOutputFileName+dateFormat.format(date)))){\n\t\t\tbw.write(this.getClass().getSimpleName()+\" with max age=\"+MAX_TASK_AGE+\"\\n\");\n\t\t\tbw.write(\"Total processing time: \"+cycles+\" TU\\n\");\n\t\t\tint count=0;\n\t\t\tfor(Task t : mTasks){\n\t\t\t\tbw.write(++count + \":\");\n\t\t\t\tif(t.getmAge()>=MAX_TASK_AGE){\n\t\t\t\t\tbw.write(\"Aging used\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tbw.write(\"Aging not used\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t DecimalFormat df = new DecimalFormat(\"0.0\");\n\t\t\t\t\t\tbw.write(\"[\"+df.format(AFFINITY3[i][j][k])+\"]\");\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"\\n\");\n\t\t\t\t}\n\t\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void generarReporte(String fileNameOut){\n LinkedList datos;\n LinkedList listaHojas;\n frmHoja tmpSheet;\n Clases.Dato tmpDato;\n int numRows = 0;\n int numCols = 0;\n try{\n sw = new FileWriter(fileNameOut,true);\n //obtener lista de hojas desde el workplace\n listaHojas = wp.getListaHojas();\n\n //escribir encabezado de HTML a stream\n sw.write(\"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01 Transitional//EN\\\">\\n\");\n sw.write(\"<html>\\n<head>\\n<meta content=\\\"text/html; charset=ISO-8859-1\\\" http-equiv=\\\"content-type\\\">\\n\");\n sw.write(\"<title>JExcel</title>\\n\");\n sw.write(\"</head>\\n<body>\\n\");\n sw.write(\"<big><span style=\\\"font-weight: bold;\\\">Hoja generada por JExcel</span></big><br>\\n\");\n sw.write(\"<small>Universidad Mariano Gálvez de Guatemala</small><br>\\n<br>\\n\");\n sw.write(\"<small>Extensión Morales Izabal</small><br>\\n<br>\\n\");\n sw.write(\"<small>(C) Amy C. Leiva - 4890-15-</small><br>\\n<br>\\n\");\n // Iterar sobre cada hoja en listaSheets\n for (int i = 0; i < listaHojas.size();i++){\n // obtener maximo numero de datos\n tmpSheet = (frmHoja) listaHojas.get(i);\n\n numRows = tmpSheet.getHoja().getRowCount();\n numCols = tmpSheet.getHoja().getColumnCount();\n sw.write(\"<table style=\\\"text-align: left; width: 100%;\\\" border=\\\"1\\\" cellpadding=\\\"2\\\" cellspacing=\\\"2\\\">\\n\");\n sw.write(\"<tbody>\\n\");\n sw.write(\" <tr> <td colspan=\\\"4\\\" rowspan=\\\"1\\\"><big><span style=\\\"font-weight: bold;\\\">\");\n sw.write(\"Nombre de la Hoja: \" + tmpSheet.getId());\n sw.write(\"</span></big></td>\\n</tr>\\n\");\n sw.write(\" <tr><td>Fila</td><td>Columna</td><td>Expresi&oacute;n</td> <td>Valor Num&eacute;rico</td> </tr>\\n\");\n // obtener lista de datos desde matriz\n if( tmpSheet.getHoja().getTabla().estaVacia() == false){ // si la tabla tiene datos\n datos = tmpSheet.getHoja().getTabla().getSubset(1,1,numCols,numRows);\n //escribir tabla con datos generados\n for (int j = 0; j < datos.size();j++){\n tmpDato = (Clases.Dato) datos.get(j); \n sw.write(\"<tr>\\n\");\n sw.write(\"<td>\" + tmpDato.getRow() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getCol() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getExpr() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.eval() + \"</td>\\n\");\n sw.write(\"</tr>\\n\");\n }\n }\n else{\n sw.write(\"<tr><td colspan=\\\"4\\\" rowspan=\\\"1\\\"> Hoja Vacia... </td></tr>\");\n }\n sw.write(\" </tbody></table>\\n<br><br><br>\");\n // sw.write();\n // sw.write();\n }\n //escribir fin de datos\n sw.write(\"</body></html>\");\n //escribir a archivo de salida\n sw.close();\n }\n catch(Exception e){\n System.out.println(\"No se pudo guardar archivo:\" + e);\n }\n \n }", "public void makeReport() throws IOException{\n File report = new File(\"Report.txt\");\n BufferedWriter reportWriter = new BufferedWriter(new FileWriter(report));\n BufferedReader bookReader = new BufferedReader(new FileReader(\"E-Books.txt\"));\n String current;\n while((current = bookReader.readLine()) != null ){\n String[] tokens = current.split(\",\");\n reportWriter.write(tokens[0].trim()+\" for \"+tokens[1].trim()+\" with redemption Code \"+tokens[2].trim()+\n \" is assigned to \"+tokens[4].trim()+\" who is in \"+tokens[5].trim()+\" grade.\");\n reportWriter.write(System.lineSeparator());\n reportWriter.flush();\n }\n reportWriter.close();\n bookReader.close();\n new reportWindow();\n }", "public void fnWriteTestSummary(String strTestCaseName, String strResult, String strDuration){\r\n \tString sColor,sRowColor;\r\n \r\n //Close the file\r\n try{ \r\n\t //Open the test case report for writing \r\n\t foutStrm = new FileOutputStream(Environment.get(\"HTMLREPORTSPATH\")+ \"\\\\SummaryReport.html\", true);\r\n\t \r\n\t //Check color result\r\n\t if (strResult.toUpperCase().equals(\"PASSED\") || strResult.toUpperCase().equals(\"PASS\")){\r\n\t sColor = \"GREEN\";\r\n\t g_iTCPassed ++;\r\n\t }\r\n\t else if (strResult.toUpperCase().equals(\"FAILED\") || strResult.toUpperCase().equals(\"FAIL\")){\r\n\t \tsColor = \"RED\";\r\n\t }\r\n\t else{\r\n\t \tsColor = \"ORANGE\";\r\n\t }\r\n\t\r\n\t g_iTestCaseNo++;\r\n\t\r\n\t if (g_iTestCaseNo % 2 == 0){sRowColor = \"#EEEEEE\";}\r\n\t else{sRowColor = \"#D3D3D3\";}\r\n\t \r\n\t //Write the result of Individual Test Case\r\n\t new PrintStream(foutStrm).println (\"<TR COLS=3 BGCOLOR=\" + sRowColor + \"><TD WIDTH=10%><FONT FACE=VERDANA SIZE=2>\" + g_iTestCaseNo + \"</FONT></TD><TD WIDTH=60%><FONT FACE=VERDANA SIZE=2>\" + strTestCaseName + \"</FONT></TD><TD WIDTH=15%><A HREF='\" + strTestCaseName + \".html'><FONT FACE=VERDANA SIZE=2 COLOR=\" + sColor + \"><B>\" + strResult + \"</B></FONT></A></TD><TD WIDTH=15%><FONT FACE=VERDANA SIZE=2>\" + strDuration+ \"</FONT></TD></TR>\");\r\n \r\n \tfoutStrm.close();\r\n }\r\n catch (IOException io) \r\n\t\t{\r\n\t\t\tio.printStackTrace();\r\n\t\t}\r\n foutStrm = null;\r\n\r\n }", "public void writeFile(String[] results) {\n\t\ttry {\n\t\t\tFile file = new File(outputFile);\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\tfor(int i = 0; i < results.length; i++) {\n\t\t\t\tString[] tuple = testTuples.get(i);\n\t\t\t\t// convert String[] to String\n\t\t\t\tString tupleString = \"\";\n\t\t\t\tfor(int j = 0; j < tuple.length; j++) {\n\t\t\t\t\ttupleString += tuple[j] + \",\";\n\t\t\t\t}\n\t\t\t\twriter.write(tupleString + results[i] + \"\\n\");\n\t\t\t}\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private static void textFilesOutput() {\n\n // make output directory if it doesn't already exist\n new File(\"output\").mkdirs();\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 try {\n airportFlightCounter.toTextFile();\n flightInventory.toTextFile();\n flightPassengerCounter.toTextFile();\n mileageCounter.toTextFile();\n } catch (FileNotFoundException e) {\n logger.error(\"Could not write to one or more text files - please close any open instances of that file\");\n e.printStackTrace();\n }\n\n logger.info(\"Output to text files completed\");\n }", "public void write(String outputFolder, String name) throws IOException {\n for (Gender gender : this.keySet1()) {\n for (EventScoringTable scoreTable : this.get(gender).values()) {\n File outFile = new File(String.format(\"%s/Table %s - %s - %s.csv\",\n outputFolder,\n name,\n gender,\n scoreTable.getEvent().getIaafName()\n ));\n if (outFile.getParentFile().mkdirs()) {\n System.out.println(\"Created directory: \" + outFile.getParent());\n }\n\n FileWriter fileWriter = new FileWriter(outFile);\n fileWriter.write(String.format(\"%s,%s%n\", \"performance\", \"points\"));\n\n for (Entry<Double, Integer> score : scoreTable.getPerformancePoints().entrySet()) {\n fileWriter.write(String.format(Locale.ENGLISH,\n \"%.2f,%d%n\",\n score.getKey(),\n score.getValue()\n ));\n }\n fileWriter.close();\n }\n }\n System.out.println(\"Written conversion tables to: \" + outputFolder);\n }", "@Override\n public void report() {\n\n try {\n File mFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/metrics.txt\");\n File eFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/latency_throughput.txt\");\n if (!mFile.exists()) {\n mFile.createNewFile();\n }\n if (!eFile.exists()) {\n eFile.createNewFile();\n }\n\n FileOutputStream mFileOut = new FileOutputStream(mFile, true);\n FileOutputStream eFileOut = new FileOutputStream(eFile, true);\n\n StringBuilder builder = new StringBuilder((int) (this.previousSize * 1.1D));\n StringBuilder eBuilder = new StringBuilder((int) (this.previousSize * 1.1D));\n\n// Instant now = Instant.now();\n LocalDateTime now = LocalDateTime.now();\n\n builder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n eBuilder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n\n builder.append(lineSeparator).append(\"---------- Counters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- records counter ----------\").append(lineSeparator);\n for (Map.Entry metric : counters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n if (( (String)metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Gauges ----------\").append(lineSeparator);\n for (Map.Entry metric : gauges.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Gauge) metric.getKey()).getValue()).append(lineSeparator);\n }\n\n builder.append(lineSeparator).append(\"---------- Meters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- throughput ----------\").append(lineSeparator);\n for (Map.Entry metric : meters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n if (((String) metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Histograms ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- lantency ----------\").append(lineSeparator);\n for (Map.Entry metric : histograms.entrySet()) {\n HistogramStatistics stats = ((Histogram) metric.getKey()).getStatistics();\n builder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n eBuilder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n }\n\n mFileOut.write(builder.toString().getBytes());\n eFileOut.write(eBuilder.toString().getBytes());\n mFileOut.flush();\n eFileOut.flush();\n mFileOut.close();\n eFileOut.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "static void getReport(String root) throws Exception {\n\t\tint k = 7;\n\t\twhile (k <= 7) {\n\t\t\tint i = 1;\n\t\t\twhile (i <= 10) {\n\t\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\t\tif (k == 1) {\n\t\t\t\t\tSystem.out.println(root + \"M1/M1.1//Testbeds-\" + i);\n\t\t\t\t\tConfigManager.filePath = root + \"M1/M1.1//Testbeds-\" + i + \"/Generated/\";\n\t\t\t\t\tSemCPSMain main2 = new SemCPSMain();\n\t\t\t\t\tmain2.readConvertStandardFiles();\n\t\t\t\t\tmain2.generatePSLDataModel();\n\t\t\t\t\tmain2.executePSLAproach();\n\n\t\t\t\t} else {\n\n\t\t\t\t\tSystem.out.println(root + \"M\" + k + \"/Testbeds-\" + i);\n\t\t\t\t\tConfigManager.filePath = root + \"M\" + k + \"/Testbeds-\" + i + \"/Generated/\";\n\t\t\t\t\tSemCPSMain main = new SemCPSMain();\n\t\t\t\t\tmain.readConvertStandardFiles();\n\t\t\t\t\tmain.generatePSLDataModel();\n\t\t\t\t\tmain.executePSLAproach();\n\t\t\t\t}\n\t\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\t\tlong totalTime = endTime - startTime;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFileWriter fw = new FileWriter(ConfigManager.getFilePath()+\"PSL/test/Precision/F1NoTraining.txt\",true);\n\t\t\t\tfw.write(\"Time:\" + totalTime);//appends the string to the file\n\t\t\t fw.close();\n\t\t\t\t\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t}", "public static void main(String[] args) throws IOException\n {\n \n // Declare Variables \n int count = 0;\n \n // PrintWriter class to create and open new file\n PrintWriter outputFile = new PrintWriter(\"NumbersJamesM.txt\"); \n \n // For loop to add 1 to the number each time\n for (count = 1; count <= 10; count++) // Initilize count to 1,\n { // Run until count is more than 10\n // After each loop add 1 to count. \n \n outputFile.println(count); // Output current count number to outputFile\n \n } \n \n // Close the file \n outputFile.close();\n \n }", "public static void main(String[] args) throws IOException {\n PrintWriter outputFile = new PrintWriter(\"ResultFile.txt\");\n\n outputFile.println(\"Line 1\");\n outputFile.println(\"Line 2\");\n outputFile.println(\"Line 3\");\n outputFile.println(\"Line 4\");\n\n\n outputFile.close();\n\n }", "@Test\n\tpublic void testWriteToFile() {\n\t\tArrayList<ArrayList<String>> risultatoAnalisi = \n\t\t\t\tnew ArrayList<ArrayList<String>>();\n\t\toutput.setAnalysisResult(risultatoAnalisi);\n\t\tString percorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ora passo un path corretto e controllo che venga creato il fiile\n\t\t */\n\t\tpercorso = \"test-dir\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + File.separator + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ripeto il test con valori da scrivere\n\t\t */\n\t\tArrayList<String> datiCasuali = new ArrayList<String>();\n\t\tdatiCasuali.add(\"27\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"12\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"3245543\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\toutput.setAnalysisResult(risultatoAnalisi); \n\t\tpercorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\t\t\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t}", "private void downloadReport() {\n // Get Employees and Tasks\n ArrayList<Employee> inUnit = Main.getEmployeesInUnit();\n ArrayList<Task> allTasks = Main.getAllTasks();\n\n // Create BufferedWriter Object\n String fileName = fileDate.format(new Date()) + \"_report.csv\";\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(fileName));\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Filename already exists.\");\n }\n\n try {\n // Write Header\n writer.write(\n \"Task ID,Task Description,Employee ID, Employee Name, WiGrow Needed, Incomplete Scheduling, Exception Report Needed\\n\");\n // Look through employee and their task\n for (int i = 0; i < inUnit.size(); ++i) {\n Employee current = inUnit.get(i);\n for (int j = 0; j < allTasks.size(); ++j) {\n Task currentTask = allTasks.get(j);\n // If found, write to file\n if (currentTask.getEmployees().contains(current)) {\n writer.write(currentTask.getID() + \",\" + currentTask.getDescription() + \",\"\n + current.getId() + \",\" + current.getName() + \",\" + current.isWiGrow() + \",\"\n + current.isScheduling() + \",\" + current.isExceptionReport() + \"\\n\");\n }\n }\n }\n writer.close();\n } catch (IOException e) {\n // Do nothing\n\n }\n // Alert pop up\n Alert downloadSuccess = new Alert(AlertType.NONE, \"Successfully Downloaded Report! It is named \"\n + fileName + \" and is located in your program's local directory.\");\n downloadSuccess.setTitle(\"Download File\");\n downloadSuccess.getButtonTypes().add(ButtonType.OK);\n downloadSuccess.showAndWait();\n }", "public void writeResults() {\n gfmBroker.storeResults(this.responses, fileOutputPath);\n }", "public void writeExamResult(String userName, float grade) {\r\n\t\t// Creating empty BufferedWriter out.\r\n\t\tBufferedWriter out = null;\r\n\t\ttry {\r\n\t\t\t// Creating FileWriter with the path for the text file.\r\n\t\t\tFileWriter fStream = new FileWriter(\"Examresults.txt\", true);\r\n\t\t\tout = new BufferedWriter(fStream);\r\n\t\t\t// Writing out the user name and the result to a text file.\r\n\t\t\tout.write(\" \");\r\n\t\t\tout.write(userName + \" \");\r\n\t\t\tout.write(grade + \";\" + \"\\n\");\r\n\t\t\tout.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cssPath = new File(\"Report\\\\Style\\\\style.css\").getAbsolutePath();\r\n\t\t\tbufferedReader = new BufferedReader(new FileReader(cssPath));\r\n\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tString line = bufferedReader.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tstringBuilder.append(line);\r\n\t\t\t\tstringBuilder.append(System.lineSeparator());\r\n\t\t\t\tline = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\tcssData = stringBuilder.toString();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.error(\"Exception occure in reading file\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tbufferedReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(\"Exception occure in reading file\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile HTMLDir = new File(reportPath + \"\\\\HTMLReport\");\r\n\t\tif (!HTMLDir.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tHTMLDir.mkdir();\r\n\t\t\t} catch (SecurityException ex) {\r\n\t\t\t\tLog.error(\"Error in creating HTMLReport directory\" + ex.getMessage());\r\n\t\t\t\t// log.error(\"Error in creating Detail directory\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlname = HTMLDir + \"\\\\\" + strTimeStamp + \".html\";\r\n\t\tString logoPath = new File(\"Report\\\\Style\\\\logo.png\").getAbsolutePath();\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstepFailed++;\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\t\t\t\tstepPassed++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tbufferedWriter = new BufferedWriter(new FileWriter(htmlname));\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.error(\"Error in wrinting the file\" + e.getMessage());\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<html><head><script type=\\\"text/javascript\\\" src=\\\"https://www.gstatic.com/charts/loader.js\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<script src=\\\"https://www.google.com/jsapi\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<style>\" + cssData);\r\n\t\tstrBufferReportAppend.append(\"</style>\");\r\n\t\tstrBufferReportAppend.append(\"</head><body>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td><img src=file:\\\\\\\\\" + logoPath + \"></td>\" + \"<td class=\\\"headertext\\\">\"\r\n\t\t\t\t+ reportHeader + \"</td>\");\r\n\r\n\t\tstrBufferReportAppend.append(\"</tr></table><hr></hr>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table cellpadding=3 cellspacing=1>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution Start Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrStartTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution End Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrEndTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Total TestSteps Executed</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t\t\t+ (stepFailed + stepPassed) + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 green\\\">Passed</td><td class=\\\"width50 green\\\">\" + stepPassed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 red\\\">Failed</td><td class=\\\"width50 red\\\">\" + stepFailed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"</td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<script type=\\\"text/javascript\\\">\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.load('current', {'packages':['corechart']});\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.setOnLoadCallback(drawDetailsChart);\");\r\n\t\tstrBufferReportAppend.append(\"function drawDetailsChart() {\");\r\n\t\tstrBufferReportAppend.append(\"var data = new google.visualization.DataTable();\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('string', 'Test Execution Detail Graph');\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('number', 'Count');\");\r\n\t\tstrBufferReportAppend.append(\"data.addRows([\");\r\n\t\tstrBufferReportAppend.append(\"['Passed',\" + stepPassed + \"],\");\r\n\t\tstrBufferReportAppend.append(\"['Failed',\" + stepFailed + \"]]);\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,\");\r\n\t\tstrBufferReportAppend.append(\"'width':300,\");\r\n\t\tstrBufferReportAppend.append(\"'height':170};\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));\");\r\n\t\tstrBufferReportAppend.append(\"chart.draw(data, options); } </script>\");\r\n\t\tstrBufferReportAppend.append(\"<div id=\\\"detailsChart_div\\\"></div>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table><hr></hr></td></tr>\");\r\n\t}", "public void outputToFile(String filemame)\n {\n }", "public void writeSimScore() throws IOException, MalformedURLException, ParseException {\n FileWriter fw = new FileWriter(new File(scoreFile+new Double(alphaValue).toString()+\".txt\")); \r\n BufferedWriter bw = new BufferedWriter(fw);\r\n\r\n int numQueries = queryList.size();\r\n for (int i = 0; i < numQueries; i++) {\r\n String query1 = queryList.get(i);\r\n for (int j = 0; j < numQueries; j++) {\r\n String query2 = queryList.get(j);\r\n double sim = alphaValue * scorematrix[i][j] + (1 - alphaValue) * calSemanticSim(i, j);\r\n bw.write(new Double(sim).toString());\r\n bw.write(\" \");\r\n }\r\n // System.out.println(\"entered \" + i);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n\r\n }", "@Override\n public void exportSimulationData(String folderPath)\n {\n String algorithmName = simShortName();\n try\n {\n BufferedWriter bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\t1dtnlog_\" + algorithmName + \".txt\"));\n PrintWriter pw = new PrintWriter(bw);\n for (GPSLog l : t1DTNLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\t2dtnlog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : t2DTNLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\t3dtnlog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : t3DTNLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\bhdtnlog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : bhDTNLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\mhdtnlog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : mhDTNLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\fhdtnlog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : fhDTNLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\nfdtnlog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : nfgDTNLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\t1gpslog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : t1GPSLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\t2gpslog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : t2GPSLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\t3gpslog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : t3GPSLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\bhgpslog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : bhGPSLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\mhgpslog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : mhGPSLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\fhgpslog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : fhGPSLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\nfgpslog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (GPSLog l : nfgGPSLog)\n {\n pw.println(l);\n }\n pw.close();\n bw.close();\n bw = new BufferedWriter(new FileWriter(folderPath + \"\\\\percentagelog_\" + algorithmName + \".txt\"));\n pw = new PrintWriter(bw);\n for (String s : percentageLog)\n {\n pw.println(s);\n }\n pw.close();\n bw.close();\n } catch (IOException ex)\n {\n\n }\n }", "private static void pdfFilesOutput() {\n\n // make output directory if it doesn't already exist\n new File(\"output\").mkdirs();\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 try {\n airportFlightCounter.toPDFFile();\n flightInventory.toPDFFile();\n flightPassengerCounter.toPDFFile();\n mileageCounter.toPDFFile();\n } catch (DocumentException | FileNotFoundException e) {\n logger.error(\"Could not write to one or more PDF files - please close any open instances of that file\");\n e.printStackTrace();\n }\n\n logger.info(\"Output to PDF files completed\");\n }", "public abstract void getReport(java.io.Writer writer);", "public void exportResultsToFile(){\r\n\t\t\t\t\r\n\t\t// This if clause shouldn't fire as the icon is grayed out if there is no tab open\r\n\t\tif(currentView == null \r\n\t\t\t\t|| currentView.getDynamicModelView() == null \r\n\t\t\t\t|| currentView.getDynamicModelView().getModel() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open, and a model and table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif(currentView.getDynamicModelView().getModel().getDefaultHistory() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tDynamicModelHistory history = currentView.getDynamicModelView().getModel().getDefaultHistory();\r\n\r\n\t\tStringBuffer buffer = new StringBuffer(30000);\r\n\r\n\t\tif(history != null && history.getTimePointCount() > 0 && history.getSnapshot(0) != null){\r\n\t\t\r\n\t\t\t// Get the filename\r\n\t\t\tYorkGUIUtils guiUtils = new YorkGUIUtils();\r\n\t\t\tString selectedFile = guiUtils.getUserToDefineFilename(this, propertiesMemento.getBaseDir(), \"txt csv\", \"Results files (.txt, .csv)\", JFileChooser.SAVE_DIALOG);\r\n\r\n\t\t\tif(selectedFile == null || guiUtils.wasCancelled()){\r\n\t\t\t\trequestFocusInWindow();\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\t\r\n\t\t\tlogger.info(\"Selected file for exporting results:\" + selectedFile);\r\n\t\t\r\n\t\t\tbuffer.append(\"time point\").append(\"\\t\");\r\n\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\tbuffer.append(t).append(\"\\t\");\r\n\t\t\t}\r\n\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\r\n\t\t\tfor(Iterator<String> it = history.getSnapshot(0).keySet().iterator(); it.hasNext();){\r\n\t\t\t\tString name = it.next();\r\n\t\t\t\tbuffer.append(name).append(\"\\t\");\r\n\t\t\t\t// For all time points\r\n\t\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\t\tbuffer.append(history.getSnapshot(t).get(name).getOutputValue()).append(\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t}\r\n\t\t\tFileLoader.save(selectedFile, buffer.toString());\r\n\t\t}\r\n\t\telse{\r\n\t\t\tJOptionPane.showMessageDialog(this, \"No results available in the selected tab. Run the model first.\", \"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\t\tString file = \"/home/mllab/Desktop/CS140/Grading_Scripts/exam02-a52/report.txt\";\n\t\tout = new PrintStream(new FileOutputStream(new File(file), true));\n\t\ttestQ1();\n\t\tout.println(\"--------------------\");\n\t\tout.println(numWrong[0] + \" tests 1-\" + testNum + \" failed\");\n\t\tout.println(\"lost \" + (4.0*numWrong[0]/q1Count) + \" points\");\n\t\tdouble grade = 10.0 - 4.0*numWrong[0]/q1Count;\n\t\ttestQ2();\n\t\tout.println(\"--------------------\");\n\t\tout.println(numWrong[1] + \" tests \" + (q1Count+1)+ \"-\" + testNum + \" failed\");\n\t\tout.println(\"lost \" + (3.0*(numWrong[1])/q2Count) + \" points\");\n\t\tgrade = grade - 3.0*numWrong[1]/q2Count;\n\t\ttestQ3();\n\t\tout.println(\"--------------------\");\n\t\tout.println(numWrong[2] + \" tests \" + (q2Count+q1Count+1)+ \"-\" + testNum + \" failed\");\n\t\tout.println(\"lost \" + (3.0*(numWrong[2])/q3Count) + \" points\");\n\t\tgrade = grade - 3.0*numWrong[2]/q3Count;\n\t\tout.println(\"--------------------\");\n\t\tout.println(\"Grade = \" + grade);\n\t}", "public static void exportScores(String filePath, Map<String, List<DenovoHit>> resultsMap) throws IOException {\r\n // Init the buffered writer.\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(filePath)));\r\n try {\r\n\r\n int count = 1;\r\n\r\n // header\r\n writer.append(getScoreHeader());\r\n writer.newLine();\r\n\r\n for (String spectrum : resultsMap.keySet()) {\r\n\r\n for (DenovoHit denovoHit : resultsMap.get(spectrum)) {\r\n\r\n // Get the protein hit.\r\n writer.append(spectrum + SEP);\r\n writer.append(denovoHit.getIndex() + SEP);\r\n writer.append(denovoHit.getSequence() + SEP);\r\n writer.append(denovoHit.getLength() + SEP);\r\n writer.append(denovoHit.getCharge() + SEP);\r\n writer.append(denovoHit.getNTermGap() + SEP);\r\n writer.append(denovoHit.getCTermGap() + SEP);\r\n writer.append(denovoHit.getPepNovoScore() + SEP);\r\n writer.append(denovoHit.getRankScore() + SEP);\r\n writer.newLine();\r\n writer.flush();\r\n }\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n writer.close();\r\n }\r\n }", "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "void outputReport(RandomAccessFile reportFile, boolean last) {\n\n String line1 = \"----+---------+----------+----------+---+----------+\" +\n \"----------+----------+----------+\" +\n \"---------------------------------------------+\";\n String line2 = \"----+---------+------------+----------+---------------------+\" +\n \"---------+----------+----------+--------------------+--------+\" +\n \"-----+-----+-----+\";\n\n if (dbg3) System.out.println(\"outputReport: station.getStationId() = *\" +\n station.getStationId(\"\") + \"*\");\n if (\"\".equals(station.getStationId(\"\"))) { // only done formats 01/02 -> survey data only\n\n //display the survey data }\n //ec.writeFileLine(reportFile, \"----+---------+----------+----------\" +\n // \"+---+----------+----------+----------+----------+----------\" +\n // \"------------------------------+\");\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \"dup.|Survey |Platform | \" +\n \"| | | | | | \" +\n \" |\");\n ec.writeFileLine(reportFile, \"code|Id |Name |Expedition\" +\n \"|Ins|Proj Name |Area Name |Domain |Platform |Notes \" +\n \" |\");\n ec.writeFileLine(reportFile, line1);\n\n ec.writeFileLine(reportFile, surveyStatus + \" |\" + //j24\n ec.frm(survey.getSurveyId(\"\"),9) + \"|\" +\n ec.frm(survey.getPlanam(\"\"),10) + \"|\" +\n ec.frm(survey.getExpnam(\"\"),10) + \"|\" +\n ec.frm(survey.getInstitute(\"\"),03) + \"|\" +\n ec.frm(survey.getPrjnam(\"\"),10) + \"|\" +\n ec.frm(inventory.getAreaname(\"\"),10)+ \"|\" +\n ec.frm(inventory.getDomain(\"\"),10) + \"|\" +\n ec.frm(\" \",10) + \"|\" +\n //survey.getPlatfm() + \"|\" +\n ec.frm(survey.getNotes1(\"\"),45) + \"|\");\n\n // write to station file - keep place for actual output\n if (loadFlag) {\n try {\n stnFile.writeBytes(\"\");\n headerPos1 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos2 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos3 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n } catch (Exception e) {\n ec.processError(e, thisClass, \"outputReport\", \"Header Pos Error\");\n } // try-catch\n } // if (loadFlag)\n\n\n if (surveyLoaded) { // display details of loaded survey //j24\n // get the old inventory record\n MrnInventory tInventory[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n ec.writeFileLine(reportFile, \"lod |\" +\n ec.frm(tSurvey[0].getSurveyId(\"\"),9) + \"|\" +\n ec.frm(tSurvey[0].getPlanam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getExpnam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getInstitute(\"\"),03) + \"|\" + //j24\n ec.frm(tSurvey[0].getPrjnam(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getAreaname(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getDomain(\"\"),10) + \"|\" + //j24\n ec.frm(\" \",10) + \"|\" +\n //tSurvey[0].getPlatfm() + \"|\" + //j24\n ec.frm(tSurvey[0].getNotes1(\"\"),45) + \"|\"); //j24\n } // if (survey_loaded)\n\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \" \");\n\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \"dup.| | | |\" +\n \" | | | |\" +\n \" | | Records |\");\n ec.writeFileLine(reportFile, \"code| Surv Id | Station Id | StnNam |\" +\n \" Date Time GMT | Latitude| Longitude| Subdes(s)|\" +\n \" Sample depth range | StnDep | Tot.| O.K.| Rej |\");\n ec.writeFileLine(reportFile, line2);\n } else { // if (\"\".equals(station.getStationId(\"\")))\n\n\n if (dbg) System.out.println(\"<br>outputReport: tStation.length = \" +\n tStation.length);\n\n int stationSampleOKCount = stationSampleCount - stationSampleRejectCount;\n ec.writeFileLine(reportFile, stationStatusLD + \" |\" + //j24\n ec.frm(\" \",9) + \"|\" +\n ec.frm(station.getStationId(),12) + \"|\" +\n ec.frm(station.getStnnam(),10) + \"| \" +\n //station.getDatum + \"| \" +\n ec.frm(startDateTime,20) + \"|\" +\n ec.frm(station.getLatitude(),9,5) + \"|\" +\n ec.frm(station.getLongitude(),10,5) + \"|\" +\n ec.frm(subdes,10) + \"|\" +\n ec.frm(depthMin + \" to \" + depthMax,20) + \"|\" +\n ec.frm(station.getStndep(),8,2) + \"|\" +\n ec.frm(stationSampleCount,5) + \"|\" +\n ec.frm(stationSampleOKCount,5) + \"|\" +\n ec.frm(stationSampleRejectCount,5) + \"|\");\n if (!loadFlag) {\n ec.writeFileLine(workFile, ec.frm(station.getStationId(),12) +\n ec.frm(stationSampleCount,5));\n } // if (!loadFlag)\n\n if (stationExists) { // || (!\"new\".equals(stationStatusLD))) {\n for (int i = 0; i < tStation.length; i++) {\n int tmpRecordCount = 0;\n if (dataType == CURRENTS) {\n tmpRecordCount = currentsRecordCountArray[i];\n } else if (dataType == SEDIMENT) {\n tmpRecordCount = sedphyRecordCountArray[i];\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpRecordCount = watphyRecordCountArray[i];\n } // if (dataType == CURRENTS)\n\n String subdesLocal = subdesArray[i][0];\n for (int j = 1; j < MAX_SUBDES; j++) {\n subdesLocal += (!\"\".equals(subdesArray[i][j]) ?\n \"/\"+subdesArray[i][j] : \"\");\n } // for int (j = 1; j < MAX_SUBDES; j++)\n if (stationExistsArray[i]) {\n ec.writeFileLine(reportFile, stationStatusDB[i] + \" |\" +\n ec.frm(tStation[i].getSurveyId(),9) + \"|\" +\n ec.frm(tStation[i].getStationId(),12) + \"|\" +\n ec.frm(tStation[i].getStnnam(\"\"),10) + \"| \" +\n //tStation[i].getDateStart(\"\"), \"| \",\n ec.frm(spldattimArray[i],20) + \"|\" +\n ec.frm(tStation[i].getLatitude(),9,5) + \"|\" +\n ec.frm(tStation[i].getLongitude(),10,5) + \"|\" +\n //ec.frm(subdesArray[i],5) + \"|\" +\n ec.frm(subdesLocal,10) + \"|\" +\n ec.frm(loadedDepthMin[i] + \" to \" + loadedDepthMax[i],20) + \"|\" +\n ec.frm(tStation[i].getStndep(),8,2) + \"|\" +\n ec.frm(tmpRecordCount,5) + \"| | |\");\n } // if (stationExistsArray[i])\n } // for (int i = 0; i < tStation.length; i++)\n } // if (stationExists || (!\"new\".equals(stationStatusDB))\n ec.writeFileLine(reportFile, \"\");\n\n // write to station file\n if (loadFlag) {\n ec.writeFileLine(stnFile, \"'\" +\n ec.frm(station.getStationId(\"\"),12) + \"' '\" +\n station.getDateStart(\"\").substring(0,10) + \"' \" +\n ec.frm(station.getLatitude(),11,5) + \" \" +\n ec.frm(station.getLongitude(),11,5) + \" \" +\n ec.frm(ec.nullToNines(station.getStndep(),9999.0f),10,2) + \" '\" +\n ec.frm(station.getStnnam(\"\"),10) + \"'\");\n } // if (loadFlag)\n\n\n if (last) {\n //ec.writeFileLine(reportFile, \"last\");\n\n int sampleOKCount = sampleCount - sampleRejectCount;\n //ec.writeFileLine(reportFile, \"----+------------+----------\" +\n // \"+---------------------+---------+----------+-----+---\" +\n // \"-----------------+--------+-----------------+\");\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \" ^\"); //j24//\n ec.writeFileLine(reportFile, \" |\"); //j24//\n ec.writeFileLine(reportFile, \" +--new = new record\"); //j24//\n ec.writeFileLine(reportFile, \" dup = new record is a duplicate record\"); //j24//\n //ec.writeFileLine(reportFile, \" lod = existing record\"); //j24//\n ec.writeFileLine(reportFile, \" did = duplicate station-id - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dis = duplicate station-id - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dia = duplicate station-id - different SUBDES: data added\");//u02//\n ec.writeFileLine(reportFile, \" dij = ignored station - matched existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dip = data records replaced for existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dsd = duplicate station record - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dss = duplicate station record - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dsa = duplicate station record - different SUBDES: data added\");\n ec.writeFileLine(reportFile, \" dsj = ignored station - matched existing station record - dsd\"); //k46//\n ec.writeFileLine(reportFile, \" dsp = data records replaced for existing station record - dsd\"); //k46//\n\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"This data was \" +\n (loadFlag ? \"loaded\" : \"checked\") + \" with the following ranges:\");\n ec.writeFileLine(reportFile, \" Area: \" + areaRangeVal + \" (decimal degrees)\");\n ec.writeFileLine(reportFile, \" Time: \" + timeRangeVal + \" (minutes)\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \"Closing statistics - survey_id: \" +\n survey.getSurveyId());\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of lines - \" +\n ec.frm(lineCount,6));\n ec.writeFileLine(reportFile, \" Fatal Errors - \" +\n ec.frm(fatalCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of stations - \" +\n ec.frm(stationCount,6));\n ec.writeFileLine(reportFile, \" New - \" +\n ec.frm(newStationCount,6));\n ec.writeFileLine(reportFile, \" Dup - \" +\n ec.frm((stationCount-newStationCount),6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station-id (DI)\");\n ec.writeFileLine(reportFile, \" DI: diff SUBDES (DID) - \" +\n ec.frm(didCount,6));\n ec.writeFileLine(reportFile, \" DI: same SUBDES (DIS) - \" +\n ec.frm(disCount,6));\n ec.writeFileLine(reportFile, \" DI: diff SUBDES added (DIA) - \" +\n ec.frm(diaCount,6));\n ec.writeFileLine(reportFile, \" DI's Rejected (DIJ) - \" +\n ec.frm(dijCount,6));\n ec.writeFileLine(reportFile, \" DI's Replaced (DIP) - \" +\n ec.frm(dipCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station (DS)\");\n ec.writeFileLine(reportFile, \" DS: diff SUBDES (DSD) - \" +\n ec.frm(dsdCount,6));\n ec.writeFileLine(reportFile, \" DS: same SUBDES (DSS) - \" +\n ec.frm(dssCount,6));\n ec.writeFileLine(reportFile, \" DS: diff SUBDES added (DSA) - \" +\n ec.frm(dsaCount,6));\n ec.writeFileLine(reportFile, \" DS's Rejected (DSJ) - \" +\n ec.frm(dsjCount,6));\n ec.writeFileLine(reportFile, \" DS's Replaced (DSP) - \" +\n ec.frm(dspCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of Samples - \" +\n ec.frm(sampleCount,6));\n ec.writeFileLine(reportFile, \" OK - \" +\n ec.frm(sampleOKCount,6));\n ec.writeFileLine(reportFile, \" Rejected - \" +\n ec.frm(sampleRejectCount,6));\n ec.writeFileLine(reportFile, \" \");\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat (\"yyyy-MM-dd\");\n ec.writeFileLine(reportFile, \" date range - \" +\n formatter.format(dateMin) + \" to \" + formatter.format(dateMax));\n ec.writeFileLine(reportFile, \" latitude range - \" +\n ec.frm(latitudeMin,10,5) + \" to \" + ec.frm(latitudeMax,10,5));\n ec.writeFileLine(reportFile, \" longitude range - \" +\n ec.frm(longitudeMin,10,5) + \" to \" + ec.frm(longitudeMax,10,5));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n\n if (loadFlag) {\n ec.writeFileLine(reportFile, \" \");\n\n if (fatalCount > 0) {\n ec.writeFileLine(reportFile,\n \" THERE ARE FATAL ERRORS - THIS LOAD IS UNSUCCESSFUL \");\n ec.writeFileLine(reportFile,\n \" ================================================== \");\n ec.writeFileLine(reportFile,\n \" As some data has been loaded, it is necessary to remove it\\n\" +\n \" by running the 'Delete a survey' option on the SADCO website\\n\" +\n \" located in the 'Marine Database: Admin / Load Data' menu options\");\n } else { // if (fatalCount > 0)\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n ec.writeFileLine(reportFile, \" LOAD SUCCESSFUL \");\n ec.writeFileLine(reportFile, \" =============== \");\n ec.writeFileLine(reportFile, \" date loaded: \" +\n formatter.format(loadDate));\n\n if (dataType != CURRENTS) {\n ec.writeFileLine(reportFile, \" \" + DATA_TYPE[dataType] +\n \" code range - \" + dataCodeStart + \" to \" + dataCodeEnd);\n } // if (dataType != CURRENTS)\n\n ec.writeFileLine(reportFile, \" \");\n if (\"\".equals(passkey)) {\n ec.writeFileLine(reportFile, \" This data is NOT flagged \");\n } else {\n ec.writeFileLine(reportFile, \" This data is FLAGGED \");\n } // if (p_station.passkey is NULL)\n } // if (fatalCount > 0)\n\n // write header to station file\n String lineA =\n \"'MARINE' \" +\n ec.frm((int) latitudeMin,4) +\n ec.frm((int) (latitudeMax+1f),4) +\n ec.frm((int) longitudeMin,4) +\n ec.frm((int) (longitudeMax+1f),4) + \" '\" +\n dateMin.toString().substring(0,10) + \"' '\" +\n dateMax.toString().substring(0,10) + \"' 'STATIONS'\";\n String lineB = \"'\" + survey.getSurveyId(\"\") +\n \"' \" + stationCount + \" '\" +\n platformName + \"' '\" +\n projectName + \"' '\" +\n expeditionName + \"'\";\n String lineC = \"'\" + instituteName + \"'\";\n try {\n stnFile.seek(headerPos1);\n stnFile.writeBytes(lineA);\n stnFile.seek(headerPos2);\n stnFile.writeBytes(lineB);\n stnFile.seek(headerPos3);\n stnFile.writeBytes(lineC);\n } catch (Exception e) {\n System.out.println(\"<br>\" + thisClass +\n \".printHeader: Write Error: \" + e.getMessage());\n e.printStackTrace();\n } // try-catch\n\n } // if (loadflag)\n\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n String text = (loadFlag ? \"loaded\" : \"checked\");\n ec.writeFileLine(reportFile, \" date \" + text + \": \" +\n formatter.format(loadDate));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n } // if (last)\n\n } // if (\"\".equals(station.getStationId(\"\")))\n\n\n //ec.writeFileLine(reportFile, message);\n //if (dbg) System.out.println(\"outputReport: message = \" + message);\n // output to screen or file\n }", "@Override\n public void writeFile(String arg0, Map result) {\n\n // Initial variables\n ArrayList<HashMap> records;\n ArrayList<HashMap> recordT;\n ArrayList<HashMap> observeRecords; // Array of data holder for time series data\n BufferedWriter bwT; // output object\n StringBuilder sbData = new StringBuilder(); // construct the data info in the output\n HashMap<String, String> altTitleList = new HashMap(); // Define alternative fields for the necessary observation data fields; key is necessary field\n // P.S. Add alternative fields here\n HashMap titleOutput; // contain output data field id\n DssatObservedData obvDataList = DssatObservedData.INSTANCE; // Varibale list definition\n\n try {\n\n // Set default value for missing data\n setDefVal();\n\n // Get Data from input holder\n Object tmpData = getObjectOr(result, \"observed\", new Object());\n if (tmpData instanceof ArrayList) {\n records = (ArrayList) tmpData;\n } else if (tmpData instanceof HashMap) {\n records = new ArrayList();\n records.add((HashMap) tmpData);\n } else {\n return;\n }\n if (records.isEmpty()) {\n return;\n }\n\n observeRecords = new ArrayList();\n for (HashMap record : records) {\n recordT = getObjectOr(record, \"timeSeries\", new ArrayList());\n String trno = getValueOr(record, \"trno\", \"1\");\n if (!recordT.isEmpty()) {\n String[] sortIds = {\"date\"};\n Collections.sort(recordT, new DssatSortHelper(sortIds));\n for (HashMap recordT1 : recordT) {\n recordT1.put(\"trno\", trno);\n }\n observeRecords.addAll(recordT);\n }\n }\n\n // Initial BufferedWriter\n String fileName = getFileName(result, \"T\");\n if (fileName.endsWith(\".XXT\")) {\n String crid = DssatCRIDHelper.get2BitCrid(getValueOr(result, \"crid\", \"XX\"));\n fileName = fileName.replaceAll(\"XX\", crid);\n }\n arg0 = revisePath(arg0);\n outputFile = new File(arg0 + fileName);\n bwT = new BufferedWriter(new FileWriter(outputFile));\n\n // Output Observation File\n // Titel Section\n sbError.append(String.format(\"*EXP.DATA (T): %1$-10s %2$s\\r\\n\\r\\n\",\n fileName.replaceAll(\"\\\\.\", \"\").replaceAll(\"T$\", \"\"),\n getObjectOr(result, \"local_name\", defValBlank)));\n\n titleOutput = new HashMap();\n // TODO get title for output\n // Loop all records to find out all the titles\n for (HashMap record : observeRecords) {\n // Check if which field is available\n for (Object key : record.keySet()) {\n // check which optional data is exist, if not, remove from map\n if (obvDataList.isTimeSeriesData(key)) {\n titleOutput.put(key, key);\n\n } // check if the additional data is too long to output\n else if (key.toString().length() <= 5) {\n if (!key.equals(\"date\") && !key.equals(\"trno\")) {\n titleOutput.put(key, key);\n }\n\n } // If it is too long for DSSAT, give a warning message\n else {\n sbError.append(\"! Waring: Unsuitable data for DSSAT observed data (too long): [\").append(key).append(\"]\\r\\n\");\n }\n }\n // Check if all necessary field is available // P.S. conrently unuseful\n for (String title : altTitleList.keySet()) {\n\n // check which optional data is exist, if not, remove from map\n if (getValueOr(record, title, \"\").equals(\"\")) {\n\n if (!getValueOr(record, altTitleList.get(title), \"\").equals(\"\")) {\n titleOutput.put(title, altTitleList.get(title));\n } else {\n sbError.append(\"! Waring: Incompleted record because missing data : [\").append(title).append(\"]\\r\\n\");\n }\n\n } else {\n }\n }\n }\n\n // decompress observed data\n// decompressData(observeRecords);\n // Observation Data Section\n Object[] titleOutputId = titleOutput.keySet().toArray();\n Arrays.sort(titleOutputId);\n String pdate = getPdate(result);\n for (int i = 0; i < (titleOutputId.length / 39 + titleOutputId.length % 39 == 0 ? 0 : 1); i++) {\n\n sbData.append(\"@TRNO DATE\");\n int limit = Math.min(titleOutputId.length, (i + 1) * 39);\n for (int j = i * 39; j < limit; j++) {\n sbData.append(String.format(\"%1$6s\", titleOutput.get(titleOutputId[j]).toString().toUpperCase()));\n }\n sbData.append(\"\\r\\n\");\n\n for (HashMap record : observeRecords) {\n \n if (record.keySet().size() <= 2 && record.containsKey(\"trno\") && record.containsKey(\"date\")) {\n continue;\n }\n sbData.append(String.format(\" %1$5s\", getValueOr(record, \"trno\", \"1\")));\n sbData.append(String.format(\" %1$5s\", formatDateStr(getObjectOr(record, \"date\", defValI))));\n for (int k = i * 39; k < limit; k++) {\n\n if (obvDataList.isDapDateType(titleOutputId[k], titleOutput.get(titleOutputId[k]))) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(pdate, getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else if (obvDataList.isDateType(titleOutputId[k])) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else {\n sbData.append(\" \").append(formatNumStr(5, record, titleOutput.get(titleOutputId[k]), defValI));\n }\n\n }\n sbData.append(\"\\r\\n\");\n }\n }\n // Add section deviding line\n sbData.append(\"\\r\\n\");\n\n // Output finish\n bwT.write(sbError.toString());\n bwT.write(sbData.toString());\n bwT.close();\n } catch (IOException e) {\n LOG.error(DssatCommonOutput.getStackTrace(e));\n }\n }", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public static void exportPSMs(String filePath, TagSearchResult result) throws IOException {\r\n // Init the buffered writer.\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(filePath)));\r\n try {\r\n\r\n int count = 1;\r\n\r\n // Peptide header.\r\n writer.append(getPSMHeader());\r\n writer.newLine();\r\n\r\n for (Entry e1 : result.getResultMap().entrySet()) {\r\n\r\n // Get the protein hit.\r\n ProteinFamilyHit proteinFamilyHit = (ProteinFamilyHit) e1.getValue();\r\n Set<Entry<String, ProteinHit>> proteins = proteinFamilyHit.getProteinHits().entrySet();\r\n\r\n for (Entry e2 : proteins) {\r\n ProteinHit proteinHit = (ProteinHit) e2.getValue();\r\n\r\n for (PeptideHit peptideHit : proteinHit.getPeptideHitList()) {\r\n\r\n // PSM results\r\n for (PeptideSpectrumMatch psm : peptideHit.getSpectrumMatchesList()) {\r\n writer.append(count++ + SEP);\r\n writer.append(psm.getSpectrumTitle() + SEP);\r\n writer.append(peptideHit.getSequence() + SEP);\r\n writer.append(proteinHit.getAccession() + SEP);\r\n writer.append(Formatter.roundDouble(psm.getIntensityScore(), 3) + SEP);\r\n writer.append(psm.getIntensityScore() + SEP);\r\n writer.append(psm.getMatchedPeaks() + SEP);\r\n writer.newLine();\r\n }\r\n }\r\n }\r\n writer.flush();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n writer.close();\r\n }\r\n }", "private void writeTextFile(\r\n\t\t\tGDMSMain theMainHomePage,\r\n\t\t\tArrayList<QtlDetailElement> listOfAllQTLDetails, HashMap<Integer, String> hmOfQtlPosition, HashMap<String, Integer> hmOfQtlNameId,\r\n\t\t\tHashMap<Integer, String> hmOfQtlIdandName, String strSelectedExportType, boolean bQTLExists) throws GDMSException {\n\t\t\r\n\t\t\r\n\t\tString strFlapjackTextFile = \"Flapjack\";\r\n\t\tFile baseDirectory = theMainHomePage.getMainWindow().getApplication().getContext().getBaseDirectory();\r\n\t\tFile absoluteFile = baseDirectory.getAbsoluteFile();\r\n\r\n\t\tFile[] listFiles = absoluteFile.listFiles();\r\n\t\tFile fileExport = baseDirectory;\r\n\t\tfor (File file : listFiles) {\r\n\t\t\tif(file.getAbsolutePath().endsWith(\"Flapjack\")) {\r\n\t\t\t\tfileExport = file;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString strFilePath = fileExport.getAbsolutePath();\r\n\t\t//System.out.println(\"strFilePath=:\"+strFilePath);\r\n\t\tgeneratedTextFile = new File(strFilePath + \"\\\\\" + strFlapjackTextFile + \".txt\");\r\n\r\n\t\t/**\twriting tab delimited qtl file for FlapJack \r\n\t\t * \tconsisting of marker chromosome & position\r\n\t\t * \r\n\t\t * **/\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t//factory = new ManagerFactory(GDMSModel.getGDMSModel().getLocalParams(), GDMSModel.getGDMSModel().getCentralParams());\r\n\t\t\tfactory=GDMSModel.getGDMSModel().getManagerFactory();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOntologyDataManager ontManager=factory.getOntologyDataManager();\r\n\t\t\t*/\r\n\t\t\tFileWriter flapjackTextWriter = new FileWriter(generatedTextFile);\r\n\t\t\tBufferedWriter flapjackBufferedWriter = new BufferedWriter(flapjackTextWriter);\r\n\t\t\t//getAllelicValuesByGidsAndMarkerNames\r\n\t\t\t//genoManager.getAlle\r\n\t\t\t//\t\t\t fjackQTL.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\");\r\n\t\t\tflapjackBufferedWriter.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\\teffect\");\r\n\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\tfor (int i = 0 ; i < listOfAllQTLDetails.size(); i++){\r\n\t\t\t\t//System.out.println(listOfAllQTLDetails.get(i));\r\n\t\t\t\tQtlDetailElement qtlDetails = listOfAllQTLDetails.get(i);\r\n\t\t\t\t\r\n\t\t\t\t/*QtlDetailsPK id = qtlDetails.getQtlName().get.getId();\r\n\t\t\t\tInteger qtlId = id.getQtlId();*/\r\n\t\t\t\t//String strQtlName = hmOfQtlIdandName.get(qtlId);\r\n\t\t\t\tString strQtlName =qtlDetails.getQtlName();\r\n\t\t\t\tint qtlId=hmOfQtlNameId.get(strQtlName);\r\n\t\t\t\t//qtlDetails.get\r\n\t\t\t\t//Float clen = qtlDetails.getClen();\r\n\t\t\t\t//Float fEffect = qtlDetails.getEffect();\r\n\t\t\t\tint fEffect = qtlDetails.getEffect();\r\n\t\t\t\tFloat fMaxPosition = qtlDetails.getMaxPosition();\r\n\t\t\t\tFloat fMinPosition = qtlDetails.getMinPosition();\r\n\t\t\t\t//Float fPosition = qtlDetails.getPosition();\r\n\t\t\t\tString fPosition = hmOfQtlPosition.get(qtlId);\r\n\t\t\t\tFloat frSquare = qtlDetails.getRSquare();\r\n\t\t\t\tFloat fScoreValue = qtlDetails.getScoreValue();\r\n\t\t\t\tString strExperiment = qtlDetails.getExperiment();\r\n\t\t\t\t//String strHvAllele = qtlDetails..getHvAllele();\r\n\t\t\t\t//String strHvParent = qtlDetails.getHvParent();\r\n\t\t\t\t//String strInteractions = qtlDetails.getInteractions();\r\n\t\t\t\tString strLeftFlankingMarker = qtlDetails.getLeftFlankingMarker();\r\n\t\t\t\tString strLinkageGroup = qtlDetails.getChromosome();\r\n\t\t\t\t//String strLvAllele = qtlDetails.getLvAllele();\r\n\t\t\t\t//String strLvParent = qtlDetails.getLvParent();\r\n\t\t\t\tString strRightFM = qtlDetails.getRightFlankingMarker();\r\n\t\t\t\t//String strSeAdditive = qtlDetails.getSeAdditive();\r\n\t\t\t\t\r\n\t\t\t\t//String strTrait = qtlDetails.getTrait();\r\n\t\t\t\tString strTrait = qtlDetails.getTRName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(strQtlName + \"\\t\" + strLinkageGroup + \"\\t\" + fPosition + \"\\t\" + fMinPosition + \"\\t\" + fMaxPosition + \"\\t\" +\r\n\t\t\t\t\t\tstrTrait + \"\\t\" + strExperiment + \"\\t \\t\" + fScoreValue + \"\\t\" + frSquare+\r\n\t \"\\t\" + strLeftFlankingMarker+\"/\"+strRightFM + \"\\t\" + fEffect);\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tflapjackBufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GDMSException(e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t}", "private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".java\");\n try {\n Files.write(outputFile, imports);\n if (imports.size() > 0)\n Files.write(outputFile, Collections.singletonList(\"\"), StandardOpenOption.APPEND);\n Files.write(outputFile, lines, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void report() throws IOException {\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\"comparisons.txt\", false));\n\t\tfor (Integer[] data : this.comparisons)\n\t\t\twriter.append(data[0] + \" \" + data[1] + \"\\n\");\n\t\twriter.close();\n\t}", "public void saveReport() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(reportFile));\n\t\t\tout.println(record.reportToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void logResult() {\r\n resTime = resTime * 1000;\r\n int b = (int) Math.round(resTime);\r\n resTime = (double) b / 1000;\r\n double averageTime = resTime / countTESTS;\r\n averageTime = averageTime * 1000;\r\n int i = (int) Math.round(averageTime);\r\n averageTime = (double) i / 1000;\r\n try (FileWriter writer = new FileWriter(\".//result.txt\")) {\r\n writer.write(resultOpen);\r\n writer.write(resultTitle);\r\n writer.write(resultSource);\r\n writer.write(resultLinkByName);\r\n writer.write(resultLinkByHref);\r\n writer.write(\"Total tests: \" + countTESTS + \"\\n\");\r\n writer.write(\"Passed/Failed: \" + PASSED_TEST + \"/\" + FAILED_TEST + \"\\n\");\r\n writer.write(\"Total time: \" + resTime + \"\\n\");\r\n writer.write(\"Average time: \" + averageTime + \"\\n\");\r\n writer.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "@Test\n\tpublic void testWriteRdf_withOutputRecordLimit() throws IOException {\n\t\tGeneId2NameDatFileParser parser = new GeneId2NameDatFileParser(geneId2NameDatFile);\n\t\tRdfRecordWriter<GeneId2NameDatFileParser> recordWriter = new RdfRecordWriter<GeneId2NameDatFileParser>(\n\t\t\t\toutputDirectory, RdfFormat.NTRIPLES);\n\t\tlong createdTimeInMillis20101217 = new GregorianCalendar(2010, 11, 17).getTimeInMillis();\n\t\trecordWriter.processRecordReader(parser, createdTimeInMillis20101217, 1, Collections.emptySet());\n\t\tFile outputFile = FileUtil.appendPathElementsToDirectory(outputDirectory, expectedOutputFileName);\n\t\tassertTrue(\"Output file should have been created.\", outputFile.exists());\n\t\tList<String> expectedLines = getExpectedLines(RdfUtilTest.getExpectedTimeStamp(createdTimeInMillis20101217))\n\t\t\t\t.subList(0, 30);\n\t\tassertTrue(\"N-Triple Lines should be as expected.\", FileComparisonUtil.hasExpectedLines(outputFile,\n\t\t\t\tCharacterEncoding.UTF_8, expectedLines, null, LineOrder.ANY_ORDER, ColumnOrder.AS_IN_FILE));\n\t}", "public static void createFile(double[] array){\n //String for the name of the file that's going to be created.\n String newFileName = \"results.csv\";\n\n //Create a file variable using the created file name\n try{\n File newFile = new File(newFileName);\n\n //Create new instance of PrintWriter to write into the new file\n FileWriter csvWriter = new FileWriter(newFile, false);\n //For each number, print the percentage into the file\n for(int i = 0; i < 9; i++){\n csvWriter.write((i+1) + \": \" + array[i] + \"%\\n\");\n }\n //Close the PrintWriter since we don't need it anymore.\n csvWriter.close();\n }\n catch(FileNotFoundException e){\n System.out.println(\"File not found\");\n }\n catch(IOException e){\n System.out.println(\"IO Exception\");\n }\n }", "private static void writeToFile(String[] data) {\n\t\t// Regatta hasn't been calculated.\n\t\tif(r == null) {\n\t\t\tSystem.out.println(\"\\nYou haven't processed a regatta yet! \\nUse regatta to begin processing.\\n\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Just the command was specified, we need to get the filename.\n\t\tif(data.length == 1) {\n\t\t\tSystem.out.println(\"Oops, looks like you didn't specify an output file.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\t// Filename was specified but is invalid. Need to get another one.\n\t\tif(!isValidFileName(data[1])) {\n\t\t\tSystem.out.println(\"Looks like your filename is incorrect.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\tinitializeOutput(data[1]);\n\n\t\t// Write out.\n\t\tfileOutput.print(r.podium());\n\t\tfileOutput.close();\n\t}", "public void saveFile() {\r\n final String file = \"respuestaConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\";\r\n try {\r\n int count = 0;\r\n PrintWriter writer = new PrintWriter(file, \"UTF-8\");\r\n for (int i = 0; i < this.numberOfBees; i++) {\r\n if (beesArray[i].isInCollisionRisk()) {\r\n writer.println(beesArray[i].getLatitude() + \",\" + beesArray[i].getLongitude() + \",\" + beesArray[i].getHeight());\r\n count++;\r\n }\r\n }\r\n System.out.println(\"Number of bees in collision risk: \" + count);\r\n writer.close();\r\n } catch (IOException ioe) {\r\n System.out.println(\"Something went wrong writing the exit file\");\r\n }\r\n }", "@Override\n\tpublic void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectoryPath) {\n\t\t\n\t\t//------------------------ Pre-Checks ----------------------------------\n\t\t\n\t\t//------------------------ CONSTANTS -----------------------------------\n\t\t\n\t\t//------------------------ Variables -----------------------------------\n\t\t\n\t\t//------------------------ Code ----------------------------------------\n\t\toutputDirectoryPath = outputDirectoryOverride == null ? outputDirectoryPath : outputDirectoryOverride;\n\t\tFile outputDirectory = new File(outputDirectoryPath);\n\t\tif(!outputDirectory.exists() && !outputDirectory.mkdirs()) {\n\t\t\tthrow new RuntimeException(\"Could not create Output Directory: \" + outputDirectoryPath + \"!\");\n\t\t}\n\t\t\n\t\tfor(ISuite suite : suites) {\n\t\t\t\n\t\t\tMap<String, ISuiteResult> suiteResults = suite.getResults();\n\t\t\tfor(String testName : suiteResults.keySet()) {\n\t\t\t\t\n\t\t\t\tITestContext testContent = suiteResults.get(testName).getTestContext();\n\t\t\t\t\n\t\t\t\tlogResults(testContent);\n\t\t\t} // END LOOP - XML Test.\n\t\t} // END LOOP - XML Test Suite.\n\t\t\n\t\ttry {\n\t\t\tFileUtils.write(new File(outputDirectoryPath, reportFileName + \".txt\"), stringBuilder, StandardCharsets.UTF_8);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tthrow new RuntimeException(\"Could not write results to file!\\n\\n\" + stringBuilder);\n\t\t}\n\t}", "public static void scoreToFile(int x, ArrayList<ArrayList<ArrayList<Double>>> allQueries, String filename) throws IOException {\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(filename));\r\n\t\t\tint minn=1;\r\n\t\t\tint maxn=1;\r\n\t\t\tString title = \"@relation Query_Title\";\r\n\t\t\twriter.write(title);\r\n\t\t\twriter.newLine();\r\n\t\t\tfor (int i=0; i<Queries.NumberOfDimensions; i++) {\r\n\t\t\t\tif (Queries.isEven(i) || i==0) {\r\n\t\t\t\t\tString attribute= \"@attribute\"+\" min\"+minn + \" numeric\";\r\n\t\t\t\t\twriter.write(attribute);\r\n\t\t\t\t\twriter.newLine();\r\n\t\t\t\t\tminn++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tString attribute=\"@attribute\"+\" max\" +maxn + \" numeric\";\r\n\t\t\t\t\twriter.write(attribute);\r\n\t\t\t\t\twriter.newLine();\r\n\t\t\t\t\tmaxn++;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t}\r\n\t\t\tString attribute =\"@attribute\"+\" score\" + \" numeric\";\r\n\t\t\twriter.write(attribute);\r\n\t\t\twriter.newLine();\r\n\t\t\t\r\n\t\t\twriter.newLine();\r\n\t\t\twriter.write(\"@DATA\");\r\n\t\t\twriter.newLine();\r\n\t\t\tfor (int i=0; i<allQueries.size(); i++) {\r\n\t\t\t\tString str=\"\";\r\n\t\t\t\tint n=0;\r\n\t\t\t\tfor(n=0; n<allQueries.get(i).size()-1; n++) {\tstr += allQueries.get(i).get(n).get(0)+\", \" + allQueries.get(i).get(n).get(1)+\", \";\r\n\t\t\t\t}\r\n\t\t\t\tif(allQueries.get(i).get(n).get(0)==0) {\r\n\t\t\t\t\tstr+=\"0.0\";\r\n\t\t\t\t}else {\r\n\t\t\t\t\tstr += allQueries.get(i).get(n).get(0); // add the score\r\n\t\t\t\t}\r\n\t\t\t\twriter.write(str);\r\n\t\t\t\twriter.newLine();\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t}", "public void generateReport(List<XmlSuite> xmlSuites, List<ISuite>suites, \r\n\t\tString outputDirectory){//creating a method that takes three arguments,\r\n\t//to generate a report, arguments list requirements, \r\n\t//using a mechanism called List, which gets the array input\r\n\t//script will go back to xml suites, and look for \"suites\" which are the classes we created\r\n\t//we will create an xml file to contain all the classes within our test cases\r\n\t//PASS, FAIL, or SKIP will be string outputs; String outputDirectory\r\n\t//XML Suite: big time testing based on testing type\r\n\t//ISuite: pages we are working on; classes created to perform action; under test folder\r\n\t\r\n\textent = new ExtentReports(outputDirectory + File.separator\r\n\t\t\t+ \"Extent.html\", true);\r\n\t//creating an object for extent report, creating a virtual object to save all output to save all results\r\n\t//as a string, file seperator is not needed, it doesn't matter how u received the result\r\n\t//seperate them and consolidate the results\r\n\t//telling you how to save the file name, html is easy to open on any device and lightweight\r\n\t//outputDirectory: SKIP, PASS, FAIL\r\n\t//the reason for boolean option: if yu receive results, generate report//if yu dont then dont generate\r\n\tfor(ISuite suite : suites){//for loop is created\r\n\t\t//map obtains a key value, not duplicate, and then maps it to one location, which is the\r\n\t\t//extent report\r\n\t\t//an interface in java, between key value and location (between status and extent report)\r\n\t\t//will make sure how to map and seperate results under each class\r\n\t\tMap<String, ISuiteResult>result = suite.getResults();\r\n\t\r\n\tfor(ISuiteResult r : result.values()){\r\n\t\tITestContext context =r.getTestContext();//for each of the classes, create log status\r\n\t\t//test context: script that we are running, results from it\r\n\t\t//: is a conditional operator, which lists the conditions, which lists out the conditions\r\n\t\t//script should be able to run \r\n\t\t//one suite, or multiple suites in one shot\r\n\t\t//making context\r\n\t\t\r\n\t\t\r\n\t\tbuildTestNo(context.getPassedTests(), LogStatus.PASS);\r\n\t\tbuildTestNo(context.getFailedTests(), LogStatus.FAIL);\r\n\t\t//retrieving status using results/context\r\n\t\tbuildTestNo(context.getSkippedTests(), LogStatus.SKIP);\r\n\t\t\t\r\n\t}\r\n}\r\nextent.flush();//take results and place on html file\r\nextent.close();\r\n\r\n}", "public void createXMLFileForExamResultNew(Report reportData) {\n\t\ttry{\n\t\t\tFile outDir = new File(reportData.getXmlFilePath()); \n\t\t\tboolean isDirCreated = outDir.mkdirs();\n\t\t\tif (isDirCreated)\n\t\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location created.\");\n\t\t\telse\n\t\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location already exist.\");\n\t\t\t\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\t\t\t\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"root\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\n\t\t\tfor(Student student : reportData.getStudentList()){\n\t\t\t\tString final_weitage=null;\n\t\t\t\tint total_weitage = 0;\t\n\t\t\t\t\t\n\t\t\t\tElement studentList = doc.createElement(\"student\");\n\t\t\t\trootElement.appendChild(studentList);\n\t\t\t\t\n\t\t\t\tElement schoolname = doc.createElement(\"schoolname\");\n\t\t\t\tschoolname.appendChild(doc.createTextNode((reportData.getSchoolDetails().getSchoolDetailsName() != null ? reportData.getSchoolDetails().getSchoolDetailsName() : \"\" )));\n\t\t\t\tstudentList.appendChild(schoolname);\n\t\t\t\t\n\t\t\t\tElement academicYear = doc.createElement(\"academicYear\");\n\t\t\t\tacademicYear.appendChild(doc.createTextNode((String) (reportData.getAcademicYear().getAcademicYearName()!= null ? reportData.getAcademicYear().getAcademicYearName() : \"\" )));\n\t\t\t\tstudentList.appendChild(academicYear);\n\t\t\t\t\n\t\t\t\tElement report = doc.createElement(\"report\");\n\t\t\t\treport.appendChild(doc.createTextNode(\"MARKS STATEMENT\"));\n\t\t\t\tstudentList.appendChild(report);\n\t\t\t\n\t\t\t\tElement termdate = doc.createElement(\"termdate\");\n\t\t\t\ttermdate.appendChild(doc.createTextNode((reportData.getSchoolDetails().getExamName()!=null?reportData.getSchoolDetails().getExamName():\"--------\")));\n\t\t\t\tstudentList.appendChild(termdate);\n\t\t\t\t\n\t\t\t\tElement roll = doc.createElement(\"roll\");\n\t\t\t\troll.appendChild(doc.createTextNode((student.getRollNumber().toString()!=null?student.getRollNumber().toString():\"---------\")));\n\t\t\t\tstudentList.appendChild(roll);\n\t\t\t\t\n\t\t\t\t// nickname elements\n\t\t\t\tElement studentname = doc.createElement(\"studentname\");\n\t\t\t\tstudentname.appendChild(doc.createTextNode((student.getStudentName()!=null?student.getStudentName():\"---------------\")));\n\t\t\t\tstudentList.appendChild(studentname);\n\t\t\t\n\t\t\t\t\n\t\t\t\tElement house = doc.createElement(\"house\");\n\t\t\t\thouse.appendChild(doc.createTextNode((student.getHouse()!=null?student.getHouse():\"------\")));\n\t\t\t\tstudentList.appendChild(house);\n\t\t\t\n\t\t\t\tElement standard = doc.createElement(\"standard\");\n\t\t\t\tstandard.appendChild(doc.createTextNode((student.getStandard()!=null?student.getStandard():\"------\")));\n\t\t\t\tstudentList.appendChild(standard);\n\t\t\t\n\t\t\t\tElement section = doc.createElement(\"section\");\n\t\t\t\tsection.appendChild(doc.createTextNode((student.getSection()!=null?student.getSection():\"--------\")));\n\t\t\t\tstudentList.appendChild(section);\n\t\t\t\t\n\t\t\t\tElement bloodgroup = doc.createElement(\"bloodgroup\");\n\t\t\t\tbloodgroup.appendChild(doc.createTextNode((student.getBloodGroup()!=null?student.getBloodGroup():\"NA\")));\n\t\t\t\tstudentList.appendChild(bloodgroup);\n\t\t\t\t\n\t\t\t\tif(student.getResource()!=null){\n\t\t\t\t\tElement fathername = doc.createElement(\"fathername\");\n\t\t\t\t\tfathername.appendChild(doc.createTextNode((student.getResource().getFatherFirstName()!=null?student.getResource().getFatherFirstName():\"--------\")));\n\t\t\t\t\tstudentList.appendChild(fathername);\n\t\t\t\t\t\n\t\t\t\t\tElement mothername = doc.createElement(\"mothername\");\n\t\t\t\t\tmothername.appendChild(doc.createTextNode((student.getResource().getMotherFirstName()!=null?student.getResource().getMotherFirstName():\"--------\")));\n\t\t\t\t\tstudentList.appendChild(mothername);\n\t\t\t\t\t\n\t\t\t\t\tElement dob = doc.createElement(\"dob\");\n\t\t\t\t\tdob.appendChild(doc.createTextNode((student.getResource().getDateOfBirth()!=null?student.getResource().getDateOfBirth():\"--------\")));\n\t\t\t\t\tstudentList.appendChild(dob);\n\t\t\t\t\t}\n\t\t\t\tif(reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"Term1\")){\n\t\t\t\t\t\tfor(StudentResult studentResult : student.getStudentResultList()){\n\t\t\t\t\t\t\tElement subject = doc.createElement(\"subject\");\n\t\t\t\t\t\t\tstudentList.appendChild(subject);\n\t\t\t\t\t\t\tDouble subjecTotal = 0.00 ;\n\t\t\t\t\t\t\tint subjectTotalInt = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tElement subjectname = doc.createElement(\"subjectname\");\n\t\t\t\t\t\t\tsubjectname.appendChild(doc.createTextNode((studentResult.getSubject()!=null?studentResult.getSubject():\"\")));\n\t\t\t\t\t\t\tsubject.appendChild(subjectname);\n\t\t\t\t\t\t\t//if(reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"Term1\")){\n\t\t\t\t\t\t\t\tfor(Exam examObj:studentResult.getExamList() ){\n\t\t\t\t\t\t\t\t\tif(examObj.getExamName().equalsIgnoreCase(\"PerioDic Test\")){\n\t\t\t\t\t\t\t\t\t\tElement examMarks = doc.createElement(\"PTexammarks\");\n\t\t\t\t\t\t\t\t\t\texamMarks.appendChild(doc.createTextNode((examObj.getGrade()!=null?examObj.getGrade():\"\")));\n\t\t\t\t\t\t\t\t\t\tsubject.appendChild(examMarks);\n\t\t\t\t\t\t\t\t\t}else if(examObj.getExamName().equalsIgnoreCase(\"Note Book\")){\n\t\t\t\t\t\t\t\t\t\tElement examMarks = doc.createElement(\"NBexammarks\");\n\t\t\t\t\t\t\t\t\t\texamMarks.appendChild(doc.createTextNode((examObj.getGrade()!=null?examObj.getGrade():\"\")));\n\t\t\t\t\t\t\t\t\t\tsubject.appendChild(examMarks);\n\t\t\t\t\t\t\t\t\t}else if(examObj.getExamName().equalsIgnoreCase(\"Sub Enrichment\")){\n\t\t\t\t\t\t\t\t\t\tElement examMarks = doc.createElement(\"SEexammarks\");\n\t\t\t\t\t\t\t\t\t\texamMarks.appendChild(doc.createTextNode((examObj.getGrade()!=null?examObj.getGrade():\"\")));\n\t\t\t\t\t\t\t\t\t\tsubject.appendChild(examMarks);\n\t\t\t\t\t\t\t\t\t}else if(examObj.getExamName().equalsIgnoreCase(\"Half Yearly Exam\")){\n\t\t\t\t\t\t\t\t\t\tElement examMarks = doc.createElement(\"HYexammarks\");\n\t\t\t\t\t\t\t\t\t\texamMarks.appendChild(doc.createTextNode((examObj.getGrade()!=null?examObj.getGrade():\"\")));\n\t\t\t\t\t\t\t\t\t\tsubject.appendChild(examMarks);\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\t\t\n\t\t\t\t\t\t\t\t\tif(null != examObj.getGrade()){\n\t\t\t\t\t\t\t\t\t\tif(examObj.getGrade().equalsIgnoreCase(\"UM\")||examObj.getGrade().equalsIgnoreCase(\"AB\")){\n\t\t\t\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + 0;\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + Double.parseDouble(examObj.getGrade());\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}\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\t String subjectString = String.format( \"%.2f\", subjecTotal ) ;\n\t\t\t\t\t\t\t\tsubjectTotalInt = (int) Math.round(subjecTotal);\n\t\t\t\t\t\t\t\tString subjectTotalChar = subjectTotalInt +\"\";\n\t\t\t\t\t\t\t\tElement total = doc.createElement(\"total\");\n\t\t\t\t\t\t\t\ttotal.appendChild(doc.createTextNode((subjectTotalChar!=null?subjectTotalChar:\"\")));\n\t\t\t\t\t\t\t\tsubject.appendChild(total);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString standardValue = student.getStandard();\n\t\t\t\t\t\t\t\tString grade = getGradeForSubjectTotal(subjectTotalInt,standardValue);\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\tElement gradeElement = doc.createElement(\"grade\");\n\t\t\t\t\t\t\t\tgradeElement.appendChild(doc.createTextNode((grade!=null?grade:\"\")));\n\t\t\t\t\t\t\t\tsubject.appendChild(gradeElement);\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\t/*for(Exam examObj:studentResult.getExamList() ){\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\tElement examMarks = doc.createElement(\"exammarks\"); //For Term 2\n\t\t\t\t\t\t\t\t\texamMarks.appendChild(doc.createTextNode((\"\")));\n\t\t\t\t\t\t\t\t\tsubject.appendChild(examMarks);\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\t\n\t\t\t\t\t\t\t\t/*String subjectTotalCharecter = \"\";\n\t\t\t\t\t\t\t\tElement totalTerm2 = doc.createElement(\"exammarks\");\n\t\t\t\t\t\t\t\ttotalTerm2.appendChild(doc.createTextNode((subjectTotalCharecter!=null?subjectTotalCharecter:\"\")));\n\t\t\t\t\t\t\t\tsubject.appendChild(totalTerm2);\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\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tElement gradeTerm2 = doc.createElement(\"exammarks\");\n\t\t\t\t\t\t\t\tgradeTerm2.appendChild(doc.createTextNode((\"\")));\n\t\t\t\t\t\t\t\tsubject.appendChild(gradeTerm2);*/\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"subjecTotal====\"+subjecTotal);\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}else if(reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"Term2\")){\n\t\t\t\t\tSystem.out.println(\"within term2\");\n\t\t\t\t\tfor(StudentResult studentResult : student.getStudentResultList()){\n\t\t\t\t\t\tElement subject = doc.createElement(\"subject\");\n\t\t\t\t\t\tstudentList.appendChild(subject);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement subjectname = doc.createElement(\"subjectname\");\n\t\t\t\t\t\tsubjectname.appendChild(doc.createTextNode((studentResult.getSubject()!=null?studentResult.getSubject():\"\")));\n\t\t\t\t\t\tsubject.appendChild(subjectname);\n\t\t\t\t\t\t//if(reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"Term1\")){\n\t\t\t\t\t\tfor(Subject subjectObj : studentResult.getSubjectList()){\n\t\t\t\t\t\t\tDouble subjecTotal = 0.00 ;\n\t\t\t\t\t\t\tint subjectTotalInt = 0;\n\t\t\t\t\t\t\tfor(Exam examObj:subjectObj.getExamList() ){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tElement examMarks = doc.createElement(\"exammarks\");\n\t\t\t\t\t\t\t\texamMarks.appendChild(doc.createTextNode((examObj.getGrade()!=null?examObj.getGrade():\"\")));\n\t\t\t\t\t\t\t\tsubject.appendChild(examMarks);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t/*if(null != examObj.getGrade()){\n\t\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + Double.parseDouble(examObj.getGrade());\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\tif(null != examObj.getGrade()){\n\t\t\t\t\t\t\t\t\tif(examObj.getGrade().equalsIgnoreCase(\"UM\")||examObj.getGrade().equalsIgnoreCase(\"AB\")){\n\t\t\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + 0;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + Double.parseDouble(examObj.getGrade());\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\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString subjectTotalChar = subjecTotal.toString();\n\t\t\t\t\t\t\tsubjectTotalInt = (int) Math.round(subjecTotal);\n\t\t\t\t\t\t\tString subjectTotalString = subjectTotalInt +\"\";\n\t\t\t\t\t\t\tElement total = doc.createElement(\"exammarks\");\n\t\t\t\t\t\t\ttotal.appendChild(doc.createTextNode((subjectTotalString!=null?subjectTotalString:\"\")));\n\t\t\t\t\t\t\tsubject.appendChild(total);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString standardValue = student.getStandard();\n\t\t\t\t\t\t\tString grade = getGradeForSubjectTotal(subjectTotalInt,standardValue);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tElement gradeElement = doc.createElement(\"exammarks\");\n\t\t\t\t\t\t\tgradeElement.appendChild(doc.createTextNode((grade!=null?grade:\"\")));\n\t\t\t\t\t\t\tsubject.appendChild(gradeElement);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t System.out.println(\"subjecTotal====\"+subjecTotal);\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\n\t\t\t\t\t}\n\t\t\t\t}else if(reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"AnnualExam1\")){\n\t\t\t\t\tfor(StudentResult studentResult : student.getStudentResultList()){\n\t\t\t\t\t\tElement subject = doc.createElement(\"subject\");\n\t\t\t\t\t\tstudentList.appendChild(subject);\n\t\t\t\t\t\tDouble subjecTotal = 0.00 ;\n\t\t\t\t\t\tint subjectTotalInt = 0;\n\t\t\t\t\t\tElement subjectname = doc.createElement(\"subjectname\");\n\t\t\t\t\t\tsubjectname.appendChild(doc.createTextNode((studentResult.getSubject()!=null?studentResult.getSubject():\"\")));\n\t\t\t\t\t\tsubject.appendChild(subjectname);\n\t\t\t\t\t\t//if(reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"Term1\")){\n\t\t\t\t\t\t\tfor(Exam examObj:studentResult.getExamList() ){\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\tElement examMarks = doc.createElement(\"exammarks\");\n\t\t\t\t\t\t\t\texamMarks.appendChild(doc.createTextNode((examObj.getGrade()!=null?examObj.getGrade():\"\")));\n\t\t\t\t\t\t\t\tsubject.appendChild(examMarks);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t/*if(null != examObj.getGrade()){\n\t\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + Double.parseDouble(examObj.getGrade());\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\tif(null != examObj.getGrade()){\n\t\t\t\t\t\t\t\t\tif(examObj.getGrade().equalsIgnoreCase(\"UM\")||examObj.getGrade().equalsIgnoreCase(\"AB\")){\n\t\t\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + 0;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + Double.parseDouble(examObj.getGrade());\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\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//String subjectTotalChar = subjecTotal.toString();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString subjectTotalChar = subjecTotal.toString();\n\t\t\t\t\t\t\tsubjectTotalInt = (int) Math.round(subjecTotal);\n\t\t\t\t\t\t\tString subjectTotalString = subjectTotalInt +\"\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tElement total = doc.createElement(\"exammarks\");\n\t\t\t\t\t\t\ttotal.appendChild(doc.createTextNode((subjectTotalChar!=null?subjectTotalChar:\"\")));\n\t\t\t\t\t\t\tsubject.appendChild(total);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString standardValue = student.getStandard();\n\t\t\t\t\t\t\tString grade = getGradeForSubjectTotal(subjectTotalInt,standardValue);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tElement gradeElement = doc.createElement(\"exammarks\");\n\t\t\t\t\t\t\tgradeElement.appendChild(doc.createTextNode((grade!=null?grade:\"\")));\n\t\t\t\t\t\t\tsubject.appendChild(gradeElement);\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\t\n\t\t\t\t\t\tSystem.out.println(\"subjecTotal====\"+subjecTotal);\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}\n\t\t\t}else if(reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"PT1\") || reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"PT2\") ||reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"PT3\")){\n\t\t\t\tDouble allTotal = 0.00 ;\n\t\t\t\tfor(StudentResult studentResult : student.getStudentResultList()){\n\t\t\t\t\tElement subject = doc.createElement(\"subject\");\n\t\t\t\t\tstudentList.appendChild(subject);\n\t\t\t\t\tDouble subjecTotal = 0.00 ;\n\t\t\t\t\t\n\t\t\t\t\tElement subjectname = doc.createElement(\"subjectname\");\n\t\t\t\t\tsubjectname.appendChild(doc.createTextNode((studentResult.getSubject()!=null?studentResult.getSubject():\"\")));\n\t\t\t\t\tsubject.appendChild(subjectname);\n\t\t\t\t\tfor(Exam examObj:studentResult.getExamList() ){\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement maxmarks = doc.createElement(\"maxmarks\");\n\t\t\t\t\t\tmaxmarks.appendChild(doc.createTextNode((examObj.getExamName()!=null?examObj.getExamName():\"\")));\n\t\t\t\t\t\tsubject.appendChild(maxmarks);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement examMarks = doc.createElement(\"exammarks\");\n\t\t\t\t\t\texamMarks.appendChild(doc.createTextNode((examObj.getGrade()!=null?examObj.getGrade():\"\")));\n\t\t\t\t\t\tsubject.appendChild(examMarks);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(null != examObj.getGrade()){\n\t\t\t\t\t\t\tif(examObj.getGrade().equalsIgnoreCase(\"UM\")||examObj.getGrade().equalsIgnoreCase(\"AB\") || examObj.getGrade().equalsIgnoreCase(\"NA\")){\n\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + 0.0;\n\t\t\t\t\t\t\t\tallTotal = allTotal + 0.0;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tsubjecTotal = subjecTotal + Double.parseDouble(examObj.getGrade());\n\t\t\t\t\t\t\t\tallTotal = allTotal + Double.parseDouble(examObj.getGrade());\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\tString subjectString = String.format( \"%.2f\", subjecTotal ) ;\n\t\t\t\t\t\n\t\t\t\t\t/*Element total = doc.createElement(\"total\");\n\t\t\t\t\ttotal.appendChild(doc.createTextNode((subjectString!=null?subjectString:\"\")));\n\t\t\t\t\tsubject.appendChild(total);*/\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString allTotalString = String.format( \"%.2f\", allTotal ) ;\n\t\t\t\t\n\t\t\t\tElement total = doc.createElement(\"total\");\n\t\t\t\ttotal.appendChild(doc.createTextNode((allTotalString!=null?allTotalString:\"\")));\n\t\t\t\tstudentList.appendChild(total);\n\t\t\t}\n\t\t\t\t\t\tif(student.getCoScholasticResultList()!=null && student.getCoScholasticResultList().size()!=0){\n\t\t//\t\t\t\t\tSystem.out.println(\"##....... \"+student.getCoScholasticResultList().size());\n\t\t\t\t\t\t\tif(reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"Term1\")){\n\t\t\t\t\t\t\t\tfor(CoScholasticResult csr : student.getCoScholasticResultList()){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Element coscholasticmarks = doc.createElement(\"coscholasticmarks\");\n\t\t\t\t\t\t\t\t\t//studentList.appendChild(coscholasticmarks);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(csr.getHead()!=null && csr.getHead().trim().equalsIgnoreCase(\"PHYSICAL EDUCATION\")){\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement coscholasticphysicaleducationTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticphysicaleducationTerm1.appendChild(doc.createTextNode(( \"PHYSICAL EDUCATION\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticphysicaleducationTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement physicaleducationTerm1 = doc.createElement(\"physicalEducation\");\n\t\t\t\t\t\t\t\t\t\tphysicaleducationTerm1.appendChild(doc.createTextNode((csr.getGrade()!= null ? csr.getGrade() : \"-\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(physicaleducationTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t/*Element coscholasticphysicaleducationTerm2 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticphysicaleducationTerm2.appendChild(doc.createTextNode(( \"PHYSICAL EDUCATION\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticphysicaleducationTerm2);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement physicaleducationTerm2 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tphysicaleducationTerm2.appendChild(doc.createTextNode((\"\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(physicaleducationTerm2);*/\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}\n\t\t\t\t\t\t\t\t\tif(csr.getHead()!=null && csr.getHead().trim().equalsIgnoreCase(\"DISCIPLINE\")){\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement coscholasticdisciplineTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticdisciplineTerm1.appendChild(doc.createTextNode(( \"DISCIPLINE\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticdisciplineTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement disciplineTerm1 = doc.createElement(\"discipline\");\n\t\t\t\t\t\t\t\t\t\tdisciplineTerm1.appendChild(doc.createTextNode((csr.getGrade()!= null ? csr.getGrade() : \"-\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(disciplineTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t/*Element coscholasticdisciplineTerm2 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticdisciplineTerm2.appendChild(doc.createTextNode(( \"DISCIPLINE\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticdisciplineTerm2);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement disciplineTerm2 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticdisciplineTerm2.appendChild(doc.createTextNode((\"\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticdisciplineTerm2);*/\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}\n\t\t\t\t\t\t\t\t\tif(csr.getHead()!=null && csr.getHead().trim().equalsIgnoreCase(\"HEALTH EDUCATION\")){\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement coscholastichealtheducationTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholastichealtheducationTerm1.appendChild(doc.createTextNode(( \"HEALTH EDUCATION\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholastichealtheducationTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement healtheducationterm1 = doc.createElement(\"healtheducation\");\n\t\t\t\t\t\t\t\t\t\thealtheducationterm1.appendChild(doc.createTextNode((csr.getGrade()!= null ? csr.getGrade() : \"-\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(healtheducationterm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t/*\tElement coscholastichealtheducationTerm2 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholastichealtheducationTerm2.appendChild(doc.createTextNode(( \"HEALTH EDUCATION\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholastichealtheducationTerm2);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement healtheducationterm2 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\thealtheducationterm2.appendChild(doc.createTextNode((\"\")));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(healtheducationterm2);*/\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}\n\t\t\t\t\t\t\t\t\tif(csr.getHead()!=null && csr.getHead().trim().equalsIgnoreCase(\"WORK EDUCATION\")){\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement coscholasticworkeducationTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticworkeducationTerm1.appendChild(doc.createTextNode(( \"WORK EDUCATION\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticworkeducationTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement workeducationterm1 = doc.createElement(\"workeducation\");\n\t\t\t\t\t\t\t\t\t\tworkeducationterm1.appendChild(doc.createTextNode((csr.getGrade()!= null ? csr.getGrade() : \"-\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(workeducationterm1);\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/*Element coscholasticworkeducationTerm2 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticworkeducationTerm2.appendChild(doc.createTextNode(( \"WORK EDUCATION\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticworkeducationTerm2);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement workeducationterm2 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tworkeducationterm2.appendChild(doc.createTextNode((\"\")));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(workeducationterm2);*/\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}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(reportData.getSchoolDetails().getExamName().equalsIgnoreCase(\"AnnualExam1\")){\n\t\t\t\t\t\t\t\tfor(CoScholasticResult csr : student.getCoScholasticResultList()){\n\t\t\t\t\t\t\t\t\tif(csr.getHead()!=null && csr.getHead().trim().equalsIgnoreCase(\"PHYSICAL EDUCATION\")){\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement coscholasticphysicaleducationTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticphysicaleducationTerm1.appendChild(doc.createTextNode(( \"PHYSICAL EDUCATION\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticphysicaleducationTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement physicaleducationTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tphysicaleducationTerm1.appendChild(doc.createTextNode((csr.getGrade()!= null ? csr.getGrade() : \"-\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(physicaleducationTerm1);\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}\n\t\t\t\t\t\t\t\t\tif(csr.getHead()!=null && csr.getHead().trim().equalsIgnoreCase(\"DISCIPLINE\")){\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement coscholasticdisciplineTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticdisciplineTerm1.appendChild(doc.createTextNode(( \"DISCIPLINE\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticdisciplineTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement disciplineTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tdisciplineTerm1.appendChild(doc.createTextNode((csr.getGrade()!= null ? csr.getGrade() : \"-\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(disciplineTerm1);\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}\n\t\t\t\t\t\t\t\t\tif(csr.getHead()!=null && csr.getHead().trim().equalsIgnoreCase(\"HEALTH EDUCATION\")){\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement coscholastichealtheducationTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholastichealtheducationTerm1.appendChild(doc.createTextNode(( \"HEALTH EDUCATION\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholastichealtheducationTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement healtheducationterm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\thealtheducationterm1.appendChild(doc.createTextNode((csr.getGrade()!= null ? csr.getGrade() : \"-\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(healtheducationterm1);\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}\n\t\t\t\t\t\t\t\t\tif(csr.getHead()!=null && csr.getHead().trim().equalsIgnoreCase(\"WORK EDUCATION\")){\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement coscholasticworkeducationTerm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tcoscholasticworkeducationTerm1.appendChild(doc.createTextNode(( \"WORK EDUCATION\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(coscholasticworkeducationTerm1);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tElement workeducationterm1 = doc.createElement(\"coscholastic\");\n\t\t\t\t\t\t\t\t\t\tworkeducationterm1.appendChild(doc.createTextNode((csr.getGrade()!= null ? csr.getGrade() : \"-\" )));\n\t\t\t\t\t\t\t\t\t\tstudentList.appendChild(workeducationterm1);\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}\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}\n\t\t\t\t}\n\t\t\t\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\t\t\n\t\t\tStreamResult result = new StreamResult(new File(reportData.getXmlFilePath()+reportData.getXmlFileName()));\n\t\t\t\n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t\t}catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tlogger.error(e);\n\t\t\t}\n\t\t}", "public void writeResultMetricsToFile(String metricsFilePath) {\n String metricsOutputStr = utilityConstants.AVG_NO_OF_WORDS_STRING + avgNoOfWrds\n + utilityConstants.NEW_LINE_STRING + utilityConstants.AVG_NO_OF_CHARACTERS_STRING + avgNoOfChars\n + utilityConstants.NEW_LINE_STRING + utilityConstants.MAX_FREQUENCY_WORDS_STRING + maxFreqWrd\n + utilityConstants.NEW_LINE_STRING + utilityConstants.LONGEST_WORDS_STRING + longstWrd;\n writeDataToFile(metricsOutputStr.toCharArray(), metricsFilePath);\n }", "public String exportReportForUserInKinder(String reportFormat ,long iduser , long idkinder ) throws FileNotFoundException, JRException {\n String path = \"C:\\\\Users\\\\ons\\\\git\\\\Esprit-PiDev-4Sae6\" ;\n \n \n \n\t\tList<Bill> bill = (List<Bill>) Bill_rep.bill_byparent_kinder(iduser, idkinder);\n\t\tDbo_User this_User = usRep.findById(iduser).orElseThrow( \n \t\t\t()-> new RuntimeException());\n \tthis.bill = this_User.getFullName();\n \tthis.name_user=this_User.getFullName();\n for (Bill b : bill){\n \tLong amout_rest_to_pay = (long) (TOTAL_AMOUNT - b.getAmount());\n \tLong amount_already_payed = (long) b.getAmount();\n \tb.setAmount_payed(String.valueOf(amount_already_payed));\n \tb.setAmount_not_payed(String.valueOf(amout_rest_to_pay));\n \t\n \tb.setGardenpk(b.getGarden().getName());\n \tb.setUserpk(b.getUser().getFirstName() + \" \"+ b.getUser().getLastName());\n }\n \n \n \n //load file and compile it\n File file = ResourceUtils.getFile(\"classpath:userBill.xml\");\n JasperReport jasperReport = JasperCompileManager.compileReport(file.getAbsolutePath());\n JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(bill);\n Map<String, Object> parameters = new HashMap<>();\n parameters.put(\"createdBy\", \"Java Techie\");\n JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource);\n Date date = new Date();\n Format formatter = new SimpleDateFormat(\"YYYY-MM-dd_hh-mm-ss\");\n if (reportFormat.equalsIgnoreCase(\"pdf\")) { \n \t\n JasperExportManager.exportReportToPdfFile(jasperPrint, path + \"\\\\bill_User\"+\"_\"+this.name_user+\"_\"+ formatter.format(date) +\".pdf\");\n }\n\n return \"report generated in path : \" + path;\n }", "private void print(List<String> list, int fileNum, String dir){\n\n //controlling existance of results directory\n File resDir = new File(dir+\"/A_results/\");\n resDir.mkdir();\n\n try {\n PrintWriter resWriter = new PrintWriter(dir+\"/A_results/result\"+fileNum+\".\"+writeExtention, \"UTF-8\");\n for(String s : list) {\n resWriter.println(s);\n resWriter.flush();\n }\n\n resWriter.close();\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "boolean generateReport();", "public static void writeReport(Collection<HitsHunter> sorted) {\n List<String> resArr = new ArrayList<>(10);\n for (HitsHunter hunter : sorted) {\n var res = Printer.printTotalResult(hunter);\n resArr.add(res);\n }\n CSVWriter.writeInFile(resArr, true);\n }", "public void readAndWrite() throws Exception {\r\n File reportExcelFile = new File(reportFileName);\r\n if (!reportExcelFile.exists()) {\r\n throw new FileNotFoundException(\r\n \"Report Excel file not found in path.\");\r\n }\r\n\r\n File resultExcelFile = new File(resultFileName);\r\n if (!resultExcelFile.exists()) {\r\n throw new FileNotFoundException(\r\n \"Expected Result Excel file not found in path.\");\r\n }\r\n\r\n ReadResultExcelFile.getInstance().preCheckExcelXLSFile(reportExcelFile,\r\n reportFileMapIndex, true);\r\n ReadResultExcelFile.getInstance().preCheckExcelXLSFile(resultExcelFile,\r\n resultFileMapIndex, false);\r\n\r\n ReadResultExcelFile.getInstance().getResultExcelXLSData(\r\n resultExcelFile, resultFileMapIndex);\r\n writeColumnHeader();\r\n ReadResultExcelFile.getInstance().generateExcelFromReportData(\r\n reportExcelFile, resultExcelFile, reportFileMapIndex);\r\n\r\n }", "protected static void simulationReport(LinkedList<SimulationPassengerQueue[]> trainQueuesList) throws IOException {\n // Opening the File.\n File file = new File(\"src/Denuwara_Manike/simulationReport.txt\");\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream);\n\n StringBuilder text = new StringBuilder();\n\n // Creating the Overall Summary.\n text.append(\"OVERALL SUMMARY\\n\\n\");\n\n for (int train = 0; train < 2; train++) {\n int sim2MaxWait = Math.max(trainQueuesList.get(1)[0].getTotalWaitingTime(train), trainQueuesList.get(1)[1].getTotalWaitingTime(train));\n int sim2MinQueueLength = Math.min(trainQueuesList.get(1)[0].getQueueLength(train), trainQueuesList.get(1)[1].getQueueLength(train));\n\n // Calculating Simulation 2 minimum Average.\n double sim2MinAvg = 0.0;\n // If both queues are used.\n if (!trainQueuesList.get(1)[0].isEmpty(train) && !trainQueuesList.get(1)[1].isEmpty(train)) {\n sim2MinAvg = Math.min(trainQueuesList.get(1)[0].getTotalWaitingTime(train) / (double) trainQueuesList.get(1)[0].getQueueLength(train), trainQueuesList.get(1)[1].getTotalWaitingTime(train) / (double) trainQueuesList.get(1)[1].getQueueLength(train));\n }\n // If Only 1st Queue is used.\n else if (!trainQueuesList.get(1)[0].isEmpty(train) && trainQueuesList.get(1)[1].isEmpty(train)) {\n sim2MinAvg =trainQueuesList.get(1)[0].getTotalWaitingTime(train) / (double) trainQueuesList.get(1)[0].getQueueLength(train);\n }\n // If Only 2nd Queue is used.\n else if (trainQueuesList.get(1)[0].isEmpty(train) && !trainQueuesList.get(1)[1].isEmpty(train)) {\n sim2MinAvg =trainQueuesList.get(1)[1].getTotalWaitingTime(train) / (double) trainQueuesList.get(1)[1].getQueueLength(train);\n }\n\n\n text.append(\"Train : \").append(GUI.trains[train]).append(\"\\n\\n\")\n .append(\"\\tMaximum Total Waiting Time (s) : \\n\")\n .append(\"\\t\\tSimulation 1 : \").append(trainQueuesList.get(0)[0].getTotalWaitingTime(train)).append(\"\\n\")\n .append(\"\\t\\tSimulation 2 : \").append(sim2MaxWait).append(\"\\n\\n\")\n .append(\"\\tMinimum Average Waiting Time (s) : \\n\")\n .append(\"\\t\\tSimulation 1 : \").append(df2.format((double) trainQueuesList.get(0)[0].getTotalWaitingTime(train)/ trainQueuesList.get(0)[0].getQueueLength(train)))\n .append(\"\\n\").append(\"\\t\\tSimulation 2 : \").append(df2.format(sim2MinAvg)).append(\"\\n\\n\")\n .append(\"\\tMaximum Queue Length : \\n\")\n .append(\"\\t\\tSimulation 1 : \").append(trainQueuesList.get(0)[0].getQueueLength(train)).append(\"\\n\")\n .append(\"\\t\\tSimulation 2 : \").append(sim2MinQueueLength).append(\"\\n\\n\\n\");\n }\n\n // Creating the Train Queues\n text.append(\"\\nTRAIN QUEUES\\n\\n\");\n\n for (int simulation = 0; simulation < 2; simulation++) {\n text.append(\"Simulation : \").append(simulation + 1).append(\"\\n\\n\");\n for (int train = 0; train < 2; train++) {\n text.append(\"\\tTrain : \").append(GUI.trains[train]).append(\"\\n\\n\");\n for (int trainQueue = 0; trainQueue < trainQueuesList.get(simulation).length; trainQueue++) {\n text.append(\"\\t\\tTrain Queue : \").append(trainQueue + 1).append(\"\\n\\n\");\n text.append(\"\\t\\t\\t|-------------------------------------------------------------------------------------------------------|\\n\");\n text.append(\"\\t\\t\\t| group | Seat |\").append(repeatSpace(14)).append(\"Name\").append(repeatSpace(15)).append(\"|\").append(repeatSpace(7)).append(\"NIC\").append(repeatSpace(8)).append(\"| Length | time | totalTime |\\n\");\n text.append(\"\\t\\t\\t|-------------------------------------------------------------------------------------------------------|\\n\");\n\n for (SimulationPassenger sp : trainQueuesList.get(simulation)[trainQueue].getQueueArray(train)) {\n text.append(\"\\t\\t\\t| \").append(sp.getGroupNumber()).append(repeatSpace(5 - String.valueOf(sp.getGroupNumber()).length())).append(\"|\").append(\" \").append(sp.getSeatNumber()).append(\" |\").append(\" \").append(sp.getPassengerName()).append(repeatSpace(30 - sp.getPassengerName().length())).append(\"|\").append(\" \").append(sp.getPassengerNIC()).append(repeatSpace(15 - sp.getPassengerNIC().length())).append(\"|\").append(\" \").append(sp.getQueueLength()).append(\" |\").append(\" \").append(sp.getSecondsInQueue()).append(\"s\").append(repeatSpace(5 - String.valueOf(sp.getSecondsInQueue()).length())).append(\"|\").append(\" \").append(sp.getWaitingTime()).append(\"s\").append(repeatSpace(7 - String.valueOf(sp.getWaitingTime()).length())).append(\"|\\n\");\n }\n text.append(\"\\t\\t\\t|-------------------------------------------------------------------------------------------------------|\\n\\n\");\n }\n }\n text.append(\"\\n\");\n }\n\n // Deleting Redundant lines at the edn of the file.\n text.delete(text.length()-2, text.length());\n\n // Writing the String to the file.\n outputStreamWriter.write(text.toString());\n outputStreamWriter.flush();\n\n // Closing the Opened Files.\n outputStreamWriter.close();\n fileOutputStream.close();\n }", "public FileOutputStream generateFinance14Report(List<Finance14Dto> Finance14DtoList,String fileName) throws IOException, ClassNotFoundException, SQLException {\n\t\tFile file=new File(fileName);\n\n\t\tString sheetName = \"Sheet1\";// name of sheet\n\n//\t\tResultSet resultSet = getDatabase(villageId,yearmonth);\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(); \n\t XSSFSheet spreadsheet = workbook\n\t \t .createSheet(sheetName);\n\t \t XSSFRow row=spreadsheet.createRow(1);\n\t \t /* XSSFRow row1 = spreadsheet.createRow(2);*/\n\t \t XSSFCell cell;\n\t \t cell=row.createCell(1);\n\t \t cell.setCellValue(\"vid\");\n\t \t cell=row.createCell(2);\n\t \t cell.setCellValue(\"month\");\n\t \t cell=row.createCell(3);\n\t \t cell.setCellValue(\"year\");\n\t \t cell=row.createCell(4);\n\t \t cell.setCellValue(\"Total work\");\n\t \t cell=row.createCell(5);\n\t \t cell.setCellValue(\"Works approved\");\n\t \t cell=row.createCell(6);\n\t \t cell.setCellValue(\"Project not started\");\n\t \t cell=row.createCell(7);\n\t \t cell.setCellValue(\"Progress\");\n\t \t cell=row.createCell(8);\n\t \t cell.setCellValue(\"Completed\");\n\t \t cell=row.createCell(9);\n\t \t cell.setCellValue(\"Grant allocated\");\n\t \t cell=row.createCell(10);\n\t \t cell.setCellValue(\"Amount spent\");\n\t \t /* cell=row.createCell(11);\n\t \t cell.setCellValue(\"entry date\");*/\n\t \t \n\t \t int i=2;\n\t \t for(Finance14Dto finance14Dto:Finance14DtoList)\n//\t \t while(resultSet.next())\n\t \t {\n\t \t row=spreadsheet.createRow(i);\n\t \t /* row1=spreadsheet.createRow(i+1);*/\n\t \t cell=row.createCell(1);\n\t \t cell.setCellValue(finance14Dto.getVillageId());\n\t \t cell=row.createCell(2);\n\t \t cell.setCellValue(finance14Dto.getMonth());\n\t \t cell=row.createCell(3);\n\t \t cell.setCellValue(finance14Dto.getYear());\n//\t \t /* spreadsheet.addMergedRegion(new CellRangeAddress(3, 3, 4, 4));*/\n\t \t cell=row.createCell(4);\n\t \t cell.setCellValue(finance14Dto.getTotalWork());\n\t \t cell=row.createCell(5);\n\t \t cell.setCellValue(finance14Dto.getWorksApproved());\n\t \t cell=row.createCell(6);\n\t \t cell.setCellValue(finance14Dto.getProjectNotStarted());\n\t \t cell=row.createCell(7);\n\t \t cell.setCellValue(finance14Dto.getProgress());\n\t \t cell=row.createCell(8);\n\t \t cell.setCellValue(finance14Dto.getCompleted());\n\t \t cell=row.createCell(9);\n\t \t cell.setCellValue(finance14Dto.getGrantAllocated());\n\t \t cell=row.createCell(10);\n\t \t cell.setCellValue(finance14Dto.getAmountSpent());\n\t \t /*cell=row.createCell(11);\n\t \t cell.setCellValue(finance14Dto.getEntryDate());*/\n\t \t i++;\n\t \t }\n\t \t FileOutputStream out = new FileOutputStream(\n\t \t file);\n\t \t workbook.write(out);\n\t \t out.close();\n\t \t System.out.println(\n\t \t \"exceldatabase.xlsx written successfully\");\n\t \t \n\t \treturn out;\n\t}", "@Postprocess\n public void getReport() {\n try {\n BufferedWriter bufferWriter = new BufferedWriter(new FileWriter(logfile, false));\n if (!results.isEmpty()) {\n bufferWriter.write(\"===========================================================\\n\");\n bufferWriter.write(\"sys_milli,\\t\\tdb_micro,\\t\\ttime_diff\\n\");\n Collections.sort(results);\n for (MysqlheartbeatBean mhb : results) {\n bufferWriter.write(String.valueOf(mhb.getSysMilli()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro() - mhb.getSysMilli()) + \"\\n\");\n }\n bufferWriter.flush();\n }\n bufferWriter.close();\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"{0}: {1}\", new Object[]{toolName, ex.getMessage()});\n }\n }", "public void writeResultData() {\n\n// DatabaseLoader databaseLoader = new DatabaseLoader();\n TestResultDeployer testResultDeployer = new TestResultDeployer();\n MySqlDatabaseManager mySqlDatabaseManager;\n try {\n EnvironmentBuilder environmentBuilder = new EnvironmentBuilder();\n DashboardVariables dashboardVariables = environmentBuilder.getFrameworkSettings().getDashboardVariables();\n if (dashboardVariables.getEnableDashboard().equalsIgnoreCase(\"true\")) {\n String databaseName = dashboardVariables.getDbName();\n\n mySqlDatabaseManager = new MySqlDatabaseManager(dashboardVariables.getJdbcUrl(), dashboardVariables.\n getDbUserName(), dashboardVariables.getDbPassword());\n// databaseLoader.createDatabase();\n mySqlDatabaseManager.execute(\"INSERT INTO \" + databaseName + \".WA_BUILD_HISTORY VALUES()\");\n DirectoryScanner scan = new DirectoryScanner();\n scan.setBasedir(ProductConstant.REPORT_LOCATION + File.separator + \"reports\" + File.separator);\n String[] fileList = new String[]{\"*/testng-results.xml\"};\n scan.setIncludes(fileList);\n scan.scan();\n String[] fileset = scan.getIncludedFiles();\n for (int i = 0; i <= fileset.length - 1; i++) {\n testResultDeployer.writeResult(ProductConstant.REPORT_LOCATION + \"reports\" +\n File.separator + fileset[i]);\n log.info(fileset[i] + \" write to database\");\n }\n }\n } catch (ClassNotFoundException e) {\n log.error(e);\n } catch (SQLException e) {\n log.error(e);\n } /*catch (IOException e) {\n log.error(e);\n }*/\n }", "private static void outputResult(int result, File file) {\n\n try (FileWriter fileWriter = new FileWriter(file)) {\n fileWriter.write(result + \"\");\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "public void testLogToXmlCreator(String suiteName, String testName, String sourceFileName, String xmlOutputFileName, String reporterClass) throws IOException {\n \t\t// OPTIONAL FAILURES NUMBER OUTPUT:\n \t\tif (fileExist(\"test.num\", false)) {\n \t\t\tif (fileExist(sourceFileName, false)) {\n \t\t\t\tif (Integer.valueOf(fileScanner(\"test.num\")) == 1 ) { fileWriterPrinter(\"FAILED...\"); }\n \t\t\t\telse { \n \t\t\t\t\tif (convertXmlArrayToTestNG(readLogOutputXmlLinesArray(sourceFileName)).length == Integer.valueOf(fileScanner(\"test.num\")))\n \t\t\t\t\t { fileWriterPrinter(\"ALL \" + convertXmlArrayToTestNG(readLogOutputXmlLinesArray(sourceFileName)).length + \" FAILED!\" + \"\\n\"); }\n \t\t\t\t\telse { fileWriterPrinter(\"FAILED: \" + convertXmlArrayToTestNG(readLogOutputXmlLinesArray(sourceFileName)).length + \" OF \" + fileScanner(\"test.num\") + \"\\n\"); }\n \t\t\t\t}\n \t\t\t} else { \n \t\t\t\t if (Integer.valueOf(fileScanner(\"test.num\")) == 1 ) { fileWriterPrinter(\"PASSED!\"); } \n \t\t\t\t else { fileWriterPrinter(\"ALL PASSED!\\n\"); }\n \t\t\t\t} \t\t\n \t } else {\n \t\t if(fileExist(sourceFileName, false)) {\n \t\t\t System.out.println(\"FAILED: \" + convertXmlArrayToTestNG(readLogOutputXmlLinesArray(sourceFileName)).length);\t\n \t\t } else { System.out.print(\"ALL PASSED!\"); } \t \t\n \t }\n\n \t\t// PRE-CLEAN:\n \t\tif (fileExist(System.getProperty(\"user.dir\"), xmlOutputFileName, false)) { fileCleaner(System.getProperty(\"user.dir\"), xmlOutputFileName);}\t\t\n \t\t\n \t\t// FAILED SUITE CREATES XML, OTHERWISE NOTHING:\n \t\tif (fileExist(sourceFileName, false)) {\n \t\t\t\n// \t\t// UPDATE PREVIOUS TEST NUMBER AS PER FAILED:\n// \t\tif (fileExist(\"prev.num\", false)){\n// \t\t\tfileCleaner(\"prev.num\");\n// \t\t\tfileWriter(\"prev.num\", convertXmlArrayToTestNG(readLogOutputXmlLinesArray(sourceFileName)).length);\n// \t\t}\n \t\t\t\n// \t\t// UPDATE LAST TEST NUMBER AS PER FAILED:\n// \t\tif (fileExist(\"last.num\", false)){\n// \t\t\tfileCleaner(\"last.num\");\n// \t\t\tfileWriter(\"last.num\", convertXmlArrayToTestNG(readLogOutputXmlLinesArray(sourceFileName)).length);\n// \t\t}\n \t\t\t\n \t// UPDATE FAILED TEST NUMBER AS PER FAILED:\n \tif (fileExist(\"failed.num\", false)){\n \t\tfileCleaner(\"failed.num\");\n \t\tfileWriter(\"failed.num\", convertXmlArrayToTestNG(readLogOutputXmlLinesArray(sourceFileName)).length);\n \t}\n \t\t\n \t\t// HEADER:\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \"<!DOCTYPE suite SYSTEM \\\"http://testng.org/testng-1.0.dtd\\\">\");\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \"<suite name=\\\"\" + suiteName + \"\\\">\");\n \t\t\n \t\t// LISTENERS:\n\t\t\t\tString extentReporterClassPath; \n \t\textentReporterClassPath = new Object(){}.getClass().getPackage().getName();\n \t\textentReporterClassPath = extentReporterClassPath.substring(0, extentReporterClassPath.lastIndexOf(\".\"));\n \t\textentReporterClassPath = extentReporterClassPath.substring(0, extentReporterClassPath.lastIndexOf(\".\"));\n \t\textentReporterClassPath = extentReporterClassPath + \".extentreporter.ExtentReporterNG\"; \n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \" <listeners>\");\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \" <listener class-name=\\\"\" + extentReporterClassPath + \"\\\"/>\");\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \" </listeners>\");\n \t\t\n \t\t// TEST:\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \" <test name=\\\"\" + testName + \"\\\">\");\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \" <classes>\");\n \t\t\t\t\t\t\n \t\t// BODY:\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \" \" + reporterClass); \t\t\n \t\tString[] string = convertXmlArrayToTestNG(readLogOutputXmlLinesArray(sourceFileName)); // READS FAILURES\n \t\t/** WILL PRINT XML CLASSES-BODY */ // for (String s : string) { System.out.println(s); }\n \t\tfor (String s : string) { fileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, s); }\n \t\t\n \t\t// FOOTER:\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \" </classes>\");\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \" </test>\");\n \t\tfileWriter(System.getProperty(\"user.dir\"), xmlOutputFileName, \"</suite>\");\n \t\t\n \t\t}\t\n \t}", "private void createOutputFiles(){\n\t\tFile folder = new File(C.appFolderPath + C.DEBUG_FOLDER);\n\t\tboolean success = true;\n\t\tif(folder.exists()){\n\t\t\t// erase the folder\n\t\t\tDeleteRecursive(folder);\n\t\t}\n\t\t\n\t\t// create necessary folders\n\t\tif (!folder.exists()) {\n\t\t success = folder.mkdir();\n\t\t Log.d(C.LOG_TAG, \"folder is not existed, create one\");\n\t\t} else {\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: folder has not been deleted\");\n\t\t}\n\t\tFile monitorFolder = new File(C.appFolderPath + C.DEBUG_FOLDER + logFolder);\n\t\tmonitorFolder.mkdir();\n\n\t\ttry {\n\t\t\tmMatlabOutFile = new PrintWriter(new FileOutputStream(new File(C.appFolderPath+ C.DEBUG_FOLDER +\"matlab.txt\"),true));\n\t\t\tmMatlabOutFile.println(inputPrefix+audioSettingName);\n\t\t\tmMatlabOutFile.println(RECODER_CHANNEL_CNT);\n\t\t\tmMatlabOutFile.println(C.DEFAULT_VOL);\n\t\t\tmMatlabOutFile.close();\n\t\t\tmMatlabOutFile = null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: can't open sensor file to write\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void reportes(){\n try {\n /**Variable necesaria para abrir el archivo creado*/\n Desktop pc=Desktop.getDesktop();\n /**Variables para escribir el documento*/\n File f=new File(\"Reporte_salvajes.html\");\n FileWriter w=new FileWriter(f);\n BufferedWriter bw=new BufferedWriter(w);\n PrintWriter pw=new PrintWriter(bw);\n \n /**Se inicia el documento HTML*/\n pw.write(\"<!DOCTYPE html>\\n\");\n pw.write(\"<html>\\n\");\n pw.write(\"<head>\\n\");\n pw.write(\"<title>Reporte de los Pokemons Salvajes</title>\\n\");\n pw.write(\"<style type=\\\"text/css\\\">\\n\" +\n \"body{\\n\" +\n \"background-color:rgba(117, 235, 148, 1);\\n\" +\n \"text-align: center;\\n\" +\n \"font-family:sans-serif;\\n\" +\n \"}\\n\"\n + \"table{\\n\" +\n\"\t\t\tborder: black 2px solid;\\n\" +\n\"\t\t\tborder-collapse: collapse;\\n\" +\n\" }\\n\"\n + \"#td1{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: skyblue;\\n\" +\n\" }\\n\" +\n\" #td2{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: white;\\n\" +\n\" }\\n\"\n +\"</style>\");\n pw.write(\"<meta charset=\\\"utf-8\\\">\");\n pw.write(\"</head>\\n\");\n /**Inicio del cuerpo*/\n pw.write(\"<body>\\n\");\n /**Título del reporte*/\n pw.write(\"<h1>Reporte de los Pokemons Salvajes</h1>\\n\");\n /**Fecha en que se genero el reporte*/\n pw.write(\"<h3>Documento Creado el \"+fecha.get(Calendar.DAY_OF_MONTH)+\n \"/\"+((int)fecha.get(Calendar.MONTH)+1)+\"/\"+fecha.get(Calendar.YEAR)+\" a las \"\n +fecha.get(Calendar.HOUR)+\":\"+fecha.get(Calendar.MINUTE)+\":\"+fecha.get(Calendar.SECOND)+\"</h3>\\n\");\n \n pw.write(\"<table align=\\\"center\\\">\\n\");\n //Se escriben los títulos de las columnas\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[0]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[1]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[2]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[3]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[4]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[5]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[6]+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n for (int i = 0; i < pokemon.ingresados; i++) {\n //Se determina si el pokemon es salvaje\n if(pokemon.Capturado[i]==false){\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Id[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Tipo[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Nombre[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Vida[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.ptAt[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">Salvaje</td>\\n\");\n //Se determina si el pokemon esta vivo o muerto\n String estado;\n if (pokemon.Estado[i]==true) {\n estado=\"Vivo\";\n }else{estado=\"Muerto\";}\n pw.write(\"<td id=\\\"td2\\\">\"+estado+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n }\n }\n pw.write(\"</table><br>\\n\");\n \n pw.write(\"</body>\\n\");\n pw.write(\"</html>\\n\");\n /**Se finaliza el documento HTML*/\n \n /**Se cierra la capacidad de escribir en el documento*/ \n pw.close();\n /**Se cierra el documento en el programa*/\n bw.close();\n /**Se abre el documento recien creado y guardado*/\n pc.open(f);\n } catch (Exception e) {\n System.err.println(\"Asegurese de haber realizado las actividades previas \"\n + \"relacionadas\");\n }\n }", "public void printDistance(int runNum, String dir){\n\n List<String[]> destinations = parseFileByName(dir+\"/destinations.\"+readExtention);\n List<Point2D> destination = new ArrayList<>();\n List<List<Double>> distances = new ArrayList<>();\n for(String[] strings : destinations)\n destination.add(new Point2D(Double.parseDouble(strings[0]),Double.parseDouble(strings[1])));\n\n for(int i = 0; i < runNum; i++) {\n List<String[]> receiverContent = parseFileByName(dir+\"/receivers_placement_\"+i+\".\"+readExtention);\n List<Point2D> receiverValues = new ArrayList<>();\n for(String[] strings : receiverContent)\n receiverValues.add(new Point2D(Double.parseDouble(strings[1]),Double.parseDouble(strings[2])));\n List<Double> distanceFromDestination = new ArrayList<>();\n for(Point2D receiverPosition : receiverValues)\n distanceFromDestination.add(receiverPosition.distance(destination.get(i)));\n distances.add(distanceFromDestination);\n }\n\n try {\n PrintWriter resWriter = new PrintWriter(dir+\"/A_results/distances\"+\".\"+writeExtention, \"UTF-8\");\n for(int i = 0;i < distances.get(0).size(); i++){\n String s = \"\";\n for(List<Double> distanceFromDestination : distances)\n s = s + distanceFromDestination.get(i) + \",\";\n int n = i+1;\n\n int nLastChar = numberOfTests%26;\n\n char lastChar = 'A';\n\n lastChar+=nLastChar-1;\n int nFirstChar = 0;\n if(numberOfTests>26){\n nFirstChar= numberOfTests/26;\n }\n\n String avg;\n String var;\n\n if(nFirstChar==0){\n avg = \"=AVERAGE(A\"+n+(\":\"+lastChar)+n+\"),\";\n var = \"=VAR(A\"+n+(\":\"+lastChar)+n+\")\";\n }\n else {\n char firstChar = 'A';\n firstChar += nFirstChar;\n avg = \"=AVERAGE(A\"+n+(\":\"+firstChar+\"\"+lastChar)+n+\"),\";\n var = \"=VAR(A\"+n+(\":A\"+firstChar+\"\"+lastChar)+n+\")\";\n }\n\n s += avg + var;\n resWriter.println(s);\n resWriter.flush();\n\n }\n\n resWriter.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }", "private void writeFinalReports() {\n\t\tSystem.out.println(\"Printing data to output files ...\");\n\t\twritePropertyData();\n\t\twriteClassData();\n\t\tSystem.out.println(\"Finished printing data.\");\n\t}", "public void createFiles() {\r\n try {\r\n FileWriter file = new FileWriter(registerNumber + \".txt\");\r\n file.write(\"Name : \" + name + \"\\n\");\r\n file.write(\"Surname : \" + surname + \"\\n\");\r\n file.write(\"Registration Number : \" + registerNumber + \"\\n\");\r\n file.write(\"Position : \" + position + \"\\n\");\r\n file.write(\"Year of Start : \" + yearOfStart + \"\\n\");\r\n file.write(\"Total Salary : \" + Math.round(totalSalary) + \".00 TL\" +\"\\n\");\r\n file.close();\r\n }\r\n catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(EMPLOYEE_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (EmployeeDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\t// log.debug(\"Writing transaction record for Employee id :\"+\n\t\t\t\t\t\t// transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getEmpId());\n\t\t\t\t\t\trecord.add(transaction.getName());\n\t\t\t\t\t\trecord.add(transaction.getDesignation());\n\t\t\t\t\t\trecord.add(transaction.getManagerName());\n\t\t\t\t\t\trecord.add(transaction.getProjectName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getActive());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public static void outputNames(ArrayList<String> names) throws IOException {\n\n //Open filewriter for output file\n FileWriter output = new FileWriter(\"exercise41_output.txt\");\n\n // Write default text for output file for how many names there are\n output.write(\"Total of \" + names.size() + \" names\\n\");\n output.write(\"-----------------\\n\");\n\n // Write names in file\n for (String i : names) {\n output.write(i + \"\\n\");\n }\n\n //Close the filewriter\n output.close();\n }", "public void make(String readFileName, String writeFileName) throws IOException {\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(writeFileName, append));\n BufferedReader br = new BufferedReader(new FileReader(readFileName))) {\n String expression;\n double res;\n while((expression=br.readLine())!=null){\n try {\n res = function.calculate(expression);\n bw.write(makeAnswer(expression, res));\n } catch (Exception ex) {\n bw.write(ex.getMessage());\n }\n bw.newLine();\n }\n }\n }", "private static void writeResultToFile(FileWriter writer, NumberedQuery query,\n ScoreDoc result, Document doc, int rank) throws IOException {\n StringJoiner resultLine = new StringJoiner(\" \");\n resultLine.add( Integer.toString(query.getNumber()) ); // query-id\n resultLine.add( \"0\" ); // Q0\n resultLine.add( doc.get(DOCNO) ); // document-id\n resultLine.add( Integer.toString(rank) ); // rank\n resultLine.add( Float.toString(result.score) ); // score\n resultLine.add( \"STANDARD\\n\" ); // STANDARD\n writer.write(resultLine.toString());\n }", "public void toAddWrite(ArrayList<Client> clients, String nameFileWriter) throws Exception{\n \n FileWriter fout = null;\n PrintWriter pw = null;\n \n try{\n fout = new FileWriter(nameFileWriter, true);\n pw = new PrintWriter(fout);\n \n String line = \"Client Name,Save Set Name,Group Start Time,Save Type,Level,Status\";\n pw.println(line);\n \n int size = clients.size();\n \n for(int i=0;i<size;++i){\n for(int j=0;j<clients.get(i).getSizeErrors();++j){\n pw.println(clients.get(i).getName() + \",\" + clients.get(i).getReport(j).toString()); \n }\n } \n }catch(Exception e){\n throw new Exception(\"Error de escritura\");\n }finally{\n if(null != fout){\n fout.close();\n }\n }\n \n }", "public File exportData() {\n File zephyrlogFolder = new File(Environment.getExternalStorageDirectory(), \"QuestionnaireActs\");\n\n boolean dirExists = zephyrlogFolder.exists();\n //if the directory doesn't exist, create it\n if (!dirExists) {\n dirExists = zephyrlogFolder.mkdirs();\n //if it still doesn't exist, give up and exit\n if (!dirExists) {\n Toast.makeText(this, \"Could not create ZephyrLogs directory!\", Toast.LENGTH_LONG).show();\n }\n }\n\n\n //create a data file and write into it\n File file = new File(zephyrlogFolder, \"Questionnaire_\"+promptName+\".txt\");\n try {\n FileWriter writer;\n if(!file.exists()){\n boolean created = file.createNewFile();\n if (!created) throw new IOException(\"Could not create data file\");\n writer = new FileWriter(file, true);\n //if this is a new file, write the CSV format at the top\n writer.write(\"Ονοματεπώνυμο: \"+promptName+\"\\n\"+\"Score: \"+myscore+\"\\n\\n\");\n } else {\n writer = new FileWriter(file, true);\n }\n writer.write(\"Ονοματεπώνυμο: \"+promptName+\"\\n\"+\"Score: \"+myscore+\"\\n\\n\");\n writer.close();\n } catch (FileNotFoundException e) {\n Toast.makeText(this, \"Could not create logging file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n Toast.makeText(this, \"Unsupported encoding exception thrown trying to write file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (IOException e) {\n Toast.makeText(this, \"IO Exception trying to write to data file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n return file;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(JOB_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (JobDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getTitle()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeName());\n\t\t\t\t\t\trecord.add(transaction.getJobType());\n\t\t\t\t\t\trecord.add(transaction.getPlannedStartTime());\n\t\t\t\t\t\trecord.add(transaction.getActualEndTime());\n\t\t\t\t\t\trecord.add(transaction.getJobStatus() != null ? transaction.getJobStatus().name()\n\t\t\t\t\t\t\t\t: JobStatus.OPEN.name());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!! \" + e);\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public void closeFile()\n {\n ArrayList<String> jobs = new ArrayList<String>();\n ArrayList<String> jobRecruiters = new ArrayList<String>();\n ArrayList<String> jobSeekers = new ArrayList<String>();\n ArrayList<String> notifications = new ArrayList<String>();\n for (Job job : jobList)\n {\n String jobinfo = job.getJobRecruiterUsername() + \"///\" + job.getTitle() + \"///\" + job.getDescription() + \"/// \" + job.getSalary();\n jobinfo = jobinfo + \"///\" + job.getLocation() + \"///\";\n for (String cate: job.getCategory())\n {\n jobinfo = jobinfo + cate + \",\";\n }\n jobinfo = jobinfo.substring(0,jobinfo.length()-1) + \"///\";\n for (String seek : job.getJobSeekerUsername())\n {\n jobinfo = jobinfo + seek + \",\";\n }\n jobinfo = jobinfo.substring(0,jobinfo.length()-1);\n jobs.add(jobinfo);\n }\n writeFile(\"Job.txt\", jobs);\n for (JobRecruiter recruiter : jobRecruiterList)\n {\n String recinfo = recruiter.getName() + \",\" + recruiter.getUserName() + \",\" + recruiter.getRole() + \",\" + recruiter.getGender() + \",\";\n recinfo = recinfo + recruiter.getEmail() + \",\" + recruiter.getPassword() + \",\" + recruiter.getCompanyName() + \",\" + recruiter.getLocation();\n jobRecruiters.add(recinfo);\n }\n writeFile(\"JobRecruiter.txt\", jobRecruiters);\n for (JobSeeker seeker : jobSeekerList)\n {\n String seekinfo = seeker.getName() + \",\" + seeker.getUserName() + \",\" + seeker.getRole() + \",\" + seeker.getGender() + \",\";\n seekinfo = seekinfo + seeker.getEmail() + \",\" + seeker.getPassword() + \",\";\n for(String skill : seeker.getSkillsets())\n {\n seekinfo = seekinfo + skill + \",\";\n }\n seekinfo = seekinfo.substring(0,seekinfo.length()-1);\n String notinfo = seeker.getUserName() + \"///\";\n for (String noti : seeker.getNotification())\n {\n notinfo = notinfo + noti + \",\";\n }\n notinfo = notinfo.substring(0,notinfo.length()-1);\n jobSeekers.add(seekinfo);\n notifications.add(notinfo);\n }\n writeFile(\"JobSeeker.txt\", jobSeekers);\n writeFile(\"Notification.txt\", notifications);\n }", "public String writeFileUnderGrad(String fileName) {\n Formatter f = new Formatter();//Use Formatter\r\n f.format(\"%s (%d, %s, %s)%n\", super.getStudentName(), super.getStudentNumber(), super.getStudentSex(), super.getStudentDOB());//Format Student Output\r\n //System.out.println(f);\r\n BufferedWriter out = null; //BufferedWriter\r\n PrintWriter out1 = null; //Use PrintWriter\r\n //Try and Catch method to create the txt file, flush and close\r\n try {\r\n\r\n out = new BufferedWriter(new FileWriter(fileName, true));\r\n out1 = new PrintWriter(out);\r\n out1.write(f.toString());\r\n out1.flush();//Flush text file\r\n } catch (IOException e) {\r\n System.out.println(\"Exception \");\r\n } finally {\r\n try {\r\n out.close();\r\n out1.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(UnderGraduate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return \"\";\r\n\r\n }", "private void writeFile(String path)\n {\n FileIO fileIO = new FileIO();\n StringBuffer stringBuf = new StringBuffer();\n for(int i = 0; i< getDrivers().getSize(); i++) // go through each driver in the collection\n {\n stringBuf.append(getDrivers().getDriver(i).getName() + \",\" + getDrivers().getDriver(i).getRanking() \n + \",\" + getDrivers().getDriver(i).getSpecialSkill() + ((i == (getDrivers().getSize() - 1)) ? \"\" :\"\\n\")); // append details to buffer\n }\n fileIO.setFileName(path);\n fileIO.writeFile(stringBuf.toString());\n }", "public void processRun(int nr, boolean logAtomics) throws IOException {\r\n\t\tString out =\"\";\r\n\t\t\r\n\t\tif(logAtomics) {\r\n\t\t\tout = \"\"+data.getName()+\" run \"+nr;\r\n\t\t\twriter.write(out);\r\n\t\t\twriter.write(System.getProperty(\"line.separator\"));\r\n\t\t\tout = \"gen\"+SEP+\"fitness\"+SEP+\"pfm\"+SEP+\"f_full\"+SEP+\"f_1to1\"+SEP+\"dur\"+SEP+\"AUC_full\"+SEP+\"AUC_1to1\"+SEP+\"AUC_pfm\"+SEP+\"metric\"+SEP+\"prec\"+SEP+\"recall\";\r\n\t\t\twriter.write(out);\r\n\t\t\twriter.write(System.getProperty(\"line.separator\"));\r\n\t\t\t// write to file\r\n\t\t\twriter.flush();\r\n\t\t}\r\n\t\tdouble xBefore = 0;\r\n\t\t\r\n\t\tdouble aucFull = 0; double yFullBefore = 0;\r\n\t\t\r\n\t\tdouble auc1to1 = 0; double y1to1Before = 0;\r\n\t\t\r\n\t\tdouble aucpfm = 0; double ypfmBefore = 0;\r\n\t\t\r\n\t\tMapping reference = data.getReferenceMapping();\r\n\t\tfor(int i = 0; i<perRunAndDataSet.size(); i++) {\r\n\t\t\tEvaluationPseudoMemory mem = perRunAndDataSet.get(i);\r\n\t\t\tMapping map = fitness.getMapping(mem.metric.getExpression(), mem.metric.getThreshold(), true);\r\n\t\t\t// For real F-measures use best 1-to-1 mapping\r\n\t\t\tMapping map_1to1 = Mapping.getBestOneToOneMappings(map);\r\n\t\t\tdouble prec, recall, fMeasure, prec_1to1, recall_1to1, fMeasure_1to1;\r\n\t\t\tPRFCalculator prf = new PRFCalculator();\r\n\t\t\tprec = prf.precision(map, reference);\r\n\t\t\trecall = prf.recall(map, reference);\r\n\t\t\tfMeasure = prf.fScore(map, reference);\r\n\t\t\t\r\n\t\t\tif(Double.isNaN(fMeasure) || Double.isInfinite(fMeasure)) {\r\n\t\t\t\tSystem.err.println(\"NaN computation on Fmeasure, setting it to 0\");\r\n\t\t\t\tfMeasure = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmem.precision=prec;\r\n\t\t\tmem.recall=recall;\r\n\t\t\tmem.fmeasue=fMeasure;\r\n\t\t\t\r\n\t\t\tprec_1to1 = prf.precision(map_1to1, reference);\r\n\t\t\trecall_1to1 = prf.recall(map_1to1, reference);\r\n\t\t\tfMeasure_1to1 = prf.fScore(map_1to1, reference);\r\n\t\t\t\r\n\t\t\tif(Double.isNaN(fMeasure_1to1) || Double.isInfinite(fMeasure_1to1)) {\r\n\t\t\t\tSystem.err.println(\"NaN computation on Fmeasure 1-to-1, setting it to 0\");\r\n\t\t\t\tfMeasure_1to1 = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmem.precision_1to1=prec_1to1;\r\n\t\t\tmem.recall_1to1=recall_1to1;\r\n\t\t\tmem.fmeasue_1to1=fMeasure_1to1;\r\n\t\t\t// compute auc values\r\n\t\t\tdouble xNow=mem.generation;\r\n\t\t\taucFull += computeAUCSummand(xBefore, xNow, yFullBefore, fMeasure);\r\n\t\t\tauc1to1 += computeAUCSummand(xBefore, xNow, y1to1Before, fMeasure_1to1);\r\n\t\t\taucpfm += computeAUCSummand(xBefore, xNow, ypfmBefore, mem.pseudoFMeasure);\r\n\t\t\t//log\r\n\t\t\tif(logAtomics) {\r\n\t\t\t\tlogAtomic(mem, aucFull, auc1to1, aucpfm);\r\n\t\t\t}\r\n\t\t\txBefore = xNow;\r\n\t\t\tyFullBefore = fMeasure;\r\n\t\t\ty1to1Before = fMeasure_1to1;\t\r\n\t\t\typfmBefore = mem.pseudoFMeasure;\r\n\t\t}\r\n\t\t// log to statistics final fs,auc\r\n\t\tF_full.add(yFullBefore);\r\n\t\tF_1to1.add(y1to1Before);\r\n\t\tPFM.add(ypfmBefore);\r\n\t\tAUC_full.add(aucFull);\r\n\t\tAUC_1to1.add(auc1to1);\r\n\t\tAUC_pfm.add(aucpfm);\r\n\t\t\r\n\t\tout = data.getName()+\" run:\"+nr+\"\\n\"+\"gens\"+SEP+\"fit\"+SEP+\"pfm\"+SEP+\"f\"+SEP+\"f_1to1\"+SEP+\"dur\"+SEP+\"AUC\"+SEP+\"AUC_1to1\"+SEP+\"AUC_pfm\";\r\n\t\twriter.write(out);\r\n\t\twriter.write(System.getProperty(\"line.separator\"));\r\n\t\tlogAtomic(perRunAndDataSet.getLast(),aucFull,auc1to1,aucpfm);\r\n\t}", "public void writeToFile(String s,String outFile) \n\t{\n\t\ttry \n\t\t{\n\t\t\tbw = new BufferedWriter(new FileWriter(outFile));\n\t\t\tbw.write(s);\n\t\t\tMyLogger.writeMessage(\"Results written to file\", MyLogger.DebugLevel.RESULTS);\n\t\t\tbw.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.err.println(\"Exception: writing to output.txt\");\n\t\t\tSystem.err.println(\"Exiting\");\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}", "public static void WriteToFile(){\r\n try {\r\n File file = new File(\"output.txt\");\r\n file.createNewFile();\r\n \r\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n String[] FinalBoard = new String[Board.ReportBoardValues().length];\r\n FinalBoard = Board.ReportBoardValues();\r\n for(int i = 0; i < Board.ReportBoardValues().length; i++){\r\n bw.write(FinalBoard[i]);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n fw.close();\r\n \r\n }\r\n catch (IOException e) {\r\n System.out.println (\"Output error\");\r\n }\r\n }", "private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void dump(PhoneBill bill) throws IOException{\n String customer = bill.getCustomer();\n File file = new File(\"/Users/srubey/PortlandStateJavaSummer2020/phonebill/src/main/resources/edu/pdx/cs410J/scrubey/\"\n + Project2.getFileName());\n FileWriter writer = null;\n\n try{\n //**if file not yet created\n writer = new FileWriter(file);\n\n writer.write(\"Customer name: \" + bill.getCustomer() + \"\\n\\n\");\n writer.write(\"Caller# Callee#\\t\\t Start Date\\tStart Time\\tEnd Date\\tEnd Time\\n\");\n\n //iterate through each phone call, extracting and adding data to file\n for(int i = 0; i < bill.getPhoneCalls().size(); ++i) {\n String caller = bill.getPhoneCalls().get(i).callerNumber;\n String callee = bill.getPhoneCalls().get(i).calleeNumber;\n String sd = bill.getPhoneCalls().get(i).startDate;\n String st = bill.getPhoneCalls().get(i).startTime;\n String ed = bill.getPhoneCalls().get(i).endDate;\n String et = bill.getPhoneCalls().get(i).endTime;\n\n writer.write(caller + \" \" + callee + \" \" + sd);\n\n //formatting\n if(sd.length() < 10)\n writer.write(\"\\t\");\n\n writer.write(\"\\t\" + st + \"\\t\\t\" + ed + \"\\t\" + et + \"\\n\");\n }\n\n file.createNewFile();\n }catch(IOException e){\n System.out.print(\"\\nText File error\");\n }finally{\n writer.close();\n }\n }", "private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}", "private static void writeResults() {\n\t\t//Sort hashMap before sending to file\n\t\tTreeSet<Word> mySet = new TreeSet<>(hm.values());\n\n\t\t//Create result.txt file and write treeMap out to it\n\t\tWriter writer = null;\n\t\ttry {\n\t\t\t//System.out.println(\"Here\");\n\t\t\twriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"output\\\\results.txt\")));\n\t\t\tfor (Word word : mySet) {\n\t\t\t\twriter.write(word.getValue() + \"\\t\" + word.getCount() + \"\\n\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\twriter.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (AttendanceDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for Employee id :\" + transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getCreatedDate());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getEmployeeEmpId()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeFullName());\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckInTime()));\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckOutTime()));\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\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 }", "public void makeReport()\n\t{\n\t\tif (currentStage[currentSlice-1] > 1)\n\t\t{\n\t\t\tResultsTable rt = new ResultsTable();\n\t\t\tfor (int j=0;j<popSequence.N;j++)\n\t\t\t{\n\t\t\t\tpop = popSequence.PopList[j];\n\t\t\t\tint N = pop.N;\n\t\t\t\tfor (int i=0;i<N;i++)\n\t\t\t\t{\n\t\t\t\t\trt.incrementCounter();\n\t\t\t\t\tBalloon bal;\n\t\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\t\tbal.mass_geometry();\n\t\t\t\t\trt.addValue(\"X\",bal.x0);\n\t\t\t\t\trt.addValue(\"Y\",bal.y0);\n\t\t\t\t\trt.addValue(\"Z\",j);\n\t\t\t\t\trt.addValue(\"ID\",bal.id);\n\t\t\t\t\trt.addValue(\"AREA\",bal.area);\n\t\t\t\t\trt.addValue(\"Ixx\",bal.Ixx);\n\t\t\t\t\trt.addValue(\"Iyy\",bal.Iyy);\n\t\t\t\t\trt.addValue(\"Ixy\",bal.Ixy);\n\t\t\t\t\trt.addValue(\"Lx\",bal.lx);\n\t\t\t\t\trt.addValue(\"Ly\",bal.ly);\n\t\t\t\t}\n\t\t\t}\n\t\t\trt.show(\"Report\");\n\t\t\tcurrentSlice = i1.getCurrentSlice();\n\t\t\tipWallSegment = (i1.getStack()).getProcessor(i1.getCurrentSlice());\n\t\t\tpop = popSequence.PopList[currentSlice-1];\n\t\t}\n\t}", "public void fnWriteThreadReport(int iThreadCount, String sReportFile, String sCalendar, String sSummaryFile){\r\n \tString sRowColor;\r\n \r\n //Close the file\r\n try{ \r\n\t //Open the test case report for writing \r\n\t foutStrm = new FileOutputStream(sReportFile, true);\r\n\t \r\n\t //Set Row Color\r\n\t if (iThreadCount % 2 == 0){\r\n\t \tsRowColor = \"#EEEEEE\";\r\n \t}else{\r\n \t\tsRowColor = \"#D3D3D3\";\r\n \t\t}\r\n\t \r\n\t //Write the result of Individual Test Case\r\n\t new PrintStream(foutStrm).println (\"<TR COLS=3 BGCOLOR=\" + sRowColor + \"><TD WIDTH=10%><FONT FACE=VERDANA SIZE=2>\" + iThreadCount + \"</FONT></TD><TD WIDTH=35%><FONT FACE=VERDANA SIZE=2>\" + driverType + \"</FONT></TD><TD WIDTH=35%><FONT FACE=VERDANA SIZE=2>\" + sCalendar + \"</FONT></TD><TD WIDTH=20%><A HREF='\" + sSummaryFile + \"'><FONT FACE=VERDANA SIZE=2 COLOR=GREEN><B>Report</B></FONT></A></TD></TR>\");\r\n \r\n \tfoutStrm.close();\r\n }\r\n catch (IOException io){\r\n\t\t\tio.printStackTrace();\r\n\t\t}\r\n foutStrm = null;\r\n\r\n }", "private static void writeToOutput(String path, Apriori apriori){\n try{\n BufferedWriter output = new BufferedWriter(new FileWriter(path, false));\n for (String s : apriori.mItemSet){\n output.write(s);\n }\n output.close();\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "public void writeFile(){\n try{\n FileWriter writer = new FileWriter(\"Highscores.txt\");\n for (int i = 0; i<10; i++){\n if (i >= this.highscores.size()){\n break;\n }\n writer.write(String.valueOf(this.highscores.get(i)) + \"\\n\");\n }\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.6237774", "0.60828656", "0.6080929", "0.60741585", "0.604966", "0.6025098", "0.59498876", "0.59109855", "0.58646977", "0.5844537", "0.581797", "0.5807721", "0.57979494", "0.57949346", "0.5793268", "0.5731214", "0.56935984", "0.56926984", "0.56699073", "0.56314445", "0.5621464", "0.5611497", "0.56103855", "0.56068194", "0.5584685", "0.558427", "0.5562127", "0.55488646", "0.5544806", "0.55416936", "0.5525631", "0.5522836", "0.5507689", "0.5502709", "0.5488557", "0.5483888", "0.54789424", "0.54585165", "0.545061", "0.54464716", "0.54415613", "0.54392385", "0.54385436", "0.54337686", "0.5415725", "0.541257", "0.53960323", "0.53856295", "0.5384109", "0.5377343", "0.5375228", "0.5362726", "0.5335408", "0.53279424", "0.53170305", "0.53166723", "0.53117216", "0.5305455", "0.52812463", "0.527485", "0.52698517", "0.5262772", "0.52623945", "0.52547634", "0.5251666", "0.52471775", "0.5240463", "0.5239286", "0.5236692", "0.52289844", "0.5223956", "0.5220731", "0.5217766", "0.521709", "0.5215644", "0.52032965", "0.52027124", "0.5201998", "0.51992214", "0.5191697", "0.51891303", "0.51883936", "0.5182657", "0.51786757", "0.5176575", "0.51730716", "0.5172885", "0.5167153", "0.5158248", "0.51501185", "0.514216", "0.51388013", "0.5130668", "0.5128447", "0.5124484", "0.51244754", "0.512079", "0.51084685", "0.5107082", "0.5106164" ]
0.59916526
6
Writes the header of the solution table
private static void addSolutionHeader(MAESTROptimizer manager, SolutionWrapper solution, ReportFile file, int table) { // Retrieve variable count ArrayList<Integer> discValues = solution.getSolution().getDiscValues(); ArrayList<Double> contValues = solution.getSolution().getContValues(); int total = 2; int discCount = discValues == null ? 0 : discValues.size(); int contCount = contValues == null ? 0 : contValues.size(); total += discCount; total += contCount; String[] line1 = new String[total]; String[] line2 = new String[total]; String fitnessHeader = solution.getSolution().getReportHeader(); String space = ""; for(int i = 0 ; i < fitnessHeader.split("\t").length - 1 ; i++) space += "\t"; line1[0] = "\t\t"; line1[1] = space; line2[0] = SOLUTIONS_ID + "\t" + INNER_CYCLE_ID + "\t" + GENERATORS_ID; line2[1] = fitnessHeader; int index = 2; int variableIndex = 0; // Add header for discrete variables if(discCount > 0) { variableIndex = 0; line1[index] = DISC_VARIABLES_ID; line2[index] = manager.getDiscVarName(variableIndex); index++; variableIndex++; int max = index + discCount - 1; for(int i = index ; i < max ; i++) { line1[i] = ""; line2[i] = manager.getDiscVarName(variableIndex); index++; variableIndex++; } } // Add header for continuous variables if(contCount > 0) { variableIndex = 0; line1[index] = CONT_VARIABLES_ID; line2[index] = manager.getContVarName(variableIndex); index++; variableIndex++; int max = index + contCount - 1; for(int i = index ; i < max ; i++) { line1[i] = ""; line2[i] = manager.getContVarName(variableIndex); index++; variableIndex++; } } // Add header lines to report file.addLineToTableHeader(table, line1); file.addLineToTableHeader(table, line2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printHeader () {\n System.out.println(\"COMPLETED HEADER PARSING\");\n System.out.println(\"________________________\");\n for(String header : parseTableHeader.keySet()) {\n System.out.print(header);\n System.out.println(parseTableHeader.get(header));\n }\n }", "private void writeColumnHeader() throws WriteException, IOException {\r\n WriteXLS.getInstance().writeColumnLabels();\r\n }", "private void outputHeader(){\n System.out.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n pw.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n }", "protected void write_output_header() {\t\t\n\t\tSystem.out.println(\" H Lennard-Jones lattice-switch monte carlo code: hcp v fcc:\");\n\t\tSystem.out.println(\" H \");\n\t\t// Write out the standard parts of the LSMC header:\n\t\tsuper.write_output_header();\n\t\t// Write out LJLS-specific section:\n\t\tSystem.out.println(\" H For the Lennard-Jones Lattice-Switch: \");\n\t\tSystem.out.print(\" H lj_eta = 4*beta = +\"+lj_eta+\"\\n\");\n\t\tif( VIRT_NSWC == 1 ) {\n\t\t\tSystem.out.println(\" H VIRTUAL n-switch, structure \"+INIT_PHASE+\", en_shift = \"+EN_SHIFT);\n\t\t}\n\t\t\n\t\t// Optionally output E v. density:\n\t\tif( OUTPUT_E_V_DENSITY ) calc_e_v_dens();\n\n\t}", "public final void setTableHeader() {\n this.addColumn(java.util.ResourceBundle.\n getBundle(\"swt/client/module/game/resources/GameLogTableModel\").\n getString(\"column.date\"));\n this.addColumn(java.util.ResourceBundle.\n getBundle(\"swt/client/module/game/resources/GameLogTableModel\").\n getString(\"column.percent.solved\"));\n this.addColumn(java.util.ResourceBundle.\n getBundle(\"swt/client/module/game/resources/GameLogTableModel\").\n getString(\"column.log.type\"));\n }", "private static String headerSummary() {\r\n\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\usepackage{rotating}\\n\";\r\n output += \"\\\\usepackage{textcomp}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "public void writeHeader(ReporterIonQuantification reporterIonQuantification) throws IOException {\r\n\r\n boolean needSecondLine = false;\r\n ArrayList<String> sampleIndexes = new ArrayList<>(reporterIonQuantification.getSampleIndexes());\r\n Collections.sort(sampleIndexes);\r\n\r\n boolean firstColumn = true;\r\n\r\n if (indexes) {\r\n writer.writeHeaderText(\"\");\r\n writer.addSeparator();\r\n }\r\n\r\n for (ExportFeature exportFeature : identificationFeatures) {\r\n\r\n if (firstColumn) {\r\n firstColumn = false;\r\n } else {\r\n writer.addSeparator();\r\n }\r\n\r\n writer.writeHeaderText(exportFeature.getTitle());\r\n }\r\n\r\n for (ReporterExportFeature exportFeature : quantificationFeatures) {\r\n\r\n if (firstColumn) {\r\n firstColumn = false;\r\n } else {\r\n writer.addSeparator();\r\n }\r\n\r\n writer.writeHeaderText(exportFeature.getTitle(), reporterStyle);\r\n\r\n if (exportFeature.hasChannels()) {\r\n\r\n for (int i = 1; i < sampleIndexes.size(); i++) {\r\n\r\n if (firstColumn) {\r\n firstColumn = false;\r\n } else {\r\n writer.addSeparator();\r\n }\r\n\r\n writer.writeHeaderText(\" \", reporterStyle); // Space used for the excel style\r\n }\r\n\r\n needSecondLine = true;\r\n\r\n }\r\n\r\n }\r\n\r\n if (needSecondLine) {\r\n\r\n writer.newLine();\r\n firstColumn = true;\r\n\r\n if (indexes) {\r\n writer.addSeparator();\r\n }\r\n\r\n for (ExportFeature exportFeature : identificationFeatures) {\r\n\r\n if (firstColumn) {\r\n firstColumn = false;\r\n } else {\r\n writer.writeHeaderText(\"\");\r\n writer.addSeparator();\r\n }\r\n\r\n }\r\n\r\n for (ReporterExportFeature exportFeature : quantificationFeatures) {\r\n\r\n if (exportFeature.hasChannels()) {\r\n\r\n for (String sampleIndex : sampleIndexes) {\r\n\r\n if (firstColumn) {\r\n firstColumn = false;\r\n } else {\r\n writer.writeHeaderText(\"\", reporterStyle);\r\n writer.addSeparator();\r\n }\r\n\r\n writer.write(reporterIonQuantification.getSample(sampleIndex), reporterStyle);\r\n\r\n }\r\n\r\n } else {\r\n\r\n if (firstColumn) {\r\n firstColumn = false;\r\n } else {\r\n writer.writeHeaderText(\"\", reporterStyle);\r\n writer.addSeparator();\r\n }\r\n\r\n }\r\n }\r\n }\r\n\r\n writer.newLine();\r\n }", "@Override\n \tprotected void writeHeader(BufferedWriter out, DataHolder dh) throws IOException {\n \t\tout.write(COMMENT_PREFIX);\n \t\tint imax = dh.size();\n \t\tfor (int i = 0; i < imax; i++) {\n \t\t\tout.write(dh.getName(i) + \"\\t\");\n \t\t}\n \t\tout.write(\"\\n\");\n \t}", "private ConfigurationHTMLPrinter doHeaderRow() {\n println(\"<tr>\").incrementIndent();\n doHeaderCell(\"Name\");\n doHeaderCell(\"Default value\");\n doHeaderCell(\"Aliases\");\n doHeaderCell(\"Value type\");\n doHeaderCell(\"Description\");\n return decrementIndent().println(\"</tr>\");\n }", "private void writeHEADER() throws IOException {\n\t\tmeta.compute_checksum();\n\t\tmeta.write();\n\t\t\n\t\t// We could also generate a non-aldus metafile :\n\t\t// writeClipboardHeader(meta);\n\t\t\n\t\t// Generate the standard header common to all metafiles.\n\t\thead.write();\n\t}", "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 static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "public static void printHeader(){\n System.out.println(\"\" +\n \"AuthorCode Number: 879P \\n\" +\n \"Class: CS 342, Fall 2016 \\n\" +\n \"Program: #3, 8 Tiles. \\n\" +\n \"\\n\" +\n \"\\n\" +\n \"Welcome to the 8-tiles puzzle. \\n\" +\n \"Place the tiles in ascending numerical order. For each \\n\" +\n \"move enter the piece to be moved into the blank square, \\n\" +\n \"or 0 to exit the program.\\n\");\n }", "static void headerFormat(FileWriter fw) throws IOException { \r\n\t\t//fw.append(\"\\n\");\r\n\t\tfw.append(\"levelId\");\r\n fw.append(',');\r\n fw.append(\"rideName\");\r\n fw.append(',');\r\n fw.append(\"ridestartEndLocation\");\r\n fw.append(',');\r\n fw.append(\"rideData\");\r\n fw.append('\\n');\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 void emitHeader(OutputStream stream) throws IOException {\n int header = 0x0;\n header |= WORKBUF_PROTOCOL_VERSION;\n stream.write(TfWorkbufProtocol.intToFourBytes(header));\n }", "protected void writeHeader(PrintStream wps, List listColumn, char cDelim)\n {\n String sData;\n int c = 0;\n for (Iterator iCol = listColumn.iterator(); iCol.hasNext(); )\n {\n ReportColumnView columnView = (ReportColumnView) iCol.next();\n if (columnView != null)\n {\n if (columnView.isVisible())\n {\n if (c != 0)\n {\n wps.print(cDelim);\n }\n c++;\n Object oResult = columnView.getHeader();\n sData = oResult == null ? \"\" : oResult.toString();\n wps.print(sData);\n }\n }\n }\n wps.println();\n // without this line sometimes the header is not printed correctly.\n wps.flush();\n }", "public static void printHeader(int labNum, int quesNum){\n System.out.println(\"****************************************\");\n System.out.println(\"\\tKanav Gupta\");\n System.out.printf(\"\\tLab #%s Question #%s%n\",labNum,quesNum);\n System.out.println(\"****************************************\\n\");\n }", "public void writeFile(String OUTPUT_PATH, boolean header) throws IOException {\r\n\t\t\r\n\t\tif(System.getProperty(\"os.name\").contains(\"indows\")) {\r\n\t\t\t// do nothing, hopefully\r\n\t\t} else {\r\n\t\t\tOUTPUT_PATH = OUTPUT_PATH.replace(\"\\\\\", \"/\");\r\n\t\t}\r\n\t\t\r\n\t\tBufferedWriter output = null;\r\n\t\tFile file = new File(OUTPUT_PATH);\r\n\t\toutput = new BufferedWriter(new FileWriter(file));\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tif(header == true) {\r\n\t\t\tfor(int i = 0; i < this.fieldNames.length; i++) {\r\n\t\t\t\tsb.append(this.fieldNames[i]);\r\n\t\t\t\tif(i != this.fieldNames.length-1) {\r\n\t\t\t\t\tsb.append(\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t} sb.append(\"\\n\");\r\n\t\t\toutput.write(sb.toString());\r\n\t\t\tsb = new StringBuilder();\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < this.nrow(); i++) {\r\n\t\t\toutput.write(String.join(\"\\t\", this.get(i)) + \"\\n\");\r\n\t\t}\r\n\t\tSystem.out.println(this.nrow());\r\n\t\toutput.close();\r\n\t}", "private void createTableHeaderFile(final Class Class_, final String simpleName) throws IOException{\n final SessionFactory SessionFactory = HibernateUtil.getSingleton().getSessionFactoryLocal();\n final ClassMetadata classMetadata = SessionFactory.getClassMetadata(Class_);\n final String[] propertyNames = classMetadata.getPropertyNames();\n \n //Get the content file\n final String contentFileTableHeader = this.getContentTableHeader(simpleName,propertyNames); \n \n //Create the path\n final String className = simpleName + \"sTableHeader\"; \n final String tableHeaderPath = \"../era_views/src/main/java/com/era/views/tables/headers\";\n final String finalClassPath = tableHeaderPath + \"/\" + className + \".java\";\n \n //If the file exists delete it\n final File File = new File(finalClassPath); \n if(File.exists()){\n File.delete();\n }\n \n //Create the file\n File.createNewFile();\n \n //Write to the file\n try ( //Write the class\n FileWriter writer = new FileWriter(File)) { \n writer.write(contentFileTableHeader);\n }\n }", "private static void printReportHeader(String name, String domain, String license, int fiscalYear) {\r\n\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\t\\tCompany name: \" + name);\r\n System.out.println(\"\\t\\t\\t\\t\\t\\tDomain: \" + domain);\r\n System.out.println(\"\\t\\t\\t\\t\\t\\tLicense: \" + license);\r\n System.out.println(\"\\t\\t\\t\\t\\t\\tFiscal Year: \" + fiscalYear);\r\n System.out.println(\"\\n\");\r\n System.out.println(\"\\t\\t\\t\\t\\t\\t\\tProfit Report\\n\\n\");\r\n String format = \"%-15s %-15s %15s %15s %15s %15s %20s\";\r\n System.out.format(format,\"Branch ID\", \"Location\", \"Quarter 1\", \"Quarter 2\",\r\n \"Quarter 3\", \"Quarter 4\", \"Annual Profit\");\r\n printSeparatorLine();\r\n }", "public void createDisplayHeader()\r\n\t{\r\n\t\tboolean isEType;\r\n\t\tint currentK, lowestJValue, highestJValue;\r\n\r\n\t\t// redundant now\r\n\t\tisEType = getIsEType();\r\n\t\tcurrentK = getCurrentK();\r\n\t\tlowestJValue = getLowestJValue();\r\n\t\thighestJValue = getHighestJValue();\r\n\r\n\t\tString symmetry;\r\n\t\tString kOutput;\r\n\r\n\t\tif (isEType) {\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tkOutput = currentK + \"\";\r\n\t\t\t\tsymmetry = \"E1\";\r\n\t\t\t} else {\r\n\t\t\t\tkOutput = Math.abs(currentK) + \"\";\r\n\t\t\t\tsymmetry = \"E2\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tkOutput = Math.abs(currentK) + \"\";\r\n\t\t\tsymmetry = \"A\";\r\n\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tkOutput += \"+\";\r\n\t\t\t} else {\r\n\t\t\t\tkOutput += \"-\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString ls = System.lineSeparator();\r\n\t\tmainHeader = \"================================================================\"\r\n\t\t\t\t+ ls + \"Symmetry type:\\t\\t\\t\\t\\t\" + symmetry + ls\r\n\t\t\t\t+ \"The K of the lower energy is:\\t\\t\\t\" + kOutput + ls + \"The input \"\r\n\t\t\t\t+ INPUT_BRANCH_TYPE + \" branch was flipped:\\t\\t\\t\" + inputIsFlipped + ls\r\n\t\t\t\t+ \"The input \" + INPUT_BRANCH_TYPE + \" branch used a J range of:\\t\\t\"\r\n\t\t\t\t+ lowestJValue + \" to \" + highestJValue\r\n\t\t\t\t+ ls + ls + \"Results for these selections are...\" + ls;\r\n\r\n\t\tsetHeaderDisplayState(true);\r\n\t}", "private void addHeader() {\n \n \t\t// StartNr; Namn; #Varv; Totaltid; Varv1; Varv2; Varv3; Start;\n \t\t// Varvning1; Varvning2; Mål\n \n \t\tsb.append(\"Plac; StartNr; Namn; #Varv; Totaltid; \");\n \t\tfor (int i = 0; i < maxNbrOfLaps; i++) {\n \t\t\tsb.append(\"Varv\");\n \t\t\tsb.append(i + 1 + \"; \");\n \t\t}\n \t\tsb.append(\"\\n\");\n \t}", "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 }", "@Override\n public void writeRowHeader(final String... columnNames) {\n TextOutputFormat outputFormat = this.outputFormat;\n if (outputFormat == TextOutputFormat.text) {\n outputFormat = TextOutputFormat.tsv;\n }\n final Tag row = tableRow().make();\n for (final String columnName : columnNames) {\n final Tag headerCell = tableHeaderCell().withText(columnName).make();\n row.addInnerTag(headerCell);\n }\n\n out.println(row.render(TagOutputFormat.valueOf(outputFormat.name())));\n }", "private void writeHeader(Cacheable[] data) throws IOException {\n // the amount of cacheables\n // for example 25 herbs\n out.writeInt(data.length);\n for (Cacheable c : data) {\n final Serializable[] cache = c.cache();\n\n // the inner array amount of each data\n // for example looped 25 times and saves each herb's amount of spawn points\n out.writeInt(cache.length);\n }\n }", "public void buildClassHeader() {\n\t\tString key;\n\t\tif (isInterface) {\n\t\t\tkey = \"doclet.Interface\";\n\t\t} else if (isEnum) {\n\t\t\tkey = \"doclet.Enum\";\n\t\t} else {\n\t\t\tkey = \"doclet.Class\";\n\t\t}\n\n\t\twriter.writeHeader(configuration.getText(key) + \" \" + classDoc.name());\n\t}", "private void printTable() {\n System.out.println(\"COMPLETED SLR PARSE TABLE\");\n System.out.println(\"_________________________\");\n System.out.print(\"\\t|\");\n // print header\n for(int i = 0; i < pHeader.size(); i++) {\n pHeader.get(i);\n System.out.print(\"\\t\" + i + \"\\t|\");\n }\n System.out.println();\n // print body\n for(int i = 0; i < parseTable.size(); i++) {\n System.out.print(i + \"\\t|\");\n for(int j = 0; j < parseTable.get(i).size(); j++) {\n System.out.print(\"\\t\" + parseTable.get(i).get(j) + \"\\t|\");\n }\n System.out.println();\n }\n System.out.println();\n System.out.println(\"END OF SLR PARSE TABLE\");\n System.out.println();\n }", "public void writeHeader() throws IOException {\n\n header = new byte[ShapeConst.SHAPE_FILE_HEADER_LENGTH];\n\n ByteUtils.writeBEInt(header, 0, ShapeConst.SHAPE_FILE_CODE);\n ByteUtils.writeBEInt(header, 24, 50);\n\n // empty shape file size in 16 bit words\n ByteUtils.writeLEInt(header, 28, ShapeConst.SHAPE_FILE_VERSION);\n ByteUtils.writeLEInt(header, 32, ShapeConst.SHAPE_TYPE_NULL);\n ByteUtils.writeLEDouble(header, 36, 0.0);\n ByteUtils.writeLEDouble(header, 44, 0.0);\n ByteUtils.writeLEDouble(header, 52, 0.0);\n ByteUtils.writeLEDouble(header, 60, 0.0);\n\n rafShp.seek(0);\n rafShp.write(header, 0, ShapeConst.SHAPE_FILE_HEADER_LENGTH);\n\n }", "@Override\n\tprotected void createCompHeader() {\n\t\tString headerTxt = \"Cohorts Report\";\n\t\tiDartImage icoImage = iDartImage.PAVAS;\n\t\tbuildCompdHeader(headerTxt, icoImage);\n\t}", "public static void printSolutionTable() {\n\t\tIAWorklist.printSolutionTable();\n\n\t}", "private void initializeGUITableHeaders(){\n TableColumn<HeapData, Integer> addressColumn = new TableColumn<>(\"Address\");\n addressColumn.setCellValueFactory(new PropertyValueFactory<>(\"address\"));\n TableColumn<HeapData, String> valueColumn = new TableColumn<>(\"Value\");\n valueColumn.setCellValueFactory(new PropertyValueFactory<>(\"value\"));\n valueColumn.setMinWidth(100);\n this.heapTableList.getColumns().addAll(addressColumn, valueColumn);\n\n TableColumn<SymbolData, String> variableNameColumn = new TableColumn<>(\"Variable Name\");\n variableNameColumn.setCellValueFactory(new PropertyValueFactory<>(\"variableName\"));\n variableNameColumn.setMinWidth(100);\n TableColumn<SymbolData, String> valColumn = new TableColumn<>(\"Value\");\n valColumn.setCellValueFactory(new PropertyValueFactory<>(\"value\"));\n symbolTableList.getColumns().addAll(variableNameColumn, valColumn);\n\n TableColumn<SemaphoreData,String> indexColumn = new TableColumn<>(\"Index\");\n indexColumn.setCellValueFactory(new PropertyValueFactory<>(\"index\"));\n TableColumn<SemaphoreData,Integer> valueColumnSem = new TableColumn<>(\"Value\");\n valueColumnSem.setCellValueFactory(new PropertyValueFactory<>(\"value\"));\n TableColumn<SemaphoreData,ArrayList<Integer>>valuesColumn = new TableColumn<>(\"Values\");\n valuesColumn.setCellValueFactory(new PropertyValueFactory<>(\"values\"));\n this.semaphoreTable.getColumns().addAll(indexColumn,valueColumnSem,valuesColumn);\n\n }", "private void createHeaders(WritableSheet sheet)\r\n\t\t\tthrows WriteException {\n\t\taddHeader(sheet, 0, 0, reportProperties.getProperty(\"header1\"));\r\n\t\taddHeader(sheet, 1, 0, reportProperties.getProperty(\"header2\"));\r\n\t\taddHeader(sheet, 2, 0, reportProperties.getProperty(\"header3\"));\r\n\t\taddHeader(sheet, 3, 0, reportProperties.getProperty(\"header4\"));\r\n\t\t\r\n\r\n\t}", "private static void addHeading(Sheet sheet) throws IOException {\r\n sheet.ensureRowCount(4);\r\n sheet.ensureColumnCount(10);\r\n sheet.getCellAt(\"A1\").setValue(\"income\");\r\n sheet.getCellAt(\"A2\").setValue(\"expense\");\r\n sheet.getCellAt(\"A3\").setValue(\"sum\");\r\n sheet.getCellAt(\"B1\").setValue(0.0);\r\n sheet.getCellAt(\"B2\").setValue(0.0);\r\n sheet.getCellAt(\"B3\").setValue(0.0);\r\n sheet.getCellAt(\"A4\").setValue(\"id\");\r\n sheet.getCellAt(\"B4\").setValue(\"amount\");\r\n sheet.getCellAt(\"C4\").setValue(\"date\");\r\n sheet.getCellAt(\"D4\").setValue(\"info\");\r\n }", "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 }", "public void setupHistoTableHeader() {\r\n\t\tif (this.histoTableTabItem != null && !this.histoTableTabItem.isDisposed()) this.histoTableTabItem.setHeader();\r\n\t}", "void displayColumnHeaders() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"|col \" + j);\n\t\tSystem.out.println();\n\t}", "private static void printHeading(){\n\t\tSystem.out.println(\"Your Name\");\n\t\tSystem.out.println(\"Course name and semester\");\n\t\tSystem.out.println(\"Programming Project 1\");\n\t\tSystem.out.println(\"Your Name in Code\");\n\t\tSystem.out.println();\n\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 }", "protected void writeHeading ()\n {\n Util.writePackage (stream, entry, Util.HolderFile);\n Util.writeProlog (stream, stream.name ());\n if (entry.comment () != null)\n entry.comment ().generate (\"\", stream);\n stream.println (\"public final class \" + holderClass + \" implements org.omg.CORBA.portable.Streamable\");\n stream.println ('{');\n }", "private static void printTeamTableHeader(String format, AbstractRace[] hero) {\n printTeamTableDivider();\n System.out.format(format, \"Characteristic\\\\Hero\",\n hero[0].getHeroName() + \" (L)\", hero[1].getHeroName(), hero[2].getHeroName());\n printTeamTableDivider();\n }", "private void addHeader(WritableSheet sheet, int rowNumber,\n AssessmentFilling assessment,\n Locale locale) throws IOException,\n WriteException {\n sheet.setRowView(rowNumber, 500, false);\n WritableCellFormat headerCellFormat = buildHeaderCellFormat();\n Label labelCell = null;\n int columnNumber = 0;\n sheet.addCell(new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"StudentIdentifier\", null,\n \"?StudentIdentifier?\", locale), headerCellFormat));\n columnNumber++;\n sheet.addCell(new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"FirstName\", null, \"?FirstName?\",\n locale),\n headerCellFormat));\n columnNumber++;\n sheet.addCell(new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"LastName\", null, \"?LastName?\", locale),\n headerCellFormat));\n columnNumber++;\n int questionNumber = 0;\n List<QuestionFilling> orderedQuestions = new LinkedList<QuestionFilling>(assessment.getQuestions());\n Collections.sort(orderedQuestions, new QuestionFillingOriginalComparator());\n for (QuestionFilling question : orderedQuestions) {\n if (question instanceof ClosedQuestionFilling) {\n labelCell = new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"Question\", null, \"?Question?\",\n locale) + (questionNumber + 1) + \"\\n\"+question.getTitle(), headerCellFormat);\n sheet.addCell(labelCell);\n columnNumber++;\n } else if (question instanceof OpenQuestionFilling) {\n labelCell = new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"Question\", null, \"?Question?\",\n locale) + (questionNumber + 1) + \"\\n\"+question.getTitle(), headerCellFormat);\n sheet.addCell(labelCell);\n sheet.setColumnView(columnNumber, 60);\n sheet.mergeCells(columnNumber, rowNumber,\n columnNumber + 1, rowNumber);\n columnNumber += 2;\n }\n questionNumber++;\n }\n labelCell = new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"Sum\", null, \"?Sum?\", locale),\n headerCellFormat);\n sheet.addCell(labelCell);\n columnNumber++;\n }", "@Override\n\t\tprotected void writeStreamHeader() throws IOException {\n\t\t}", "private void writeHeaders(final DataOutput out) throws IOException {\n for (final Map.Entry<String, List<String>> entry : headers.entrySet()) {\n if (entry.getValue().size() == 1) {\n writeHeader(out, entry.getKey(), entry.getValue().get(0));\n } else if (entry.getValue().size() > 1) {\n for (final String val : entry.getValue()) {\n writeHeader(out, entry.getKey(), val);\n }\n }\n }\n }", "private void addHeaderForSummary(Workbook p_workBook, Sheet p_sheet)\n {\n int col = 0;\n int row = SUMMARY_HEADER_ROW;\n Row summaryHeaderRow = getRow(p_sheet, row);\n\n Cell cell_A = getCell(summaryHeaderRow, col);\n cell_A.setCellValue(m_bundle.getString(\"lb_company\"));\n cell_A.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_B = getCell(summaryHeaderRow, col);\n cell_B.setCellValue(m_bundle.getString(\"lb_job_id\"));\n cell_B.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_C = getCell(summaryHeaderRow, col);\n cell_C.setCellValue(m_bundle.getString(\"lb_job_name\"));\n cell_C.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 30 * 256);\n col++;\n\n Cell cell_D = getCell(summaryHeaderRow, col);\n cell_D.setCellValue(m_bundle.getString(\"lb_language\"));\n cell_D.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_E = getCell(summaryHeaderRow, col);\n cell_E.setCellValue(m_bundle.getString(\"lb_workflow_state\"));\n cell_E.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_F = getCell(summaryHeaderRow, col);\n cell_F.setCellValue(m_bundle.getString(\"lb_mt_word_count\"));\n cell_F.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n if (usePerplexity)\n {\n Cell cell = getCell(summaryHeaderRow, col);\n cell.setCellValue(m_bundle.getString(\"lb_perplexity_wordcount\"));\n cell.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n }\n\n Cell cell_G = getCell(summaryHeaderRow, col);\n cell_G.setCellValue(m_bundle.getString(\"lb_total_word_count\"));\n cell_G.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_H = getCell(summaryHeaderRow, col);\n cell_H.setCellValue(m_bundle.getString(\"lb_average_edit_distance\"));\n cell_H.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 30 * 256);\n col++;\n\n Cell cell_I = getCell(summaryHeaderRow, col);\n cell_I.setCellValue(m_bundle.getString(\"lb_translation_error_rate\"));\n cell_I.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_J = getCell(summaryHeaderRow, col);\n cell_J.setCellValue(m_bundle.getString(\"lb_engine_name\"));\n cell_J.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n }", "public static void printHeader(int homework, String homeworkDescription, \n double project, String projectDescription, String lastModified)\n {\n System.out.println(header(homework, homeworkDescription, project, \n projectDescription, lastModified));\n }", "public static void printTableStatusHeader() {\n\t\tSystem.out.println(\"Table availability status:\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}", "private static void outputHeader(XMLTree channel, SimpleWriter out) {\n assert channel != null : \"Violation of: channel is not null\";\n assert out != null : \"Violation of: out is not null\";\n assert channel.isTag() && channel.label().equals(\"channel\") : \"\"\n + \"Violation of: the label root of channel is a <channel> tag\";\n assert out.isOpen() : \"Violation of: out.is_open\";\n\n int start = 0;\n int titleIndex = getChildElement(channel, \"title\");\n int descriptionIndex = getChildElement(channel, \"description\");\n int itemIndex = getChildElement(channel, \"item\");\n int linkIndex = getChildElement(channel, \"link\");\n \n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n // if there's no title print that\n\t\tif(channel.child(titleIndex).numberOfChildren() == 0)\n\t\t{\n\t\t\tout.println(\"<head>\");\n\t\t\tout.println(\"<title> Empty Title </title>\");\n\t\t\tout.println(\"<a href=\" + channel.child(linkIndex).child(0) + \"><h1>\" + channel.child(titleIndex).child(0) + \"</h1>\");\n\t\t\tout.println(\"</head>\");\n\t\t}\n\t\t// else print title\n\t\telse\n\t\t{\n\t\t\tout.println(\"<head>\");\n\t\t\tout.println(\"<title>\" + channel.child(titleIndex).child(0) + \"</title>\");\n \t\tout.println(\"<a href=\\\"\" + channel.child(linkIndex).child(0) +\"\\\"><h1> \" + channel.child(titleIndex).child(0) + \"</h1></a>\");\n \t\tout.println(\"</head>\");\n\t\t}\n\t\t\n\t\t// if no description\n\t\tif(channel.child(descriptionIndex).numberOfChildren() == 0)\n\t\t{\n\t\t\tout.println(\"<p>\");\n\t\t\tout.println(\"No description\");\n\t\t\tout.println(\"</p>\");\n\t\t}\n\t\t// else print description\n\t\telse\n\t\t{\n\t\t\tout.println(\"<p>\");\n\t\t\tout.println(channel.child(descriptionIndex).child(0));\n\t\t\tout.println(\"</p>\");\n\t\t} \n\t\t\n\t\t// print out basic setup for the table\n\t\tout.println(\"<table border=\\\"1\\\">\");\n\t\tout.println(\"<tr>\");\n \tout.println(\"<th>Date</th>\");\n \tout.println(\"<th>Source</th>\");\n \tout.println(\"<th>News</th>\");\n \tout.println(\"</tr>\");\n \t\n \tfor(int i = 0; i < channel.numberOfChildren() - itemIndex; i++)\n \t{\n \t\tprocessItem(channel.child(itemIndex + i), out);\n \t}\n }", "public String printHeader() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"\\n***********************************\\n\");\n sb.append(\"\\tAbacus\\n\");\n try {\n sb.append(\"\\tVersion: \");\n //sb.append(abacus.class.getPackage().getImplementationVersion());\n sb.append(\"2.6\");\n } catch (Exception e) {\n // Don't print anything\n }\n sb.append(\"\\n***********************************\\n\")\n .append(\"Developed and written by: Damian Fermin and Alexey Nesvizhskii\\n\")\n .append(\"Modifications by Dmitry Avtonomov\\n\")\n .append(\"Copyright 2010 Damian Fermin\\n\\n\")\n .append(\"Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n\")\n .append(\"you may not use this file except in compliance with the License.\\n\")\n .append(\"You may obtain a copy of the License at \\n\\n\")\n .append(\"http://www.apache.org/licenses/LICENSE-2.0\\n\\n\")\n .append(\"Unless required by applicable law or agreed to in writing, software\\n\")\n .append(\"distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n\")\n .append(\"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n\")\n .append(\"See the License for the specific language governing permissions and\\n\")\n .append(\"limitations under the License.\\n\\n\");\n return sb.toString();\n }", "public void writeHeader() throws IOException, FileNotFoundException {\n\n EndianCorrectOutputStream ecs;\n ByteArrayOutputStream baos;\n FileOutputStream fos;\n short s, ss[];\n byte b, bb[], ext_blob[];\n int hsize;\n int i, n;\n int extlist[][];\n\n\n // header is 348 except nii and anz/hdr w/ extensions is 352\n hsize = Nifti1.ANZ_HDR_SIZE;\n if ((header.isDs_is_nii()) || (header.getExtension()[0] != 0)) {\n hsize += 4;\n }\n\n try {\n\n baos = new ByteArrayOutputStream(hsize);\n fos = new FileOutputStream(header.getDs_hdrname());\n\n ecs = new EndianCorrectOutputStream(baos, header.isBig_endian());\n\n\n ecs.writeIntCorrect(header.getSizeof_hdr());\n\n if (header.getData_type_string().length() >= 10) {\n ecs.writeBytes(header.getData_type_string().substring(0, 10));\n } else {\n ecs.writeBytes(header.getData_type_string().toString());\n for (i = 0; i < (10 - header.getData_type_string().length()); i++) {\n ecs.writeByte(0);\n }\n }\n\n if (header.getDb_name().length() >= 18) {\n ecs.writeBytes(header.getDb_name().substring(0, 18));\n } else {\n ecs.writeBytes(header.getDb_name().toString());\n for (i = 0; i < (18 - header.getDb_name().length()); i++) {\n ecs.writeByte(0);\n }\n }\n\n ecs.writeIntCorrect(header.getExtents());\n\n ecs.writeShortCorrect(header.getSession_error());\n\n ecs.writeByte((int) header.getRegular().charAt(0));\n\n b = packDimInfo(header.getFreq_dim(), header.getPhase_dim(), header.getSlice_dim());\n ecs.writeByte((int) b);\n\n for (i = 0; i < 8; i++) {\n ecs.writeShortCorrect(header.getDim()[i]);\n }\n\n for (i = 0; i < 3; i++) {\n ecs.writeFloatCorrect(header.getIntent()[i]);\n }\n\n ecs.writeShortCorrect(header.getIntent_code());\n\n ecs.writeShortCorrect(header.getDatatype());\n\n ecs.writeShortCorrect(header.getBitpix());\n\n ecs.writeShortCorrect(header.getSlice_start());\n\n for (i = 0; i < 8; i++) {\n ecs.writeFloatCorrect(header.getPixdim()[i]);\n }\n\n\n ecs.writeFloatCorrect(header.getVox_offset());\n\n ecs.writeFloatCorrect(header.getScl_slope());\n ecs.writeFloatCorrect(header.getScl_inter());\n\n ecs.writeShortCorrect(header.getSlice_end());\n\n ecs.writeByte((int) header.getSlice_code());\n\n ecs.writeByte((int) packUnits(header.getXyz_unit_code(), header.getT_unit_code()));\n\n\n ecs.writeFloatCorrect(header.getCal_max());\n ecs.writeFloatCorrect(header.getCal_min());\n\n ecs.writeFloatCorrect(header.getSlice_duration());\n\n ecs.writeFloatCorrect(header.getToffset());\n\n ecs.writeIntCorrect(header.getGlmax());\n ecs.writeIntCorrect(header.getGlmin());\n\n ecs.write(setStringSize(header.getDescrip(), 80), 0, 80);\n ecs.write(setStringSize(header.getAux_file(), 24), 0, 24);\n\n\n ecs.writeShortCorrect(header.getQform_code());\n ecs.writeShortCorrect(header.getSform_code());\n\n for (i = 0; i < 3; i++) {\n ecs.writeFloatCorrect(header.getQuatern()[i]);\n }\n for (i = 0; i < 3; i++) {\n ecs.writeFloatCorrect(header.getQoffset()[i]);\n }\n\n for (i = 0; i < 4; i++) {\n ecs.writeFloatCorrect(header.getSrow_x()[i]);\n }\n for (i = 0; i < 4; i++) {\n ecs.writeFloatCorrect(header.getSrow_y()[i]);\n }\n for (i = 0; i < 4; i++) {\n ecs.writeFloatCorrect(header.getSrow_z()[i]);\n }\n\n\n ecs.write(setStringSize(header.getIntent_name(), 16), 0, 16);\n ecs.write(setStringSize(header.getMagic(), 4), 0, 4);\n\n\n // nii or anz/hdr w/ ext. gets 4 more\n if ((header.isDs_is_nii()) || (header.getExtension()[0] != 0)) {\n for (i = 0; i < 4; i++) {\n ecs.writeByte((int) header.getExtension()[i]);\n }\n }\n\n /** write the header blob to disk */\n baos.writeTo(fos);\n\n } catch (IOException ex) {\n throw new IOException(\"Error: unable to write header file \" + header.getDs_hdrname() + \": \" + ex.getMessage());\n }\n\n\n\n /** write the extension blobs **/\n try {\n\n ////// extensions\n if (header.getExtension()[0] != 0) {\n\n baos = new ByteArrayOutputStream(Nifti1.EXT_KEY_SIZE);\n ecs = new EndianCorrectOutputStream(baos, header.isBig_endian());\n extlist = header.getExtensionsList();\n n = extlist.length;\n for (i = 0; i < n; i++) {\n // write size, code\n ecs.writeIntCorrect(extlist[i][0]);\n ecs.writeIntCorrect(extlist[i][1]);\n baos.writeTo(fos);\n baos.reset();\n\n // write data blob\n ext_blob = (byte[]) header.getExtension_blobs().get(i);\n fos.write(ext_blob, 0, extlist[i][0] - Nifti1.EXT_KEY_SIZE);\n }\n }\n\n fos.close();\n } catch (IOException ex) {\n throw new IOException(\"Error: unable to write header extensions for file \" + header.getDs_hdrname() + \": \" + ex.getMessage());\n }\n\n\n }", "static void writeHeader(String filename, double resolution, int nrows, int ncols, double minx, double miny, double maxx, double maxy, double minvalue, double maxvalue, double nodatavalue) {\n try {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n File file = new File(filename);\n FileWriter fw = new FileWriter(filename);\n fw.append(\"[General]\\nCreator=alaspatial\\nCreated=\" + sdf.format(new Date()) + \"\\nTitle=\" + file.getName() + \"\\n\\n\");\n\n fw.append(\"[GeoReference]\\nProjection=\\nDatum=\\nMapunits=\\nColumns=\" + ncols\n + \"\\nRows=\" + nrows + \"\\nMinX=\" + minx + \"\\nMaxX=\" + maxx\n + \"\\nMinY=\" + miny + \"\\nMaxY=\" + maxy + \"\\nResolutionX=\" + resolution\n + \"\\nResolutionY=\" + resolution + \"\\n\\n\");\n\n fw.append(\"[Data]\\nDataType=FLT4S\\nMinValue=\" + minvalue\n + \"\\nMaxValue=\" + maxvalue + \"\\nNoDataValue=\" + nodatavalue\n + \"\\nTransparent=0\\nUnits=\\n\");\n\n fw.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "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 static void outputHeaderMainPage(SimpleWriter out) {\n out.print(\"<html>\\n\" + \"<head>\\n\" + \"\\t<title>\" + \"Index\" + \"</title>\\n\"\n + \"<font size = '10' >\" + \"Glossary Homepage\" + \"</font>\"\n + \"</head>\\n\" + \"<body>\\n\" + \"<head>\\n\" + \"\\t<h1>\\n\"\n + \"<font size = '6' >\" + \"Index\" + \"</font>\" + \"\\t</h1>\\n\"\n + \"</head>\\n\" + \"</body>\\n\" + \"</html>\");\n }", "public void\nprintHir( String pHeader );", "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 }", "public void writeHeader(PrintWriter out, RequestProperties reqState)\n throws IOException\n {\n out.write(this.getPageHeader());\n }", "private void printHeading()\n {\n System.out.println(\"==============================================\");\n System.out.println(\" Stock Management Application \");\n System.out.println(\" App05: by Haroon Sadiq \");\n System.out.println(\"==============================================\");\n }", "public static void printHeader(int homework, double project, String lastModified)\n {\n System.out.println(header(homework, project, lastModified));\n }", "@Override\n public String toString() {\n for (String require : requires) {\n writeToHead(require);\n }\n\n //write header to placeholder...\n int index = out.indexOf(HEADER_PLACEHOLDER); //TODO optimize by scanning upto <body> only (if no head)\n\n String output = out.toString();\n\n if (index > 0) {\n output = output.replaceFirst(HEADER_PLACEHOLDER, head.toString());\n }\n\n return output;\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}", "private void setPOSHeadersToTable() {\r\n\t\tthis.selectedRow = -1;\r\n\t\tif(FileData.getFileModel(FileType.POS) != null) {\r\n\t\t\tColumnData.setPOSHeadersToTableData(FileData.getFileModel(FileType.POS).getFileContents().getHeaderNames());\r\n\t\t}else {\r\n\t\t\tColumnData.getTableData().setRowCount(0);\r\n\t\t}\r\n\t}", "public static void displayTableTitle()\r\n {\n }", "@SuppressWarnings(value = \"unchecked\")\r\n private static void writeFileHeaders(MultipleOutputs mo) throws IOException {\r\n\r\n// final Integer tileWindow = (Integer)localConfMap.get(\"tileWindow\");\r\n// final Boolean saveSkippedInfo = (Boolean)localConfMap.get(\"saveSkippedInfo\");\r\n//\r\n// mo.getCollector(\"tile10\", null).collect(new Text(\"header\"),\r\n// new Text(\"variableStep chrom=chrM span=\" + tileWindow.toString() + \"\\n\"));\r\n// mo.getCollector(\"tile\", null).collect(new Text(\"header\"),\r\n// new Text(\"variableStep chrom=chrM span=\" + tileWindow.toString() + \"\\n\"));\r\n//\r\n// String[] headerOddReadBed = {\"Chromosome\",\r\n// \"Start\",\r\n// \"End\",\r\n// \"Feature\",\r\n// \"Translocations\"};\r\n//\r\n// mo.getCollector(\"oddreadbed\", null).collect(new Text(\"header\"),\r\n// new Text(StringUtils.join(headerOddReadBed) + \"\\n\"));\r\n//\r\n// String[] headerOddReadList = {\"FromChr\",\r\n// \"FromPos\",\r\n// \"ToChr\",\r\n// \"ToPos\",\r\n// \"MapQ\",\r\n// \"Distance\",\r\n// \"StrandQ\",\r\n// \"StrandM\"};\r\n//\r\n// mo.getCollector(\"oddreadlist\", null).collect(new Text(\"header\"),\r\n// new Text(StringUtils.join(headerOddReadList) + \"\\n\"));\r\n//\r\n//\r\n// mo.getCollector(\"wigsame\", null).collect(new Text(\"header\"),\r\n// new Text(\"variableStep chrom=chrM span=\" + tileWindow.toString() + \"\\n\"));\r\n// mo.getCollector(\"wigdiff\", null).collect(new Text(\"header\"),\r\n// new Text(\"variableStep chrom=chrM span=\" + tileWindow.toString() + \"\\n\"));\r\n//\r\n// String[] headerOutliers = {\"read\",\r\n// \"pos\",\r\n// \"chromosome\",\r\n// \"qname\",\r\n// \"seq\",\r\n// \"score\",\r\n// \"distance\"};\r\n//\r\n// mo.getCollector(\"outlier\", null).collect(new Text(\"header\"),\r\n// new Text(StringUtils.join(headerOutliers) + \"\\n\"));\r\n//\r\n//\r\n// if (saveSkippedInfo) {\r\n// String[] headerSkippedReads = {\"rname\",\r\n// \"mPos\",\r\n// \"mapQScore\",\r\n// \"dupeFlag\",\r\n// \"failedQC\",\r\n// \"randomIndex\"};\r\n//\r\n// mo.getCollector(\"skipped\", null).collect(new Text(\"header\"),\r\n// new Text(StringUtils.join(headerSkippedReads) + \"\\n\"));\r\n// }\r\n }", "@Override\n protected void writeStreamHeader() throws IOException {\n // metodo honek ez du ezer egiten\n }", "public void writeHead(Integer symbol) throws Exception{\n writingHead.writeSymbol(symbol);\n }", "abstract public void header();", "private ConfigurationHTMLPrinter doHeaderCell(final String value) {\n return print(\"<td class='header_cell'>\").print0(value).print0ln(\"</td>\");\n }", "public void writeReport() {\n\t\tint gridSize = 55; // Total character spaces between the borders\n\t\tprint(\"+-------------------------------------------------------+\");\n\t\tprint(String.format(\"|%s|\", centerName(gridSize)));\n\t\tprint(\"+---------------+---------------------------------------+\");\n\t\t/*\n\t\t * Loops through each room in the hotel and prints out the relevant\n\t\t * information on a new line And draws southern, eastern and western\n\t\t * borders to allow it to connect up to the main table.\n\t\t */\n\t\tfor (int i = 0; i < myHotel.getSize(); i++) {\n\t\t\tprint(formatRooms(i).toUpperCase());\n\t\t\tprint(formatAmount(i).toUpperCase());\n\t\t\tprint(formatSleepAmount(i).toUpperCase());\n\t\t\tprint(formatOccupied(i).toUpperCase());\n\t\t\tprint(\"+---------------+---------------------------------------+\");\n\t\t}\n\t\t/*\n\t\t * After every hotel room's information has been displayed The overall\n\t\t * hotel information is displayed such as total occupancy, if there is a\n\t\t * vacancy. And if there is a vacancy, the total amount of free rooms\n\t\t * and beds.\n\t\t */\n\t\tprint(String.format(\"| Hotel\\t\\t|\\tTotal Occupancy:\\t%s\\t|\", getHotel().getTotalOccupancy()).toUpperCase());\n\t\tprint(String.format(\"| information:\\t|\\tHas Vacancies:\\t\\t%s\\t|\", convertBoolean(getHotel().getVacancies()))\n\t\t\t\t.toUpperCase());\n\t\tif (getHotel().getVacancies()) {\n\t\t\tprint(String.format(\"|\\t\\t|\\tVacant Rooms:\\t\\t%s\\t|\", getHotel().getEmptyRooms()).toUpperCase());\n\t\t\tprint(String.format(\"|\\t\\t|\\tVacant Beds:\\t\\t%s\\t|\", getHotel().getTotalVacancy()).toUpperCase());\n\t\t}\n\t\t/*\n\t\t * Draws a final southern border to close the table\n\t\t */\n\t\tprint(\"+---------------+---------------------------------------+\");\n\t}", "private static void saluti() {\n\t\tUtilityIO.header(MSG_CHIUSURA, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t}", "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}", "public void displayHeader(AbstractAccount theAccount, LocalDate theDay) { \n mySB.delete(0, mySB.length());\n mySB.append(Main.LINE_BREAK);\n mySB.append(\"Urban Parks | \");\n mySB.append(theDay.getMonthValue());\n mySB.append(\"/\");\n mySB.append(theDay.getDayOfMonth());\n mySB.append(\"/\");\n mySB.append(theDay.getYear());\n mySB.append(Main.LINE_BREAK);\n mySB.append(\"Welcome \");\n mySB.append(theAccount.getRealName());\n mySB.append(\" (\");\n mySB.append(theAccount.AccountType());\n mySB.append(')');\n mySB.append(Main.LINE_BREAK);\n mySB.append(\"-----------------------------------------------------------------\");\n mySB.append(Main.LINE_BREAK);\n System.out.print(mySB.toString());\n }", "protected JTableHeader createDefaultTableHeader() {\r\n \treturn new JTableHeader(columnModel) {\r\n \t\t\r\n \t\tprivate static final long serialVersionUID = 1L;\r\n \t\t\r\n \t\tpublic String getToolTipText(MouseEvent e) {\r\n \t\t\tjava.awt.Point p = e.getPoint();\r\n \t\t\tint index = columnModel.getColumnIndexAtX(p.x);\r\n \t\t\tint realColumnIndex = convertColumnIndexToModel(index);\r\n \t\t\tif ((realColumnIndex >= 0) && (realColumnIndex < getModel().getColumnCount()))\r\n \t\t\t\treturn \"The column \" + getModel().getColumnName(realColumnIndex);\r\n \t\t\telse\r\n \t\t\t\treturn \"\";\r\n \t\t}\r\n \t};\r\n }", "public void printTable() {\n System.out.print(\"\\033[H\\033[2J\"); // Clear the text in console\n System.out.println(getCell(0, 0) + \"|\" + getCell(0, 1) + \"|\" + getCell(0, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(1, 0) + \"|\" + getCell(1, 1) + \"|\" + getCell(1, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(2, 0) + \"|\" + getCell(2, 1) + \"|\" + getCell(2, 2));\n }", "@Override\n protected void writeSSHPreamble(Writer wr, String nodeFile, String exitcodefile) throws IOException {\n\t wr.write(\"NODES=`scontrol show hostname $SLURM_NODELIST`\\n\");\n wr.write(\"ECF=\" + exitcodefile + \"\\n\");\n wr.write(\"INDEX=0\\n\");\n wr.write(\"for NODE in $NODES; do\\n\");\n wr.write(\" echo \\\"N\\\" >$ECF.$INDEX\\n\");\n wr.write(\" ssh $NODE \");\n }", "private void createTable(BufferedWriter writer, ResultTable tableData)\r\n\t\t\tthrows IOException {\r\n\t\tint height = (37 * tableData.getDataCount()) + 56\r\n\t\t\t\t+ (tableData.getExpectionMessageData().size() * 4);\r\n\t\tString container = \"<div style='width: 766px;background-color: #FFFFFF;box-shadow: 1px 1px 1px #888888;;height: \"\r\n\t\t\t\t+ height + \"px;position: absolute;top: 165px;left: 554px'>\";\r\n\t\tString table = \"<table style='top:10px;position:absolute;width: 750px;left:8px;'><tbody>\";\r\n\t\tString headers = \"<tr><th>TestCase Id</th><th>Method Name</th><th>Servrity</th><th>Time Taken</th><th>Result</th></tr>\";\r\n\r\n\t\twriter.write(container + table + headers);\r\n\r\n\t}", "public void printHeaderInfo(String className) {\n outFile.println(\"// Declarations for \" + className);\n outFile.println(\n \"// Declarations written by Chicory \" + LocalDateTime.now(ZoneId.systemDefault()));\n outFile.println();\n\n // Determine comparability string\n String comparability = \"none\";\n if (Runtime.comp_info != null) {\n comparability = \"implicit\";\n }\n outFile.printf(\"decl-version 2.0%n\");\n outFile.printf(\"var-comparability %s%n%n\", comparability);\n }", "private void addHeader(Section catPart) throws BadElementException, IOException{\r\n PdfPTable header = new PdfPTable(1);\r\n PdfPCell c = new PdfPCell(Image.getInstance(\"res/brandogredninglogo.png\"));\r\n c.setBackgroundColor(COLOR_BLUE);\r\n //c.setBorderColor(BaseColor.RED);\r\n header.setHeaderRows(0);\r\n header.addCell(c);\r\n header.setWidthPercentage(100.0f);\r\n \r\n catPart.add(header);\r\n }", "public void printDNSHeader()\n {\n // id should be unsigned\n int idInInt = (this.id & 0xffff);\n System.out.println(\"Header id: \" + idInInt\n + \" flag: \" + String.format(\"0x%04X\", this.flag));\n System.out.println(\"question#: \" + this.questionCount\n + \" answer#: \" + this.answerCount);\n System.out.println(\"authority#: \" + this.nameServerCount\n + \" addition#: \" + this.additionalFullRRCount);\n System.out.println(\" \"); // leave a blank line.\n\n }", "@Override\n protected JTableHeader createDefaultTableHeader()\n {\n return new JTableHeader(columnModel)\n {\n /**\n * Serial version UID variable for the inner class.\n */\n public static final long serialVersionUID = 111222333444555601L;\n\n @Override\n public String getToolTipText(MouseEvent e)\n {\n int index = columnModel.getColumnIndexAtX( e.getPoint().x );\n int realIndex = columnModel.getColumn(index).getModelIndex();\n return columnNames[realIndex];\n }\n };\n }", "private void writeCsvHeader(String h1, String h2, String h3,String h4,String h5) throws IOException\r\n {\r\n \t String line = String.format(\"%s,%s,%s,%s,%s\\n\",h1,h2,h3,h4,h5);\r\n \t writer.write(line);\r\n }", "public String getSummaryStatisticsHeader() {\n return String.format(\"%-50s \\t %12s \\t %12s \\t %12s %n\", \"Name\", \"Count\", \"Average\", \"Std. Dev.\");\n }", "public static void inventoryListHeader() {\n System.out.println(\n UI.prettyPrint(\"Items Name\", 15) + \" | \"\n + UI.prettyPrint(\"Price\", 10) + \" | \"\n + UI.prettyPrint(\"Quantity\", 5));\n }", "public static void writeHeaderFields(OutputStream out, HashMap headerfields) throws IOException {\r\n\t\tif (headerfields == null) {\r\n\t\t\tout.write(Specialchars.CR);\r\n\t\t\tout.write(Specialchars.LF);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tIterator keys = headerfields.keySet().iterator();\r\n\t\tif (keys == null) {\r\n\t\t\tout.write(Specialchars.CR);\r\n\t\t\tout.write(Specialchars.LF);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\twhile (keys.hasNext()) {\r\n\t\t\tString fieldname = (String) keys.next();\r\n\t\t\tString fieldvalue = (String) headerfields.get(fieldname);\r\n\t\t\tout.write(fieldname.getBytes());\r\n\t\t\tout.write(Specialchars.COL);\r\n\t\t\tout.write(Specialchars.SP);\r\n\t\t\tout.write(fieldvalue.getBytes());\r\n\t\t\tout.write(Specialchars.CR);\r\n\t\t\tout.write(Specialchars.LF);\r\n\t\t}\r\n\t\tout.write(Specialchars.CR);\r\n\t\tout.write(Specialchars.LF);\r\n\t}", "public static void printHeader(int homework, String lastModified) \n\t{\n\t\tSystem.out.println(\"/********************************************\");\n\t\tSystem.out.println(\"* AUTHOR: \" + NAME);\n\t\tSystem.out.println(\"* COURSE: \" + COURSE);\n\t\tSystem.out.println(\"* SECTION: \" + SECTION);\n\t\tSystem.out.println(\"* HOMEWORK #: \" + homework);\n\t\tSystem.out.println(\"* LAST MODIFIED: \" + lastModified);\n\t\tSystem.out.println(\"********************************************/\");\n\t}", "protected void BuildHtmlHeader(PrintWriter out, String title) throws IOException\n {\n out.println(\"<HTML>\");\n out.println(\"<head>\");\n out.println(\"<link rel=\\\"stylesheet\\\" href=\\\"/css/nny.css\\\" type=\\\"text/css\\\">\");\n out.println(\"<TITLE>\");\n out.println(title);\n out.println(\"</TITLE>\");\n out.println(\"<SCRIPT LANGUAGE=\\\"JavaScript\\\" SRC=\\\"/javascript/data_validation.js\\\"></SCRIPT>\");\n out.println(\"</head>\");\n /*\n if (navbarTemplate != null)\n {\n if (header_tp == null)\n {\n header_tp = new TemplateProcessor(template_path_ + navbarTemplate);\n }\n out.println(header_tp.process().toString());\n }*/\n out.flush();\n }", "public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }", "public static void writeHeader(DataOutput dos,SpectrumHeader spectrumHeader) throws IOException {\n\n\t\tdos.write(fileSignature);\n\t\tdos.writeInt(spectrumHeader.k);\n\t\tdos.writeLong(spectrumHeader.nkmers);\n\t}", "private void generateRowHeaders() {\n JPanel pnl = new JPanel((LayoutManager) null);\n\n java.awt.Dimension dim;\n Object selection = null;\n if (paramTree.getSelectionCount() > 0) {\n selection = paramTree.getSelectionPath().getLastPathComponent();\n }\n\n int digitcount = 1;\n if (selection == ParamToolTreeModel.dimensionSizes) {\n digitcount = 12;\n } else {\n\n Iterator<Dimension> iterator = mms_params.getDimenIterator();\n while (iterator.hasNext()) {\n Dimension next = iterator.next();\n int size = next.getSize();\n if (size == 0) {\n digitcount = 1;\n } else {\n digitcount = (int) (Math.log10((double) size)) + 1;\n }\n }\n }\n\n // Add some padding to make sure that this will work\n digitcount = digitcount + 4;\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i < digitcount; i++) {\n buf.append('9');\n }\n String foo = new String(buf);\n dim = new java.awt.Dimension(metrics.stringWidth(foo) + insets.right + insets.left, jTable1.getRowHeight() * jTable1.getRowCount());\n\n pnl.setPreferredSize(dim);\n\n // Adding the row header labels\n dim.height = jTable1.getRowHeight();\n\n for (int i = 0; i < jTable1.getRowCount(); i++) {\n int ii;\n if (sorter != null) {\n ii = sorter.modelIndex(i);\n } else {\n ii = i;\n }\n\n JButton lbl;\n if (selection == ParamToolTreeModel.dimensionSizes) {\n Dimension mms_dim = mms_params.getDimensionAt(i);\n lbl = new JButton(mms_dim.getName());\n } else {\n lbl = new JButton(Integer.toString(ii + 1));\n }\n\n lbl.setFont(aFont);\n lbl.setBackground(aBackground);\n lbl.setForeground(aForeground);\n lbl.setBorder(border);\n lbl.setBounds(0, i * dim.height, dim.width, dim.height);\n pnl.add(lbl);\n }\n\n JViewport vp = new JViewport();\n dim.height = jTable1.getRowHeight() * jTable1.getRowCount();\n vp.setViewSize(dim);\n vp.setView(pnl);\n tableScrollPane.setRowHeader(vp);\n }", "private static String getPeptideHeader() {\r\n return \"Spectrum\" + SEP\r\n + \"Peptide Sequence\" + SEP\r\n + \"No. Peptide Spectrum Matches\" + SEP\r\n + \"Protein Accession\" + SEP\r\n + \"Protein Description\" + SEP;\r\n }", "public abstract String getHeaderRow();", "protected void writeHeader() throws IOException {\n _baos = new ByteArrayOutputStream();\n _dos = new DataOutputStream(_baos);\n _dos.write(PushCacheProtocol.instance().header(), 0, PushCacheProtocol.instance().header().length);\n }", "public void createHeader() throws DocumentException\n {\n createHeader(100f, Element.ALIGN_LEFT);\n }", "public void printTable() {\r\n System.out.println(frame+\") \");\r\n for (int y = 0; y < table.length; y++) {\r\n System.out.println(Arrays.toString(table[y]));\r\n }\r\n frame++;\r\n }", "private static void addHeaderWithBreakdownContext(SizeBreakdown breakdown,\n final PrintWriter outFile) {\n outFile.println(\"<hr>\");\n outFile.println(\"<b>(Analyzing code subset: \" + breakdown.getDescription()\n + \")</b>\");\n outFile.println(\"<hr>\");\n }", "private void displayGameHeader()\n {\n System.out.println(\"########Welcome to Formula 9131 Championship########\");\n }", "public HashMap getOutputHeader() {\n\t\treturn null;\n\t}", "@Transient\n/* */ public JViewport getColumnHeader() {\n/* 1089 */ return this.columnHeader;\n/* */ }", "public void outDisTable()\n\t{\n\t\tfor(int i = 0; i < sqNum; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < sqNum; j++)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\"%-18s\", \"[\" + i + \",\" + j + \"]:\" + String.format(\" %.8f\", dm[i][j]));\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}\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 float writeHeader() throws IOException\n\t{\n\t\tString [] title = new String[2];\n\t\ttitle[0] = this.getSchoolName();\n\t\ttitle[1] = \"Official High School Transcript\";\n\t\t//PDFTextBox pdfTextBox = this.pdfTextBox;\n\t\tpdfTextBox.setContentStream(contentStream);\n\t\tpdfTextBox.setDocument(document);\n\t\tpdfTextBox.setBoxLeft(LEFT_MARGIN);\n\t\tpdfTextBox.setBoxWidth(RIGHT_MARGIN - LEFT_MARGIN );\n\t\tfloat boxHeight = pdfTextBox.calcBoxHeight(fontHeight, title.length );\n\t\tpdfTextBox.setBoxBottom((float) (TOP_MARGIN - boxHeight - 10) );\n\t\tfloat lastBoxBottom = pdfTextBox.getBoxBottom();\n\t\tpdfTextBox.setFont(font);\n\t\tpdfTextBox.setFontSize(fontHeight);\n\t\tpdfTextBox.setTextLeftMargin(LEFT_TEXT_MARGIN);\n\t\tpdfTextBox.setTextRightMargin(RIGHT_TEXT_MARGIN);\n\t\tpdfTextBox.setData(title);\n\t\tcontentStream = pdfTextBox.drawTextBoxCentered();\n\t\tfloat lastBoxHeight = pdfTextBox.getBoxHeight();\n\t\tSystem.out.println(\"boxHeight=\" + boxHeight);\n\t\tSystem.out.println(\"lastBoxBottom=\" + lastBoxBottom);\n\t\tSystem.out.println(\"lastBoxHeight=\" + lastBoxHeight);\n\t\tfloat lastTextPosition = pdfTextBox.getLastTextPosition();\n\t\tSystem.out.println(\"lastTextPostion=\" + lastTextPosition);\n\t\t\n\t\tthis.fontHeight -= 2;\n\n\t\tTextList textBoxListLeft = new TextList();\n\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN + 5 * fontHeight + 20, 0, \"Student Information\");\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN, 1, \"FULL NAME:\");\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN + 10 * fontHeight, 1, this.getStudentInformation().get(\"name\"));\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN, 2, \"ADDRESS:\");\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN + 10 * fontHeight, 2, this.getStudentInformation().get(\"address1\"));\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN + 10 * fontHeight, 3, this.getStudentInformation().get(\"address2\"));\n\t\t\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN, 4, \"PHONE NUMBER:\");\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN + 10 * fontHeight, 4, this.getStudentInformation().get(\"phone\"));\n\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN, 5, \"EMAIL ADDRESS:\");\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN + 10 * fontHeight, 5, this.getStudentInformation().get(\"email\"));\n\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN, 6, \"DATE OF BIRTH:\");\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN + 10 * fontHeight, 6, this.getStudentInformation().get(\"dob\"));\n\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN, 7, \"PARENT/GUARDIAN:\");\n\t\ttextBoxListLeft.addText(LEFT_TEXT_MARGIN + 10 * fontHeight + 10, 7, this.getStudentInformation().get(\"guardian\"));\n\n\t\ttextBoxListLeft.setNumLines(8);\n\n\t\tfloat leftTextMargin = this.calcLeftTextMargin(fontHeight);\n\t\tTextList textBoxListRight = new TextList();\n\t\ttextBoxListRight.addText(leftTextMargin + 5 * fontHeight + 20, 0, \"School Information\");\n\t\ttextBoxListRight.addText(leftTextMargin, 1, \"NAME:\");\n\t\ttextBoxListRight.addText(leftTextMargin + 10 * fontHeight, 1, this.getSchoolInformation().get(\"name\"));\n\n\t\ttextBoxListRight.addText(leftTextMargin, 2, \"ADDRESS:\");\n\t\ttextBoxListRight.addText(leftTextMargin + 10 * fontHeight, 2, this.getSchoolInformation().get(\"address1\"));\n\t\t\n\t\ttextBoxListRight.addText(leftTextMargin + 10 * fontHeight, 3, this.getSchoolInformation().get(\"address2\"));\n\n\t\ttextBoxListRight.addText(leftTextMargin, 4, \"PHONE NUMBER:\");\n\t\ttextBoxListRight.addText(leftTextMargin + 10 * fontHeight, 4, this.getSchoolInformation().get(\"phone\"));\n\n\t\ttextBoxListRight.addText(leftTextMargin, 5, \"EMAIL ADDRESS:\");\n\t\ttextBoxListRight.addText(leftTextMargin + 10 * fontHeight, 5, this.getSchoolInformation().get(\"email\"));\n\n\t\ttextBoxListRight.setNumLines(6);\n\t\tlastBoxBottom = this.drawLeftRightTabbedTextBox(textBoxListLeft, textBoxListRight, fontHeight, lastBoxBottom);\n\t\tSystem.out.println(\"lastBoxBottom=\" + lastBoxBottom);\n\t\t\n\t\t// Draw the title box.\n\t\tString []data = new String[1];\n\t\tdata[0] = \"Academic Record\";\n\n\t\tpdfTextBox.setBoxLeft(LEFT_MARGIN);\n\t\tpdfTextBox.setBoxWidth(RIGHT_MARGIN - LEFT_MARGIN );\n\t\tboxHeight = pdfTextBox.calcBoxHeight(fontHeight, data.length);\n\t\tpdfTextBox.setBoxHeight(boxHeight + 0);\n\t\tboxHeight = pdfTextBox.getBoxHeight();\n\t\tpdfTextBox.setBoxBottom( (float) (lastBoxBottom - boxHeight) );\n\n\t\tlastBoxBottom = pdfTextBox.getBoxBottom();\n\n\t\tpdfTextBox.setTextLeftMargin(LEFT_TEXT_MARGIN);\n\t\tpdfTextBox.setTextRightMargin(RIGHT_TEXT_MARGIN);\n\t\tpdfTextBox.setData(data);\n\t\tcontentStream = pdfTextBox.drawTextBoxCentered();\n\t\tlastBoxBottom = pdfTextBox.getBoxBottom();\n\t\tlastBoxHeight = pdfTextBox.getBoxHeight();\n\t\tlastTextPosition = pdfTextBox.getLastTextPosition();\n\t\t\n\t\treturn lastBoxBottom;\n\t}" ]
[ "0.672611", "0.66863126", "0.66119444", "0.66069406", "0.6562219", "0.6322844", "0.6293465", "0.62934583", "0.628093", "0.6263854", "0.62432003", "0.6232176", "0.6215909", "0.62021816", "0.618668", "0.61614376", "0.6160647", "0.6156693", "0.61431015", "0.6124977", "0.60996664", "0.6091082", "0.60784346", "0.6012468", "0.60006875", "0.59799784", "0.5968429", "0.5950286", "0.59500146", "0.59429914", "0.5938764", "0.59345645", "0.59299326", "0.5902921", "0.58935505", "0.5877037", "0.5869332", "0.5864863", "0.5863329", "0.5858386", "0.58549815", "0.58452326", "0.58369476", "0.58347696", "0.5833385", "0.5832669", "0.5831955", "0.582779", "0.58226013", "0.57882625", "0.5781643", "0.5780775", "0.57750136", "0.57674986", "0.57640004", "0.5734422", "0.5731795", "0.5727097", "0.5705861", "0.56781584", "0.5675707", "0.56542635", "0.56541926", "0.5648055", "0.5640136", "0.56360966", "0.5633236", "0.5631489", "0.56219137", "0.5618123", "0.5613235", "0.5594667", "0.55869323", "0.5583991", "0.5574114", "0.5571987", "0.55636525", "0.55607486", "0.5555047", "0.5550205", "0.554913", "0.55440855", "0.55383676", "0.55383193", "0.55318475", "0.5519615", "0.5518966", "0.55171996", "0.5506532", "0.55043674", "0.5501818", "0.5501502", "0.5487004", "0.548631", "0.5480322", "0.5477818", "0.5437371", "0.5422851", "0.54133433", "0.5412894" ]
0.7446437
0
Writes the list of solutions to the specified table in a report file
private static void addSolutionList(MAESTROptimizer manager, Iterator<SolutionWrapper> solutions, ReportFile file, int table) { while(solutions.hasNext()) { SolutionWrapper solution = solutions.next(); // Retrieve variable count ArrayList<Integer> discValues = solution.getSolution().getDiscValues(); ArrayList<Double> contValues = solution.getSolution().getContValues(); int total = 4; int discCount = discValues == null ? 0 : discValues.size(); int contCount = contValues == null ? 0 : contValues.size(); total += discCount; total += contCount; String[] line = new String[total]; line[0] = solution.getId(); line[1] = solution.getIcIndex() + ""; line[2] = manager.getGeneratorShortId(solution.getGenIndex()); line[3] = solution.getSolution().getReport(); int index = 4; // Add discrete values if(discCount > 0) for(int i = 0 ; i < discValues.size() ; i++) { int value = discValues.get(i); line[index] = String.valueOf(manager.getDiscValueID(i, value)); index++; } // Add continuous values if(contCount > 0) for(int i = 0 ; i < contValues.size() ; i++) { line[index] = String.valueOf(contValues.get(i)); index++; } // Add solution line to table file.addLineToTableBody(table, line); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void addSolutionHeader(MAESTROptimizer manager, SolutionWrapper solution, \r\n\t\t\t\t\t\t\t\t\t\t\tReportFile file, int table)\r\n\t{\r\n\t\t// Retrieve variable count\r\n\t\tArrayList<Integer> discValues = solution.getSolution().getDiscValues();\r\n\t\tArrayList<Double> contValues = solution.getSolution().getContValues();\r\n\t\t\r\n\t\tint total = 2;\r\n\t\tint discCount = discValues == null ? 0 : discValues.size();\r\n\t\tint contCount = contValues == null ? 0 : contValues.size();\r\n\t\t\r\n\t\ttotal += discCount;\r\n\t\ttotal += contCount;\r\n\t\t\r\n\t\tString[] line1 = new String[total];\r\n\t\tString[] line2 = new String[total];\r\n\t\tString fitnessHeader = solution.getSolution().getReportHeader();\r\n\t\tString space = \"\";\r\n\t\tfor(int i = 0 ; i < fitnessHeader.split(\"\\t\").length - 1 ; i++)\r\n\t\t\tspace += \"\\t\";\r\n\t\t\r\n\t\tline1[0] = \"\\t\\t\";\r\n\t\tline1[1] = space;\r\n\t\tline2[0] = SOLUTIONS_ID + \"\\t\" + INNER_CYCLE_ID + \"\\t\" + GENERATORS_ID;\r\n\t\tline2[1] = fitnessHeader;\r\n\t\t\r\n\t\tint index = 2;\r\n\t\tint variableIndex = 0;\r\n\t\t\r\n\t\t// Add header for discrete variables\r\n\t\tif(discCount > 0)\r\n\t\t{\r\n\t\t\tvariableIndex = 0;\r\n\t\t\tline1[index] = DISC_VARIABLES_ID;\r\n\t\t\tline2[index] = manager.getDiscVarName(variableIndex);\r\n\t\t\tindex++;\r\n\t\t\tvariableIndex++;\r\n\t\t\tint max = index + discCount - 1;\r\n\t\t\tfor(int i = index ; i < max ; i++)\r\n\t\t\t{\r\n\t\t\t\tline1[i] = \"\";\r\n\t\t\t\tline2[i] = manager.getDiscVarName(variableIndex);\r\n\t\t\t\tindex++;\r\n\t\t\t\tvariableIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Add header for continuous variables\r\n\t\tif(contCount > 0)\r\n\t\t{\r\n\t\t\tvariableIndex = 0;\r\n\t\t\tline1[index] = CONT_VARIABLES_ID;\r\n\t\t\tline2[index] = manager.getContVarName(variableIndex);\r\n\t\t\tindex++;\r\n\t\t\tvariableIndex++;\r\n\t\t\tint max = index + contCount - 1;\r\n\t\t\tfor(int i = index ; i < max ; i++)\r\n\t\t\t{\r\n\t\t\t\tline1[i] = \"\";\r\n\t\t\t\tline2[i] = manager.getContVarName(variableIndex);\r\n\t\t\t\tindex++;\r\n\t\t\t\tvariableIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Add header lines to report\r\n\t\tfile.addLineToTableHeader(table, line1);\r\n\t\tfile.addLineToTableHeader(table, line2);\r\n\t}", "public static void printSolutionTable() {\n\t\tIAWorklist.printSolutionTable();\n\n\t}", "private void writeTableContents(BufferedWriter writer, ISuite suite,\r\n\t\t\tResultTable table) throws IOException {\r\n\r\n\t\tMap<String, ResultVo> dataMap = table.getResultData();\r\n\t\tString closer = \"</tbody></table></div>\";\r\n\t\tdataMap.forEach((key, value) -> {\r\n\t\t\tString datagenerator = \"\";\r\n\t\t\tString message = value.getExpectionMessage() != null ? value\r\n\t\t\t\t\t.getExpectionMessage() : \"\";\r\n\t\t\tSystem.out.println(message);\r\n\t\t\tdatagenerator = \"<tr><td>\" + value.getTestCaeId() + \"</td><td>\"\r\n\t\t\t\t\t+ value.getMethodName() + \"</td><td>\" + value.getPrioirty()\r\n\t\t\t\t\t+ \"</td><td>\" + value.getTotalTime() + \"</td>\";\r\n\r\n\t\t\tswitch (value.getResult().toString()) {\r\n\t\t\tcase \"pass\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#4CAF50;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</td>\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"fail\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#EF5350;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ \"<i class='material-icons' style='font-size: 16px;'>&#xE002;</i><span>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</span></td>\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"skip\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#4FC3F7;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</td>\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\twriter.write(datagenerator);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t});\r\n\t\twriter.write(closer);\r\n\t}", "@Override\n public void saveSolutions() {save solutions in unfolded format in a separate files for each solution (At this time, we have just one solution)\n // The result will print in 3 rows and each row have 4 columns:\n //\n // row1 --> col2\n // row2 --> col1 clo2 col3 col4\n // row2 --> clo2\n //\n //Example (of red cube):\n //\n // oo o\n // ooo\n // ooooo\n // ooo\n // oo\n // o o oo oo oo o\n //oooo ooooo ooo oooo\n // oooo ooo ooooo oooo\n //oooo ooooo ooo oooo\n // o o o oo o\n // o oo\n // oooo\n // oooo\n // oooo\n // oo oo\n //\n String directory = \"output\";\n File dir = new File(directory);\n if (!dir.exists()) dir.mkdirs();\n AtomicInteger counter = new AtomicInteger(1);\n solutions.forEach((number, solutionPuzzle) -> {\n StringBuilder rowStringValue1 = generateRowStringValue(null, solutionPuzzle.getTopPuzzlePiece(), null, null);\n StringBuilder rowStringValue2 = generateRowStringValue(solutionPuzzle.getLeftPuzzlePiece(), solutionPuzzle.getFrontPuzzlePiece(), solutionPuzzle.getRightPuzzlePiece(), solutionPuzzle.getBackPuzzlePiece());\n StringBuilder rowStringValue3 = generateRowStringValue(null, solutionPuzzle.getBottomPuzzlePiece(), null, null);\n Path path = Paths.get(directory + \"/solution\" + counter.getAndIncrement() + \".txt\");\n try (BufferedWriter writer = Files.newBufferedWriter(path)) {\n writer.write(rowStringValue1.append(rowStringValue2).append(rowStringValue3).toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n }", "public void makeReport() throws IOException{\n File report = new File(\"Report.txt\");\n BufferedWriter reportWriter = new BufferedWriter(new FileWriter(report));\n BufferedReader bookReader = new BufferedReader(new FileReader(\"E-Books.txt\"));\n String current;\n while((current = bookReader.readLine()) != null ){\n String[] tokens = current.split(\",\");\n reportWriter.write(tokens[0].trim()+\" for \"+tokens[1].trim()+\" with redemption Code \"+tokens[2].trim()+\n \" is assigned to \"+tokens[4].trim()+\" who is in \"+tokens[5].trim()+\" grade.\");\n reportWriter.write(System.lineSeparator());\n reportWriter.flush();\n }\n reportWriter.close();\n bookReader.close();\n new reportWindow();\n }", "public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }", "protected void generarReporte(String fileNameOut){\n LinkedList datos;\n LinkedList listaHojas;\n frmHoja tmpSheet;\n Clases.Dato tmpDato;\n int numRows = 0;\n int numCols = 0;\n try{\n sw = new FileWriter(fileNameOut,true);\n //obtener lista de hojas desde el workplace\n listaHojas = wp.getListaHojas();\n\n //escribir encabezado de HTML a stream\n sw.write(\"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01 Transitional//EN\\\">\\n\");\n sw.write(\"<html>\\n<head>\\n<meta content=\\\"text/html; charset=ISO-8859-1\\\" http-equiv=\\\"content-type\\\">\\n\");\n sw.write(\"<title>JExcel</title>\\n\");\n sw.write(\"</head>\\n<body>\\n\");\n sw.write(\"<big><span style=\\\"font-weight: bold;\\\">Hoja generada por JExcel</span></big><br>\\n\");\n sw.write(\"<small>Universidad Mariano Gálvez de Guatemala</small><br>\\n<br>\\n\");\n sw.write(\"<small>Extensión Morales Izabal</small><br>\\n<br>\\n\");\n sw.write(\"<small>(C) Amy C. Leiva - 4890-15-</small><br>\\n<br>\\n\");\n // Iterar sobre cada hoja en listaSheets\n for (int i = 0; i < listaHojas.size();i++){\n // obtener maximo numero de datos\n tmpSheet = (frmHoja) listaHojas.get(i);\n\n numRows = tmpSheet.getHoja().getRowCount();\n numCols = tmpSheet.getHoja().getColumnCount();\n sw.write(\"<table style=\\\"text-align: left; width: 100%;\\\" border=\\\"1\\\" cellpadding=\\\"2\\\" cellspacing=\\\"2\\\">\\n\");\n sw.write(\"<tbody>\\n\");\n sw.write(\" <tr> <td colspan=\\\"4\\\" rowspan=\\\"1\\\"><big><span style=\\\"font-weight: bold;\\\">\");\n sw.write(\"Nombre de la Hoja: \" + tmpSheet.getId());\n sw.write(\"</span></big></td>\\n</tr>\\n\");\n sw.write(\" <tr><td>Fila</td><td>Columna</td><td>Expresi&oacute;n</td> <td>Valor Num&eacute;rico</td> </tr>\\n\");\n // obtener lista de datos desde matriz\n if( tmpSheet.getHoja().getTabla().estaVacia() == false){ // si la tabla tiene datos\n datos = tmpSheet.getHoja().getTabla().getSubset(1,1,numCols,numRows);\n //escribir tabla con datos generados\n for (int j = 0; j < datos.size();j++){\n tmpDato = (Clases.Dato) datos.get(j); \n sw.write(\"<tr>\\n\");\n sw.write(\"<td>\" + tmpDato.getRow() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getCol() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getExpr() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.eval() + \"</td>\\n\");\n sw.write(\"</tr>\\n\");\n }\n }\n else{\n sw.write(\"<tr><td colspan=\\\"4\\\" rowspan=\\\"1\\\"> Hoja Vacia... </td></tr>\");\n }\n sw.write(\" </tbody></table>\\n<br><br><br>\");\n // sw.write();\n // sw.write();\n }\n //escribir fin de datos\n sw.write(\"</body></html>\");\n //escribir a archivo de salida\n sw.close();\n }\n catch(Exception e){\n System.out.println(\"No se pudo guardar archivo:\" + e);\n }\n \n }", "void printReport();", "public void writeReport() {\n\t\tint gridSize = 55; // Total character spaces between the borders\n\t\tprint(\"+-------------------------------------------------------+\");\n\t\tprint(String.format(\"|%s|\", centerName(gridSize)));\n\t\tprint(\"+---------------+---------------------------------------+\");\n\t\t/*\n\t\t * Loops through each room in the hotel and prints out the relevant\n\t\t * information on a new line And draws southern, eastern and western\n\t\t * borders to allow it to connect up to the main table.\n\t\t */\n\t\tfor (int i = 0; i < myHotel.getSize(); i++) {\n\t\t\tprint(formatRooms(i).toUpperCase());\n\t\t\tprint(formatAmount(i).toUpperCase());\n\t\t\tprint(formatSleepAmount(i).toUpperCase());\n\t\t\tprint(formatOccupied(i).toUpperCase());\n\t\t\tprint(\"+---------------+---------------------------------------+\");\n\t\t}\n\t\t/*\n\t\t * After every hotel room's information has been displayed The overall\n\t\t * hotel information is displayed such as total occupancy, if there is a\n\t\t * vacancy. And if there is a vacancy, the total amount of free rooms\n\t\t * and beds.\n\t\t */\n\t\tprint(String.format(\"| Hotel\\t\\t|\\tTotal Occupancy:\\t%s\\t|\", getHotel().getTotalOccupancy()).toUpperCase());\n\t\tprint(String.format(\"| information:\\t|\\tHas Vacancies:\\t\\t%s\\t|\", convertBoolean(getHotel().getVacancies()))\n\t\t\t\t.toUpperCase());\n\t\tif (getHotel().getVacancies()) {\n\t\t\tprint(String.format(\"|\\t\\t|\\tVacant Rooms:\\t\\t%s\\t|\", getHotel().getEmptyRooms()).toUpperCase());\n\t\t\tprint(String.format(\"|\\t\\t|\\tVacant Beds:\\t\\t%s\\t|\", getHotel().getTotalVacancy()).toUpperCase());\n\t\t}\n\t\t/*\n\t\t * Draws a final southern border to close the table\n\t\t */\n\t\tprint(\"+---------------+---------------------------------------+\");\n\t}", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "public static ArrayList<String> writeReport(MAESTROptimizer manager, String fileRoute, \r\n\t\t\t\t\t\t\tboolean writeConfig, boolean writeICHist, boolean writeGenHist,\r\n\t\t\t\t\t\t\tboolean writeEliteHist, boolean writeAllSolutions) throws IOException\r\n\t{\r\n\t\tReportFile file = new ReportFile();\r\n\t\t\r\n\t\t// Write header\r\n\t\tfile.addLineToHeader(REPORT_HEADER_1);\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy K:mm:ss a\");\r\n\t\tDate date = new Date(manager.getStartTime());\r\n\t\tfile.addLineToHeader(STARTING_TIME_LABEL + dateFormat.format(date));\r\n date = new Date();\r\n file.addLineToHeader(TERMINATION_TIME_LABEL + dateFormat.format(date));\r\n file.addLineToHeader(SOLUTIONS_LABEL + manager.getSolutionCount());\r\n file.addLineToHeader(TERMINATION_LABEL + manager.getTerminationMessage());\r\n file.addLineToHeader(\"\");\r\n \r\n if(writeConfig)\r\n {\r\n \tString restartElitism = manager.getRestartElitism() == \r\n \t\t\tMAESTROptimizer.RESTART_ELITISM_NO ? \t\tRESTART_ELITISM_NO : \r\n\t \t\t(manager.getRestartElitism() == \r\n\t \t\tMAESTROptimizer.RESTART_ELITISM_ALWAYS ?\tRESTART_ELITISM_ALWAYS :\r\n\t \t\t(manager.getRestartElitism() == \r\n\t \t\tMAESTROptimizer.RESTART_ELITISM_DEPENDS ?\tRESTART_ELITISM_DEPENDS : \"N/A\"));\r\n \t\r\n \t// Add general parameters\r\n\t int paramTable = file.addTable();\r\n\t file.addLineToTableHeader(paramTable, PARAMETERS_TABLE_HEADER);\r\n\t file.addLineToTableBody(paramTable, PARAM_UPDATE_DIST + \"\\t\" \r\n\t \t\t\t\t\t\t\t\t\t\t+ manager.getUpdateDist());\r\n\t file.addLineToTableBody(paramTable, PARAM_GEN_RATIO + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getGenRatio());\r\n\t file.addLineToTableBody(paramTable, PARAM_GEN_MIN + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getGenMin());\r\n\t file.addLineToTableBody(paramTable, PARAM_GEN_WEIGHT_POP + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getGenWeightPop());\r\n\t file.addLineToTableBody(paramTable, PARAM_GEN_WEIGHT_PART1 + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getGenWeightPart1());\r\n\t file.addLineToTableBody(paramTable, PARAM_GEN_WEIGHT_ELITE + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getGenWeightElite());\r\n\t file.addLineToTableBody(paramTable, PARAM_POP_GROWTH_RATE + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getPopGrowthRate());\r\n\t file.addLineToTableBody(paramTable, PARAM_PARTITION_COUNT + \"\\t\" \r\n\t \t\t\t\t\t\t\t\t\t\t+ manager.getPartitionCount());\r\n\t file.addLineToTableBody(paramTable, PARAM_MIN_RARITY_STD + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getMinRarityStd());\r\n\t file.addLineToTableBody(paramTable, PARAM_MAX_RARITY_STD + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getMaxRarityStd());\r\n\t file.addLineToTableBody(paramTable, PARAM_ICT_REFUSE + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getIctRefuse());\r\n\t file.addLineToTableBody(paramTable, PARAM_ICT_UNIFORMITY + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getIctUniformity());\r\n\t file.addLineToTableBody(paramTable, PARAM_RESTART_ELITISM + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ restartElitism);\r\n\t file.addLineToTableBody(paramTable, PARAM_THREAD_COUNT + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getThreadCount());\r\n\t file.addLineToTableBody(paramTable, PARAM_TIME_LIMIT + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getTimeLimit() + \" ms\");\r\n\t file.addLineToTableBody(paramTable, PARAM_SOLUTION_LIMIT + \"\\t\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ manager.getSolutionLimit());\r\n\t file.addLineToTableFooter(paramTable, \"\");\r\n\t \r\n\t // Add generator configuration\r\n\t int genTable = file.addTable();\r\n\t file.addLineToTableHeader(genTable, GENERATORS_TABLE_HEADER);\r\n\t file.addLineToTableHeader(genTable, GENERATORS_ID + \"\\t\" + GEN_TOTAL_ID + \"\\t\" \r\n\t \t\t\t\t\t\t\t\t\t+ PARAMETERS_ID);\r\n\t ArrayList<GenWrapper> generators = manager.getGenerators();\r\n\t for(GenWrapper generator : generators)\r\n\t {\r\n\t \tString line = \"\";\r\n\t \tline += generator.getId() + \" (\" + generator.getShortId() + \")\";\r\n\t \tline += \"\\t\" + generator.getGenTotal();\r\n\t \tline += \"\\t\" + generator.getParamSummary();\r\n\t \tfile.addLineToTableBody(genTable, line);\r\n\t }\r\n\t file.addLineToTableFooter(genTable, \"\");\r\n }\r\n \r\n // Add inner cycle history\r\n if(writeICHist)\r\n {\r\n \tint icHistTable = file.addTable();\r\n \tfile.addLineToTableHeader(icHistTable, IC_HIST_TABLE_HEADER);\r\n \tfile.addLineToTableHeader(icHistTable, INNER_CYCLE_ID + \"\\t\" + POPULATION_ID + \"\\t\" \r\n \t\t\t\t+ SOLUTION_COUNT_ID + \"\\t\" + FOUND_BETTER_ID + \"\\t\" + IC_TERMINATION_ID);\r\n \tArrayList<ICLogEntry> icLog = manager.getICLog();\r\n \tfor(int i = 0 ; i < icLog.size() ; i++)\r\n \t{\r\n \t\tICLogEntry entry = icLog.get(i);\r\n \t\tString line = (i + 1) + \"\";\r\n \t\tline += \"\\t\" + entry.getPopulation();\r\n \t\tline += \"\\t\" + entry.getSolutions();\r\n \t\tline += \"\\t\" + entry.foundBest();\r\n \t\tint term = entry.getTermination();\r\n \t\tline += \"\\t\" + (term == ICLogEntry.REFUSED ? IC_TERM_REFUSE : \r\n \t\t\t\t(term == ICLogEntry.UNIFORMITY ? IC_TERM_UNIFORMITY : IC_TERM_OC_ENDED));\r\n \t\tfile.addLineToTableBody(icHistTable, line);\r\n \t}\r\n \tfile.addLineToTableFooter(icHistTable, \"\");\r\n }\r\n \r\n \t// Add generator use history\r\n if(writeGenHist)\r\n {\r\n \tint genHistTable = file.addTable();\r\n \tfile.addLineToTableHeader(genHistTable, GEN_HIST_TABLE_HEADER);\r\n \tfile.addLineToTableHeader(genHistTable, GENERATION_ID + \"\\t\" + INNER_CYCLE_ID + \"\\t\" \r\n \t\t\t\t\t\t\t\t\t\t+ GENERATORS_ID + \"\\t\" + GEN_SOLUTIONS_ID + \"\\t\" \r\n \t\t\t\t\t\t\t\t\t\t+ GEN_TIME + \"\\t\" + GEN_TIME_PER_SOLUTION);\r\n \tArrayList<String> gens = manager.getGenHist();\r\n \tfor(int i = 0 ; i < gens.size() ; i++)\r\n \t\tfile.addLineToTableBody(genHistTable, (i + 1) + \"\\t\" + gens.get(i));\r\n \tfile.addLineToTableFooter(genHistTable, \"\");\r\n }\r\n \r\n // Add best solutions\r\n TreeSet<SolutionWrapper> bestSolutions = manager.getBestSolutions();\r\n if(bestSolutions != null)\r\n\t if(bestSolutions.size() > 0)\r\n\t {\r\n\t \tint bestTable = file.addTable();\r\n\t \tfile.addLineToTableHeader(bestTable, BEST_SOLUTIONS_TABLE_HEADER);\r\n\t \taddSolutionHeader(manager, bestSolutions.first(), file, bestTable);\r\n\t \tIterator<SolutionWrapper> solutions = bestSolutions.descendingIterator();\r\n\t \taddSolutionList(manager, solutions, file, bestTable);\r\n\t \tfile.addLineToTableFooter(bestTable, \"\");\r\n\t }\r\n \r\n // Add elite solution history\r\n if(writeEliteHist)\r\n {\r\n \tArrayList<SolutionWrapper> eliteHistory = manager.getEliteHistory();\r\n \tif(eliteHistory.size() > 0)\r\n \t{\r\n \t\tint eliteTable = file.addTable();\r\n \t\tfile.addLineToTableHeader(eliteTable, ELITE_SOLUTIONS_TABLE_HEADER);\r\n \t\taddSolutionHeader(manager, eliteHistory.get(0), file, eliteTable);\r\n \t\tIterator<SolutionWrapper> solutions = eliteHistory.iterator();\r\n\t \taddSolutionList(manager, solutions, file, eliteTable);\r\n\t \tfile.addLineToTableFooter(eliteTable, \"\");\r\n \t}\r\n }\r\n \r\n // Add all solutions\r\n if(writeAllSolutions)\r\n {\r\n \tArrayList<SolutionWrapper> allSolutions = manager.getAllSolutions();\r\n \tif(allSolutions.size() > 0)\r\n \t{\r\n \t\tint allTable = file.addTable();\r\n \t\tfile.addLineToTableHeader(allTable, ALL_SOLUTIONS_TABLE_HEADER);\r\n \t\taddSolutionHeader(manager, allSolutions.get(0), file, allTable);\r\n \t\tIterator<SolutionWrapper> solutions = allSolutions.iterator();\r\n\t \taddSolutionList(manager, solutions, file, allTable);\r\n\t \tfile.addLineToTableFooter(allTable, \"\");\r\n \t}\r\n }\r\n \r\n // Save to file\r\n return file.writeFile(fileRoute);\r\n\t}", "public void report() throws IOException {\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\"comparisons.txt\", false));\n\t\tfor (Integer[] data : this.comparisons)\n\t\t\twriter.append(data[0] + \" \" + data[1] + \"\\n\");\n\t\twriter.close();\n\t}", "public void generateTreatmentReports() throws IOException {\r\n\r\n try {\r\n Connection conn = null;\r\n FileWriter fw = new FileWriter(\"treatment.csv\");\r\n mainController iTreat = new mainController();\r\n\r\n conn = iTreat.connectTheDB();\r\n\r\n //msql statement for getting treatment information\r\n //inner joins medicine, department and disease\r\n //uses treatments medicine id to get medicines name\r\n //uses treatments department id to get department name\r\n //uses treatments disease id to ge the name of the dieases\r\n\r\n String insertTreat = \"select treatment.treatmentID, treatment.treatmentName, medicine.medicineName, department.departmentName, disease.diseaseName\\n\" +\r\n \"from treatment inner join medicine on treatment.medicineID = medicine.medicineID\\n\" +\r\n \"inner join department on treatment.departmentID = department.departmentID\\n\" +\r\n \"inner join disease on treatment.diseaseID = disease.diseaseID group by treatmentName ASC;\";\r\n\r\n Statement stmt = conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(insertTreat);\r\n while (rs.next()) {\r\n fw.append(rs.getString(1));\r\n fw.append(',');\r\n fw.append(rs.getString(2));\r\n fw.append(',');\r\n fw.append(rs.getString(3));\r\n fw.append(',');\r\n fw.append(rs.getString(4));\r\n fw.append(',');\r\n fw.append(rs.getString(5));\r\n fw.append('\\n');\r\n }\r\n fw.flush();\r\n fw.close();\r\n conn.close();\r\n System.out.println(\"CSV File is created successfully for treatment information.\");\r\n\r\n\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n }", "public static void outputSolutionsToFile(ArrayList<Edge> solution) {\n\t\tString filename = \"out.txt\", content = new String();\n\t\tfor(Edge i : solution) content += i.p1.x + \" \" + i.p1.y + \" \" + i.p2.x + \" \" + i.p2.y + \"\\n\";\n\t\ttry {\n\t\t\tFileWriter writer = new FileWriter(new File(filename), false);\n writer.write(content);\n writer.close();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"There was an error outputting your solution.\");\n\t\t}\n\t}", "public static void makeTable1() throws FileNotFoundException {\n\n\t\tFile dir = new File(\"testinstances\");\n\t\tFile[] directoryListing = dir.listFiles();\n\t\tPrintStream out = new PrintStream(new FileOutputStream(\"table1.txt\"));\n\t\tSystem.setOut(out);\n\n\t\tif (directoryListing != null) {\n\t\t\tfor (File file : directoryListing) {\n\t\t\t\tSolution s, s2, s3, s4, s5;\n\t\t\t\tProblem p = Parser.parseInstance(file.toString());\n\t\t\t\tProblem p2 = Parser.parseInstance(file.toString());\n\t\t\t\tProblem p3 = Parser.parseInstance(file.toString());\n\t\t\t\tProblem p4 = Parser.parseInstance(file.toString());\n\t\t\t\tProblem p5 = Parser.parseInstance(file.toString());\n\t\t\t\ttry {\n\t\t\t\t\tlong startTime = System.nanoTime();\n\t\t\t\t\ts = TabuSearch.getInitialSolution(p);\n\t\t\t\t\ts2 = TabuSearch.getInitialSolution(p2);\n\t\t\t\t\ts3 = TabuSearch.getInitialSolution(p3);\n\t\t\t\t\ts4 = TabuSearch.getInitialSolution(p4);\n\t\t\t\t\ts5 = TabuSearch.getInitialSolution(p5);\n\t\t\t\t\tlong elapsedTimeNano = (System.nanoTime() - startTime); // in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nanoseconds\n\t\t\t\t\tdouble elapsedTime = ((double) elapsedTimeNano) / 1E9;\n\t\t\t\t\tfloat min = Float.min(s.getCost(), s2.getCost());\n\t\t\t\t\tmin = Float.min(min, s3.getCost());\n\t\t\t\t\tmin = Float.min(min, s4.getCost());\n\t\t\t\t\tmin = Float.min(min, s5.getCost());\n\n\t\t\t\t\tstartTime = System.nanoTime();\n\t\t\t\t\ts = TabuSearch.getInitialSolutionOnlyLeft(p);\n\t\t\t\t\ts2 = TabuSearch.getInitialSolutionOnlyLeft(p2);\n\t\t\t\t\ts3 = TabuSearch.getInitialSolutionOnlyLeft(p3);\n\t\t\t\t\ts4 = TabuSearch.getInitialSolutionOnlyLeft(p4);\n\t\t\t\t\ts5 = TabuSearch.getInitialSolutionOnlyLeft(p5);\n\t\t\t\t\tlong elapsedTime2Nano = (System.nanoTime() - startTime); // in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nanoseconds\n\t\t\t\t\tdouble elapsedTime2 = ((double) elapsedTime2Nano) / 1E9;\n\t\t\t\t\tfloat min2 = Float.min(s.getCost(), s2.getCost());\n\t\t\t\t\tmin2 = Float.min(min2, s3.getCost());\n\t\t\t\t\tmin2 = Float.min(min2, s4.getCost());\n\t\t\t\t\tmin2 = Float.min(min2, s5.getCost());\n\n\t\t\t\t\tSystem.out.println(file.toString().replace(\".txt\", \"\")\n\t\t\t\t\t\t\t+ \" & \" + p.getNumberOfJobs() + \" & \"\n\t\t\t\t\t\t\t+ p.getNumberOfMachines() + \" & \"\n\t\t\t\t\t\t\t+ Math.round(p.getOptimalCost()) + \" & \"\n\t\t\t\t\t\t\t+ Math.round(min) + \" & \" + elapsedTime + \" & \"\n\t\t\t\t\t\t\t+ Math.round(min2) + \" & \" + elapsedTime2 + \"\\\\\\\\\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"error\");\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void writeReport(Collection<HitsHunter> sorted) {\n List<String> resArr = new ArrayList<>(10);\n for (HitsHunter hunter : sorted) {\n var res = Printer.printTotalResult(hunter);\n resArr.add(res);\n }\n CSVWriter.writeInFile(resArr, true);\n }", "public static void rep_WriteResults(String strTemplatePath, String strOutputPath) {\n String strStatus;\n strStatus = \"Pass\";\n intPassCount = 0;\n intFailCount = 0;\n intInfoCount = 0;\n try {\n String reportIn = new String(Files.readAllBytes(Paths.get(strTemplatePath)));\n for (int i = 0; i < details.size(); i++) {\n //if statement to prevent duplication of test step numbers in the report\n if (i == 0) {\n\n\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else if (details.get(i).getResult().equals(\"Step\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=left width=100><font color=\\\"blue\\\">\" + details.get(i).getResult() + \"</font></td><td><font color=\\\"blue\\\">\" +\n details.get(i).getResultText() + \"</font></td></tr>\" + resultPlaceholder);\n\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n\n\n } else if (details.get(i).getintTestStep() == details.get(i - 1).getintTestStep()) {\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n } else {\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else if (details.get(i).getResult().equals(\"Step\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=left width=100><font color=\\\"blue\\\">\" + details.get(i).getResult() + \"</font></td><td><font color=\\\"blue\\\">\" +\n details.get(i).getResultText() + \"</font></td></tr>\" + resultPlaceholder);\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n }\n\n }\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</table>\");\n String currentDate = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\n\n\n String currentTime = CommonFunctionTest.com_CurrentTime();\n String reportPath = strOutputPath + \"\\\\report_\" + currentDate + \"_\" + currentTime + \"_\" + strStatus + \".html\";\n\n Files.write(Paths.get(reportPath), reportIn.getBytes(), StandardOpenOption.CREATE);\n\n } catch (Exception e) {\n System.out.println(\"Error when writing report file:\\n\" + e.toString());\n }\n }", "public static void reportes(){\n try {\n /**Variable necesaria para abrir el archivo creado*/\n Desktop pc=Desktop.getDesktop();\n /**Variables para escribir el documento*/\n File f=new File(\"Reporte_salvajes.html\");\n FileWriter w=new FileWriter(f);\n BufferedWriter bw=new BufferedWriter(w);\n PrintWriter pw=new PrintWriter(bw);\n \n /**Se inicia el documento HTML*/\n pw.write(\"<!DOCTYPE html>\\n\");\n pw.write(\"<html>\\n\");\n pw.write(\"<head>\\n\");\n pw.write(\"<title>Reporte de los Pokemons Salvajes</title>\\n\");\n pw.write(\"<style type=\\\"text/css\\\">\\n\" +\n \"body{\\n\" +\n \"background-color:rgba(117, 235, 148, 1);\\n\" +\n \"text-align: center;\\n\" +\n \"font-family:sans-serif;\\n\" +\n \"}\\n\"\n + \"table{\\n\" +\n\"\t\t\tborder: black 2px solid;\\n\" +\n\"\t\t\tborder-collapse: collapse;\\n\" +\n\" }\\n\"\n + \"#td1{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: skyblue;\\n\" +\n\" }\\n\" +\n\" #td2{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: white;\\n\" +\n\" }\\n\"\n +\"</style>\");\n pw.write(\"<meta charset=\\\"utf-8\\\">\");\n pw.write(\"</head>\\n\");\n /**Inicio del cuerpo*/\n pw.write(\"<body>\\n\");\n /**Título del reporte*/\n pw.write(\"<h1>Reporte de los Pokemons Salvajes</h1>\\n\");\n /**Fecha en que se genero el reporte*/\n pw.write(\"<h3>Documento Creado el \"+fecha.get(Calendar.DAY_OF_MONTH)+\n \"/\"+((int)fecha.get(Calendar.MONTH)+1)+\"/\"+fecha.get(Calendar.YEAR)+\" a las \"\n +fecha.get(Calendar.HOUR)+\":\"+fecha.get(Calendar.MINUTE)+\":\"+fecha.get(Calendar.SECOND)+\"</h3>\\n\");\n \n pw.write(\"<table align=\\\"center\\\">\\n\");\n //Se escriben los títulos de las columnas\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[0]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[1]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[2]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[3]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[4]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[5]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[6]+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n for (int i = 0; i < pokemon.ingresados; i++) {\n //Se determina si el pokemon es salvaje\n if(pokemon.Capturado[i]==false){\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Id[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Tipo[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Nombre[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Vida[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.ptAt[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">Salvaje</td>\\n\");\n //Se determina si el pokemon esta vivo o muerto\n String estado;\n if (pokemon.Estado[i]==true) {\n estado=\"Vivo\";\n }else{estado=\"Muerto\";}\n pw.write(\"<td id=\\\"td2\\\">\"+estado+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n }\n }\n pw.write(\"</table><br>\\n\");\n \n pw.write(\"</body>\\n\");\n pw.write(\"</html>\\n\");\n /**Se finaliza el documento HTML*/\n \n /**Se cierra la capacidad de escribir en el documento*/ \n pw.close();\n /**Se cierra el documento en el programa*/\n bw.close();\n /**Se abre el documento recien creado y guardado*/\n pc.open(f);\n } catch (Exception e) {\n System.err.println(\"Asegurese de haber realizado las actividades previas \"\n + \"relacionadas\");\n }\n }", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "private static void populateTable(Table resultantTable,\n\t\t\tTable tableToAppySelectionOn, ArrayList<Integer> listOfIndices)\n\t\t\tthrows IOException {\n\n\t\t// now write to the .dat file describing the Where clause\n\t\tFileWriter fwr = new FileWriter(resultantTable.tableFilePath, true);\n\t\tBufferedWriter bwr = new BufferedWriter(fwr);\n\n\t\tString tuple;\n\t\tint tupleNo = 0;\n\t\t\n\t\t// this string builder object is used to speed up the processing of writing in files\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tint count = 0;\n\t\t\n\t\twhile ((tuple = tableToAppySelectionOn.returnTuple()) != null) {\n\t\t\t\n\t\t\ttupleNo++;\n\t\t\t// this is the string that I need to write down\n\t\t\tif (listOfIndices.contains(tupleNo)) {\n\t\t\t\t/*bwr.write(tuple);\n\t\t\t\tbwr.write(\"\\n\");\n\t\t\t\tbwr.flush();*/\n\t\t\t\t++count;\n\t\t\t\t// this is the condition when we write in the file, this just corresponds to one I/O\n\t\t\t\tif(count == 100000000){\n\t\t\t\t\tsb.append(tuple + \"\\n\");\n\t\t\t\t\tbwr.write(sb.toString());\n\t\t\t\t\tcount = 0;\n\t\t\t\t\tsb = new StringBuilder(\"\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(tuple + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if the above condition is not satisfied, then just write the string builder to the file\n\t\tcount = 0;\n\t\tbwr.write(sb.toString());\n\t\tsb = null;\n\t\tbwr.close();\n\t}", "public void writeShortSolutionExcel(String file) \n\t{\n\t\t\n\t\t//setup excel file\n\t\tint rowCounter = 0;\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(); // create a book\n\t\tXSSFSheet sheet = workbook.createSheet(\"Sheet1\");// create a sheet\n\t\tXSSFRow curRow = sheet.createRow(rowCounter); // create a row\n\t\t\n\t\t//Problem info\n\t\tcurRow.createCell(0).setCellValue(\"File: \");\n\t\tcurRow.createCell(1).setCellValue(file);\n\t\tcurRow.createCell(2).setCellValue(\"Num Depots: \");\n\t\tcurRow.createCell(3).setCellValue(ProblemInfo.numDepots);\n\t\tcurRow.createCell(4).setCellValue(\"Num Pick Up Points: \");\n\t\tcurRow.createCell(5).setCellValue(ProblemInfo.numCustomers);\n\t\tcurRow.createCell(6).setCellValue(\"Num Trucks: \");\n\t\tcurRow.createCell(7).setCellValue(ProblemInfo.numTrucks);\n\t\tcurRow.createCell(8).setCellValue(\"Processing Time: \");\n\t\tcurRow.createCell(9).setCellValue((endTime - startTime) / 1000);\n\t\tcurRow.createCell(10).setCellValue(\"seconds\");\n\t\t\n\t\t//next row\n\t\trowCounter++;\n\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\n\t\t\n\t\tcurRow.createCell(0).setCellValue(\"Total Demand =\");\n\t\tcurRow.createCell(1).setCellValue(mainDepots.getAttributes().getTotalDemand());\n\t\tcurRow.createCell(2).setCellValue(\"Total Distance =\");\n\t\tcurRow.createCell(3).setCellValue(mainDepots.getAttributes().getTotalDistance());\n\t\tcurRow.createCell(4).setCellValue(\"Total Travel Time =\");\n\t\tcurRow.createCell(5).setCellValue(mainDepots.getAttributes().getTotalTravelTime());\n\t\tcurRow.createCell(6).setCellValue(\"Total Cost = \");\n\t\tcurRow.createCell(7).setCellValue(Math.round(mainDepots.getAttributes().getTotalCost()*100.0)/100.0);\n\t\t\t\n\t\trowCounter++;\n\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\n\t\tDepot depotHead = mainDepots.getHead();\n\t\tDepot depotTail = mainDepots.getTail();\n\t\t\n\t\t//Truck header info\n\t\tcurRow.createCell(0).setCellValue(\"Truck #\");\n\t\tcurRow.createCell(1).setCellValue(\"MaxCap:\");\n\t\tcurRow.createCell(2).setCellValue(\"Demand:\");\n\t\t\n\t\t//loop through Depots, trucks, nodes\n\t\twhile (depotHead != depotTail) \n\t\t{\n\t\t\tTruck truckHead = depotHead.getMainTrucks().getHead();\n\t\t\tTruck truckTail = depotHead.getMainTrucks().getTail();\n\t\t\t\n\t\t\t//print truck data\n\t\t\twhile (truckHead != truckTail) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\trowCounter++;\n\t\t\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcurRow.createCell(1).setCellValue(truckHead.getTruckType().getMaxCapacity());\n\t\t\t\t\tcurRow.createCell(0).setCellValue(truckHead.getTruckNum());\n\t\t\t\t\tcurRow.createCell(2).setCellValue(truckHead.getAttributes().getTotalDemand());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tNodes nodesHead = truckHead.getMainNodes().getHead().getNext();\n\t\t\t\t\tNodes nodesTail = truckHead.getMainNodes().getTail();\n\t\t\t\t\t\n\t\t\t\t\trowCounter++;\n\t\t\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\t\t\n\t\t\t\t\tcurRow.createCell(0).setCellValue(\"ROUTE:\");\n\t\t\t\t\tint cellCount = 1;\n\t\t\t\t\t\n\t\t\t\t\t//print rout data\n\t\t\t\t\twhile (nodesHead != nodesTail) \n\t\t\t\t\t{\n\t\t\t\t\t\tcurRow.createCell(cellCount).setCellValue(nodesHead.getIndex());\n\n\t\t\t\t\t\tcellCount++;\n\t\t\t\t\t\tnodesHead = nodesHead.getNext();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcellCount = 0;\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException ex)\n\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Null truck types detected\");\n\t\t\t\t\t\trowCounter--;\n\t\t\t\t}\n\t\t\t\t\ttruckHead = truckHead.getNext();\n\t\t\t}\n\t\t\tdepotHead = depotHead.getNext();\n\t\t}\n\t\t\t \n\t\t\trowCounter +=2;\n\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\n\t\t\tcurRow.createCell(0).setCellValue(\"optimization Info\");\n\t\t\t\n\t\t\trowCounter ++;\n\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\n\t\t\t//print Optimization information\n\t\t\tfor (int i = 0; i < optInformation.size(); i++) \n\t\t\t{\n\t\t\t\tcurRow.createCell(i).setCellValue(optInformation.elementAt(i).toString());\n\t\t\t}\n\t\t\t\n\t\t\ttry \n\t\t {\n\t\t\t\tFileOutputStream fout = new FileOutputStream(new File(ProblemInfo.outputPath + file + \"_short.xlsx\"));\n\t\t \tworkbook.write(fout); \n\t\t fout.close();\n\t\t } \n\t\t catch (Exception e) \n\t\t { \n\t\t e.printStackTrace(); \n\t\t } \n\t}", "private void downloadReport() {\n // Get Employees and Tasks\n ArrayList<Employee> inUnit = Main.getEmployeesInUnit();\n ArrayList<Task> allTasks = Main.getAllTasks();\n\n // Create BufferedWriter Object\n String fileName = fileDate.format(new Date()) + \"_report.csv\";\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(fileName));\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Filename already exists.\");\n }\n\n try {\n // Write Header\n writer.write(\n \"Task ID,Task Description,Employee ID, Employee Name, WiGrow Needed, Incomplete Scheduling, Exception Report Needed\\n\");\n // Look through employee and their task\n for (int i = 0; i < inUnit.size(); ++i) {\n Employee current = inUnit.get(i);\n for (int j = 0; j < allTasks.size(); ++j) {\n Task currentTask = allTasks.get(j);\n // If found, write to file\n if (currentTask.getEmployees().contains(current)) {\n writer.write(currentTask.getID() + \",\" + currentTask.getDescription() + \",\"\n + current.getId() + \",\" + current.getName() + \",\" + current.isWiGrow() + \",\"\n + current.isScheduling() + \",\" + current.isExceptionReport() + \"\\n\");\n }\n }\n }\n writer.close();\n } catch (IOException e) {\n // Do nothing\n\n }\n // Alert pop up\n Alert downloadSuccess = new Alert(AlertType.NONE, \"Successfully Downloaded Report! It is named \"\n + fileName + \" and is located in your program's local directory.\");\n downloadSuccess.setTitle(\"Download File\");\n downloadSuccess.getButtonTypes().add(ButtonType.OK);\n downloadSuccess.showAndWait();\n }", "public void saveReport() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(reportFile));\n\t\t\tout.println(record.reportToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void output(FileWriter outputFile, Map<Query, List<Evaluation>> evalData, FactDatabase source, FactDatabase target) {\n\t\tPrintWriter out = new PrintWriter(outputFile, true);\n\t\tif(source != null && target != null){\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.third);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tdetermineSource(eval, source, target);\n\t\t\t\t\tout.print(eval.source.toString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.result.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.fact.third);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tout.close();\n\t}", "void outputReport(RandomAccessFile reportFile, boolean last) {\n\n String line1 = \"----+---------+----------+----------+---+----------+\" +\n \"----------+----------+----------+\" +\n \"---------------------------------------------+\";\n String line2 = \"----+---------+------------+----------+---------------------+\" +\n \"---------+----------+----------+--------------------+--------+\" +\n \"-----+-----+-----+\";\n\n if (dbg3) System.out.println(\"outputReport: station.getStationId() = *\" +\n station.getStationId(\"\") + \"*\");\n if (\"\".equals(station.getStationId(\"\"))) { // only done formats 01/02 -> survey data only\n\n //display the survey data }\n //ec.writeFileLine(reportFile, \"----+---------+----------+----------\" +\n // \"+---+----------+----------+----------+----------+----------\" +\n // \"------------------------------+\");\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \"dup.|Survey |Platform | \" +\n \"| | | | | | \" +\n \" |\");\n ec.writeFileLine(reportFile, \"code|Id |Name |Expedition\" +\n \"|Ins|Proj Name |Area Name |Domain |Platform |Notes \" +\n \" |\");\n ec.writeFileLine(reportFile, line1);\n\n ec.writeFileLine(reportFile, surveyStatus + \" |\" + //j24\n ec.frm(survey.getSurveyId(\"\"),9) + \"|\" +\n ec.frm(survey.getPlanam(\"\"),10) + \"|\" +\n ec.frm(survey.getExpnam(\"\"),10) + \"|\" +\n ec.frm(survey.getInstitute(\"\"),03) + \"|\" +\n ec.frm(survey.getPrjnam(\"\"),10) + \"|\" +\n ec.frm(inventory.getAreaname(\"\"),10)+ \"|\" +\n ec.frm(inventory.getDomain(\"\"),10) + \"|\" +\n ec.frm(\" \",10) + \"|\" +\n //survey.getPlatfm() + \"|\" +\n ec.frm(survey.getNotes1(\"\"),45) + \"|\");\n\n // write to station file - keep place for actual output\n if (loadFlag) {\n try {\n stnFile.writeBytes(\"\");\n headerPos1 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos2 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos3 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n } catch (Exception e) {\n ec.processError(e, thisClass, \"outputReport\", \"Header Pos Error\");\n } // try-catch\n } // if (loadFlag)\n\n\n if (surveyLoaded) { // display details of loaded survey //j24\n // get the old inventory record\n MrnInventory tInventory[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n ec.writeFileLine(reportFile, \"lod |\" +\n ec.frm(tSurvey[0].getSurveyId(\"\"),9) + \"|\" +\n ec.frm(tSurvey[0].getPlanam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getExpnam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getInstitute(\"\"),03) + \"|\" + //j24\n ec.frm(tSurvey[0].getPrjnam(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getAreaname(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getDomain(\"\"),10) + \"|\" + //j24\n ec.frm(\" \",10) + \"|\" +\n //tSurvey[0].getPlatfm() + \"|\" + //j24\n ec.frm(tSurvey[0].getNotes1(\"\"),45) + \"|\"); //j24\n } // if (survey_loaded)\n\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \" \");\n\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \"dup.| | | |\" +\n \" | | | |\" +\n \" | | Records |\");\n ec.writeFileLine(reportFile, \"code| Surv Id | Station Id | StnNam |\" +\n \" Date Time GMT | Latitude| Longitude| Subdes(s)|\" +\n \" Sample depth range | StnDep | Tot.| O.K.| Rej |\");\n ec.writeFileLine(reportFile, line2);\n } else { // if (\"\".equals(station.getStationId(\"\")))\n\n\n if (dbg) System.out.println(\"<br>outputReport: tStation.length = \" +\n tStation.length);\n\n int stationSampleOKCount = stationSampleCount - stationSampleRejectCount;\n ec.writeFileLine(reportFile, stationStatusLD + \" |\" + //j24\n ec.frm(\" \",9) + \"|\" +\n ec.frm(station.getStationId(),12) + \"|\" +\n ec.frm(station.getStnnam(),10) + \"| \" +\n //station.getDatum + \"| \" +\n ec.frm(startDateTime,20) + \"|\" +\n ec.frm(station.getLatitude(),9,5) + \"|\" +\n ec.frm(station.getLongitude(),10,5) + \"|\" +\n ec.frm(subdes,10) + \"|\" +\n ec.frm(depthMin + \" to \" + depthMax,20) + \"|\" +\n ec.frm(station.getStndep(),8,2) + \"|\" +\n ec.frm(stationSampleCount,5) + \"|\" +\n ec.frm(stationSampleOKCount,5) + \"|\" +\n ec.frm(stationSampleRejectCount,5) + \"|\");\n if (!loadFlag) {\n ec.writeFileLine(workFile, ec.frm(station.getStationId(),12) +\n ec.frm(stationSampleCount,5));\n } // if (!loadFlag)\n\n if (stationExists) { // || (!\"new\".equals(stationStatusLD))) {\n for (int i = 0; i < tStation.length; i++) {\n int tmpRecordCount = 0;\n if (dataType == CURRENTS) {\n tmpRecordCount = currentsRecordCountArray[i];\n } else if (dataType == SEDIMENT) {\n tmpRecordCount = sedphyRecordCountArray[i];\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpRecordCount = watphyRecordCountArray[i];\n } // if (dataType == CURRENTS)\n\n String subdesLocal = subdesArray[i][0];\n for (int j = 1; j < MAX_SUBDES; j++) {\n subdesLocal += (!\"\".equals(subdesArray[i][j]) ?\n \"/\"+subdesArray[i][j] : \"\");\n } // for int (j = 1; j < MAX_SUBDES; j++)\n if (stationExistsArray[i]) {\n ec.writeFileLine(reportFile, stationStatusDB[i] + \" |\" +\n ec.frm(tStation[i].getSurveyId(),9) + \"|\" +\n ec.frm(tStation[i].getStationId(),12) + \"|\" +\n ec.frm(tStation[i].getStnnam(\"\"),10) + \"| \" +\n //tStation[i].getDateStart(\"\"), \"| \",\n ec.frm(spldattimArray[i],20) + \"|\" +\n ec.frm(tStation[i].getLatitude(),9,5) + \"|\" +\n ec.frm(tStation[i].getLongitude(),10,5) + \"|\" +\n //ec.frm(subdesArray[i],5) + \"|\" +\n ec.frm(subdesLocal,10) + \"|\" +\n ec.frm(loadedDepthMin[i] + \" to \" + loadedDepthMax[i],20) + \"|\" +\n ec.frm(tStation[i].getStndep(),8,2) + \"|\" +\n ec.frm(tmpRecordCount,5) + \"| | |\");\n } // if (stationExistsArray[i])\n } // for (int i = 0; i < tStation.length; i++)\n } // if (stationExists || (!\"new\".equals(stationStatusDB))\n ec.writeFileLine(reportFile, \"\");\n\n // write to station file\n if (loadFlag) {\n ec.writeFileLine(stnFile, \"'\" +\n ec.frm(station.getStationId(\"\"),12) + \"' '\" +\n station.getDateStart(\"\").substring(0,10) + \"' \" +\n ec.frm(station.getLatitude(),11,5) + \" \" +\n ec.frm(station.getLongitude(),11,5) + \" \" +\n ec.frm(ec.nullToNines(station.getStndep(),9999.0f),10,2) + \" '\" +\n ec.frm(station.getStnnam(\"\"),10) + \"'\");\n } // if (loadFlag)\n\n\n if (last) {\n //ec.writeFileLine(reportFile, \"last\");\n\n int sampleOKCount = sampleCount - sampleRejectCount;\n //ec.writeFileLine(reportFile, \"----+------------+----------\" +\n // \"+---------------------+---------+----------+-----+---\" +\n // \"-----------------+--------+-----------------+\");\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \" ^\"); //j24//\n ec.writeFileLine(reportFile, \" |\"); //j24//\n ec.writeFileLine(reportFile, \" +--new = new record\"); //j24//\n ec.writeFileLine(reportFile, \" dup = new record is a duplicate record\"); //j24//\n //ec.writeFileLine(reportFile, \" lod = existing record\"); //j24//\n ec.writeFileLine(reportFile, \" did = duplicate station-id - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dis = duplicate station-id - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dia = duplicate station-id - different SUBDES: data added\");//u02//\n ec.writeFileLine(reportFile, \" dij = ignored station - matched existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dip = data records replaced for existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dsd = duplicate station record - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dss = duplicate station record - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dsa = duplicate station record - different SUBDES: data added\");\n ec.writeFileLine(reportFile, \" dsj = ignored station - matched existing station record - dsd\"); //k46//\n ec.writeFileLine(reportFile, \" dsp = data records replaced for existing station record - dsd\"); //k46//\n\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"This data was \" +\n (loadFlag ? \"loaded\" : \"checked\") + \" with the following ranges:\");\n ec.writeFileLine(reportFile, \" Area: \" + areaRangeVal + \" (decimal degrees)\");\n ec.writeFileLine(reportFile, \" Time: \" + timeRangeVal + \" (minutes)\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \"Closing statistics - survey_id: \" +\n survey.getSurveyId());\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of lines - \" +\n ec.frm(lineCount,6));\n ec.writeFileLine(reportFile, \" Fatal Errors - \" +\n ec.frm(fatalCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of stations - \" +\n ec.frm(stationCount,6));\n ec.writeFileLine(reportFile, \" New - \" +\n ec.frm(newStationCount,6));\n ec.writeFileLine(reportFile, \" Dup - \" +\n ec.frm((stationCount-newStationCount),6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station-id (DI)\");\n ec.writeFileLine(reportFile, \" DI: diff SUBDES (DID) - \" +\n ec.frm(didCount,6));\n ec.writeFileLine(reportFile, \" DI: same SUBDES (DIS) - \" +\n ec.frm(disCount,6));\n ec.writeFileLine(reportFile, \" DI: diff SUBDES added (DIA) - \" +\n ec.frm(diaCount,6));\n ec.writeFileLine(reportFile, \" DI's Rejected (DIJ) - \" +\n ec.frm(dijCount,6));\n ec.writeFileLine(reportFile, \" DI's Replaced (DIP) - \" +\n ec.frm(dipCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station (DS)\");\n ec.writeFileLine(reportFile, \" DS: diff SUBDES (DSD) - \" +\n ec.frm(dsdCount,6));\n ec.writeFileLine(reportFile, \" DS: same SUBDES (DSS) - \" +\n ec.frm(dssCount,6));\n ec.writeFileLine(reportFile, \" DS: diff SUBDES added (DSA) - \" +\n ec.frm(dsaCount,6));\n ec.writeFileLine(reportFile, \" DS's Rejected (DSJ) - \" +\n ec.frm(dsjCount,6));\n ec.writeFileLine(reportFile, \" DS's Replaced (DSP) - \" +\n ec.frm(dspCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of Samples - \" +\n ec.frm(sampleCount,6));\n ec.writeFileLine(reportFile, \" OK - \" +\n ec.frm(sampleOKCount,6));\n ec.writeFileLine(reportFile, \" Rejected - \" +\n ec.frm(sampleRejectCount,6));\n ec.writeFileLine(reportFile, \" \");\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat (\"yyyy-MM-dd\");\n ec.writeFileLine(reportFile, \" date range - \" +\n formatter.format(dateMin) + \" to \" + formatter.format(dateMax));\n ec.writeFileLine(reportFile, \" latitude range - \" +\n ec.frm(latitudeMin,10,5) + \" to \" + ec.frm(latitudeMax,10,5));\n ec.writeFileLine(reportFile, \" longitude range - \" +\n ec.frm(longitudeMin,10,5) + \" to \" + ec.frm(longitudeMax,10,5));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n\n if (loadFlag) {\n ec.writeFileLine(reportFile, \" \");\n\n if (fatalCount > 0) {\n ec.writeFileLine(reportFile,\n \" THERE ARE FATAL ERRORS - THIS LOAD IS UNSUCCESSFUL \");\n ec.writeFileLine(reportFile,\n \" ================================================== \");\n ec.writeFileLine(reportFile,\n \" As some data has been loaded, it is necessary to remove it\\n\" +\n \" by running the 'Delete a survey' option on the SADCO website\\n\" +\n \" located in the 'Marine Database: Admin / Load Data' menu options\");\n } else { // if (fatalCount > 0)\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n ec.writeFileLine(reportFile, \" LOAD SUCCESSFUL \");\n ec.writeFileLine(reportFile, \" =============== \");\n ec.writeFileLine(reportFile, \" date loaded: \" +\n formatter.format(loadDate));\n\n if (dataType != CURRENTS) {\n ec.writeFileLine(reportFile, \" \" + DATA_TYPE[dataType] +\n \" code range - \" + dataCodeStart + \" to \" + dataCodeEnd);\n } // if (dataType != CURRENTS)\n\n ec.writeFileLine(reportFile, \" \");\n if (\"\".equals(passkey)) {\n ec.writeFileLine(reportFile, \" This data is NOT flagged \");\n } else {\n ec.writeFileLine(reportFile, \" This data is FLAGGED \");\n } // if (p_station.passkey is NULL)\n } // if (fatalCount > 0)\n\n // write header to station file\n String lineA =\n \"'MARINE' \" +\n ec.frm((int) latitudeMin,4) +\n ec.frm((int) (latitudeMax+1f),4) +\n ec.frm((int) longitudeMin,4) +\n ec.frm((int) (longitudeMax+1f),4) + \" '\" +\n dateMin.toString().substring(0,10) + \"' '\" +\n dateMax.toString().substring(0,10) + \"' 'STATIONS'\";\n String lineB = \"'\" + survey.getSurveyId(\"\") +\n \"' \" + stationCount + \" '\" +\n platformName + \"' '\" +\n projectName + \"' '\" +\n expeditionName + \"'\";\n String lineC = \"'\" + instituteName + \"'\";\n try {\n stnFile.seek(headerPos1);\n stnFile.writeBytes(lineA);\n stnFile.seek(headerPos2);\n stnFile.writeBytes(lineB);\n stnFile.seek(headerPos3);\n stnFile.writeBytes(lineC);\n } catch (Exception e) {\n System.out.println(\"<br>\" + thisClass +\n \".printHeader: Write Error: \" + e.getMessage());\n e.printStackTrace();\n } // try-catch\n\n } // if (loadflag)\n\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n String text = (loadFlag ? \"loaded\" : \"checked\");\n ec.writeFileLine(reportFile, \" date \" + text + \": \" +\n formatter.format(loadDate));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n } // if (last)\n\n } // if (\"\".equals(station.getStationId(\"\")))\n\n\n //ec.writeFileLine(reportFile, message);\n //if (dbg) System.out.println(\"outputReport: message = \" + message);\n // output to screen or file\n }", "private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }", "public static void printReport() throws Exception\r\n\t{\n\t\tFile file=new File(\"Data/Peopledetails.txt\");\r\n\t\tfs=new Scanner(file);\r\n\t\tfs.useDelimiter(\",|\\\\r\\n\");\r\n\t\t\r\n\t\t//Print out headers for table\r\n\t\tSystem.out.printf(\"%5s%20s%10s%15s%20s%15s%15s%20s%10s%20s%10s\\n\\n\", \r\n\t\t\t\t\"ID\", \"Name\", \"Gender\", \"Hourly Rate\", \"Contracted Hours\",\t\"Gross Pay\", \r\n\t\t\t\t\"Income Tax\", \"National Insurance\", \"Pension\", \"Total Deductions\", \"Net pay\");\r\n\t\t\r\n\t\twhile (fs.hasNext())\r\n\t\t{\r\n\t\t\tid=fs.nextInt();\r\n\t\t\tfname=fs.next();\r\n\t\t\tsname=fs.next();\r\n\t\t\tgen=fs.next();\r\n\t\t\thrate=fs.nextDouble();\r\n\t\t\thrs=fs.nextDouble();\r\n\t\t\t\t\t\t\r\n\t\t\tgross=hrs*hrate;\r\n\t\t\t\t\t\t\r\n\t\t\t//Calculates the overtime\r\n\t\t\tif(hrs>40)\r\n\t\t\t{\r\n\t\t\t\totime=hrs-40;\r\n\t\t\t\tstandard=40;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\totime=0;\r\n\t\t\t\tstandard=hrs;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgross=(standard*hrate+otime*hrate*1.5);\r\n\t\t\t\r\n\t\t\t//Calculates the annual gross in order to calculate the income tax per week\r\n\t\t\tannualgross=gross*52;\r\n\t\t\t\r\n\t\t\t//Calculates Income Tax\r\n\t\t\tdouble p,b,h,a;\r\n\t\t\t\r\n\t\t\tif(annualgross<=12500)\r\n\t\t\t{\r\n\t\t\t\tp=0;\r\n\t\t\t\tb=0;\r\n\t\t\t\th=0;\r\n\t\t\t\ta=0;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>12500 && annualgross<=50000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t\tb = annualgross - 12500;\r\n\t\t\t\th = 0;\r\n\t\t\t\ta = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse if(annualgross>50000 && annualgross<=150000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t b = 37500;\r\n\t\t\t h = annualgross - 50000;\r\n\t\t\t a = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t p = 12500;\r\n\t\t b = 37500;\r\n\t\t h = 100000;\r\n\t\t a = annualgross - 150000;\r\n\r\n\t\t\t}\r\n\t\t\ttax= (p * 0 + b * 0.2 + h * 0.4 + a * 0.45)/52;\r\n\t\t\t\r\n\t\t\t//Calculates National Insurance Contribution\r\n\t\t\tif(annualgross>8500 && annualgross<50000)\r\n\t\t\t{\r\n\t\t\t\tnirate=0.12;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnirate=0.02;\r\n\t\t\t}\r\n\t\t\tnitax=gross*nirate;\r\n\t\t\t\r\n\t\t\t//Calculates Pension Contribution\r\n\t\t\tif(annualgross<27698)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.074;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=27698 && annualgross<37285)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.086;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=37285 && annualgross<44209)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.096;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.117;\r\n\t\t\t}\r\n\t\t\tpension=gross*penrate;\r\n\t\t\t\r\n\t\t\t//Calculates total deductions\r\n\t\t\tdeduct=tax+nitax+pension;\r\n\t\t\t\r\n\t\t\t//Calculates net pay\r\n\t\t\tnet=gross-deduct;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.printf(\"%5d%20s%10s%15.2f%20.2f%15.2f%15.2f%15.2f%15.2f%20.2f%10.2f\\n\",\r\n\t\t\t\t\tid, fname+\" \"+sname, gen, hrate, hrs, gross, tax, nitax, pension, deduct, net);\r\n\t\t}\r\n\t\tfs.close();\r\n\t\t\r\n\t}", "protected void writeReportFile(String sPathTemplate, QueryHandler handler)\n {\n char cDelim = getDelim();\n String sDesc = getDescTemplate();\n File fileOut = getFile(sPathTemplate);\n PrintStream streamOut = getPrintStream(fileOut);\n List listDisplay = m_listDisplay;\n\n // Write out report description and headers for new output files\n if (m_fHeaders && fileOut.length() == 0)\n {\n sDesc = replaceMacros(sDesc, null);\n if (sDesc.length() > 0)\n {\n writeDescription(streamOut, sDesc);\n }\n writeHeader(streamOut, listDisplay, cDelim);\n }\n\n boolean fDetail = false; // true if any column's value is row dependent\n for (Iterator iterCol = listDisplay.iterator(); iterCol.hasNext();)\n {\n ReportColumnView columnView = (ReportColumnView) iterCol.next();\n if (columnView != null)\n {\n fDetail |= columnView.isRowDetail() && columnView.isVisible();\n }\n }\n\n if (fDetail)\n {\n // write the details;\n for (Iterator iter = handler.getGroupKeys().iterator(); iter.hasNext(); )\n {\n writeDetail(streamOut, listDisplay, iter.next(), cDelim);\n }\n }\n else\n {\n // Write the aggregates and constants only\n Iterator iter = handler.getGroupKeys().iterator();\n\n // group-keys are row identifiers; any row will do for aggregates\n Object oFirstKey = iter.hasNext()\n ? iter.next()\n : null;\n\n writeDetail(streamOut, listDisplay, oFirstKey, cDelim);\n }\n streamOut.close();\n }", "public static void makeTable2() throws FileNotFoundException {\n\t\tFile dir = new File(\"testinstances\");\n\t\tFile[] directoryListing = dir.listFiles();\n\n\t\tPrintStream out = new PrintStream(new FileOutputStream(\"table2.txt\"));\n\t\tSystem.setOut(out);\n\n\t\tif (directoryListing != null) {\n\t\t\tString res = \"\";\n\t\t\tfor (File file : directoryListing) {\n\t\t\t\ttry {\n\t\t\t\t\tfloat best = Integer.MAX_VALUE;\n\t\t\t\t\tdouble longestTime = Double.MIN_VALUE;\n\t\t\t\t\tfloat sumCosts = 0;\n\t\t\t\t\tdouble sumTimes = 0;\n\n\t\t\t\t\tProblem p = Parser.parseInstance(file.toString());\n\t\t\t\t\tfloat optimum = p.getOptimalCost();\n\t\t\t\t\tString name = file.toString().replace(\".txt\", \"\");\n\n\t\t\t\t\tres = name.replace(\"testinstances/\", \"\") + \" & \"\n\t\t\t\t\t\t\t+ p.getNumberOfJobs() + \" & \"\n\t\t\t\t\t\t\t+ p.getNumberOfMachines() + \" & \"\n\t\t\t\t\t\t\t+ Math.round(p.getOptimalCost());\n\n\t\t\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\t\t\tlong startTime = System.nanoTime();\n\t\t\t\t\t\tSolution s = TabuSearch.tabuSearch(p);\n\t\t\t\t\t\tlong elapsedTimeNano = (System.nanoTime() - startTime);\n\t\t\t\t\t\tdouble elapsedTime = ((double) elapsedTimeNano) / 1E9;\n\t\t\t\t\t\tfloat c = s.getCost();\n\n\t\t\t\t\t\tif (c < best)\n\t\t\t\t\t\t\tbest = c;\n\t\t\t\t\t\tif (elapsedTime > longestTime) {\n\t\t\t\t\t\t\tlongestTime = elapsedTime;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsumCosts += c;\n\t\t\t\t\t\tsumTimes += elapsedTime;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tres += \" & \" + Math.round(best);\n\t\t\t\t\tif (optimum != -1) {\n\t\t\t\t\t\tfloat delta = best - optimum;\n\t\t\t\t\t\tres += \" & \" + delta / optimum * 100; // Delta Z %\n\t\t\t\t\t}\n\n\t\t\t\t\tres += \" & \" + sumCosts / 5; // Z_av\n\t\t\t\t\tres += \" & \" + sumTimes / 5; // T_av\n\t\t\t\t\tres += \" & \" + longestTime; // T_max\n\t\t\t\t\tres += \" \\\\\\\\\"; // new line in LaTeX table\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t} finally {\n\t\t\t\t\tSystem.out.println(res);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void generarReporteTablaAmortiDetalles(String sAccionBusqueda,List<TablaAmortiDetalle> tablaamortidetallesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalleMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TablaAmortiDetalleMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tabla Amortizacion Detalles\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TablaAmortiDetalleConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTablaAmortiDetalle=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTablaAmortiDetalle=new JRBeanArrayDataSource(TablaAmortiDetalleJInternalFrame.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTablaAmortiDetalle);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TablaAmortiDetalleConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TablaAmortiDetalleConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TablaAmortiDetalleBean.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTablaAmortiDetalleActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void writeLongSolutionToExcel(String file) {\n\t\ttry {\n\t\t\t// setting up workbook, row 1 information\n\t\t\tXSSFWorkbook workbook = new XSSFWorkbook();\n\t\t\tPrintStream fos = new PrintStream(new FileOutputStream(ProblemInfo.outputPath + file + \"_long.xlsx\"));\n\t\t\tXSSFSheet sheet = workbook.createSheet(\"Sheet1\");\n\t\t\tXSSFRow row1 = sheet.createRow(0);\n\t\t\trow1.createCell(0).setCellValue(ProblemInfo.numDepots); \n\t\t\t\n\t\t\t// row 2 information, depot information(?)\n\t\t\tXSSFRow row2 = sheet.createRow(1);\n\n\t\t\trow2.createCell(1).setCellValue(mainDepots.getTSPHead().getNext().getXCoord()); // depot location x\n\t\t\trow2.createCell(2).setCellValue(mainDepots.getTSPHead().getNext().getYCoord()); // depot location y\n\t\t\trow2.createCell(3).setCellValue(mainDepots.getAttributes().getTotalDemand());\n\t\t\trow2.createCell(4).setCellValue(mainDepots.getAttributes().getTotalDistance());\n\t\t\trow2.createCell(5).setCellValue(ProblemInfo.noOfVehs);\n\t\t\t\n\t\t\t// row 3 information, truck information(?)\n\t\t\tXSSFRow row3 = sheet.createRow(2);\n\t\t\trow3.createCell(0).setCellValue(mainDepots.getTSPHead().getNext().getMainTrucks().getHead().getNext().getTruckNum()); // what is this\n\t\t\trow3.createCell(1).setCellValue(mainDepots.getNumTrucksUsed());\n\t\t\trow3.createCell(2).setCellValue(mainDepots.getHead().getNext().getMainTrucks().getHead().getNext().getAttributes().getTotalDemand());\n\t\t\trow3.createCell(3).setCellValue(mainDepots.getAttributes().getTotalCost());\n\t\t\trow3.createCell(4).setCellValue(mainDepots.getHead().getNext().getMainTrucks().getHead().getNext().getTruckType().getMaxDuration());\n\t\t\trow3.createCell(5).setCellValue(mainDepots.getHead().getNext().getMainTrucks().getHead().getNext().getTruckType().getMaxCapacity());\n\t\t\trow3.createCell(6).setCellValue(ProblemInfo.noOfShips);\n\t\t\t\n\t\t\tint curRow = 3;\n\t\t\tDepot depotHead = mainDepots.getHead();\n\t\t\tDepot depotTail = mainDepots.getTail();\n\t\t\t\n\t\t\t// depots\n\t\t\twhile (depotHead != depotTail) {\n\t\t\t\tTruck truckHead = depotHead.getMainTrucks().getHead();\n\t\t\t\tTruck truckTail = depotHead.getMainTrucks().getTail();\n\t\t\t\t\n\t\t\t\t// trucks\n\t\t\t\twhile (truckHead != truckTail) {\n\t\t\t\t\tNodes nodesHead = truckHead.getMainNodes().getHead().getNext();\n\t\t\t\t\tNodes nodesTail = truckHead.getMainNodes().getTail();\n\t\t\t\t\t\n\t\t\t\t\t// nodes\n\t\t\t\t\twhile (nodesHead != nodesTail) {\n\t\t\t\t\t\tXSSFRow newRow = sheet.createRow(curRow);\n\t\t\t\t\t\tint isAssigned = (nodesHead) != null ? 1 : 0;\n\t\t\t\t\t\tnewRow.createCell(0).setCellValue(nodesHead.getIndex());\n\t\t\t\t\t\tnewRow.createCell(1).setCellValue(nodesHead.getShipment().getDemand());\n\t\t\t\t\t\tnewRow.createCell(2).setCellValue(nodesHead.getShipment().getXCoord());\n\t\t\t\t\t\tnewRow.createCell(3).setCellValue(nodesHead.getShipment().getYCoord());\n\t\t\t\t\t\tnewRow.createCell(4).setCellValue(isAssigned);\n\t\t\t\t\t\tcurRow++;\n\t\t\t\t\t\tnodesHead = nodesHead.getNext();\n\t\t\t\t\t}\n\t\t\t\ttruckHead = truckHead.getNext();\n\t\t\t\t}\n\t\t\tdepotHead = depotHead.getNext();\n\t\t\t}\n\t\tworkbook.write(fos);\n\t\tfos.close();\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t}", "private void writeFinalReports() {\n\t\tSystem.out.println(\"Printing data to output files ...\");\n\t\twritePropertyData();\n\t\twriteClassData();\n\t\tSystem.out.println(\"Finished printing data.\");\n\t}", "public void makeReport()\n\t{\n\t\tif (currentStage[currentSlice-1] > 1)\n\t\t{\n\t\t\tResultsTable rt = new ResultsTable();\n\t\t\tfor (int j=0;j<popSequence.N;j++)\n\t\t\t{\n\t\t\t\tpop = popSequence.PopList[j];\n\t\t\t\tint N = pop.N;\n\t\t\t\tfor (int i=0;i<N;i++)\n\t\t\t\t{\n\t\t\t\t\trt.incrementCounter();\n\t\t\t\t\tBalloon bal;\n\t\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\t\tbal.mass_geometry();\n\t\t\t\t\trt.addValue(\"X\",bal.x0);\n\t\t\t\t\trt.addValue(\"Y\",bal.y0);\n\t\t\t\t\trt.addValue(\"Z\",j);\n\t\t\t\t\trt.addValue(\"ID\",bal.id);\n\t\t\t\t\trt.addValue(\"AREA\",bal.area);\n\t\t\t\t\trt.addValue(\"Ixx\",bal.Ixx);\n\t\t\t\t\trt.addValue(\"Iyy\",bal.Iyy);\n\t\t\t\t\trt.addValue(\"Ixy\",bal.Ixy);\n\t\t\t\t\trt.addValue(\"Lx\",bal.lx);\n\t\t\t\t\trt.addValue(\"Ly\",bal.ly);\n\t\t\t\t}\n\t\t\t}\n\t\t\trt.show(\"Report\");\n\t\t\tcurrentSlice = i1.getCurrentSlice();\n\t\t\tipWallSegment = (i1.getStack()).getProcessor(i1.getCurrentSlice());\n\t\t\tpop = popSequence.PopList[currentSlice-1];\n\t\t}\n\t}", "public void detailReport() {\r\n\t\tint testStepId = 1;\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><table class=\\\"width100\\\"><tr><td><div class=\\\"headertext1 bold\\\">Test Execution Detail Report</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Execution Browser Name: \"+ GlobalVariables.getBrowserName() + \"</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Test Case Name: \"+ GlobalVariables.getTestCaseName() + \"</div></td></tr>\");\r\n\t\t\r\n\t\t\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\\\"reporttable width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><th class=\\\"auto-style1\\\">Test Step No</th>\" + \"<th class=\\\"auto-style2\\\">Action</th>\"\r\n\t\t\t\t+ \"<th class=\\\"auto-style3\\\">Actual Result</th>\" + \"<th class=\\\"auto-style4\\\">Status</th></tr>\");\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 green\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 red\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\"</table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td></tr></table></body></html>\");\r\n\t}", "public static void sauvegarder(TableauRecords tableauRecords) {\n File file = new File(HIGHSCORES_FILE);\n PrintWriter writer;\n\n try {\n if(!file.exists()) {\n file.getParentFile().mkdirs();\n file.createNewFile();\n }\n writer = new PrintWriter(file);\n }\n catch (Exception e) {\n e.printStackTrace();\n return;\n }\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n for(Record record : tableauRecords) {\n writer.print(record.getNom() + \"\\t\" + record.getScore() + \"\\t\" + sdf.format(record.getDate()) + \"\\n\");\n }\n\n writer.close();\n }", "private static void writeResults() {\n\t\t//Sort hashMap before sending to file\n\t\tTreeSet<Word> mySet = new TreeSet<>(hm.values());\n\n\t\t//Create result.txt file and write treeMap out to it\n\t\tWriter writer = null;\n\t\ttry {\n\t\t\t//System.out.println(\"Here\");\n\t\t\twriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"output\\\\results.txt\")));\n\t\t\tfor (Word word : mySet) {\n\t\t\t\twriter.write(word.getValue() + \"\\t\" + word.getCount() + \"\\n\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\twriter.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void Report() throws IOException {\n\t\tFile outputFile = new File(outputPath);\n\n\t\tif(!outputFile.exists()) {\n\t\t\toutputFile.createNewFile();\n\t\t}\n\t\t\n\t\tFileWriter writer = new FileWriter(outputPath);\n\t\tLinkedHashMap<Word, Integer> sortedResult = sortByValue();\n\t\tfloat frequency;\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(Map.Entry<Word, Integer> entry: sortedResult.entrySet()) {\n\t\t\tsb.setLength(0);\n\t\t\t\n\t\t\tfor(char c: entry.getKey().getCharacters()) {\n\t\t\t\tsb.append(c + \", \");\n\t\t\t}\n\t\t\t\n\t\t\tsb.delete(sb.length()-2, sb.length());\n\t\t\tfrequency = (float)entry.getValue()/(float)total_targets;\n\t\t\twriter.write(\"{(\" + sb.toString() + \"), \" + entry.getKey().getLength() +\n\t\t\t\t\t\t\t\"} = \" + String.format(\"%.2f\",Math.round(frequency * 100.0) / 100.0) +\n\t\t\t\t\t\t\t\" (\" + entry.getValue() + \"/\" + total_targets + \")\\n\");\n\t\t\t\n\t\t\tSystem.out.println(\"{(\" + sb.toString() + \"), \" + entry.getKey().getLength() +\n\t\t\t\t\t\t\t\t\"} = \" + String.format(\"%.2f\",Math.round(frequency * 100.0) / 100.0) +\n\t\t\t\t\t\t\t\t\" (\" + entry.getValue() + \"/\" + total_targets + \")\");\n\t\t}\n\t\tfrequency = (float)total_targets/(float)total;\n\t\t\n\t\tSystem.out.println(\"TOTAL Frequency: \" + Math.round(frequency * 100.0) / 100.0 + \"(\" + total_targets + \"/\" + total + \")\");\n\t\twriter.write(\"TOTAL Frequency: \" + Math.round(frequency * 100.0) / 100.0 + \"(\" + total_targets + \"/\" + total + \")\\n\");\n\t\t\n\t\twriter.close();\n\t}", "public void writeList()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tPrintWriter writer = new PrintWriter(categoryName + \".txt\");\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < questions.size(); i++) // go through ArrayList\r\n\t\t\t{\r\n\t\t\t\twriter.println(questions.get(i).getQuestion() + \",\" + \r\n\t\t\t\t\t\t\t\t questions.get(i).getAnswer1() + \",\" +\r\n\t\t\t\t\t\t\t\t questions.get(i).getAnswer2() + \",\" +\r\n\t\t\t\t\t\t\t\t questions.get(i).getAnswer3() + \",\" +\r\n\t\t\t\t\t\t\t\t questions.get(i).getAnswer4() + \",\" +\r\n\t\t\t\t\t\t\t\t questions.get(i).getCorrectAnswer());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twriter.close();\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(FileNotFoundException fnf)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"File was not found\");\r\n\t\t}\r\n\t}", "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}", "public FileOutputStream generateFinance14Report(List<Finance14Dto> Finance14DtoList,String fileName) throws IOException, ClassNotFoundException, SQLException {\n\t\tFile file=new File(fileName);\n\n\t\tString sheetName = \"Sheet1\";// name of sheet\n\n//\t\tResultSet resultSet = getDatabase(villageId,yearmonth);\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(); \n\t XSSFSheet spreadsheet = workbook\n\t \t .createSheet(sheetName);\n\t \t XSSFRow row=spreadsheet.createRow(1);\n\t \t /* XSSFRow row1 = spreadsheet.createRow(2);*/\n\t \t XSSFCell cell;\n\t \t cell=row.createCell(1);\n\t \t cell.setCellValue(\"vid\");\n\t \t cell=row.createCell(2);\n\t \t cell.setCellValue(\"month\");\n\t \t cell=row.createCell(3);\n\t \t cell.setCellValue(\"year\");\n\t \t cell=row.createCell(4);\n\t \t cell.setCellValue(\"Total work\");\n\t \t cell=row.createCell(5);\n\t \t cell.setCellValue(\"Works approved\");\n\t \t cell=row.createCell(6);\n\t \t cell.setCellValue(\"Project not started\");\n\t \t cell=row.createCell(7);\n\t \t cell.setCellValue(\"Progress\");\n\t \t cell=row.createCell(8);\n\t \t cell.setCellValue(\"Completed\");\n\t \t cell=row.createCell(9);\n\t \t cell.setCellValue(\"Grant allocated\");\n\t \t cell=row.createCell(10);\n\t \t cell.setCellValue(\"Amount spent\");\n\t \t /* cell=row.createCell(11);\n\t \t cell.setCellValue(\"entry date\");*/\n\t \t \n\t \t int i=2;\n\t \t for(Finance14Dto finance14Dto:Finance14DtoList)\n//\t \t while(resultSet.next())\n\t \t {\n\t \t row=spreadsheet.createRow(i);\n\t \t /* row1=spreadsheet.createRow(i+1);*/\n\t \t cell=row.createCell(1);\n\t \t cell.setCellValue(finance14Dto.getVillageId());\n\t \t cell=row.createCell(2);\n\t \t cell.setCellValue(finance14Dto.getMonth());\n\t \t cell=row.createCell(3);\n\t \t cell.setCellValue(finance14Dto.getYear());\n//\t \t /* spreadsheet.addMergedRegion(new CellRangeAddress(3, 3, 4, 4));*/\n\t \t cell=row.createCell(4);\n\t \t cell.setCellValue(finance14Dto.getTotalWork());\n\t \t cell=row.createCell(5);\n\t \t cell.setCellValue(finance14Dto.getWorksApproved());\n\t \t cell=row.createCell(6);\n\t \t cell.setCellValue(finance14Dto.getProjectNotStarted());\n\t \t cell=row.createCell(7);\n\t \t cell.setCellValue(finance14Dto.getProgress());\n\t \t cell=row.createCell(8);\n\t \t cell.setCellValue(finance14Dto.getCompleted());\n\t \t cell=row.createCell(9);\n\t \t cell.setCellValue(finance14Dto.getGrantAllocated());\n\t \t cell=row.createCell(10);\n\t \t cell.setCellValue(finance14Dto.getAmountSpent());\n\t \t /*cell=row.createCell(11);\n\t \t cell.setCellValue(finance14Dto.getEntryDate());*/\n\t \t i++;\n\t \t }\n\t \t FileOutputStream out = new FileOutputStream(\n\t \t file);\n\t \t workbook.write(out);\n\t \t out.close();\n\t \t System.out.println(\n\t \t \"exceldatabase.xlsx written successfully\");\n\t \t \n\t \treturn out;\n\t}", "public void populationToCSV() {\n\t\tfor (RSolution<?> sol : population) {\n\t\t\tString line = this.getName() + ',' + this.getProblem().getName() + ',' + sol.objectiveToCSV();\n\t\t\tnew FileUtils().solutionDumpToCSV(line);\n\t\t}\n\t}", "private void toSave() {\n File file4=new File(\"trial.txt\");\n try\n {\n String row;\n BufferedWriter bw=new BufferedWriter(new FileWriter(file4));\n for(int i=0;i<jt.getRowCount();i++)\n {\n row = \"\";\n for(int j=0;j<jt.getColumnCount();j++)\n {\n row += (jt.getValueAt(i, j) +\",\");\n }\n row = row.substring(0, row.length()-1);\n //System.out.println(row);\n bw.write(row);\n bw.newLine();\n }\n bw.close();\n \n \n JOptionPane.showMessageDialog(rootPane,\"Details saved succesfully\");\n }\n \n catch(Exception ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Exception occured\");\n }\n }", "static void outputComparisonTable(double [][]satisfactionRate) {\n \tSystem.out.print(\"\\t\");\n \tfor (int i = 0; i < satisfactionRate[0].length; i++) {\n\t\t\tSystem.out.print(\"run \" + (i+1) + \"\\t \");\n\t\t}\n \tSystem.out.println();\n \tfor (int i = 0; i < satisfactionRate.length; i++) {\n \t\tSystem.out.print((i+1) + \" vans\\t \");\n\t\t\tfor (int j = 0; j < satisfactionRate[i].length; j++) {\n\t\t\t\tSystem.out.print(((int)satisfactionRate[i][j]) + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n }", "private void buildReport() throws IOException {\n try (InputStream template = Thread.currentThread().getContextClassLoader().getResourceAsStream(TEMPLATE_DIR + \"/\" + TEMPLATE_NAME)) {\n reportDoc = Jsoup.parse(template, null, \"\");\n Element diffReportContainer = reportDoc.select(\".diffReport\").first();\n Element diffResultTable = diffReportContainer.select(\".diffResult\").first().clone();\n\n diffReportContainer.empty();\n\n for (SimpleImmutableEntry<String, List<File>> diffResult : fileDiffResults) {\n diffReportContainer.appendChild(getDiffTable(diffResultTable, diffResult));\n }\n }\n }", "boolean generateReport();", "public void writeToFile(String outputName) throws Exception{\n if (trials == null || data == null) throw new Exception(\"Must read marker and data file before writing it out\");\n BufferedWriter bw = new BufferedWriter(new FileWriter(outputName));\n \n //.. write out the headers\n for (int i= FIRSTPROBEINDEX; i < header.length; i++) {\n bw.write(header[i]);\n bw.write(\",\");\n }\n \n //.. write out condition\n bw.write(\"condition\");\n \n bw.write(\"\\n\");\n int rowNum =0;\n \n //.. write out actual data\n for (String [] row : data) {\n if (row.length!= header.length) System.out.println(\"Row has \" + row.length + \" whereas header has \" + header.length);\n String label =null;\n for (int i = FIRSTPROBEINDEX; i < row.length; i++) {\n label = getLabel(rowNum); //.. will be null if it doesn't exist\n \n if (label != null ) {\n bw.write(row[i]);\n bw.write(\",\");\n }\n }\n if (label!=null) {\n //System.out.println(\"Writing \" + getLabel(rowNum));\n String condition = getLabel(rowNum);\n bw.write(condition);\n bw.write(\"\\n\");\n \n //.. this is a hack since my program gives an error if a conditon jsut has one line\n if (condition.equals(\"passed\")) duplicateLastLine(bw, row, condition,20 );\n \n }\n rowNum++;\n }\n \n bw.close();\n }", "public static void writeDtaToSdf(PrintWriter writer, List<StructureDetailsTabDTO> structureDetailsTabDTOList, List<ReferenceTabDTO> referenceTabDTOList, List<AssayTabDTO> assayTabDTOList, List<ActivityTabDTO> activityTabDTOList) {\n\n try {\n Mail mail = new Mail();\n //molecule create\n Molecule molecule = new Molecule();\n\n MolExporter molExporter = null;\n\n StringBuffer stringBuffer = new StringBuffer();\n\n String s1 = \"\";\n\n for (StructureDetailsTabDTO structureTabDataReturn : structureDetailsTabDTOList) {\n chemaxon.util.MolHandler mol = new chemaxon.util.MolHandler(structureTabDataReturn.getSubSmiles());\n System.out.println(\"inside the for loop of the for the check the subsmiles\");\n mol.aromatize();\n molecule = mol.getMolecule();\n\n s1 = molExporter.exportToFormat(molecule, \"mol\");\n\n stringBuffer.append(s1);\n stringBuffer.append(\"> <\" + \"SUB_SMILES\" + \">\" + \"\\n\");\n stringBuffer.append(structureTabDataReturn.getSubSmiles() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"GVK_ID\" + \">\" + \"\\n\");\n stringBuffer.append(structureTabDataReturn.getGvkId() + \"\\n\\n\");\n\n for (ReferenceTabDTO referenceTabDTO : referenceTabDTOList) {\n stringBuffer.append(\"> <\" + \"journal_patent_name\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getJournalPatentName() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"year\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getYear() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"volume\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getVolume() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"issue\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getIssue() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"start_page\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getStartPage() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"end_page\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getEndPage() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"reference\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getReference() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"pubmed_id\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getPubmedId() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"issn_no\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getIssnNo() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"title\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getTitle() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"company_name\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getCompanyNames() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"company_address\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getCompanyAddresses() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"authors\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getAuthors() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"ref_type\" + \">\" + \"\\n\");\n stringBuffer.append(referenceTabDTO.getRefType() + \"\\n\\n\");\n System.out.println(\"test the of the reference tab data\" + stringBuffer.toString());\n\n }\n for (AssayTabDTO assayTabDTO : assayTabDTOList) {\n stringBuffer.append(\"> <\" + \"wild_type\" + \">\" + \"\\n\");\n stringBuffer.append(assayTabDTO.getWildType() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"mutant\" + \">\" + \"\\n\");\n stringBuffer.append(assayTabDTO.getMutant() + \"\\n\\n\");\n System.out.println(\"test the of the Assay tab data\" + stringBuffer.toString());\n\n }\n\n for (ActivityTabDTO activityTabDTO : activityTabDTOList) {\n stringBuffer.append(\"> <\" + \"common_name\" + \">\" + \"\\n\");\n stringBuffer.append(activityTabDTO.getCommonName() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"source\" + \">\" + \"\\n\");\n stringBuffer.append(activityTabDTO.getSource() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"std_activity_type\" + \">\" + \"\\n\");\n stringBuffer.append(activityTabDTO.getStdActivityType() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"standard_uom\" + \">\" + \"\\n\");\n stringBuffer.append(activityTabDTO.getStandardUom() + \"\\n\\n\");\n stringBuffer.append(\"> <\" + \"std_act_prefix\" + \">\" + \"\\n\");\n stringBuffer.append(activityTabDTO.getStdActPrefix() + \"\\n\\n\");\n System.out.println(\"test the of the Activity tab data\" + stringBuffer.toString());\n\n }\n stringBuffer.append(\"$$$$\\n\");\n\n }\n writer.write(stringBuffer.toString());\n mail.sendMail(emailList, emailListcc, \"test mail from gostardbNext For Download notification \", \"gostarNext is an online application , data export notification for completion will implements soon... Just an emial test\");\n System.out.println(\"Sucessfully Sent mail to All Users\");\n\n } catch (MolFormatException ex) {\n System.out.println(\"Exception occure while writing the conetnet into the sdf file\" + ex.getMessage());\n\n } catch (Exception e) {\n System.out.println(\"Exception occure while writing the conetnet into the sdf file\" + e.getMessage());\n }\n }", "public void toFile (String nameFile)\n {\n //definir dados\n int i, j;\n int lin;\n int col;\n FILE arquivo;\n\n //obter dimensoes\n lin = lines();\n col = columns();\n\n //verificar se as dimensoes sao validas\n if( lin <= 0 || col <= 0 )\n {\n IO.println(\"ERRO: Tamanho(s) invalido(s). \");\n } //end\n else\n {\n //verificar se tabela e' valida\n if( table == null )\n {\n IO.println(\"ERRO: Matriz invalida. \" );\n } //end\n else\n {\n arquivo = new FILE(FILE.OUTPUT, nameFile);\n arquivo.println(\"\"+ lin);\n arquivo.println(\"\"+ col);\n\n //pecorre para preencher a matriz\n for( i = 0; i < lin; i++)\n {\n for(j = 0; j < col; j++)\n {\n arquivo.println(\"\" + table[ i ][ j ]);\n } //end repetir\n } //end repetir\n //fechar arquivo (indispensavel)\n arquivo.close();\n } //end se\n } //end se\n }", "void printReport(Object unit);", "private void buildReport() {\n StringBuilder stringBuilder = new StringBuilder();\n\n // Header of report\n stringBuilder.append(\"Games\\tCPU wins\\t\"\n + \"Human wins\\tDraw avg\\tMax rounds\\n\");\n stringBuilder.append(\"=============================================\\n\");\n\n // shows the number of overall games\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the computer won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'CPU'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the human player won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'human'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the average number of draws per game\n stringBuilder.append((int)Float.parseFloat(dbConnection.executeQuery(\"SELECT AVG(draws) FROM game\", \"avg\")));\n stringBuilder.append(\"\\t\");\n // shows the maximum number of rounds played\n stringBuilder.append(dbConnection.executeQuery(\"SELECT MAX(rounds) FROM game\", \"max\"));\n\n // Converts stringBuilder to a String\n reportContent = stringBuilder.toString();\n }", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "private void writeSizeReport()\n {\n Writer reportOut = null;\n try\n {\n reportOut = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(sizeReportFile), \"UTF8\"));\n reportOut.write(report.generate());\n reportOut.flush();\n }\n catch (Exception e)\n {\n // TODO: report a problem\n throw new RuntimeException(e);\n }\n finally\n {\n if (reportOut != null)\n try\n {\n reportOut.close();\n }\n catch (IOException e)\n {\n // ignore\n }\n }\n }", "private static void appendTabResults(Integer runId, double cpuTime,double bestCost,LinkedList<Integer> bestTspList) throws java.io.IOException,java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = Project.method+\".tab\";\n\t\tFileOutputStream fo = new FileOutputStream(fileName,true);\n\n\t\tString bestTspPath = new String();\n\t\tfor (int i=0;i<bestTspList.size();i++){\n\t\t\tbestTspPath += String.format(\"%d,\",bestTspList.get(i));\n\t\t}\n\n\t\tif ( bestTspList.getFirst().intValue() != bestTspList.getLast().intValue() ){\n\t\t\tbestTspPath += String.format(\"%d\",bestTspList.getFirst());\n\t\t}\n\n\t\tString msg = String.format(\"%s,%d,%.2f,%.0f,%d,%.2f,%d,%.0f,%s%n\",\n\t\t\tfileNameWithAbsolutePath.getName(),runId,Math.round((cpuTime/nanosecs)*100.0)/100.0,optimalCost,Math.round(bestCost),\n\t\t\tMath.round(((bestCost-Project.optimalCost)/Project.optimalCost)*100.0)/100.0,randomSeed,cutoffTimeSeconds,bestTspPath);\n\n\t\ttry {\n \t\t\tjava.nio.channels.FileLock lock = fo.getChannel().lock();\n \t\t\ttry {\n\t\t\t\tfo.write(msg.getBytes());\n\t\t\t\tfo.flush();\n \t\t\t} finally {\n \t\t\tlock.release();\n \t\t\t}\n\t\t} finally {\n \t\t\tfo.close();\n\t\t}\n\n\n\t\t/* \n\t \t * print the tab results by data file \n\t */\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tfileName = Project.fileNameWithAbsolutePath.getName()+\".tab\";\n\t\tfo = new FileOutputStream(fileName,true);\n\n\t\tmsg = String.format(\"%s,%d,%.2f,%.0f,%d,%.2f,%d,%.0f,%s%n\",\n\t\t\tmethod,runId,Math.round((cpuTime/nanosecs)*100.0)/100.0,optimalCost,Math.round(bestCost),\n\t\t\tMath.round(((bestCost-Project.optimalCost)/Project.optimalCost)*100.0)/100.0,randomSeed,cutoffTimeSeconds,bestTspPath);\n\n\t\ttry {\n \t\t\tjava.nio.channels.FileLock lock = fo.getChannel().lock();\n \t\t\ttry {\n\t\t\t\tfo.write(msg.getBytes());\n\t\t\t\tfo.flush();\n \t\t\t} finally {\n \t\t\tlock.release();\n \t\t\t}\n\t\t} finally {\n \t\t\tfo.close();\n\t\t}\n\n\t}", "public void report() {\n\t\tfor (Plant p : plants) {\r\n\t\t\tp.list();\r\n\t\t}\r\n\t\tfor (Fish f: fishes) {\r\n\t\t\tf.list();\r\n\t\t}\r\n\t}", "void reporte(){\n //Variable para abrir el listado automaticamente\n Desktop pc=Desktop.getDesktop();\n //Se crea el documento\n Document doc=new Document();\n try {\n //Se crea el documento PDF\n FileOutputStream pdf=new FileOutputStream(\"ListadoCursos.pdf\");\n //El documento almacena la infomación del pdf.\n PdfWriter.getInstance(doc, pdf);\n \n //Se abre el documento para que se pueda modificar\n doc.open();\n \n //Se crea el título del documento y se configura\n Paragraph titulo=new Paragraph(\"Listado de Cursos\\n\\n\",\n FontFactory.getFont(\"Serif\",22,Font.PLAIN));\n //Se agrega el titulo al documento\n doc.add(titulo);\n \n //Se crea la tabla con la información\n PdfPTable tabla=new PdfPTable(5);\n //Se agregan los titulos a la tabla\n tabla.addCell(\"Codigo\");\n tabla.addCell(\"Nombre\");\n tabla.addCell(\"Creditos\");\n tabla.addCell(\"Alumnos\");\n tabla.addCell(\"Profesor\");\n \n //Se agregan los datos del los profesores\n for (int i = 0; i < datos.cantCur; i++) {\n tabla.addCell(datos.codigoC[i]+\"\");\n tabla.addCell(datos.nombreC[i]);\n tabla.addCell(datos.creditosC[i]+\"\");\n tabla.addCell(datos.alumnosC[i]+\"\");\n //Se busca al profesor\n String profesor=\"\";\n int a=0;\n while(a<datos.cantPro){\n if (datos.codigoPC[i]==datos.codigoP[a]) {\n profesor=datos.nombreP[a]+\" \"+datos.apellidoP[a];\n break;\n }\n a++;\n }\n tabla.addCell(profesor);\n }\n \n //Se agrega la tabla\n doc.add(tabla);\n //Se cierra el documento\n doc.close();\n //El documento creado se pasa a una variable tipo FILE\n File f=new File(\"ListadoCursos.pdf\");\n //Se abre el documento PDF\n pc.open(f);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null,\"Error al crear el pdf\");\n }\n }", "private void generateOutgoingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Outgoing Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallOutgoings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}", "private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}", "String storeTable(String name) {\n PrintWriter writer = null;\n Table t = tables.get(name);\n\n try {\n\n /** Boolean decides if to overwrite the file if false, or continue if true */\n FileWriter fw = new FileWriter(name + \".tbl\", false);\n writer = new PrintWriter(fw);\n\n writer.println(t.getColString());\n\n int i = 1;\n for (; i < t.rowSize(); i += 1) {\n writer.println(t.getRowString(i));\n }\n\n writer.print(t.getRowString(i));\n writer.close();\n return \"\";\n\n } catch (IOException e) {\n return \"ERROR: Invalid Table\";\n } catch (NullPointerException e) {\n return \"ERROR: Invalid Table\";\n }\n\n\n }", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "public void exportResultsToFile(){\r\n\t\t\t\t\r\n\t\t// This if clause shouldn't fire as the icon is grayed out if there is no tab open\r\n\t\tif(currentView == null \r\n\t\t\t\t|| currentView.getDynamicModelView() == null \r\n\t\t\t\t|| currentView.getDynamicModelView().getModel() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open, and a model and table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif(currentView.getDynamicModelView().getModel().getDefaultHistory() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tDynamicModelHistory history = currentView.getDynamicModelView().getModel().getDefaultHistory();\r\n\r\n\t\tStringBuffer buffer = new StringBuffer(30000);\r\n\r\n\t\tif(history != null && history.getTimePointCount() > 0 && history.getSnapshot(0) != null){\r\n\t\t\r\n\t\t\t// Get the filename\r\n\t\t\tYorkGUIUtils guiUtils = new YorkGUIUtils();\r\n\t\t\tString selectedFile = guiUtils.getUserToDefineFilename(this, propertiesMemento.getBaseDir(), \"txt csv\", \"Results files (.txt, .csv)\", JFileChooser.SAVE_DIALOG);\r\n\r\n\t\t\tif(selectedFile == null || guiUtils.wasCancelled()){\r\n\t\t\t\trequestFocusInWindow();\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\t\r\n\t\t\tlogger.info(\"Selected file for exporting results:\" + selectedFile);\r\n\t\t\r\n\t\t\tbuffer.append(\"time point\").append(\"\\t\");\r\n\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\tbuffer.append(t).append(\"\\t\");\r\n\t\t\t}\r\n\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\r\n\t\t\tfor(Iterator<String> it = history.getSnapshot(0).keySet().iterator(); it.hasNext();){\r\n\t\t\t\tString name = it.next();\r\n\t\t\t\tbuffer.append(name).append(\"\\t\");\r\n\t\t\t\t// For all time points\r\n\t\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\t\tbuffer.append(history.getSnapshot(t).get(name).getOutputValue()).append(\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t}\r\n\t\t\tFileLoader.save(selectedFile, buffer.toString());\r\n\t\t}\r\n\t\telse{\r\n\t\t\tJOptionPane.showMessageDialog(this, \"No results available in the selected tab. Run the model first.\", \"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\r\n\t\t}\r\n\t}", "void exporter(JTable tab, File file) {\n try {\r\n\r\n TableModel model = tab.getModel();\r\n FileWriter out = new FileWriter(file);\r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n out.write(model.getColumnName(i) + \"\\t\");\r\n }\r\n out.write(\"\\n\");\r\n\r\n for (int i = 0; i < model.getRowCount(); i++) {\r\n for (int j = 0; j < model.getColumnCount(); j++) {\r\n out.write(model.getValueAt(i, j).toString() + \"\\t\");\r\n }\r\n out.write(\"\\n\");\r\n }\r\n\r\n out.close();\r\n } catch (Exception err) {\r\n err.printStackTrace();\r\n }\r\n }", "public static void PrintToCsv() throws Exception {\n\t\tBufferedWriter bw1 = new BufferedWriter(new FileWriter(\"./data/output1.csv\"));\n\t\tBufferedWriter bw2 = new BufferedWriter(new FileWriter(\"./data/output2.csv\"));\n\t\tBufferedWriter bw3 = new BufferedWriter(new FileWriter(\"./data/output3.csv\"));\n\t\tBufferedWriter bw4 = new BufferedWriter(new FileWriter(\"./data/output4.csv\"));\n\t\t\n\t\t//print the name of attributes in Table\n\t\tPrint_attribute(bw1,bw2,bw3,bw4);\n\t\tIterator<String> iter = BugDBConnection.Domain.keySet().iterator();\n\t\ttry{\n\t\t\twhile(iter.hasNext()){\n\t\t\t\tString key = iter.next();\n\t\t\t\tdomain = key.split(\"-\")[0];\n\t\t\t\tproject = key.split(\"-\")[1];\n\n\t\t\t\tFieldSet fieldset = BugDBConnection.Domain.get(key);\n\t\t\t\tPrintQ1(bw1,fieldset.field);\n\t\t\t\tPrintQ2(bw2, fieldset.refield);\n\t\t\t\tPrintQ3(bw3, fieldset.f1, fieldset.f2, fieldset.f3, fieldset.f4);\n\t\t\t\tPrintQ4(bw4, fieldset.avg, fieldset.min, fieldset.max);\n\t\t\t\t\n\t\t\t}\n\t\t\tbw1.close();\n\t\t\tbw2.close();\n\t\t\tbw3.close();\n\t\t\tbw4.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\t}", "private void outputToFile() {\n\t\tPath filePath = Paths.get(outputFile);\n\n\t\ttry (BufferedWriter writer = Files.newBufferedWriter(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tRowIterator iterator = currentGen.iterateRows();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tElemIterator elem = iterator.next();\n\t\t\t\twhile (elem.hasNext()) {\n\t\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\t\twriter.write(mElem.rowIndex() + \",\" + mElem.columnIndex());\n\t\t\t\t\twriter.newLine();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to write to the provided file\");\n\t\t}\n\n\t}", "public synchronized void saveTable() \n\t{\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(tableFile);\n\t\t\t\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\toos.writeObject(htRecords);\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(\"Cannot save : FileNotFoundException\",e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"Cannot save : IOException\",e);\n\t\t}\n\t}", "public static void writeDataToCsvUsingStringArrayForAssay(PrintWriter writer, List<AssayTabDTO> assayTabList, List<ReferenceTabDTO> referenceTabDTOList, List<StructureDetailsTabDTO> structureDetailsTabDTOList) {\n\n String[] CSV_ASSAY_TITLE = {\"Assay Details\"};\n\n String[] CSV_ASSAY_HEADER = {\"ASSAY_ID\", \"REF_ID\", \"GVK_ID\", \"PROTEIN\", \"STANDARD_NAME\", \"MUTANT\", \"WILD_TYPE\", \"NEW_RESIDUE\", \"OLD_RESIDUE\", \"OPERATION\", \"ASSAY_POSITION\", \"TARGET_PROFILE\", \"P_S_M\", \"BUFFER\", \"BUFFER_CONC\", \"BUFFER_PREFIX\", \"BUFFER_UOM\", \"SUBSTRATE\", \"SUBSTRATE_CONC\", \"SUBSTRATE_PREFIX\", \"SUBSTRATE_UOM\", \"RADIO_LIGAND\", \"RADIO_LIGAND_PREFIX\", \"RADIO_LIGAND_UOM\", \"RADIO_LIGAND_CONC\", \"CO_ADMINISTERED\", \"CO_ADMINISTERED_PREFIX\", \"CO_ADMINISTERED_UOM\", \"CO_ADMINISTERED_VALUE\", \"IN_PRESENCE_OF\", \"IN_PRESENCE_OF_CONC\", \"IN_PRESENCE_OF_PREFIX\", \"IN_PRESENCE_OF_UOM\", \"INCUBATION_TIME\", \"INCUBATION_PREFIX\", \"INCUBATION_UOM\", \"TEMPERATURE\", \"TEMPERATURE_PREFIX\", \"TEMPERATURE_UOM\", \"PH_PREFIX\", \"PH\"};\n\n try (\n CSVWriter csvWriter = new CSVWriter(writer,\n CSVWriter.DEFAULT_SEPARATOR,\n CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n CSVWriter.DEFAULT_LINE_END);\n ) {\n csvWriter.writeNext(CSV_ASSAY_TITLE);\n csvWriter.writeNext(CSV_ASSAY_HEADER);\n for (AssayTabDTO assayTabDataReturn : assayTabList) {\n for (ReferenceTabDTO referenceTabDTO : referenceTabDTOList) {\n for (StructureDetailsTabDTO structureDetailsTabDTO : structureDetailsTabDTOList) {\n String[] assayData = new String[]{\n assayTabDataReturn.getAssayId() + \"\",\n referenceTabDTO.getRefId() + \"\",\n structureDetailsTabDTO.getGvkId() + \"\",\n assayTabDataReturn.getProtein() + \"\",\n assayTabDataReturn.getStandardName() + \"\",\n assayTabDataReturn.getMutant() + \"\",\n assayTabDataReturn.getWildType() + \"\",\n assayTabDataReturn.getNewResidue() + \"\",\n assayTabDataReturn.getOldResidue() + \"\",\n assayTabDataReturn.getOperation() + \"\",\n assayTabDataReturn.getAssayPosition() + \"\",\n assayTabDataReturn.getTargetProfile() + \"\",\n assayTabDataReturn.getP_s_m() + \"\",\n assayTabDataReturn.getBuffer() + \"\",\n assayTabDataReturn.getBufferConc() + \"\",\n assayTabDataReturn.getBufferPrefix() + \"\",\n assayTabDataReturn.getBufferUom() + \"\",\n assayTabDataReturn.getSubstrate() + \"\",\n assayTabDataReturn.getSubstrateConc() + \"\",\n assayTabDataReturn.getSubstratePrefix() + \"\",\n assayTabDataReturn.getSubstrateUom() + \"\",\n assayTabDataReturn.getRadioLigand() + \"\",\n assayTabDataReturn.getRadioLigandPrefix() + \"\",\n assayTabDataReturn.getRadioLigandUom() + \"\",\n assayTabDataReturn.getRadioLigandConc() + \"\",\n assayTabDataReturn.getCoAdministered() + \"\",\n assayTabDataReturn.getCoAdministeredPrefix() + \"\",\n assayTabDataReturn.getCoAdministeredUom() + \"\",\n assayTabDataReturn.getCoAdministeredValue() + \"\",\n assayTabDataReturn.getInPresenceOf() + \"\",\n assayTabDataReturn.getInPresenceOfConc() + \"\",\n assayTabDataReturn.getInPresenceOfPrefix() + \"\",\n assayTabDataReturn.getInPresenceOfUom() + \"\",\n assayTabDataReturn.getIncubationTime() + \"\",\n assayTabDataReturn.getIncubationPrefix() + \"\",\n assayTabDataReturn.getIncubationUom() + \"\",\n assayTabDataReturn.getTemperature() + \"\",\n assayTabDataReturn.getTemperaturePrefix() + \"\",\n assayTabDataReturn.getTemperatureUom() + \"\",\n assayTabDataReturn.getPhPrefix() + \"\",\n assayTabDataReturn.getPh() + \"\"\n\n };\n\n csvWriter.writeNext(assayData);\n }\n }\n\n }\n\n\n } catch (Exception e) {\n System.out.println(\"Exception occured into the AssayTab Data Export\" + e.getMessage());\n e.printStackTrace();\n }\n\n }", "private static void writeReport(Map<DayOfWeek, HashMap<String, JobData>> dailyJobs)\n {\n dailyJobs.entrySet().stream()\n // Days of the week : sort ascending\n .sorted((a, b) -> a.getKey().compareTo(b.getKey()))\n .forEachOrdered(day -> \n {\n // calculate total CPU for the day\n double totalDayCp = day.getValue().entrySet().stream()\n .mapToDouble(job -> job.getValue().cpTime)\n .sum();\n // Headings\n System.out.format(\"%n%s%n\", day.getKey().toString());\n System.out.format(\"%-8s %11s %5s %11s%n\", \"Name\", \"CPU\",\n \"CPU%\", \"zIIP\");\n \n day.getValue().entrySet().stream()\n // sort jobs by CPU Time, the comparison is reversed to sort descending\n .sorted((a, b) -> Double.compare(b.getValue().cpTime, a.getValue().cpTime))\n // take top 10 and print information\n .limit(10)\n .forEachOrdered(entry ->\n {\n JobData jobinfo = entry.getValue(); \n // write detail line \n System.out.format(\n \"%-8s %11s %4.0f%% %11s%n\",\n entry.getKey(), // key is jobname\n hhhmmss(jobinfo.cpTime),\n jobinfo.cpTime / totalDayCp * 100,\n hhhmmss(jobinfo.ziipTime)); \n }); \n });\n }", "public void close_report() {\n if (output != null) {\n output.flush();\n output.close();\n }\n }", "private static void printSol(Integer runId,LinkedList<Integer> bestTspList, double bestCost) throws java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// writing the sol\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = String.format(\"%s_%s_%.0f\",Project.name,Project.method,Project.cutoffTimeSeconds);\n\n\t\tif ( runId != -1 ){\n\t\t\tfileName = fileName +\"_\"+runId+\".sol\";\n\t\t} else {\n\t\t\tfileName = fileName +\".sol\";\n\t\t}\n\n\t\tPrintWriter repWriter = new PrintWriter(fileName, \"UTF-8\");\n\n\t\tSystem.out.print(\"RESULTS :\"); \n\t\tSystem.out.print(\"file=\"+fileNameWithAbsolutePath.getName()); \n\t\tSystem.out.print(\":method=\"+method); \n\t\tSystem.out.print(\":randomSeed=\"+randomSeed);\n\t\tSystem.out.print(\":cutOffTimeSeconds=\"+cutoffTimeSeconds);\n\t\tSystem.out.print(\":timedOut=\"+timedOut);\n\t\tSystem.out.print(\":BestCost=\"+bestCost);\n\t\tSystem.out.println(\":OptimalCost=\"+Project.optimalCost);\n\n\t\trepWriter.printf(\"%d\\n\",Math.round(bestCost));\n\n\t\tfor (int i=0;i<bestTspList.size();i++){\n\t\t repWriter.printf(\"%d,\",bestTspList.get(i));\n\t\t}\n\t\tif ( bestTspList.getFirst().intValue() != bestTspList.getLast().intValue() ){\n\t\t repWriter.printf(\"%d,\",bestTspList.getFirst());\n\t\t}\n\n\t\trepWriter.printf(\"\\n\");\n\n\t repWriter.close();\n\n\t}", "private void createTable(BufferedWriter writer, ResultTable tableData)\r\n\t\t\tthrows IOException {\r\n\t\tint height = (37 * tableData.getDataCount()) + 56\r\n\t\t\t\t+ (tableData.getExpectionMessageData().size() * 4);\r\n\t\tString container = \"<div style='width: 766px;background-color: #FFFFFF;box-shadow: 1px 1px 1px #888888;;height: \"\r\n\t\t\t\t+ height + \"px;position: absolute;top: 165px;left: 554px'>\";\r\n\t\tString table = \"<table style='top:10px;position:absolute;width: 750px;left:8px;'><tbody>\";\r\n\t\tString headers = \"<tr><th>TestCase Id</th><th>Method Name</th><th>Servrity</th><th>Time Taken</th><th>Result</th></tr>\";\r\n\r\n\t\twriter.write(container + table + headers);\r\n\r\n\t}", "public void write(String outputFolder, String name) throws IOException {\n for (Gender gender : this.keySet1()) {\n for (EventScoringTable scoreTable : this.get(gender).values()) {\n File outFile = new File(String.format(\"%s/Table %s - %s - %s.csv\",\n outputFolder,\n name,\n gender,\n scoreTable.getEvent().getIaafName()\n ));\n if (outFile.getParentFile().mkdirs()) {\n System.out.println(\"Created directory: \" + outFile.getParent());\n }\n\n FileWriter fileWriter = new FileWriter(outFile);\n fileWriter.write(String.format(\"%s,%s%n\", \"performance\", \"points\"));\n\n for (Entry<Double, Integer> score : scoreTable.getPerformancePoints().entrySet()) {\n fileWriter.write(String.format(Locale.ENGLISH,\n \"%.2f,%d%n\",\n score.getKey(),\n score.getValue()\n ));\n }\n fileWriter.close();\n }\n }\n System.out.println(\"Written conversion tables to: \" + outputFolder);\n }", "private void writeTextFile(\r\n\t\t\tGDMSMain theMainHomePage,\r\n\t\t\tArrayList<QtlDetailElement> listOfAllQTLDetails, HashMap<Integer, String> hmOfQtlPosition, HashMap<String, Integer> hmOfQtlNameId,\r\n\t\t\tHashMap<Integer, String> hmOfQtlIdandName, String strSelectedExportType, boolean bQTLExists) throws GDMSException {\n\t\t\r\n\t\t\r\n\t\tString strFlapjackTextFile = \"Flapjack\";\r\n\t\tFile baseDirectory = theMainHomePage.getMainWindow().getApplication().getContext().getBaseDirectory();\r\n\t\tFile absoluteFile = baseDirectory.getAbsoluteFile();\r\n\r\n\t\tFile[] listFiles = absoluteFile.listFiles();\r\n\t\tFile fileExport = baseDirectory;\r\n\t\tfor (File file : listFiles) {\r\n\t\t\tif(file.getAbsolutePath().endsWith(\"Flapjack\")) {\r\n\t\t\t\tfileExport = file;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString strFilePath = fileExport.getAbsolutePath();\r\n\t\t//System.out.println(\"strFilePath=:\"+strFilePath);\r\n\t\tgeneratedTextFile = new File(strFilePath + \"\\\\\" + strFlapjackTextFile + \".txt\");\r\n\r\n\t\t/**\twriting tab delimited qtl file for FlapJack \r\n\t\t * \tconsisting of marker chromosome & position\r\n\t\t * \r\n\t\t * **/\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t//factory = new ManagerFactory(GDMSModel.getGDMSModel().getLocalParams(), GDMSModel.getGDMSModel().getCentralParams());\r\n\t\t\tfactory=GDMSModel.getGDMSModel().getManagerFactory();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOntologyDataManager ontManager=factory.getOntologyDataManager();\r\n\t\t\t*/\r\n\t\t\tFileWriter flapjackTextWriter = new FileWriter(generatedTextFile);\r\n\t\t\tBufferedWriter flapjackBufferedWriter = new BufferedWriter(flapjackTextWriter);\r\n\t\t\t//getAllelicValuesByGidsAndMarkerNames\r\n\t\t\t//genoManager.getAlle\r\n\t\t\t//\t\t\t fjackQTL.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\");\r\n\t\t\tflapjackBufferedWriter.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\\teffect\");\r\n\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\tfor (int i = 0 ; i < listOfAllQTLDetails.size(); i++){\r\n\t\t\t\t//System.out.println(listOfAllQTLDetails.get(i));\r\n\t\t\t\tQtlDetailElement qtlDetails = listOfAllQTLDetails.get(i);\r\n\t\t\t\t\r\n\t\t\t\t/*QtlDetailsPK id = qtlDetails.getQtlName().get.getId();\r\n\t\t\t\tInteger qtlId = id.getQtlId();*/\r\n\t\t\t\t//String strQtlName = hmOfQtlIdandName.get(qtlId);\r\n\t\t\t\tString strQtlName =qtlDetails.getQtlName();\r\n\t\t\t\tint qtlId=hmOfQtlNameId.get(strQtlName);\r\n\t\t\t\t//qtlDetails.get\r\n\t\t\t\t//Float clen = qtlDetails.getClen();\r\n\t\t\t\t//Float fEffect = qtlDetails.getEffect();\r\n\t\t\t\tint fEffect = qtlDetails.getEffect();\r\n\t\t\t\tFloat fMaxPosition = qtlDetails.getMaxPosition();\r\n\t\t\t\tFloat fMinPosition = qtlDetails.getMinPosition();\r\n\t\t\t\t//Float fPosition = qtlDetails.getPosition();\r\n\t\t\t\tString fPosition = hmOfQtlPosition.get(qtlId);\r\n\t\t\t\tFloat frSquare = qtlDetails.getRSquare();\r\n\t\t\t\tFloat fScoreValue = qtlDetails.getScoreValue();\r\n\t\t\t\tString strExperiment = qtlDetails.getExperiment();\r\n\t\t\t\t//String strHvAllele = qtlDetails..getHvAllele();\r\n\t\t\t\t//String strHvParent = qtlDetails.getHvParent();\r\n\t\t\t\t//String strInteractions = qtlDetails.getInteractions();\r\n\t\t\t\tString strLeftFlankingMarker = qtlDetails.getLeftFlankingMarker();\r\n\t\t\t\tString strLinkageGroup = qtlDetails.getChromosome();\r\n\t\t\t\t//String strLvAllele = qtlDetails.getLvAllele();\r\n\t\t\t\t//String strLvParent = qtlDetails.getLvParent();\r\n\t\t\t\tString strRightFM = qtlDetails.getRightFlankingMarker();\r\n\t\t\t\t//String strSeAdditive = qtlDetails.getSeAdditive();\r\n\t\t\t\t\r\n\t\t\t\t//String strTrait = qtlDetails.getTrait();\r\n\t\t\t\tString strTrait = qtlDetails.getTRName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(strQtlName + \"\\t\" + strLinkageGroup + \"\\t\" + fPosition + \"\\t\" + fMinPosition + \"\\t\" + fMaxPosition + \"\\t\" +\r\n\t\t\t\t\t\tstrTrait + \"\\t\" + strExperiment + \"\\t \\t\" + fScoreValue + \"\\t\" + frSquare+\r\n\t \"\\t\" + strLeftFlankingMarker+\"/\"+strRightFM + \"\\t\" + fEffect);\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tflapjackBufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GDMSException(e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t}", "private void exportDataAsList() {\n\t\t// TODO (BH): This is nearly a copy of the\n\t\t// printCollectedOverviewReport() method and should be cleaned up\n\t\tFileWriter wr = null;\n\t\ttry {\n\t\t\tfinal RapidClubAdminClient app = (RapidClubAdminClient) ApplicationManager.getApplication();\n\t\t\tfinal RapidBeansLocale locale = app.getCurrentLocale();\n\n\t\t\t// determine report output file\n\t\t\tFile overviewFile = null;\n\t\t\tif (app.getSettingsRapidClubAdmin().getReportfolder() != null) {\n\t\t\t\toverviewFile = new File(app.getSettingsRapidClubAdmin().getReportfolder(),\n\t\t\t\t\t\t\"SammeldruckAbrechnungszeitraum_\" + getBillingPeriod().getIdString() + \".txt\");\n\t\t\t} else {\n\t\t\t\toverviewFile = File.createTempFile(\n\t\t\t\t\t\t\"SammeldruckAbrechnungszeitraum_\" + getBillingPeriod().getIdString() + \"_\", \".txt\");\n\t\t\t}\n\n\t\t\tfinal Department[] departments = this.getSelectedDepartmentsWithTrainingsLists();\n\t\t\tfinal List<Department> depList = new ArrayList<Department>();\n\t\t\tfinal Collection<Trainer> trainers = new TreeSet<Trainer>();\n\t\t\tfor (Department dep : departments) {\n\t\t\t\tdepList.add(dep);\n\t\t\t\tfor (Trainer tr : dep.getTrainers()) {\n\t\t\t\t\tif (!trainers.contains(tr)) {\n\t\t\t\t\t\ttrainers.add(tr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twr = new FileWriter(overviewFile);\n\n\t\t\tfor (Trainer tr : trainers) {\n\t\t\t\tfinal List<Trainer> trs = new ArrayList<Trainer>();\n\t\t\t\ttrs.add(tr);\n\t\t\t\twr.write(Overview2.asString(trs, depList, locale));\n\t\t\t\twr.write(PlatformHelper.getLineFeed());\n\t\t\t\twr.write(PlatformHelper.getLineFeed());\n\t\t\t}\n\n\t\t\t// pop up the evidence report\n\t\t\tif (PlatformHelper.getOsfamily() == OperatingSystemFamily.windows) {\n\t\t\t\tRuntime.getRuntime().exec(\"cmd.exe /C \" + overviewFile.getAbsolutePath());\n\t\t\t} else {\n\t\t\t\tApplicationManager.getApplication()\n\t\t\t\t\t\t.messageInfo(\"Automatic Pop-Up not yet implemented for operating system\\n\\\"\"\n\t\t\t\t\t\t\t\t+ PlatformHelper.getOsName() + \"\\\".\\n\" + \"Please open file\\n\\\"\"\n\t\t\t\t\t\t\t\t+ overviewFile.getAbsolutePath() + \"\\\"\\nyourself.\");\n\t\t\t}\n\n\t\t\tif (this.getBillingPeriod().getDateExportFirst() == null) {\n\t\t\t\tthis.getBillingPeriod().setDateExportFirst(Date.from(Instant.now()));\n\t\t\t\tthis.validateAndUpdateButtons(this.getPropEditor(\"dateExportFirst\"));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new RapidBeansRuntimeException(e);\n\t\t} finally {\n\t\t\tif (wr != null) {\n\t\t\t\ttry {\n\t\t\t\t\twr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RapidBeansRuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void WriteToFile(){\r\n try {\r\n File file = new File(\"output.txt\");\r\n file.createNewFile();\r\n \r\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n String[] FinalBoard = new String[Board.ReportBoardValues().length];\r\n FinalBoard = Board.ReportBoardValues();\r\n for(int i = 0; i < Board.ReportBoardValues().length; i++){\r\n bw.write(FinalBoard[i]);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n fw.close();\r\n \r\n }\r\n catch (IOException e) {\r\n System.out.println (\"Output error\");\r\n }\r\n }", "public void writereport() {\n\t\n}", "abstract public void report();", "public static void writeIntoCSVFromTable() {\n try {\n backItUp(ROOT);\n backItUp(ROOT + Calendar.getInstance().getTime() + \"/\");\n } catch (Throwable e) {\n itsLogger.error(e.getMessage(), e);\n }\n\n }", "public static void createResponseReportTxt(String fileName) {\r\n\t\t\ttry {\r\n\t\t\tConnector con = new Connector();\r\n\t\t\tcon.connect();\r\n\t\t\t\r\n\t\t\tResultSet resultSet = con.MakeQuery(\"SELECT \\\"studentEmail\\\" FROM \\\"\" + fileName+\"\\\"\");\r\n\t\t\t\r\n\t\t\twhile(resultSet.next()) {\r\n\t\t\t\tString email = resultSet.getString(1);\r\n\t\t\t\temail = email.substring(0, 6);\r\n\t\t\t\tString userHomePath = System.getProperty(\"user.home\");\r\n\t\t\t\tFile gradeReport = new File(userHomePath+\"\\\\Documents\\\\Reports\\\\Responses\\\\\"+fileName+ email+\".answers.txt\");\r\n\t\t\t\tif (gradeReport.createNewFile()){\r\n\t\t \t}else{\r\n\t\t \t}\r\n\t\t\t}\r\n\t \t\t \r\n\t\t\t//Change file to where ever Harris wants\r\n\t\t\t//userHomePath is the default user default account \r\n\t\t\t//Ex. C:\\Users\\as12660\r\n\t\t\r\n\t \t} catch (IOException e) {\r\n\t \t\te.printStackTrace();\r\n\t \t} catch (Exception ie) {\r\n\t \t\tie.printStackTrace();\r\n\t\t}\r\n\t}", "public void writeSimScore() throws IOException, MalformedURLException, ParseException {\n FileWriter fw = new FileWriter(new File(scoreFile+new Double(alphaValue).toString()+\".txt\")); \r\n BufferedWriter bw = new BufferedWriter(fw);\r\n\r\n int numQueries = queryList.size();\r\n for (int i = 0; i < numQueries; i++) {\r\n String query1 = queryList.get(i);\r\n for (int j = 0; j < numQueries; j++) {\r\n String query2 = queryList.get(j);\r\n double sim = alphaValue * scorematrix[i][j] + (1 - alphaValue) * calSemanticSim(i, j);\r\n bw.write(new Double(sim).toString());\r\n bw.write(\" \");\r\n }\r\n // System.out.println(\"entered \" + i);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n\r\n }", "public void writeTable(Table table, String pathName, String filename){\n\n Record tempRow; \n String tempString;\n FileWriter fw;\n\n //create file\n try {\n fw = new FileWriter(pathName + filename);\n \n //add table name\n fw.write(table.getName());\n fw.write(\"\\n\");\n\n //add each row to a new line\n //get primary keys and loop over to add rows\n List<String> keys = table.getPrimaryKeys();\n for (int i = 0; i < keys.size(); i++){\n tempRow = table.getRow(keys.get(i));\n tempString = tempRow.getAllItemString();\n fw.write(tempString);\n fw.write(\"\\n\");\n }\n\n fw.close();\n } catch (IOException ex){\n System.out.println(\"ERROR: failed to create file \" + filename);\n }\n }", "private void outputBuildTableFunction(PrintWriter out) {\n\t\t\n\t\tout.println(\" private void buildTable() {\");\n\t\t\n\t\tout.println(\" GrammarState[] graph;\");\n\t\t\n\t\tfor (String rulename : grammardef.getTable().keySet()) {\n\t\t\t\n\t\t\tout.println(\" table.put(\\\"\" + rulename + \"\\\", new HashMap<String, GrammarRule>());\");\n\t\t\t\n\t\t\tfor (String tokname : grammardef.getTable().get(rulename).keySet()) {\n\t\t\t\t\n\t\t\t\tGrammarRule rule = grammardef.getTable().get(rulename).get(tokname);\n\t\t\t\t\n\t\t\t\tString multi = rule.isMultiChild() ? \"true\" : \"false\";\n\t\t\t\tString sub = rule.isSubrule() ? \"true\" : \"false\";\n\t\t\t\t\n\t\t\t\tint i = 0;\n\t\t\t\tout.println(\" graph = new GrammarState[\" + rule.getGraph().size() + \"];\");\n\t\t\t\tfor (GrammarState state : rule.getGraph()) {\n\t\t\t\t\tout.println(\" graph[\" + (i++) + \"] = new GrammarState(\\\"\" + state.name + \"\\\", \" + state.type + \");\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tout.println(\" table.get(\\\"\" + rulename + \"\\\").put(\\\"\" + tokname + \"\\\", new GrammarRule(\\\"\" + rule.getName() + \"\\\", \" + multi + \", \" + sub + \", graph));\");\n\t\t\t\tout.println();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(\" }\");\n\t\t\n\t}", "private static void writeOutput (int[][] outData) {\r\n\t\tString outFile = \"Input_\" + outData.length + \".txt\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile fileLocation = new File(outFile);\t\t\r\n\t\t\tPrintWriter Writer = new PrintWriter(fileLocation, \"UTF-8\");\t\r\n\t\t\tfor (int i = 0; i < outData.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < outData[i].length; j++) {\r\n\t\t\t\t\tif (outData[i][j] == INFINITY) {\r\n\t\t\t\t\t\tWriter.print(\"NA\");\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tWriter.print(outData[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j != outData[i].length - 1) {\r\n\t\t\t\t\t\tWriter.print(\"\\t\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tWriter.println();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tWriter.close();\r\n\t\t} catch (Exception ex) {\r\n System.out.println(ex.toString()); \r\n\t\t}\r\n\t}", "private static void LOG() {\n if (!RESULTFILE.exists()) {\n\n if (!RESULTFILE.getParentFile().exists()) {\n RESULTFILE.getParentFile().mkdirs();\n }\n\n try {\n RESULTFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + RESULTFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(RESULTFILE, true));\n bw.write(\"rank\" + \"\\t\" + \"DBID\" + \"\\n\");\n bw.close();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(RESULTFILE));\n out.writeObject(RESULTS);\n out.close();\n\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n }\n\n /**\n * print also SQL query into a sql file\n *\n */\n if (!SQLFILE.exists()) {\n if (!SQLFILE.getParentFile().exists()) {\n SQLFILE.getParentFile().mkdirs();\n }\n try {\n SQLFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + SQLFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(SQLFILE, true));\n bw.write(UNKNOWN.getSortedQuery() + \"\\n\");\n bw.close();\n } catch (Exception e) {\n System.err.println(\"Konnte nicht in Datei \" + SQLFILE + \" schreiben!\");\n }\n }\n }", "public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cssPath = new File(\"Report\\\\Style\\\\style.css\").getAbsolutePath();\r\n\t\t\tbufferedReader = new BufferedReader(new FileReader(cssPath));\r\n\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tString line = bufferedReader.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tstringBuilder.append(line);\r\n\t\t\t\tstringBuilder.append(System.lineSeparator());\r\n\t\t\t\tline = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\tcssData = stringBuilder.toString();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.error(\"Exception occure in reading file\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tbufferedReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(\"Exception occure in reading file\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile HTMLDir = new File(reportPath + \"\\\\HTMLReport\");\r\n\t\tif (!HTMLDir.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tHTMLDir.mkdir();\r\n\t\t\t} catch (SecurityException ex) {\r\n\t\t\t\tLog.error(\"Error in creating HTMLReport directory\" + ex.getMessage());\r\n\t\t\t\t// log.error(\"Error in creating Detail directory\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlname = HTMLDir + \"\\\\\" + strTimeStamp + \".html\";\r\n\t\tString logoPath = new File(\"Report\\\\Style\\\\logo.png\").getAbsolutePath();\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstepFailed++;\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\t\t\t\tstepPassed++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tbufferedWriter = new BufferedWriter(new FileWriter(htmlname));\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.error(\"Error in wrinting the file\" + e.getMessage());\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<html><head><script type=\\\"text/javascript\\\" src=\\\"https://www.gstatic.com/charts/loader.js\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<script src=\\\"https://www.google.com/jsapi\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<style>\" + cssData);\r\n\t\tstrBufferReportAppend.append(\"</style>\");\r\n\t\tstrBufferReportAppend.append(\"</head><body>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td><img src=file:\\\\\\\\\" + logoPath + \"></td>\" + \"<td class=\\\"headertext\\\">\"\r\n\t\t\t\t+ reportHeader + \"</td>\");\r\n\r\n\t\tstrBufferReportAppend.append(\"</tr></table><hr></hr>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table cellpadding=3 cellspacing=1>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution Start Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrStartTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution End Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrEndTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Total TestSteps Executed</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t\t\t+ (stepFailed + stepPassed) + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 green\\\">Passed</td><td class=\\\"width50 green\\\">\" + stepPassed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 red\\\">Failed</td><td class=\\\"width50 red\\\">\" + stepFailed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"</td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<script type=\\\"text/javascript\\\">\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.load('current', {'packages':['corechart']});\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.setOnLoadCallback(drawDetailsChart);\");\r\n\t\tstrBufferReportAppend.append(\"function drawDetailsChart() {\");\r\n\t\tstrBufferReportAppend.append(\"var data = new google.visualization.DataTable();\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('string', 'Test Execution Detail Graph');\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('number', 'Count');\");\r\n\t\tstrBufferReportAppend.append(\"data.addRows([\");\r\n\t\tstrBufferReportAppend.append(\"['Passed',\" + stepPassed + \"],\");\r\n\t\tstrBufferReportAppend.append(\"['Failed',\" + stepFailed + \"]]);\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,\");\r\n\t\tstrBufferReportAppend.append(\"'width':300,\");\r\n\t\tstrBufferReportAppend.append(\"'height':170};\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));\");\r\n\t\tstrBufferReportAppend.append(\"chart.draw(data, options); } </script>\");\r\n\t\tstrBufferReportAppend.append(\"<div id=\\\"detailsChart_div\\\"></div>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table><hr></hr></td></tr>\");\r\n\t}", "private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void exportarLog() {\n try {\n JasperPrint rU = null;\n HashMap map = new HashMap();\n\n String arquivoJasper = \"/Sistema/relatorios/relatorioAcessos.jasper\";\n try{\n rU = JasperFillManager.fillReport(arquivoJasper, map, parametrosNS.con);\n }catch(Exception e){ \n JOptionPane.showMessageDialog(null, \"visualizar relatorio \" + e);\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n JasperViewer.viewReport(rU, false); \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"o erro foi ao gerar relatorio \" + e);\n }\n }", "@Override\n\tpublic void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectoryPath) {\n\t\t\n\t\t//------------------------ Pre-Checks ----------------------------------\n\t\t\n\t\t//------------------------ CONSTANTS -----------------------------------\n\t\t\n\t\t//------------------------ Variables -----------------------------------\n\t\t\n\t\t//------------------------ Code ----------------------------------------\n\t\toutputDirectoryPath = outputDirectoryOverride == null ? outputDirectoryPath : outputDirectoryOverride;\n\t\tFile outputDirectory = new File(outputDirectoryPath);\n\t\tif(!outputDirectory.exists() && !outputDirectory.mkdirs()) {\n\t\t\tthrow new RuntimeException(\"Could not create Output Directory: \" + outputDirectoryPath + \"!\");\n\t\t}\n\t\t\n\t\tfor(ISuite suite : suites) {\n\t\t\t\n\t\t\tMap<String, ISuiteResult> suiteResults = suite.getResults();\n\t\t\tfor(String testName : suiteResults.keySet()) {\n\t\t\t\t\n\t\t\t\tITestContext testContent = suiteResults.get(testName).getTestContext();\n\t\t\t\t\n\t\t\t\tlogResults(testContent);\n\t\t\t} // END LOOP - XML Test.\n\t\t} // END LOOP - XML Test Suite.\n\t\t\n\t\ttry {\n\t\t\tFileUtils.write(new File(outputDirectoryPath, reportFileName + \".txt\"), stringBuilder, StandardCharsets.UTF_8);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tthrow new RuntimeException(\"Could not write results to file!\\n\\n\" + stringBuilder);\n\t\t}\n\t}", "public void printReport(){\n StdOut.println(name);\n double total = cash;\n for (int i=0; i<n; i++){\n int amount = shares[i];\n double price = StockQuote.priceOf(stocks[i]);\n total+= amount*price;\n StdOut.printf(\"%4d %5s \", amount, stocks[i]);\n StdOut.printf(\"%9.2f %11.2f\\n\", price, amount*price);\n }\n StdOut.printf(\"%21s %10.2f\\n\", \"Cash: \", cash);\n StdOut.printf(\"%21s %10.2f\\n\", \"Total: \", total);\n }", "void genReport() {\n\n current_part.save_state(); \n\n JTextArea ta = text;\n\n ta.setText(\"\");\n\n if (!t_foil_name.equals(\"Test\"))\n ta.append(\"Hydrofoil: \" + t_foil_name);\n\n java.util.Date date = new java.util.Date();\n ta.append(\"\\n Date: \" + date);\n \n wing.print( \"Main Wing\", ta);\n stab.print( \"Stabilizer Wing\", ta);\n strut.print(\"Mast (a.k.a. Strut)\", ta);\n fuse.print( \"Fuselage\", ta);\n\n ta.append( \"\\n\\n\");\n // tail volume is LAElev * AreaElev / (MACWing * AreaWing)\n // LAElev : The elevator's Lever Arm measured at the wing's and elevator's quarter chord point\n double LAElev = stab.xpos + stab.chord_xoffs + 0.25*stab.chord - (wing.xpos + wing.chord_xoffs + 0.25*wing.chord);\n // MAC : The main wing's Mean Aerodynamic Chord\n // AreaWing : The main wing's area\n // AreaElev : The elevator's area\n \n ta.append( \"\\nTail Voulume: \" + LAElev*stab.span*stab.chord/(wing.chord*wing.chord*wing.span));\n \n\n ta.append( \"\\n\\n\");\n switch (planet) {\n case 0: { \n ta.append( \"\\n Standard Earth Atmosphere\" );\n break;\n }\n case 1: { \n ta.append( \"\\n Martian Atmosphere\" );\n break;\n }\n case 2: { \n ta.append( \"\\n Water\" );\n break;\n }\n case 3: { \n ta.append( \"\\n Specified Conditions\" );\n break;\n }\n case 4: { \n ta.append( \"\\n Specified Conditions\" );\n break;\n }\n }\n\n // ta.append( \"\\n Altitude = \" + filter0(alt_val) );\n // if (lunits == IMPERIAL) ta.append( \" ft ,\" );\n // else /*METRIC*/ ta.append( \" m ,\" );\n \n switch (lunits) {\n case 0: { /* English */\n ta.append( \"\\n Density = \" + filter5(rho_EN) );\n ta.append( \"slug/cu ft\" );\n ta.append( \"\\n Pressure = \" + filter3(ps0/144.) );\n ta.append( \"lb/sq in,\" );\n ta.append( \" Temperature = \" + filter0(ts0 - 460.) );\n ta.append( \"F,\" );\n break;\n }\n case 1: { /* Metric */\n ta.append( \" Density = \" + filter3(rho_EN*515.4) );\n ta.append( \"kg/cu m\" );\n ta.append( \"\\n Pressure = \" + filter3(101.3/14.7*ps0/144.) );\n ta.append( \"kPa,\" );\n ta.append( \" Temperature = \" + filter0(ts0*5.0/9.0 - 273.1) );\n ta.append( \"C,\" );\n break;\n }\n }\n\n ta.append( \"\\n Speed = \" + filter1(velocity * (lunits==IMPERIAL? 0.868976 : 0.539957 )) + \"Kts, or\" );\n ta.append( \" \" + filter1(velocity) );\n if (lunits == IMPERIAL) ta.append( \" mph ,\" );\n else /*METRIC*/ ta.append( \" km/hr ,\" );\n\n // if (out_aux_idx == 1)\n // ta.append( \"\\n Lift Coefficient = \" + filter3(current_part.cl) );\n // if (out_aux_idx == 0) {\n // if (Math.abs(lift) <= 10.0) ta.append( \"\\n Lift = \" + filter3(lift) );\n // if (Math.abs(lift) > 10.0) ta.append( \"\\n Lift = \" + filter0(lift) );\n // if (lunits == IMPERIAL) ta.append( \" lbs \" );\n // else /*METRIC*/ ta.append( \" Newtons \" );\n // }\n // if ( polarOut == 1)\n // ta.append( \"\\n Drag Coefficient = \" + filter3(current_part.cd) );\n // if (out_aux_idx == 0) {\n // ta.append( \"\\n Drag = \" + filter0(drag) );\n // if (lunits == IMPERIAL) ta.append( \" lbs \" );\n // else /*METRIC*/ ta.append( \" Newtons \" );\n // }\n\n ta.append( \"\\n Lift = \" + dash.outTotalLift.getText());\n ta.append( \"\\n Drag = \" + dash.outTotalDrag.getText());\n\n if (min_takeoff_speed_info != null) \n ta.append( \"\\n\\n\" + min_takeoff_speed_info);\n\n if (cruising_info != null) \n ta.append( \"\\n\\n\" + cruising_info);\n\n if (max_speed_info != null) \n ta.append( \"\\n\\n\" + max_speed_info);\n\n // ensure end ta.setCaretPosition(ta.getText().length());\n // ensure start\n ta.setCaretPosition(0);\n }", "private void writeRuleSetDetailToTSV(FileWriter writer, Claim claim) throws IOException\n {\n List<Rule> rules = claim.getRuleSet().getRule();\n \n for (Rule rule : rules)\n {\n writer.append(\"\\t\\tRule ID: \" + rule.getRuleID());\n writer.append(\"\\n\");\n writer.append(\"\\t\\tRule Name: \" + rule.getRuleName());\n writer.append(\"\\n\");\n writer.append(\"\\t\\tRule Comments: \" + rule.getRuleComments());\n writer.append(\"\\n\");\n \n writer.append(\"\\n\\n\");\n }\n \n }", "public void buildOutPutFile() throws Exception {\n\t\tFile theFile = openInputFile();\n\t\t\n\t\t// Open a random access file for reading the file from the disk\n\t\tRandomAccessFile theRAFile = new RandomAccessFile(theFile, \"r\");\t\n\t\tBufferedWriter theOutFile = null;\n\t\t// Create the file name\n\t\tString fileName = getOutPutFilePath();\n\t\t\n\t\t// Create the buffered writer\n\t\ttheOutFile = new BufferedWriter(new FileWriter(fileName));\n\t\t\n\t\tString badChars[] = {\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"0\"};\n\t\t\n\t\t\n\t\tString line = \"\";\n\t\twhile(line != null) {\t\t\t\t\t\t\t// Loop through the list\n\t\t\tline = theRAFile.readLine();\t\t\t\t// read the next line\n\t\t\tString goodLine=line;\t\t\t\t\t\t// set the good line equal to the line in the file\n\t\t\t// Loop through the line and replace all of the bad characters\n\t\t\tfor (int i=0; i < badChars.length; i++) {\n\t\t\t\t\n\t\t\t\tif (goodLine != null) {\n\t\t\t\t\t// take out the beginning line numbers\n\t\t\t\t\tgoodLine = goodLine.replace(badChars[i], \"\");\t\n\t\t\t\t\tSystem.out.println(\"goodLine\" + goodLine);\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t}\n\t\t\t// Write the good file out\n\t\t\twriteFile(goodLine, theOutFile);\t\t\t\n\t\t}\n\t\ttheRAFile.close();\t\t\t\t\t\t\t\t// close the reader \n\t\ttheOutFile.close();\t\t\t\t\t\t\t\t// close the writer\t\t\n\t}", "protected void writeChartDataToFile(FileWriter jOut) throws IOException {\n try {\n\n Object[][] p_oTableData; \n int iSp, iRow, iCol;//Write a header label\n \n jOut.write(\"Volume by DBH size class (m3 / ha). MAI is mean annual increment of total volume. \");\n if (m_bIncludeLive && m_bIncludeSnags)\n jOut.write(\"Showing live trees + snags\\n\");\n else if (m_bIncludeLive)\n jOut.write(\"Showing live trees only\\n\");\n else if (m_bIncludeSnags)\n jOut.write(\"Showing snags only\\n\");\n else\n jOut.write(\"Showing no trees\\n\");\n\n for (iSp = 0; iSp <= m_iNumSpecies; iSp++) {\n\n p_oTableData = createTable(iSp);\n \n //Write the species\n if (iSp < m_iNumSpecies) {\n jOut.write(m_oLegend.getSpeciesDisplayName(iSp) + \"\\n\");\n } else {\n jOut.write(\"All Species\\n\");\n }\n\n //Write the header row\n jOut.write(mp_sHeaders[0]);\n for (iCol = 1; iCol < mp_sHeaders.length; iCol++) {\n jOut.write(\"\\t\" + mp_sHeaders[iCol]);\n }\n jOut.write(\"\\n\"); \n\n //Write the data\n for (iRow = 0; iRow < p_oTableData.length; iRow++) {\n jOut.write(String.valueOf(p_oTableData[iRow][0]));\n for (iCol = 1; iCol < p_oTableData[iRow].length; iCol++) {\n jOut.write(\"\\t\" + String.valueOf(p_oTableData[iRow][iCol]));\n }\n jOut.write(\"\\n\");\n }\n jOut.write(\"\\n\");\n }\n }\n catch (sortie.data.simpletypes.ModelException oErr) {;}\n }", "public static void generate(Database database, String output, PrintWriter outLog)\r\n {\r\n try\r\n {\r\n String fileName;\r\n if (database.output.length() > 0)\r\n fileName = database.output;\r\n else\r\n fileName = database.name;\r\n outLog.println(\"DDL: \" + output + fileName + \".sql\");\r\n OutputStream outFile = new FileOutputStream(output + fileName + \".sql\");\r\n try\r\n {\r\n PrintWriter outData = new PrintWriter(outFile);\r\n for (int i=0; i < database.tables.size(); i++)\r\n generate((Table) database.tables.elementAt(i), outData);\r\n outData.flush();\r\n }\r\n finally\r\n {\r\n outFile.close();\r\n }\r\n }\r\n catch (IOException e1)\r\n {\r\n outLog.println(\"Generate Oracle SQL IO Error\");\r\n }\r\n }", "public void saveFile() {\r\n final String file = \"respuestaConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\";\r\n try {\r\n int count = 0;\r\n PrintWriter writer = new PrintWriter(file, \"UTF-8\");\r\n for (int i = 0; i < this.numberOfBees; i++) {\r\n if (beesArray[i].isInCollisionRisk()) {\r\n writer.println(beesArray[i].getLatitude() + \",\" + beesArray[i].getLongitude() + \",\" + beesArray[i].getHeight());\r\n count++;\r\n }\r\n }\r\n System.out.println(\"Number of bees in collision risk: \" + count);\r\n writer.close();\r\n } catch (IOException ioe) {\r\n System.out.println(\"Something went wrong writing the exit file\");\r\n }\r\n }", "public void writeFile(EquationStandardSession session, String inpLibrary) throws EQException\n\t{\n\t\tStatement statement = null;\n\t\ttry\n\t\t{\n\t\t\t// create the statement\n\t\t\tstatement = session.getConnection().createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n\n\t\t\t// create the table\n\t\t\tString sqlStatement = createTableSQL();\n\t\t\tstatement.execute(sqlStatement);\n\n\t\t\t// change the label of the table\n\t\t\tsqlStatement = createLabelTableSQL();\n\t\t\tstatement.execute(sqlStatement);\n\n\t\t\t// Set the column headings\n\t\t\tsqlStatement = createLabelFieldSQL(false);\n\t\t\tstatement.execute(sqlStatement);\n\n\t\t\t// Set the Field text for the columns\n\t\t\tsqlStatement = createLabelFieldSQL(true);\n\t\t\tstatement.execute(sqlStatement);\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tthrow new EQException(\"JournalFile: writeFile Failed: \", e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSQLToolbox.close(statement);\n\t\t}\n\t}", "@Postprocess\n public void getReport() {\n try {\n BufferedWriter bufferWriter = new BufferedWriter(new FileWriter(logfile, false));\n if (!results.isEmpty()) {\n bufferWriter.write(\"===========================================================\\n\");\n bufferWriter.write(\"sys_milli,\\t\\tdb_micro,\\t\\ttime_diff\\n\");\n Collections.sort(results);\n for (MysqlheartbeatBean mhb : results) {\n bufferWriter.write(String.valueOf(mhb.getSysMilli()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro() - mhb.getSysMilli()) + \"\\n\");\n }\n bufferWriter.flush();\n }\n bufferWriter.close();\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"{0}: {1}\", new Object[]{toolName, ex.getMessage()});\n }\n }", "public static void save()\n {\n try {\n \n \n PrintWriter fich = null;\n \n fich = new PrintWriter(new BufferedWriter(new FileWriter(\"bd.pl\", true)));\n\t\t\t//true c'est elle qui permet d'écrire à la suite des donnée enregistrer et non de les remplacé \n \n for(String auto : GestionController.listApp)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listDetFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listType)\n {\n \n fich.println(auto);\n }\n fich.println();\n fich.close();\n } catch (Exception e1) {\n printStrace(e1);\n\t\t}\n }", "@Test\n\tpublic void driverCreateReport() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t\"2019/04/23\", \"example\", \"player1\", null\n\t\t\t},//1. All fine\n\t\t\t{\n\t\t\t\t\"2019/04/23\", \"\t\t\", \"player1\", ConstraintViolationException.class\n\t\t\t},//2. Description = blank\n\t\t\t{\n\t\t\t\t\"2019/04/23\", null, \"player1\", ConstraintViolationException.class\n\t\t\t},//3. Description = null\n\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateCreateReport(this.convertStringToDate((String) testingData[i][0]), (String) testingData[i][1], (String) testingData[i][2], (Class<?>) testingData[i][3]);\n\t}", "@Override public void generateReport(IvyXmlWriter xw,DyviseDatabase db,List<TraceLockLocation> used)\n{\n if (xw != null) {\n xw.begin(\"TYPE\");\n xw.field(\"KIND\",\"JOIN\");\n xw.field(\"ID\",++item_counter);\n for (TraceLockLocation tll : location_set) {\n\t tll.outputXml(xw,false);\n }\n xw.end(\"TYPE\");\n }\n\n used.addAll(location_set);\n}", "public void fnWriteThreadReport(int iThreadCount, String sReportFile, String sCalendar, String sSummaryFile){\r\n \tString sRowColor;\r\n \r\n //Close the file\r\n try{ \r\n\t //Open the test case report for writing \r\n\t foutStrm = new FileOutputStream(sReportFile, true);\r\n\t \r\n\t //Set Row Color\r\n\t if (iThreadCount % 2 == 0){\r\n\t \tsRowColor = \"#EEEEEE\";\r\n \t}else{\r\n \t\tsRowColor = \"#D3D3D3\";\r\n \t\t}\r\n\t \r\n\t //Write the result of Individual Test Case\r\n\t new PrintStream(foutStrm).println (\"<TR COLS=3 BGCOLOR=\" + sRowColor + \"><TD WIDTH=10%><FONT FACE=VERDANA SIZE=2>\" + iThreadCount + \"</FONT></TD><TD WIDTH=35%><FONT FACE=VERDANA SIZE=2>\" + driverType + \"</FONT></TD><TD WIDTH=35%><FONT FACE=VERDANA SIZE=2>\" + sCalendar + \"</FONT></TD><TD WIDTH=20%><A HREF='\" + sSummaryFile + \"'><FONT FACE=VERDANA SIZE=2 COLOR=GREEN><B>Report</B></FONT></A></TD></TR>\");\r\n \r\n \tfoutStrm.close();\r\n }\r\n catch (IOException io){\r\n\t\t\tio.printStackTrace();\r\n\t\t}\r\n foutStrm = null;\r\n\r\n }" ]
[ "0.64843726", "0.6427297", "0.63082194", "0.6295978", "0.62728965", "0.6251346", "0.61741495", "0.6153013", "0.61511445", "0.61441475", "0.6104438", "0.6098642", "0.6080671", "0.6066627", "0.6065406", "0.6020987", "0.5995132", "0.5935584", "0.5923793", "0.59014446", "0.5855201", "0.5830124", "0.58254045", "0.5810122", "0.5806633", "0.5777499", "0.57739425", "0.5767369", "0.57437676", "0.57293373", "0.56521094", "0.5650466", "0.5645309", "0.5640631", "0.56276953", "0.55873996", "0.5583492", "0.5550083", "0.5544299", "0.55355823", "0.5533097", "0.55210125", "0.5506265", "0.55061704", "0.54889715", "0.54787546", "0.5476311", "0.5450525", "0.54468745", "0.5428478", "0.5409624", "0.5405487", "0.539844", "0.5397853", "0.5391086", "0.5383583", "0.5379674", "0.5353511", "0.5349541", "0.53476554", "0.5346331", "0.5334203", "0.5327904", "0.5324393", "0.5318059", "0.5300126", "0.52982837", "0.52859205", "0.5285041", "0.5283173", "0.5280739", "0.5275602", "0.52624667", "0.52582633", "0.52564496", "0.52544636", "0.52468026", "0.5246039", "0.52413833", "0.52376586", "0.5236874", "0.52310646", "0.52301913", "0.52233696", "0.52230555", "0.52227855", "0.5221638", "0.52208763", "0.52171516", "0.5203627", "0.51991266", "0.519449", "0.5191879", "0.5187396", "0.51830715", "0.5182093", "0.51771986", "0.5173126", "0.5169825", "0.5167443" ]
0.6925609
0
This method will called after clicking on Send button.
public void actionPerformed(ActionEvent ae) { ta.append("Me: "+tf.getText()+"\n"); pw.println(tf.getText());//write the value of textfield into PrintWriter tf.setText("");//clean the textfield }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleSend() {\n model.sendMail();\n view.getChildren().clear();//it \"hides the display\" of the previous view\n }", "@Override\n public void onClick(View view) {\n send();\n }", "public void updateSendButtonText() {\r\n sendButton.setText(topModel.getSendButtonText());\r\n }", "private void send() {\n Toast.makeText(this, getString(R.string.message_sent, mBody, Contact.byId(mContactId).getName()),\n Toast.LENGTH_LONG).show();\n finish(); // back to DirectShareActivity\n }", "@Override\n\tpublic void onMessagePlayCompleted() {\n\t\tbtnSend.setEnabled(true);\n\t}", "public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }", "@Then(\"^Click On Send Button$\")\r\n\tpublic void click_On_Send_Button() {\n\t\tnop.click(\"//*[@id=\\\"submitMessage\\\"]/span\"); \r\n\t \r\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tSystem.out.println(\"Sent\");\n\t\t\t\t\t}", "private void b_sendActionPerformed(java.awt.event.ActionEvent evt) { \r\n\t\tString nothing = \"\";\r\n\t\tif ((b_sendText.getText()).equals(nothing)) {\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\ttellEveryone(\"Server\" + \":\" + b_sendText.getText() + \":\" + \"Chat\");\r\n\t\t\t\tPrint_Writer.flush(); // flushes the buffer\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t}\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\r\n\t\tb_sendText.setText(\"\");\r\n\t\tb_sendText.requestFocus();\r\n\r\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tmConnectedThread.write(\"send\");\n\t\t\t\t\tmConnectedThread.writeFile();\n\t\t\t\t}", "public void handleSendButton(ActionEvent event) {\n\n messageController.setMessageSystem(this.message.getText(), this.toUsername.getText(),this.sender);\n if (messageController.sendMessage()){\n sentValid.setVisible(true);\n sentInvalid.setVisible(false);\n\n }\n else{\n sentInvalid.setVisible(true);\n sentValid.setVisible(false);\n\n }\n\n\n }", "@OnClick(R.id.enter_chat1)\n public void sendMessage() {\n if (getView() == null) {\n return;\n }\n EditText editText = getView().findViewById(R.id.chat_edit_text1);\n sendMessageBackend(editText.getText().toString(), utils.getChatUser());\n updateListAdapter();\n editText.setText(\"\");\n }", "public void clickOnSendNotification() {\r\n\r\n\t\treportStep(\"About to click on Send Notification button \", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(sendNotificationButton)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Send notification Button \", \"PASS\");\r\n\r\n\t\t}else {\r\n\r\n\t\t\treportStep(\"Failed to click onn the Send Notificationn Buttonn \", \"FAIL\");\r\n\t\t}\r\n\t}", "public void ClickSendApplicationButton()\n {\n\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(SendApplicationButton)).click();\n\n }", "@Override\n public void onClick(View view) {\n String msg = mSendView.getText().toString();\n currMessage = msg;\n mSendView.setText(\"\");\n sendMessage(msg);\n refresh();\n\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (btn1==e.getSource()) { //만약 버튼(btn1)클릭 시 동작\n\t\t\tto = tfphone.getText(); //텍스트필드(전화번호) 값가져와서 String to로 변형\n\t\t\ttext = tftext.getText(); //텍스트 필드(텍스트) 값자겨와서 String text로 변형 \n\t\t\t\t\t\t\t\t\t\t\t\t//문자전송(인자)가 String 이기때문에 String으로 변형해줘야함\n\t\t\tExampleSend ex = new ExampleSend(); //ExampleSend클래스 객체 생성\n\t\t\tex.문자전송(to, text);\n\t\t}\n\t\tif (btn2 == e.getSource()) {\n\t\t\ttfphone.setText(\"\");\n\t\t\ttftext.setText(\"\");\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsendSmsNew(phoneNum);\r\n\t\t\t\tsetTextSend();\r\n\t\t\t}", "private void sendButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendButtonActionPerformed\n String str = requestCommand.getText();\n sC.sendCommand(str); \n requestCommand.requestFocus();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsendEmail();\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailFrame f = new SendEmailFrame();\r\n\t\t\t\tf.setVisible(true);\r\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tString message= txtMessage.getText();\n\t\t\t\tsend(message);\n\t\t\t}", "public void sendClick(View view) {\n String message = input.getText().toString();\n uart.send(message);\n }", "@Override\r\n public void onClick(View v)\r\n {\n if (\"\" != mSendOnBoardEdit.getText().toString()){\r\n DJIDrone.getDjiMainController().sendDataToExternalDevice(mSendOnBoardEdit.getText().toString().getBytes(),new DJIExecuteResultCallback(){\r\n\r\n @Override\r\n public void onResult(DJIError result)\r\n {\r\n // TODO Auto-generated method stub\r\n \r\n }\r\n \r\n });\r\n }\r\n }", "private void createSendArea() {\n\t\tthis.btnSend = new Button(\"Envoyer\");\n\t\tthis.btnSend.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tboolean sent = window.sendMessage(message.getText());\n\t\t\t\tif(sent) {\n\t\t\t\t\tmessage.setText(\"\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\tnew JFrame(),\n\t\t\t\t\t\t\"Erreur lors de l'envoi du message...\",\n\t\t\t\t\t\t\"Dialog\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onClick(View view) {\n\n runOnUiThread(\n new Runnable() {\n @Override\n public void run() {\n MainActivity\n .this\n .connectionManager.getTo().println(\n MainActivity\n .this\n .send_text.getText().toString()\n );\n }\n }\n );\n\n }", "private void setSendDataButton() {\n\t\tsetDataInDB();\n\t\tif (!alreadyPushed)\n\t\t\tsendDataToServer();\n\t\treturnOnWorkoutList();\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tEnviarMailVisMed mail = new EnviarMailVisMed();\r\n\t\t\t\tmail.setVisible(true);\r\n\t\t\t}", "public void email() {\n\t\t\t\temailGUI = new EmailGUI();\n\t\t\t\tpopUpWindow = emailGUI.getFrame();\n\t\t\t\tpopUpWindow.setVisible(true);\n\t\t\t\temailGUI.setListeners(new mailListener());\n\t\t\t}", "public void received()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Received\")).click();\n\t}", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "@Override\n public void onClick(View view) {\n intent.putExtra(SEND_KEY,sendText.getText().toString());\n\n //Start next Activity/No data is passed back to this activity\n startActivity(intent);\n\n }", "public void onClickSend(View view) {\n //String string = editText.getText().toString();\n //serialPort.write(string.getBytes());\n //tvAppend(txtResponse, \"\\nData Sent : \" + string + \"\\n\");\n }", "@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\r\n\r\n\t\t\t\t\t\ti.setType(\"message/rfc822\");\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * i.setClassName(\"com.google.android.gm\",\r\n\t\t\t\t\t\t * \"com.google.android.gm.ComposeActivityGmail\");\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ti.putExtra(Intent.EXTRA_EMAIL,\r\n\t\t\t\t\t\t\t\tnew String[] { \"[email protected]\" });\r\n\r\n\t\t\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\r\n\r\n\t\t\t\t\t\ti.setType(\"message/rfc822\");\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * i.setClassName(\"com.google.android.gm\",\r\n\t\t\t\t\t\t * \"com.google.android.gm.ComposeActivityGmail\");\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ti.putExtra(Intent.EXTRA_EMAIL,\r\n\t\t\t\t\t\t\t\tnew String[] { \"[email protected]\" });\r\n\r\n\t\t\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t\t\t}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "private void sendTextInBox() {\n\t\tmodelAdapter.send(textFieldMessage.getText());\n\t textFieldMessage.setText(\"\");\n\t }", "public void handleSendBtn(ActionEvent actionEvent) throws IOException {\n Socket socket = ConnSocket.getInstance();\n InputStream inputStream = socket.getInputStream();\n OutputStream outputStream = socket.getOutputStream();\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream, true);\n //String [] userInfo = {textField.getText(), nameLabel.getText()};\n out.println(textField.getText());\n\n }", "@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n fenetre.getClient().envoyerMessage(getMessage(), optionEnvoi); // Envoie du message\n saisieMessage.setText(\"\"); // On supprime le texte de la saisie message\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSendToServer(ph);\n\t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Step\n public void clickSendSMSButton(){\n actionWithWebElements.clickOnElement(sendSMSButton);\n }", "public void sendLog() {\n\t\tcommon.waitFor(5000);\n\t\tcommon.isElementDiplayed(sendButton);\n\t\tsendButton.click();\n\t\tcommon.isElementDiplayed(sucessMessage);\n\t\tsendButton.click();\n\n\t}", "public void send() {\n\t}", "@Override\r\n public void onClick(View v) {\n String msg = ed_msg.getText().toString();\r\n try {\r\n\t\t\t\t\tsend(HOST, PORT, msg.getBytes());\r\n\t\t\t\t\t\r\n\t \tmHandler.sendMessage(mHandler.obtainMessage()); \r\n\t \tcontent =HOST +\":\"+ msg +\"\\n\";\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }", "@Override\n\t public void onClick(View v) {\n\t \t SendReqToPebble();\n\t }", "public void clickSendInvitationButton() throws Exception {\n\t\twdriver.findElement(By.xpath(locators.clickSendInvitationButton)).click();\n\t}", "@Override\n public void sendEmail() {\n return;\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tC2DMessaging.register(getBaseContext(), \"[email protected]\");\t\t\t\n\t\t}", "@Override\n public void onClick(View view) {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(\"message/rfc822\");\n i.putExtra(Intent.EXTRA_EMAIL , new String[]{\"\"});\n i.putExtra(Intent.EXTRA_SUBJECT, \"\");\n i.putExtra(Intent.EXTRA_TEXT , \"\");\n try {\n startActivity(Intent.createChooser(i, \"Envoyer un mail\"));\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(MainActivity.this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n }\n }", "void sendMessage() {\n\n\t}", "@Override\n\tpublic void send() {\n\t\tSystem.out.println(\"this is send\");\n\t}", "private void customSendBlueButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_customSendBlueButtonActionPerformed\n String custom = customMessageField.getText();\n Msg.send(\"Clicked - message: \" + custom);\n sendCustomMessage(custom, \"B\");\n }", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\r\n\t\t\t{\n\t\t\t\tif (!internetConnection)\r\n\t\t\t\t{\r\n\t\t\t\t\tshowNoConnectionDialog();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t\t// Get phoneId to attend in message\r\n\t\t\t TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);\r\n\t\t\t\tString phoneId = telephonyManager.getDeviceId(); \r\n\t\t\t \r\n\t\t\t\t// Send mail without blocking the GUI\r\n\t\t\t\tif (dataModel == null)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSendEmail sendEmail = new SendEmail(\"[email protected]\", \r\n\t\t\t \t\t\t\t\t\t\t\t\t\"AskMeAgain\", \r\n\t\t\t \t\t\t\t\t\t\t\t\tdataModel.getRecipientMail(),\r\n\t\t\t \t\t\t\t\t\t\t\t\tgetResources().getString(R.string.fogot_id_mail_subject),\r\n\t\t\t \t\t\t\t\t\t\t\t\tgetResources().getString(R.string.fogot_id_mail_text) + \" \" + phoneId + \".\");\r\n\t\t\t sendEmail.execute();\r\n\t\t\t}", "public void enableDisableSendButton() {\r\n sendButton.setEnabled(topModel.isSendButtonEnabled());\r\n }", "public void handleSend(ActionEvent actionEvent) {\r\n String to=textFieldTo.getText();\r\n try{\r\n Long idto = Long.parseLong(to);\r\n\r\n FriendshipRequest request = new FriendshipRequest();\r\n Tuple<Long,Long> f = new Tuple<>(user.getId(), idto);\r\n request.setId(f);\r\n\r\n service.addRequest(request);\r\n showMessage(Alert.AlertType.CONFIRMATION,\"Request sent!\",\"Request is now pending!\");\r\n\r\n textFieldTo.clear();\r\n\r\n\r\n }catch(NumberFormatException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }catch (ServiceException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }\r\n }", "public void onClickSend(View view) {\n String string = editText.getText().toString();\n serialPort.write(string.getBytes());\n tvAppend(textView, \"\\nData Sent : \" + string + \"\\n\");\n\n }", "private void sendMessage() {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(getString(R.string.send_mail_intent_type));\n i.putExtra(Intent.EXTRA_EMAIL, new String[]{getString(R.string.send_mail_default_email)});\n i.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.send_mail_default_subject));\n i.putExtra(Intent.EXTRA_TEXT, getMessage());\n\n if (i.resolveActivity(getPackageManager()) != null) {\n startActivity(Intent.createChooser(i, getString(R.string.send_mail_chooser_title)));\n\n } else {\n showToast(R.string.alert_send_message_application_not_found);\n }\n }", "public JButton getSend() {\n\t\treturn send;\n\t}", "public void sendButtonClick(View v){\n String title = getText(R.string.mail_title).toString();\n String mailto = \"mailto:\" + emailAdress;\n Intent openEmailApp = new Intent(Intent.ACTION_SENDTO);\n openEmailApp.setType(\"plain/text\");\n openEmailApp.setData(Uri.parse(mailto));\n openEmailApp.putExtra(Intent.EXTRA_SUBJECT, userName + title);\n openEmailApp.putExtra(Intent.EXTRA_TEXT, evaluationMessage);\n startActivity(openEmailApp);\n }", "public void actionPerformed( ActionEvent ae )\n {\n if( ae.getSource() == sendButton )\n \tprocessMail(message);\n }", "@Override\r\n public void actionPerformed(ActionEvent ae) {\n taReceive.setText(\"\");\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttry {\n\t\t\t\t\tString body = etBody.getText().toString();\n\t\t\t\t\tTApplicatioin.multiUserChat.sendMessage(body);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onClick(View v) {\n sendMessage(phone_from_intent);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif (!Window.Linksign) {\n\t\t\tif (BeganSign == 0) {\n\t\t\t\tBeganSign = 1;\n\t\t\t\taccept.append(\"已准备\\n\");\n\t\t\t\tWindow.f3listener.F3();\n\t\t\t\tbattleSend.Mistake = 0;\n\t\t\t} else {\n\t\t\t\tBeganSign = 0;\n\t\t\t\taccept.append(\"取消准备\\n\");\n\t\t\t\tsendText.setText(\"\");\n\t\t\t\tsendText.setEditable(false);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tout = new DataOutputStream(client.socket.getOutputStream());\n\t\t\t\tString message = \"%\" + BeganSign + \"%\" + sendText.getText()\n\t\t\t\t\t\t+ \"%\" + RegexText.duan1 + \"#\" + Window.wenben.getText()\n\t\t\t\t\t\t+ \"%0\" + \"%\" + Login.zhanghao.getText();\n\t\t\t\tQQZaiwenListener.wenbenstr = Window.wenben.getText();\n\t\t\t\tout.writeUTF(message);// 向服务器发送信息\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\taccept.append(\"请先加入一个房间\\n\");\n\t\t}\n\t}", "public boolean SendingMessage() {\n \t\t\treturn false;\n \t\t}", "public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Envoyer un mail au support\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_SendMail();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }", "@Override\n public void onClick(View arg0) {\n\n String messageToSend = \"Thank you for shopping. Your order will be delivered soon.\";\n String number = \"6476710881\";\n SmsManager.getDefault().sendTextMessage(number, null, messageToSend, null,null);\n Toast.makeText(getApplicationContext(), \"Your Payment is done\", Toast.LENGTH_LONG).show();\n\n Intent myIntent = new Intent(getApplicationContext(),LoginActivity.class);\n startActivity(myIntent);\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 1;\n add_address_handler.sendMessage(msg);\n }", "public void goSendOrderButton(View view) { //is called by onClick function of Button in activity_main.xml\n if(WifiAvaible()) {\n try {\n fab.getProtocol().sendOrder(surface.getSeedbox().toString());\n OrderStatus.setText(\"Waiting for \\n\"+\"confirmation.\");\n } catch (Exception e) {\n //ErrorWindow\n }\n\n SendButton.setEnabled(false);\n }\n\n\n/*\n if(ClickCnt == 0) {\n mp.start();\n ClickCnt = 1;\n } else {\n ClickCnt = 0;\n mp.stop();\n try {\n mp.prepare();\n }\n catch (java.lang.Exception e)\n {\n // Do nothing\n }\n\n mp.seekTo(0);\n }*/\n }", "private void sendMessage() {\n\t\tString text = myMessagePane.getText();\n\t\tMessage msg = new Message(text, myData.userName, myData.color);\n\n\t\tcommunicationsHandler.send(msg);\n\n\t\t// De-escape xml-specific characters\n\t\tXmlParser xmlParser = new XmlParser(myData);\n\t\tString outText = xmlParser.deEscapeXMLChars(msg.text);\n\t\tmsg.text = outText;\n\n\t\tmyMessagePane.setText(\"\");\n\t\tupdateMessageArea(msg);\n\n\t}", "public void sendMessage(View view) {\n\t\t// Do something in response to button\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\n\t\tstartActivity(intent);\n\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailManager mng = new SendEmailManager(course, section);\r\n\t\t\t\ttry {\r\n\t\t\t\tfor (Student student : StudentArray) {\r\n\t\t\t\t\tif(mng.sendFromGMail(student.getEmail(), student.getName(), student.getCode(), student.getGrade())) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tthrow new SendFailedException(\"send failed\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Send Successed\");\r\n\t\t\t\t}catch(SendFailedException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n client.sendMessage(new QuestionAnsweredMessage(answerField.getText()));\n //mainGUI.showMainPanel();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString text = getCurUser() + \" : \" + textField.getText();\n\t\t\t\ttextField.setText(\"\");\n\t\t\t\tfinal ChatMessage msg = new ChatMessage();\n\t\t\t\tmsg.setMessage(text);\n\t\t\t\tmainFrame.sendMessage(msg);\n\t\t\t\t\n\t\t\t}", "private void send() {\n ModelManager.putFeedBack(getCurrentActivity(),\n GlobalValue.myAccount.getId() + \"\", edtTitle.getText()\n .toString(), edtDes.getText().toString(),type, true,\n new ModelManagerListener() {\n\n @Override\n public void onSuccess(Object object) {\n // TODO Auto-generated method stub\n edtDes.setText(\"\");\n edtTitle.setText(\"\");\n MainUserActivity activity = (MainUserActivity) getCurrentActivity();\n activity.backFragment(new AccountFragment());\n }\n\n @Override\n public void onError(VolleyError error) {\n // TODO Auto-generated method stub\n Toast.makeText(self, ErrorNetworkHandler.processError(error), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void onClick(View arg0) {\n Intent email = new Intent(Intent.ACTION_SEND);\n // Put essentials like email address, subject & body text\n email.putExtra(Intent.EXTRA_EMAIL,\n new String[]{\"[email protected]\"});\n email.putExtra(Intent.EXTRA_SUBJECT,\n \"Daily Grades\");\n //email.putExtra(Intent.EXTRA_TEXT, mydb.getDailyGrade().toString());\n // This MIME type indicates email\n email.setType(\"message/rfc822\");\n // createChooser shows user a list of app that can handle\n // this MIME type, which is, email\n startActivity(Intent.createChooser(email,\n \"Choose an Email client :\"));\n\n }", "@Override\n public void onClick(View view)\n {\n Intent sendIntent = new Intent();\n // La accion es un envio a una aplicacion externa\n sendIntent.setAction(Intent.ACTION_SEND);\n // Enlace que vamos a enviar\n sendIntent.putExtra(Intent.EXTRA_TEXT, direccionAplicacion);\n // Se va a enviar un texto plano\n sendIntent.setType(\"text/plain\");\n\n // manda mensaje si no tiene aplicacion con la que compartir en el sistema\n Intent shareIntent = Intent.createChooser(sendIntent, \"no tengo aplicacion para compartir en emulador\");\n // Inicia la actividad compartir enlace de la noticia\n getContext().startActivity(shareIntent);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 0;\n add_address_handler.sendMessage(msg);\n }", "private void customSendRedButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_customSendRedButtonActionPerformed\n String custom = customMessageField.getText();\n Msg.send(\"Clicked - message: \" + custom);\n sendCustomMessage(custom, \"R\");\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\ttry{\n\t\t\t\tmsgText.append(sendEdit.getText().toString()+\"\\n\");\n\t\t\t\tscrollview.fullScroll(ScrollView.FOCUS_DOWN);\n\t\t\t\tsendEdit.append(\"\\r\\n\");\n\t\t\t\tbtOut.write(sendEdit.getText().toString().getBytes());\n\t\t\t\tsendEdit.setText(\"\");\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void onClick(View arg0) {\n\t\t\t\tString emailAddress = \"[email protected]\";\r\n\t\t\t\tString emailSubject = edittextEmailSubject.getText().toString();\r\n\t\t\t\tString emailText = edittextEmailText.getText().toString();\r\n\t\t\t\tString emailAddressList[] = {emailAddress};\r\n\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_SEND); \r\n\t\t\t\tintent.setType(\"plain/text\");\r\n\t\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, emailAddressList); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, emailSubject); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_TEXT, emailText); \r\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Choice App to send email:\"));\r\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tsendmes(e.getActionCommand());\r\n\t\t\t\t\t\tusertext.setText(\"\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "private JButton initializeSendButton() {\r\n\t\tJButton sendButton = new JButton(\"Send\");\r\n\t\tsendButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// send message which taken from text field.\r\n\t\t\t\ttry {\r\n\t\t\t\t\tnotifyMessageFromUI();\r\n\t\t\t\t\tchatArea.append(messageField.getText() + \"\\n\");\r\n\t\t\t\t\tmessageField.setText(\"\");\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn sendButton;\r\n\t}", "@Override\n\tpublic void showMailDialog() {\n\t\t\n\t}", "@Click public void aboutEmailButton() {\n\n Intent emailIntent = new Intent(\n Intent.ACTION_SENDTO, Uri.parse(\"mailto:\" + Uri.encode(EMAIL))\n );\n //emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n //emailIntent.putExtra(Intent.EXTRA_TEXT, body);\n\n //startActivity(emailIntent);\n //startActivity(Intent.createChooser(emailIntent, \"Send an email\"));\n\n try {\n startActivity(emailIntent);\n } catch (ActivityNotFoundException e) {\n app.toasty(R.string.error_no_email_client);\n e.printStackTrace();\n }\n }", "private void emailSentMessageFrame() {\r\n\t\tcreateWarning(2000, \"EMAIL SENT\"); //show warning message\r\n\t\t\r\n\t\twarningFrame.dispose(); //close warning window\r\n\t}", "public void onCLickSendOtp(View view)\n {\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == jb)// 发送消息\r\n\t\t{\r\n\t\t\tMessage m = new Message();\r\n\t\t\tm.setMesType(\"20\");// MessageType.message_comm_mes\r\n\t\t\tm.setSender(this.ownerId);\r\n\t\t\tm.setGetter(\"\");\r\n\t\t\tm.setCon(jtf.getText());\r\n\t\t\tthis.jta.append(\"我说:\" + jtf.getText() + \"\\r\\n\");\r\n\t\t\ttry {\r\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(\r\n\t\t\t\t\t\tManageClientConServerThread\r\n\t\t\t\t\t\t\t\t.getClientConServerThread(ownerId).getS()\r\n\t\t\t\t\t\t\t\t.getOutputStream());\r\n\t\t\t\toos.writeObject(m);\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public void sendMessage(View buttonView)\n {\n state = 0;\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.Message);\n EditText editTextPhoneNumber = (EditText) findViewById(R.id.Phone);\n String message = editText.getText().toString();\n String phoneNumberMessage = editTextPhoneNumber.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n intent.putExtra(EXTRA_PHONEMESSAGE, phoneNumberMessage);\n startActivity(intent);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n chat.receiveMessage();\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tString contentString = editSend.getText().toString();\n\t\teditSend.setText(\"\");\n\t\tString sendString = contentString.replace(\" \", \"\");\n\t\tsendString = sendString.replace(\"\\n\", \"\");\n\n\t\tListData sendData = new ListData(contentString, ListData.SEND,\n\t\t\t\tgetTime());\n\t\tlists.add(sendData);\n\n\t\tif (lists.size() >= 100) {\n\t\t\tfor (int i = 0; i < lists.size() - 30; i++) {\n\t\t\t\tlists.remove(i);\n\t\t\t}\n\n\t\t}\n\t\ttextAdapter.notifyDataSetChanged();\n\t\tHttpData httpData = (HttpData) new HttpData(\n\t\t\t\t\"http://www.tuling123.com/openapi/api?\"\n\t\t\t\t\t\t+ \"key=f7f0654e45e5fb1638e7e89d5d310c3c&info=\"\n\t\t\t\t\t\t+ sendString, this).execute();\n\n\t}", "@Override\r\n\tpublic void onClick(View arg0) {\n\t\tIntent myobj=new Intent(Intent.ACTION_SENDTO,Uri.parse(\"smsto:\"+e2.getText().toString()));\r\n\t\tmyobj.putExtra(\"sms_body\",e1.getText().toString());\r\n\t\tstartActivity(myobj);\r\n\t}", "@Override\n public void onClick(View v) {\n \n switch (v.getId()) {\n case R.id.sendBtn:\n //Log.d(\"XXX\", \"SEND BTN\");\n if (validateFields() == false) {\n // mostro avviso errore\n CharSequence text = \"Per favore completa i campi richiesti correttamente\";\n Toast toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);\n toast.show();\n }\n else {\n sendRequestToServer();\n }\n break;\n case R.id.surname:\n // Log.d(\"XXX\", \"COGNOME EDIT TEXT\");\n break;\n case R.id.email:\n break;\n case R.id.tel:\n break;\n default:\n break;\n }\n \n }", "@Override\r\n\t public void onClick(View arg0) {\n\t screenDialog.dismiss();\r\n\t String sms = messageText.getText().toString();\r\n\t \ttry {\r\n\t\t\t\tSmsManager smsManager = SmsManager.getDefault();\r\n\t\t\t\tsmsManager.sendTextMessage(phone, null, sms, null, null);\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"SMS Sent!\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"SMS faild, please try again later!\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t }", "public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n String message = \"You pressed the button!\";\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tUri uri = Uri.parse(\"smsto://08000000123\");\n\t\t\tIntent intent = new Intent(Intent.ACTION_SENDTO, uri);\n\t\t\tintent.putExtra(\"sms_body\", \"SMS message\");\n\t\t\tstartActivity(intent);\n\t\t}", "public void submitText() {\r\n \t\tthis.dialog.clickOK();\r\n \t}", "public void onSendMessage(View view) {\n // get the EditText view of the layout with the id: message\n EditText messageView = (EditText) findViewById(R.id.message);\n // get the text added by the user in the EditText\n String messageText = messageView.getText().toString();\n // Create a new Intent with an action of SEND\n Intent intent = new Intent(Intent.ACTION_SEND);\n // set the MIME type for the Intent\n intent.setType(\"text/plain\");\n // Add to the Intent the text from the EditText view\n intent.putExtra(Intent.EXTRA_TEXT, messageText);\n // get the text form a string resource\n String chooserTitle = getString(R.string.chooser);\n // wrap the Intent in a chooser so Android always ask for with app to choose\n Intent chosenIntent = Intent.createChooser(intent, chooserTitle);\n // Start the activity of whatever app is available\n startActivity(chosenIntent);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(chat_field.getText().equals(\"\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"채팅을 입력해주세요.\", \"warning\",JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}\n\t\t\t\tchat_area.append(\"[\" + id + \"]\" + chat_field.getText() + \"\\n\");\n\t\t\t\twt.sendMsg();\n\t\t\t\tchat_field.setText(\"\");\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\r\n\t\t\t\t\tnotifyMessageFromUI();\r\n\t\t\t\t\tchatArea.append(messageField.getText() + \"\\n\");\r\n\t\t\t\t\tmessageField.setText(\"\");\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}" ]
[ "0.74213755", "0.7405532", "0.7371027", "0.7261987", "0.7226024", "0.71367896", "0.7134674", "0.71123016", "0.70512223", "0.6975275", "0.6974683", "0.69113785", "0.6882818", "0.684496", "0.683817", "0.6829841", "0.68244284", "0.6821959", "0.68002355", "0.67839503", "0.67803717", "0.6748781", "0.6744372", "0.6743853", "0.67337036", "0.6722145", "0.6718569", "0.67058074", "0.6683137", "0.6680953", "0.6679722", "0.6672547", "0.6659085", "0.6659085", "0.6652783", "0.66517013", "0.66438526", "0.6636515", "0.6632313", "0.6605979", "0.6604319", "0.660213", "0.6597071", "0.6572122", "0.65665966", "0.6557415", "0.6552564", "0.6552486", "0.6527011", "0.65266335", "0.65121144", "0.6500624", "0.64966804", "0.648002", "0.6455482", "0.6452007", "0.64344084", "0.6430386", "0.64210033", "0.6417274", "0.6402383", "0.6394331", "0.63725185", "0.6361425", "0.6345711", "0.6335253", "0.6334795", "0.63279605", "0.6321455", "0.63205296", "0.6317899", "0.6317568", "0.6312398", "0.62971294", "0.6294846", "0.6294306", "0.6275951", "0.62688816", "0.6267547", "0.6261775", "0.62597644", "0.62578934", "0.6255036", "0.6244036", "0.6241888", "0.6233216", "0.62310725", "0.6224983", "0.622403", "0.622131", "0.62208974", "0.6215012", "0.6214635", "0.6212905", "0.6202769", "0.61943007", "0.6192364", "0.61922634", "0.6191045", "0.61901456", "0.6184647" ]
0.0
-1
Thread running as a process in background
public void run() { while(true) { try{ String s; s=br.readLine(); ta.append("pagal: "+s+"\n");//Append to TextArea }catch(Exception e) {} } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void backgroundProcess();", "void backgroundProcess();", "private void backgroundExecution() {\n // This moves the time consuming operation to a child thread.\n Thread thread=new Thread(null, doBackgroundThreadProcessing, \"Background\");\n thread.start();\n }", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "public void start(){\r\n\t\tnew Thread(\r\n\t new Runnable() {\r\n\t public void run() {\r\n\t \twhile(true){\r\n\t \t\t try {\r\n\t \t Thread.sleep(200);\r\n\t \t } catch (Exception e) {\r\n\t \t e.printStackTrace();\r\n\t \t }\r\n\t \t // Functions.DEBUG(\r\n\t \t // \"child thread \" + new Date(System.currentTimeMillis()));\r\n\t \t repaint();\r\n\t \t}\r\n\t }\r\n\t }).start();\r\n\t}", "@Override\n\t public void run()\n\t {\n\t // running is initialized as true and stays that way until shutdown method is called from main thread\n\t \t\t// running is volatile to ensure that the change made to running by calling shutdown() on the main thread\n\t \t\t// is read synchronized and the change is passed to background thread where run() is executed\n\t \t\twhile (running)\n\t {\n\t System.out.println (\"Hello\");\n\t \n\t try\n\t {\n\t Thread.sleep(300);\n\t }\n\t catch (InterruptedException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t }\n\t }", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "private void backgroundThreadProcessing() {\n // [ ... Time consuming operations ... ]\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "private void startProcess() {\r\n \t\tstartCount++;\r\n \t\tString threadName = Thread.currentThread().getName() + \"-starter-\" + startCount;\r\n \t\tThread starter = new Thread(threadName) {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\tstartupThrotle.acquireUninterruptibly();\r\n \t\t\t\tlong startTime = System.currentTimeMillis();\r\n \t\t\t\tMaximaProcess mp = makeProcess();\r\n \t\t\t\tstartupTimeHistory.add(System.currentTimeMillis() - startTime);\r\n \t\t\t\tmp.deactivate();\r\n \t\t\t\tpool.add(mp);\r\n \t\t\t\tstartupThrotle.release();\r\n \t\t\t}\r\n \t\t};\r\n \t\tstarter.start();\r\n \t}", "void startDaemon () {\n if (daemon == null) {\n daemon = new Thread((Runnable) this); \n daemon.start();\n }\n }", "private void startBackgroundThread() {\n mThread = new HandlerThread(getString(R.string.app_name));\n mThread.start();\n Timber.d(\"Background thread started successfully\");\n mHandler = new Handler(mThread.getLooper());\n }", "@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tThread.sleep(30000);\n\t\t\t\t\t\tif (buildProcess.isAlive())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuildProcess.destroy();\n\t\t\t\t\t\t\tal.add(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}", "protected void startBackgroundThread() {\n mBackgroundThread = new HandlerThread(\"Camera Background\");\n mBackgroundThread.start();\n mBackgroundHandler = new Handler(mBackgroundThread.getLooper());\n }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "ThreadStart createThreadStart();", "public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }", "public void start() {\r\n\t\tisRunning = true;\r\n\t\tnew Thread(this).start();\r\n\t}", "public void startBackgroundThread() {\n this.backgroundThread = new HandlerThread(\"DepthDecoderThread\");\n this.backgroundThread.start();\n this.backgroundHandler = new Handler(backgroundThread.getLooper());\n }", "public void start() {\n\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\n\t}", "@Override\n\tpublic void run() {\n\t\tif(Thread.currentThread().isDaemon()){\n\t\t\tSystem.out.println(\"daemon thread work\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"user thread work\");\n\t\t}\n\t}", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\n\t\t\t\tint tid=android.os.Process.myTid();\n\t\t\t\tLog.d(C.LOG_TAG,\"Process priority before change = \" + android.os.Process.getThreadPriority(tid));\n\t\t\t\tLog.d(C.LOG_TAG, \"Process priority before change = \" + Thread.currentThread().getPriority());\n\t\t\t\tandroid.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_MORE_FAVORABLE);\n\t\t\t\tLog.d(C.LOG_TAG,\"Process priority after change = \" + android.os.Process.getThreadPriority(tid));\n\t\t\t\tLog.d(C.LOG_TAG,\"Process priority after change = \" + Thread.currentThread().getPriority());\n\n\n\t\t\t\tkeepAudioRecording(syncToken);\n\t\t\t}", "@Override\n public void run() {\n try{\n for(int n = 0;n < 20; n++){\n //This simulates 1sec of busy activity\n Thread.sleep(1000);\n //now talk to the ain thread\n myHandler.post(foregroundTask);\n }\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "public void run() {\r\n\r\n \t if(tHread.isAlive()){\r\n \t //do something - for example start and run progressbar\r\n \t }\r\n \t\telse{\r\n \t\t tImer.cancel();\r\n \t\t if(readFromDB)readFromDB = false;\r\n \t\t if(writeIntoDB)writeIntoDB = false;\r\n \t\t System.out.println();\r\n \t\t}\r\n \t}", "void start() {\n\tsleepThread = new Thread(this);\n\tsleepThread.start();\n }", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "private void launchPongManagerThread() {\n \t\tPongManager pongManager = new PongManager(this, listenAddress);\n \t\tfinal Thread t = this.listenChannel.getThreadFactory().newThread(pongManager);\n \t\tt.setName(\"Pong Server Manager\");\n \t\tt.start();\n \t}", "public void start() {\r\n running = true;\r\n new Thread(this).start();;\r\n }", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "void startThread();", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "@Override\n\tpublic void run() {\n\t\tString result = null;\n\t\twhile (checkToStart()) {\n\t\t\tresult = doRun();\n\t\t\tsendResult(result);\n\t\t}\n\t\t// System.out.println(\"Thread - \" + name + \" is dead\");\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"======开始执行任务======\");\n\t\trunning = true;\n\t\twhile (running) {\n\t\t}\n\t\tSystem.out.println(\"======结束执行任务======\");\n\t}", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tinfos = packageInfo.getRunningProcess();\r\n\t\t\tsetTraffic();\r\n\t\t\tmGet = true;\r\n\t\t\thandler.postDelayed(runnable, 3000);\r\n\t\t}", "public void resume(){\r\n\r\n isRunning = true;\r\n ourThread = new Thread(this);\r\n ourThread.start();\r\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(bLinked &&!isExit()){\r\n\t\t\t\tLog.d(\"123\", \"set heart beat threadid:\"+Thread.currentThread().getId());\r\n\t\t\t\tjni.talkSetHeartBeat();\r\n\t\t\t\tif(jni.talkGetRegisterState()!=1 ){\r\n\t\t\t\t\tLog.e(\"123\", \"心跳停止了\");\r\n\t\t\t\t\tbLinked = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbLinked = true;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(interval*1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!bLinked){\r\n\t\t\t\thandler.sendEmptyMessage(MSG_NOT_LINK);\r\n\t\t\t}\r\n\t\t\theartThread = null;\r\n\t\t\tsuper.run();\r\n\t\t}", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "private void startBackgroundThread() {\n backgroundHandlerThread = new HandlerThread(\"Camera2\");\n backgroundHandlerThread.start();\n backgroundHandler = new Handler(backgroundHandlerThread.getLooper());\n }", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "public void start()\r\n {\r\n if (_keepGoing) return;\r\n\r\n _keepGoing = true;\r\n\r\n Thread thread = new Thread(this);\r\n thread.start();\r\n }", "public void resume ()\n\t{\n\t\trunning = true;\n\n\t\tif (loopThread == null)\n\t\t{\n\t\t\tloopThread = new Thread(this);\n\t\t\tloopThread.start();\n\t\t}\n\n\t\tif (!loopThread.isAlive())\n\t\t{\n\t\t\tloopThread = new Thread(this);\n\t\t\tloopThread.start();\n\t\t}\n\n\t\tif (mp != null) mp.start();\n\t}", "@Override\r\n\tpublic void run() {\n\t\tthis.setName(\"后台线程\");\r\n\t\tshutdownFlag = false;\r\n\t\tconnection = new Connection(this);\r\n\t\tconnection.connect(ip, port, user, pwd);\r\n\t\twhile (!shutdownFlag) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(30000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (connection.getConnState() == Connection.CONNSTATE_NOT_CONNECTED) {\r\n\t\t\t\tconnection.connect(ip, port, user, pwd);\r\n\t\t\t} else if (connection.getConnState() == Connection.CONNSTATE_NOT_LOGIN) {\r\n\t\t\t\tconnection.login(user, pwd);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tconnection.stop();\r\n\t\tshutdownFlag = true;\r\n\r\n\t}", "@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tThread.sleep((long) timeout);\n\t\t\t\t\t\tif (buildProcess.isAlive())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuildProcess.destroy();\n\t\t\t\t\t\t\tal.add(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "public synchronized void start() {\n\t\tif(! alive) {\n\t\t\talive = true;\n\t\t\tthread.start();\n\t\t}\n\t}", "public RecorderThread (Context context) {\n\tthis.con = context;\n\trecording = true;\n\tsetDaemon(true);\n}", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "private void go() {\n\n new Thread(this).start();\n }", "@Override\n\tpublic void onMessageBackgroundThread(Object arg0) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tisAlive = false;\r\n\t\t\t}", "public synchronized void start() {\n\t\tif(isRunning) return; //If the game is already running, exit method\n\t\tisRunning = true; //Set boolean to true to show that it is running\n\t\tthread = new Thread(this); //Create a new thread\n\t\tthread.start(); //Start the thread\n\t}", "public void doWork() {\n Thread thread = new Thread( hva != null ? hva : this);\n thread.start();\n }", "public Thread runInBackground() {\n Thread t = new Thread() {\n public void run() {\n RateLimitedLoop.this.run();\n }\n };\n t.start();\n return t;\n }", "@Override\n public void run() {\n if (!this.m_running) {\n this.m_running = true;\n this.pollingLooper();\n }\n }", "@Override\n public void run() {\n Message uiMSG;\n //Create message with only SHOW_ORIGINAL_COLOR argument\n uiMSG = BackgroundThread.this.uiHandler.obtainMessage(BidirectionalMessageActivity.SHOW_ORIGINAL_COLOR, 0, 0, null);\n BackgroundThread.this.uiHandler.sendMessage(uiMSG); //Send start message to UI thread\n\n fillProgressbar(progressBar); //Fill progress bar as a long time operation\n //Message with information SHOW_NEW_COLOR as a end of long time operation\n uiMSG = BackgroundThread.this.uiHandler.obtainMessage(BidirectionalMessageActivity.SHOW_NEW_COLOR, 0, 0, null);\n BackgroundThread.this.uiHandler.sendMessage(uiMSG); //Message with end result is sent\n }", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "public void startProcess() {\r\n\t\tprocess = true;\r\n\t}", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\tL = new Listener(this.port);\n\t\tthis.listener = new Thread(L);\n\t\tthis.listener.start();\n\n\t\twhile (true) {\n\t\t\twhile (this.workQueue.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(10);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tClientRequest req = this.workQueue.poll();\n\t\t\tif (req.getType() == ClientRequestType.START) {\n\t\t\t\tsynchronized (nextWorkerLock) {\n\t\t\t\t\tthis.workers[this.nextWorker++].sendToWorker(req);\n\t\t\t\t\tthis.nextWorker %= this.workers.length;\n\t\t\t\t}\n\t\t\t} else if (req.getType() == ClientRequestType.KILLALL) {\n\t\t\t\tfor (WorkerInfo wi : workers) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twi.sendControlMessage(new ProcessControlMessage(0,\n\t\t\t\t\t\t\t\tProcessControlCommand.KILLALL, \"\"));\n\t\t\t\t\t\tSystem.out.println(\"Killed one\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tSystem.exit(0);\n\t\t\t} else {\n\t\t\t\tpidsToWorkers.get(req.getProcessId()).sendToWorker(req);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n while(isAlive.get()) {\n Runnable task = queue.poll();\n if (task != null) {\n task.run();\n }\n }\n Log.d(TAG, \"Simple worker terminated\"); // method quit() called\n }", "@Override\n\tpublic void run() {\n\t\tticks = 0;\n\t\twhile (running) {\n\t\t\tticks++;\n\t\t\texec.update(ticks);\n\t\t\tscreen.repaint();\n\t\t\ttry {\n\t\t\t\tThread.sleep(15);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tscreen.getFrame().dispose();\n\t\texec.stop();\n\t\tSystem.exit(0);\n\t}", "public void run() {\n\t\tthis.launch( null );\n\t}", "public void run(){\n while(running){\n System.out.println(\"Inside while loop.\");\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "public void run(){\n \tProcess p = null;\n \ttry{\n \t\twhile(!Thread.currentThread().isInterrupted()){\n\t\t \tNmapJob njob = (NmapJob) queue.take();\n\t\t \tSystem.out.println(\"\\nOneTime thread with ID = \" \n\t\t \t\t+ Thread.currentThread().getId() + \" took job with ID = \"\n\t\t \t\t\t\t\t+ njob.getID() + \"\\n\");\n\t\t \t\n\t\t String command = \"sudo nmap \" + njob.getParams();\t \t\n\t\t\t\t//execute \"nmap\" command as superuser\n\t\t p = Runtime.getRuntime().exec(command);\n\t\t\t\t//wait the command to end before putting result in queue \"results\"\n\t\t if(p.waitFor() == 0){\n\t\t \tinput = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t \tResults res = new Results(njob.getID(), input);\n\t\t \tresults.put(res);\n\t\t }\n\t\t }\n\t\t \n \t}catch (InterruptedException ie){\n \t\tif(p!=null){\n \t\t\tp.destroy();\n \t\t}\n \t\tSystem.out.println(\"OneTime thread with ID = \" \n \t\t\t\t+ Thread.currentThread().getId() + \" exited normally\" );\n \t\treturn;\n\t } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "@Override\n\tpublic void run() {\n\n\t\twhile (running.get()) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Shutting down thread\");\n\t}", "public void start(){\n hiloAux = new Thread(this);\n hiloAux.start();\n }", "@Override\n public void run() {\n MemUsage memUsage = new MemUsage();\n Runtime run = Runtime.getRuntime();\n String memPath = \"/proc/\" + processId + \"/status\";\n LOG.info(\"Reading the file for memory: \" + memPath);\n String currentTime;\n File statusFile;\n float pcpu;\n int pmem;\n ProcessInfoBean processInfoBean = new ProcessInfoBean();\n processInfoBean.setLocalHostIp(ip);\n processInfoBean.setProceeName(processName);\n while (running) {\n pcpu = getCPUUsageByTopCommond(run, cmd);\n if (pcpu != -1) {\n statusFile = new File(memPath);\n if (statusFile.exists()) {\n pmem = memUsage.getMemUsage(statusFile);\n if (pmem != -1) {\n currentTime = TimeUtils.getCurrentTime();//获取系统当前时间\n processInfoBean.setUpdateTime(currentTime);\n processInfoBean.setCpuUsage(pcpu);\n processInfoBean.setMemUsage(pmem);\n processInfoBean.setPid(Integer.parseInt(processId));\n processInfoDao.insert_process_monitor(processInfoBean);\n MybatisUtils.session.commit();\n try {\n Thread.sleep(intervalTime);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }\n }\n }\n }", "public void createThread() {\n }", "@Override\r\n\tpublic void run() {\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(3000);\r\n\t\t\t\tSystem.out.println(\"자동저장\");\r\n\t\t\t} catch (InterruptedException 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\t\r\n\t\t}\r\n\t}", "void indicateRunning()\n {\n try {\n runningLock = lockChannel.lock(STARTING, RUNNING - STARTING, false);\n notYetRunningLock.release();\n }\n catch (IOException e) {\n throw new RuntimeException(\"Cannot lock pid file: \" + e);\n }\n\n notYetRunningLock = null;\n }", "private void executeConcurrently() {\n String[] commandArgs = SysLib.stringToArgs(command);\n prevPID = SysLib.exec(commandArgs); //run command\n command = \"\"; //clear command\n }", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\t\n\t\t}\n\t}", "public synchronized void start(){\n if(jogoAtivo) return;\n jogoAtivo = true;\n thread = new Thread(this);\n thread.start();\n }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tString[] notify_cmd={\"msg\",user,\"启动中\"};\n\t\t\t\t\t\t\t\tdisplayText(\"启动中\");\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tRuntime.getRuntime().exec(notify_cmd);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\tString mssage_in=\"appium msg\";\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t\t\t\tif((mssage_in=br.readLine())!=null){\n\t\t\t\t\t\t\t\t\t\t\tMyFrame.displayText(mssage_in);\n\t\t\t\t\t\t\t\t\t\t\tpw.println(mssage_in);\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} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n public boolean isRunning() {\n return isRunning;\n }", "@Override\n public boolean isRunning() {\n return isRunning;\n }", "public void run() {\n\t\tThread t = Thread.currentThread();\n\t\twhile (!t.isInterrupted()) {\n\t\t\ttry {\n\t\t\t\t//boolean status = process();\n\t\t\t\tMessage message = receive();\n\t\t\t\tif (t.isInterrupted())\n\t\t\t\t\treturn;\n\t\t\t\t//if (!status)\n\t\t\t\t//\treturn;\n\t\t\t\tif (socket == null)\n\t\t\t\t\treturn;\n\t\t\t\tThread.yield();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//_monitor.log(e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public boolean iAmRunning();", "public void ThreadStart()\r\n\t{\r\n\t\tthread_running=true;\r\n\t\tNewBallTheard.start();\r\n\t}", "public void executeASync (ProcessInfo pi)\r\n\t {\r\n\t }", "public void start() {\r\n\t\trunning = true;\r\n\t\trun();\r\n\t}", "public void start() {\n\t\tcheckIsDisposed();\n\n\t\tif (isStarted)\n\t\t\treturn;\n\n\t\tqueueThread.start();\n\t\tisStarted = true;\n\t}", "public void run() {\n Looper.prepare();\n backgroundHandler = new Handler(); //Handler processes only runnables. It is not required to implement handleMessage(msg)\n Looper.loop();\n }", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "public void start() {\n\n\t\tif (worker.isAlive()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t \"Worker thread is still alive, unexpected.\");\n\t\t}\n\n\t\tif (runflag.get()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t \"Runflag is inconsistant with thread, unexpected.\");\n\t\t}\n\n\t\trunflag.set(true);\n\t\tworker.start();\n\t}", "private static void tickOnThread() {\n final Thread thread = new Thread(new Runnable(){\n @Override\n public void run() {\n tick(true);\n }\n });\n thread.start();\n }", "@Override\n\tpublic synchronized void run() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(Thread.currentThread().getName()+\" \"+\"Thread is Running.\");\n\n\t}", "public Thread getThread();", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}" ]
[ "0.7533469", "0.7342215", "0.7226498", "0.6459892", "0.6377971", "0.6335785", "0.6316973", "0.6194616", "0.6174788", "0.6136905", "0.6119032", "0.61148477", "0.6087901", "0.6083178", "0.60382015", "0.6019801", "0.6012305", "0.5998273", "0.59833944", "0.59802186", "0.59682274", "0.59637123", "0.59625375", "0.59572375", "0.5948777", "0.59424484", "0.5939761", "0.5926266", "0.59184694", "0.5915094", "0.5896483", "0.5893338", "0.58877003", "0.58704793", "0.5866381", "0.58603907", "0.5854171", "0.58435243", "0.5827133", "0.5805111", "0.5794189", "0.5794189", "0.5788474", "0.57852155", "0.57825893", "0.57819796", "0.57550085", "0.5735474", "0.57326126", "0.5731647", "0.57248867", "0.57225484", "0.572224", "0.5715246", "0.5714536", "0.5706111", "0.5701854", "0.56988984", "0.5692143", "0.568396", "0.5660494", "0.56564605", "0.5652851", "0.5648658", "0.5648572", "0.5647427", "0.5642704", "0.56394184", "0.5638644", "0.563119", "0.5626071", "0.5617574", "0.5609304", "0.56018245", "0.5600764", "0.5599818", "0.55932075", "0.5592182", "0.5592182", "0.5592182", "0.5592182", "0.5592182", "0.5592182", "0.5591069", "0.5588636", "0.5584532", "0.557859", "0.557859", "0.5577627", "0.5576447", "0.5571887", "0.55700195", "0.5568699", "0.55652547", "0.55630594", "0.55623335", "0.55615103", "0.5552855", "0.55528414", "0.555214", "0.5550385" ]
0.0
-1
community name Constructor requires community id and name
public Community(String id, String name) { this.id = id; this.name = name; return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCommunityName() {\n return communityName;\n }", "public void setCommunityName(String communityName) {\n this.communityName = communityName == null ? null : communityName.trim();\n }", "Community() {}", "public Community()\r\n {\r\n //\r\n }", "public void setCommunity(int community) {\n this.community = community;\n }", "public String getCommunity() {\n return this.community;\n }", "Community createCommunity( String name, byte[] user_short_pid ) \r\n throws CommunityException;", "public static CommunityGroupFragment newInstance(String community) {\n CommunityGroupFragment fragment = new CommunityGroupFragment();\n Bundle args = new Bundle();\n args.putString(ARG_COMMUNITY, community);\n fragment.setArguments(args);\n return fragment;\n }", "public University(String name){\n this.name = name;\n }", "public ObjectId getCommunityId() {\r\n\t\treturn communityId;\r\n\t}", "@Override\n\tpublic int insertCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tString communityId = UUIDUtil.getUUID();\n\t\tparams.put(\"communityId\", communityId);\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.insert(\"insertCommunity\", params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\treturn result;\n\t}", "public Company(String s)\n\t{\n\t\tname = s;\n\t}", "public CheeseConnoisseur(String name) {\n this(name, 0);\n }", "public Coach(String name, Sport sport) {\n this.name=name;\n this.sport=sport;\n }", "public Challenger(String name, Integer rank) {\r\n\t\tthis.name = name;\r\n\t\tthis.rank = rank;\r\n\t}", "public Student( String name ) {\n sname=name;\n }", "public Player(String name)\n { \n if (name == \"\")\n {\n setName(\"Anonymous\");\n }\n else\n {\n setName(name);\n }\n }", "public GradeBook2( String name )\n {\n courseName = name; // initializes courseName\n }", "@Override\n public String toString() {\n return bestCommunity + \"\";\n }", "public Student(String name) { // constructor\n\t\tthis.name = name; \n\t}", "Player(String name){\n\t\tthis.name = name;\n\t}", "Student(String name) {\n\t\tthis.name = name;\n\t\tregisteredCourses = new Course[30];\n\t}", "public CommunityBuilder community() {\n return new CommunityBuilder(this);\n }", "@ApiModelProperty(value = \"小区id\")\n\tpublic Long getCommunityId() {\n\t\treturn communityId;\n\t}", "public UserInformation(final URI id, final String username, final String password, final String community) {\n super(username, id);\n this.password = password;\n this.community = community;\n this.homeSpace = null;\n }", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }", "void initCommunityProperty();", "@Override\n public String getCommunityColor(String strCommunity, TimeFrame tf){\n return icommunityColors.getCommunityColor(strCommunity, tf);\n }", "public void setMaxCommunityLength(int value) {\n this.maxCommunityLength = value;\n }", "public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }", "public Student(String name) {\n\n this.name = name;\n }", "public void setCommunityId(Long communityId) {\n\t\tthis.communityId = communityId;\n\t}", "public Student(String name) {\n this.name = name;\n }", "@Override\n\tpublic int updateCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.delete(\"deleteCommunityMember\",params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\tresult = this.update(\"updateCommunity\", params);\n\t\treturn result ;\n\t}", "public Person(String name){\n\t\t\n\t\t\n\t\tthis.myName = name;\n\t\t\n\t}", "public Identificador(String name) {\r\n this.name = name;\r\n }", "public void set_snmpcommunity(String snmpcommunity)\r\n\t{\r\n\t\tthis.snmpcommunity = snmpcommunity;\r\n\t}", "public Person(String name){\n\t\tthis.name = name ; \n\t}", "public Community findById(Long id);", "public Course(String courseName) {\n this.courseName = courseName;\n }", "public Science(String name, String publisher) // a constructor, has name, publisher\r\n\t{\r\n\t\tsuper(name); // calls parent constructor\r\n\t\tthis.publisher = publisher; // stores publisher value in science publisher member\r\n\t}", "public Person(String inName)\n {\n name = inName;\n }", "public LabyrinthComputerPlayer2(String name) {\n // invoke superclass constructor\n super(name);\n }", "public Course(String courseName) {\n studentList = new ArrayList<Student>(MAXSTUDENT);\n this.courseName = courseName;\n studentCount = 0;\n }", "public String get_snmpcommunity()\r\n\t{\r\n\t\treturn this.snmpcommunity;\r\n\t}", "public Promo(String n){\nnom = n;\n}", "public HexComputerPlayer1(String name) {\n // invoke superclass constructor\n super(name); // invoke superclass constructor\n }", "public SubsystemClient(String name) {\r\n this.name = name;\r\n messageStore = new SubsystemMessageStore();\r\n }", "private void getCommunity() {\n DatabaseReference ref = FirebaseDatabase.getInstance()\n .getReference(\"Communities\").child(communityId);\n\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Community community = snapshot.getValue(Community.class);\n communityName = community.getName();\n getSupportActionBar().setTitle(communityName);\n Glide.with(getBaseContext()).load(community.getImage()).into(communityProfile);\n description.setText(community.getDescription());\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "public Student(String name) {\n this.nameProp.set(name);\n }", "public Venue(String name) {\n this.name = name;\n this.rooms = new ArrayList<Room>();\n this.reservations = new ArrayList<Reservation>();\n }", "public GeneralNames(\n GeneralName name)\n {\n this.names = new GeneralName[] { name };\n }", "public Team(String name) {\n this.name = name;\n }", "public Player(String name) {\r\n this.name = name;\r\n }", "public City(String name) {\n\t\tthis.name = name;\n\t\tthis.inhabitants = new ArrayList<Inhabitant>();\n\t\tthis.postbox = new ArrayList<Letter<?>>();\n\t\tSystem.out.println(\"Creating \" + this.name + \" city\");\n\t}", "public Player(String name) {\n this.NAME = name;\n this.ownedCountries = new ArrayList<>();\n this.totArmyCount = 0;\n this.PlayerTurn = false;\n }", "GitRemote(String aName) { _name = aName; }", "Player(String name, Board myBoard, Board opponentsBoard) {\n this.name = name;\n this.myBoard = myBoard;\n this.opponentsBoard = opponentsBoard;\n }", "public Player(String name)\n\t{\n\t\tthis.name = name;\n\t}", "Seasons(String name) {\n System.out.println(\"Called constructor\");\n this.name = name;\n }", "@Override\n public boolean isCommunity() {\n return false;\n }", "public Coordinator(String name){\n super(name);\n }", "public CoupleAccount(String name) {\r\n\t\tthis.name = name;\r\n\t}", "Player(String playerName) {\n this.playerName = playerName;\n }", "public Team(String name) {\n\t\tthis(name, Color.BLACK);\n\t}", "public Campus fetchByname(java.lang.String name);", "public GradeBook (String name){ //Constructor\n\t\tcourseName=name;\n//\t\tstudents = studentNum;\n\t}", "public SecurityObject(String name) {\n\t\tthis.name = name;\n\n\t\tLOGGER.debug(\"SecurityObject#co [name=\" + name + \"]\");\n\t}", "TeamMember(String _name, String _title) {\r\n this.name = _name;\r\n this.title = _title;\r\n }", "public Name() {\n\n }", "public NetworkGame(String team){\n super();\n this.team = team;\n }", "public Cliente(String nome) {\n super(nome);\n }", "public RandomOpponent(String name) {\n this.name = name;\n }", "public Player(String name){\n\t\tthis.name = name;\n\t\t//this.deck = new Deck(1);\n\t\t((Deck) this.deck).buildDeck();\n\t\t//this.inhand = new CardsGroup();\n\t\tthis.bench = new CardsGroup();\n\t\tthis.userDiscardPile = new CardsGroup();\n\t}", "public Category(String n) {\n this.name = n;\n }", "public Ship(String name) {\r\n this.name = name;\r\n }", "public Person(String name) {\n this.name = name;\n }", "public Player(String name)\n {\n // initialise instance variables\n this.name = name;\n // start out with $100 in your wallet\n wallet = new Wallet(100);\n inventory = new HashMap<String, Item>();\n currentRoom = null;\n olcc = new OLCC();\n\n }", "Student(String name){\n this.name = name;\n }", "public Circuit(String s) {\r\n name = s;\r\n }", "public WinnerProfile(String name, int score){\n this.name=name;\n this.score=score;\n }", "public Creator(String score_name) {\n this.score_name = score_name;\n\n this.bukkitScoreboard = Bukkit.getScoreboardManager().getNewScoreboard();\n this.obj = this.bukkitScoreboard.registerNewObjective(randomString(), \"dummy\", \"test\");\n\n this.obj.setDisplaySlot(DisplaySlot.SIDEBAR);\n this.obj.setDisplayName(color(score_name));\n }", "protected Computer(String playerName) {\n super(playerName);\n }", "public SymName(String n) {\n\tn = n.trim();\n\tfullName = n;\n\tcomp = Util.findComponents(n);\n\tnum_comp = comp.length;\n\ttype = new int[num_comp];\n }", "public Player(String name)\n\t{\n\t\tif (name == null || validateName(name) == false)\n\t\t{\n\t\t\tmyName = DEFAULT_NAME;\n\t\t}\n\t\telse if (name.matches(\"[a-zA-Z]+\"))\n\n\t\t{\n\t\t\tmyName = name;\n\t\t}\n\t\tmyHand = new PokerHand(5);\n\t\tmyNumberWins = 0;\n\t\tmyAmAI = false;\n\t}", "public Investor(String name) {\n super(name, \"Investor\", 80, 100, 110, 2);\n }", "public void setCreatorName(java.lang.String creatorName) {\n this.creatorName = creatorName;\n }", "public Seagull(String name){\n this.name = name;\n this.color = SWT.COLOR_DARK_BLUE;\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public GeometricObject(String name)\r\n\t{\r\n\t\tif (name == null || name.length() == 0)\r\n\t\t\tValidation.reportError(\"invalid name\");\r\n\t\telse\r\n\t\t\tthis.name = name;\r\n\t}", "City(int 1_x_coordinate, int 1_y_coordinate, String name_coordinate){\n x_coordinate = 1_x_coordinate;\n y_coordinate = 1_y_coordinate;\n city_name = name_coordinate;\n }", "public void setName(String name)\r\n\t{\r\n\t\tthis.name = name.trim();\r\n\t\tif(name.length() > 0)\r\n\t\t{\r\n\t\t this.sponsorFirstChar = Character.toLowerCase(name.charAt(0));\r\n\t\t}\r\n\t\t\r\n\t}", "public CommunityChest( GameBoard g, int id, String info )\r\n {\r\n super( g, id, info );\r\n\r\n }", "public Square(String name) {\r\n this(name.charAt(0), name.charAt(1));\r\n }", "public Spieler(String name) {\n\t\tthis.name = name;\n\t}", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "public Commune() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "public Cook(String name) {\n\t\tthis.name = name;\n\t}", "public Player(String name) {\r\n this.name = name;\r\n// Maxnum = 0;\r\n special = 0;\r\n index = 0;\r\n }" ]
[ "0.71394026", "0.70218366", "0.68700945", "0.65736425", "0.6314665", "0.6313094", "0.6108198", "0.569947", "0.5681514", "0.5645238", "0.5540834", "0.5459125", "0.54389346", "0.54358274", "0.5435504", "0.5419929", "0.54046136", "0.53286076", "0.5328094", "0.5307614", "0.5263852", "0.5260798", "0.52594006", "0.52529913", "0.5248894", "0.52394813", "0.5238189", "0.52308893", "0.52258915", "0.5215727", "0.52120304", "0.52112454", "0.52005595", "0.51912904", "0.5166803", "0.5152085", "0.51502675", "0.5148164", "0.5130381", "0.5106935", "0.50959605", "0.5090606", "0.5083182", "0.5083094", "0.50760466", "0.50733614", "0.50688183", "0.50628966", "0.5054145", "0.50483775", "0.5048074", "0.50397867", "0.5036325", "0.50293416", "0.5027059", "0.50132465", "0.5008293", "0.50018114", "0.49941844", "0.49904084", "0.49891874", "0.4979339", "0.4974683", "0.49695447", "0.49647662", "0.49615568", "0.49454615", "0.49436998", "0.49369863", "0.4931089", "0.49302858", "0.49280307", "0.49204585", "0.49198106", "0.4919687", "0.49162892", "0.49159873", "0.4915375", "0.49150953", "0.4912872", "0.49121", "0.49002177", "0.4898617", "0.4893609", "0.48841146", "0.48761198", "0.48735243", "0.48717904", "0.48716104", "0.48715448", "0.4869752", "0.48691857", "0.48685235", "0.4867557", "0.48660654", "0.48619175", "0.48590463", "0.48549423", "0.48503295", "0.48462692" ]
0.74017537
0
Returns whether the IResourceDelta contains the specified IFile.
public static boolean contains(IResourceDelta delta, IFile file){ IResourceDelta member = delta.findMember(file.getFullPath()); if(member==null){ return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean contains(File file, String resourceName) {\n try {\n if (!file.exists()) {\n return false;\n }\n\n if (file.isDirectory()) {\n File resource = new File(file, resourceName);\n\n if (resource.exists()) {\n return true;\n }\n }\n else {\n // is the zip file in the cache\n ZipFile zipFile = (ZipFile)zipFiles.get(file);\n if (zipFile == null) {\n zipFile = new ZipFile(file);\n zipFiles.put(file, zipFile);\n }\n ZipEntry entry = zipFile.getEntry(resourceName);\n if (entry != null) {\n return true;\n }\n }\n }\n catch (Exception e) {\n log(\"Ignoring Exception \" + e.getClass().getName() + \": \" + e.getMessage() +\n \" reading resource \" + resourceName + \" from \" + file, Project.MSG_VERBOSE);\n }\n\n return false;\n }", "@Override\n public boolean containsFile(IFile file) {\n // TODO Auto-generated method stub\n return childFiles.contains(file);\n }", "public boolean hasFile(final String file);", "public boolean exists() {\n return _file.exists();\n }", "public boolean exists(File file) {\n return file.exists();\n }", "public boolean searchFile(FileObject file)\n throws IllegalArgumentException;", "protected boolean resourceExists() {\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tif (workspace == null)\n\t\t\treturn false;\n\t\treturn RodinDB.getTarget(workspace.getRoot(), this.getPath()\n\t\t\t\t.makeRelative(), true) != null;\n\t}", "public boolean exists(String key) {\n\t\treturn fileData.containsKey(key);\n\t}", "public boolean exists(String filename) {\n return getFile(filename) != null;\n }", "public boolean exists() {\r\n\t\t// Try file existence: can we find the file in the file system?\r\n\t\ttry {\r\n\t\t\treturn getFile().exists();\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\t// Fall back to stream existence: can we open the stream?\r\n\t\t\ttry {\r\n\t\t\t\tInputStream is = getInputStream();\r\n\t\t\t\tis.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch (Throwable isEx) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean containCache(Integer cacheKey)\n {\n // Check if the cacheKey is in the reference\n if (mLinkedHashMap.containsKey(cacheKey))\n {\n return true;\n }\n\n // Now check if the actual file is exists\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFilePath = createFilePath(cacheDirectory, cacheKeyStr);\n Boolean isFileExists = new File(existingFilePath).exists();\n if (isFileExists)\n {\n // If the file is found, we have to update the Reference HashMap.\n referenceAdd(cacheKey, existingFilePath);\n\n return true;\n }\n\n return false;\n }", "public synchronized boolean contains(TsFileResource tsFile, boolean isClosed) {\n return (isClosed && closedFileReaderMap.containsKey(tsFile.getTsFilePath()))\n || (!isClosed && unclosedFileReaderMap.containsKey(tsFile.getTsFilePath()));\n }", "boolean hasFileInfo();", "boolean hasFileInfo();", "public boolean hasFile(String fileName) {\n return this.registry.containsKey(fileName);\n }", "public boolean isSetFile() {\n return this.File != null;\n }", "public boolean resourceExists(TIdentifiable resource) {\r\n return (m_resources.getIndex(resource) >= 0);\r\n }", "public boolean isFileByFile() {\n return fileByFile;\n }", "public boolean hasFileChanged(File file) {\n if (file == null)\n throw new RuntimeException(\"Attempting to check if a null file has been changed\");\n Object previousCacheValue = _lastModifiedByFilePath.objectForKey(cacheKeyForFile(file));\n return previousCacheValue == null || !previousCacheValue.equals(cacheValueForFile(file));\n }", "public boolean hasObjectFileKey() {\n return objectFileKey_ != null;\n }", "public boolean isRemoteFile() {\n\t\tif (this.serverFileInfo == null)\n\t\t\tthis.fetchInfo();\n\t\treturn this.serverFileInfo != null && this.serverFileInfo.exists();\n\t}", "public boolean fExists(){\n \n try(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file))){\n \n }\n catch (FileNotFoundException e){\n System.out.println(\"File not found\");\n return false;\n }\n catch (IOException e){\n System.out.println(\"Another exception\");\n return false;\n }\n\n return true;\n }", "public static boolean isExists(File file) {\n\t\tfile = comprobarExtension(file);\n\t\treturn file.exists();\n\t}", "@Override\n\tpublic synchronized boolean exists(String key) {\n\t\treturn getFile(key).exists();\n\t}", "protected static boolean containsFileID(double fileID) {\n\n String sql = \"SELECT fileID FROM files\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n if (fileID == rs.getDouble(\"fileID\")) {\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"fileIDExists: \" + e.getMessage());\n }\n return false;\n\n }", "private boolean existsFile(File testFile) {\n\t\tif (testFile.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean exists() {\n\t\t\n\t\tFile temp = new File(this.path);\n\t\treturn temp.exists();\n\t}", "public boolean accept(File file) {\n if (file.getName().contains(CONTAINS_STRING)) {\n return file.isFile();\n }\n return false;\n }", "public static boolean existsFile(String file) {\n return getFile(file).exists();\n }", "boolean hasResource();", "@Override\n public boolean contains(final String id) {\n return sidecarFile(id).exists();\n }", "@Override\n\tpublic boolean exists() {\n\t\treturn Files.exists(this.path);\n\t}", "public boolean fileIsFile(File file) {\n if (executionEnvironment.isLocal()) {\n return file.isFile();\n } else {\n return ProcessUtils.execute(executionEnvironment, \"test\", \"-f\", \"\\\"\" + file.getPath() + \"\\\"\").isOK(); //NOI18N\n }\n }", "boolean hasFileLoc();", "public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }", "@Override\n public boolean exists(File file) {\n\treturn false;\n }", "public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }", "public boolean exists() {\n return Files.exists(path);\n }", "public boolean hasFileInfo() {\n return fieldSetFlags()[15];\n }", "@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }", "@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }", "boolean hasFilePath();", "public boolean hasLoaded(String filename)\n {\n return this.loadedFiles.containsKey(filename);\n }", "public static boolean containsFile(File dir) {\n try {\n final boolean[] found = new boolean[1];\n found[0] = false;\n Files.walkFileTree(dir.toPath(), new SimpleFileVisitor<Path>(){\n @Override\n public FileVisitResult visitFile(Path path, BasicFileAttributes attributes) throws IOException {\n if(Files.isRegularFile(path)){\n found[0] = true;\n return FileVisitResult.TERMINATE;\n }\n return FileVisitResult.CONTINUE;\n }\n });\n return found[0];\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public final boolean fileExists() {\n\t if ( m_fileStatus == FileStatus.FileExists || m_fileStatus == FileStatus.DirectoryExists)\n\t return true;\n\t return false;\n\t}", "public boolean hasFileAttached()\n throws OculusException;", "public boolean hasObjectFileKey() {\n return objectFileKeyBuilder_ != null || objectFileKey_ != null;\n }", "boolean hasInodeFile();", "public boolean contains(Item i){\r\n return stream().anyMatch(item -> item.name.endsWith(i.name));\r\n }", "public boolean isContainFile(String input){\n\t\tfor(int i = 0;i<filenames.size();i++){\n\t\t\tif(filenames.get(i).equals(input)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean hasFileLocation();", "public boolean checkFileDisplayed(String file) {\n return checkFileDisplayed(file, getComparator());\n }", "public boolean isSetFileID() {\n return this.fileID != null;\n }", "public boolean isSetFileData() {\n return this.fileData != null;\n }", "public boolean isSetFileCont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILECONT$2) != 0;\n }\n }", "boolean hasCompleteFile();", "public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }", "public boolean hasFileLoc() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasFile(File folder, String fileName) {\n\t\treturn new File(folder, fileName + EXTENSION).exists();\n\t}", "public boolean isPendingFile(String file_name) {\n\n\t\tif (m_db == null)\n\t\t\treturn false;\n\n\t\tCursor cursor = m_db.query(PENDING_FILE_TABLE_NAME,\n\t\t\t\tnew String[] { PENDING_FIELD_ID }, PENDING_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\tif (result == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean hasFileLoc() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public static boolean isTwigFile(final IResource resource) {\n\t\treturn resource instanceof IFile && resource.isAccessible()\n\t\t\t\t&& TWIG_EXTENSION.equals(resource.getFileExtension());\n\t}", "boolean checkFile(MyIFileTable<Integer, Pair<String, BufferedReader>> fileTb) {\n Set<Integer> keys = fileTb.getKeys();\n for (Integer i : keys)\n if (fileTb.get(i).getFirstEl().equals(name))\n return true;\n return false;\n }", "public boolean hasInodeFile() {\n return ((bitField0_ & 0x00010000) == 0x00010000);\n }", "public boolean hasInodeFile() {\n return ((bitField0_ & 0x00010000) == 0x00010000);\n }", "public boolean isExists() {\n\t\treturn exists();\n\t}", "public boolean existFile(String fileName) {\r\n\t\treturn new File(fileName).exists();\r\n\t}", "private boolean mustProcess(final IFile file) {\n\t\t// include paths?\n\t\tif (includePaths.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// paths\n\t\tfinal IPath path = file.getProjectRelativePath();\n\t\tfinal IPath parent = path.removeLastSegments(1);\n\n\t\t// check within the parent\n\t\tif (includePaths.contains(parent)) {\n\t\t\treturn true;\n\t\t} else if (excludePaths.contains(parent)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// check children\n\t\tfinal Predicate<IPath> predicate = p -> p.isPrefixOf(path);\n\t\treturn includePaths.stream().anyMatch(predicate);\n\t}", "private boolean existsSubResource()\r\n {\r\n return ((subResource_ != null) && subResource_.exists());\r\n }", "private boolean doesFileExist(String qualifiedFileName) throws FileNotFoundException {\n\t\t\n\t\t// First get a path object to where the file is.\n\t\t\n\t\tPath inWhichFolder = Paths.get(qualifiedFileName);\n\t\t\n\t\tboolean isFilePresent = (Files.exists(inWhichFolder) && Files.isReadable(inWhichFolder) && !Files.isDirectory(inWhichFolder));\n\t\t\n\t\tif (!isFilePresent) {\n\t\t\tthrow new FileNotFoundException(String.format(\"The file you specified '%s' does not exist or cannot be found!\", qualifiedFileName));\n\t\t\t\n\t\t}\n\t\t\n\t\t// If we're here then we should have a file that can be opened and read.\n\t\t\n\t\treturn isFilePresent;\n\t\t\n\t}", "public boolean exists()\n\t{\n\n\t\treturn true;\n\t}", "boolean hasRetrieveFile();", "public boolean contains(String key) {\n return find(key) != null;\n }", "boolean filterCheck(File file) {\r\n if (inverse)\r\n return !file.getName().contains(value);\r\n else\r\n return file.getName().contains(value);\r\n\r\n }", "private static boolean hasFile(Artifact artifact) {\n\t\treturn artifact != null && artifact.getFile() != null && artifact.getFile().isFile();\n\t}", "public synchronized boolean hasEditorSynchronizeQueue(IFile f){\r\n \t\treturn syncEditorJobQueue.containsKey(f);\r\n \t}", "boolean allFileIncluded(File file){\n\t\tif(file.getName().length()==0) return false;\n\t\treturn ((file.lastModified() > OLDEST_DATE));\n\t}", "public boolean isLocalFile() {\n\t\ttry {\n\t\t\tFile localFile = getLocalFile();\n\t\t\treturn localFile != null && localFile.exists();\n\t\t} catch (CoreException e) {\n\t\t\tlogger.debug(\"Unable to determine if file is local\", e);\n\t\t}\n\t\treturn false;\n\t}", "boolean fileIncluded(File file){\n\t\tif(file.getName().length()==0) return false;\n\t\tString lcname = file.getName().trim().toLowerCase();\n\t\treturn ((lcname.endsWith(LC_JAR) ||\n\t\t lcname.endsWith(LC_SVB) ||\n\t\t lcname.endsWith(LC_EXE) ||\n\t\t lcname.endsWith(LC_DAT)) &&\n\t\t (file.lastModified() > OLDEST_DATE));\n\t}", "private boolean isFileExist() {\n File check_file = getFilesDir();\n File[] file_check_array = check_file.listFiles();\n for (File current : file_check_array) {\n boolean user_file = isValidName(current.getName());\n if (user_file) {\n return true;\n }\n }\n return false;\n }", "public boolean fileCanRead(File file) {\n if (executionEnvironment.isLocal()) {\n return file.canRead();\n } else {\n return ProcessUtils.execute(executionEnvironment, \"test\", \"-r\" ,\"\\\"\" + file.getPath() + \"\\\"\").isOK(); //NOI18N\n }\n }", "public boolean contains(Key key) {\n\t\treturn get(key) != null;\n\t}", "public boolean hasLoadedFile() {\n return isSuccessfulFileLoad;\n }", "public boolean acceptsFile(File file) {\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\t// Read up to our maximum number of lines into the buffer.\n\t\t\tStringBuffer contents = new StringBuffer();\n\t\t\tString line = null;\n\t\t\tfor(int i=0; (line = reader.readLine()) != null && i<MAX_LINES_TO_READ; i++) {\n\t\t\t\tcontents.append(line);\n\t\t\t}\n\t\t\t\n\t\t\t// Replace whitespace so our regular expressions are simpler.\n\t\t\tString testString = contents.toString().replaceAll(\"[\\\\x20\\\\x09\\\\x0D\\\\x0A]+\", \" \");\n\n\t\t\t// We can handle this file as long as the XML Declaration is there.\n\t\t\treturn XML_DECL2.matcher(testString).find();\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tLogManager.getInstance().logMessage(ex);\n\t\t\treturn false;\n\t\t}\t\t\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch(IOException ex) {\n\t\t\t\t// Nothing we can do if we fail to close the \n\t\t\t\t// stream, so log the messasge and continue.\n\t\t\t\tLogManager.getInstance().logMessage(\n\t\t\t\t\t\tLogMessage.INFO,\n\t\t\t\t\t\t\"Failed to close reader in XMLAdapter::acceptsFile\");\n\t\t\t}\n\t\t}\n\t}", "public boolean isDirty()\n\t{\n\t\tsynchronized (fileToSaveableMap)\n\t\t{\n\t\t\tfor (Saveable saveable: fileToSaveableMap.values())\n\t\t\t{\n\t\t\t\tif (saveable.isDirty())\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "@Override\n\tpublic boolean readData(File file) {\n return file.exists();\n\t}", "public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean doesFileExists(String pathToFile) {\n\n try {\n File f = new File( pathToFile );\n if( f.exists() && f.isFile() ) {\n return true;\n }\n }\n catch (Exception fe) {\n //System.err.println(\"You got problem: \" + e.getStackTrace());\n logger.debug( fe.getMessage() );\n }\n return false;\n }", "public boolean contains(Key key) {\n return get(key) != null;\n }", "public boolean contains(String name) {\n return !isDocumentFile() && hasChild(name);\n }", "public boolean hasDeleteFile() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public boolean isKnownFileType(FileType t) {\n\treturn knownTypes.contains(t);\r\n }", "public boolean containsKey(Object key)\n {\n // check if the cache needs flushing\n checkFlush();\n\n return getEntryInternal(key) != null;\n }", "public final boolean exists()\n {\n if ( m_fileStatus == FileStatus.FileExists ||\n m_fileStatus == FileStatus.DirectoryExists)\n return true;\n return false;\n }", "public Boolean isFDRCalculated(Long fileID) {\n if (!fileFDRCalculated.containsKey(fileID)) {\n return false;\n }\n return fileFDRCalculated.get(fileID);\n }", "private boolean contains(ArrayList<File> dataDir, Path path) {\n //File path_dir = new File(path.toString());\n File path_dir = path.toFile();\n for (File dir : dataDir) {\n try {\n if (Files.isSameFile(path_dir.toPath(), dir.toPath())) return true;\n } catch (IOException e) {\n logger.warning(\"Cannot check isSameFile with \" + path_dir.toPath() + \", \" +\n dir.toPath());\n }\n }\n return false;\n }", "public boolean hasDeleteFile() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "@Override\n public boolean hasResource(String resourceKey)\n {\n synchronized(InProcessCache.class) {\n WeakReference reference = (WeakReference)_cache.get(resourceKey);\n //check if the reference is not null\n if(reference != null){\n // if the reference is not null, check if the object was not\n // garbage collected. If it was, remove the reference from the cache,\n // otherwise, return true\n if(reference.get() != null) return true;\n else _cache.remove(resourceKey);\n }\n\n // The reference is not in cache\n return false;\n }\n }", "public static boolean acceptsFile(File file)\n\t{\n\t\treturn acceptsExtension(extractExtension(file.getName()));\n\t}" ]
[ "0.67769945", "0.6760401", "0.671124", "0.6336297", "0.6266527", "0.62258005", "0.6215312", "0.6154271", "0.6035883", "0.60025746", "0.59853953", "0.59806824", "0.59445363", "0.59445363", "0.59299856", "0.5921786", "0.59161294", "0.59066695", "0.5887403", "0.5861635", "0.583746", "0.5833395", "0.57935387", "0.57751256", "0.5771281", "0.57543945", "0.57469696", "0.5733674", "0.5725032", "0.569957", "0.569184", "0.5689307", "0.5671307", "0.5665541", "0.56582415", "0.56571054", "0.5656673", "0.564162", "0.56259155", "0.56114364", "0.561041", "0.5588903", "0.55826294", "0.5561503", "0.55448246", "0.5530323", "0.55184865", "0.5513545", "0.55082995", "0.55041593", "0.5493941", "0.5493713", "0.54840386", "0.54734397", "0.5453528", "0.5453458", "0.5448922", "0.54351884", "0.54271466", "0.5426407", "0.5417032", "0.54045117", "0.5394001", "0.5377056", "0.5370739", "0.5360674", "0.53573877", "0.5356538", "0.5355549", "0.5354613", "0.534962", "0.5346603", "0.5333551", "0.5330186", "0.5325222", "0.5323244", "0.5319659", "0.53176916", "0.5308515", "0.5307544", "0.53011596", "0.5292966", "0.52928895", "0.52919585", "0.52906466", "0.52888256", "0.52867913", "0.5286771", "0.5280532", "0.52785146", "0.52761", "0.5264172", "0.526298", "0.5262825", "0.52493477", "0.52488613", "0.52479434", "0.5245363", "0.52440584", "0.524117" ]
0.7757124
0
Escape HTML special characters.
public static String escapeHTML(String str){ return FuzzyXMLUtil.escape(str, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n return html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\n \">\", \"&gt;\");\n }", "private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n return html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\n \">\", \"&gt;\");\n }", "private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\">\", \"&gt;\");\r\n\t}", "public String htmlSpecialChar(String string){\n String res = string.replaceAll(\"&\",\"&amp;\");\n res = res.replace(\"'\",\"&#039;\");\n res = res.replace(\"\\\"\",\"&qout;\");\n res = res.replace(\"$\",\"&#036;\");\n res = res.replace(\"%\",\"&#037;\");\n res = res.replace(\"<\",\"&lt;\");\n res = res.replace(\">\",\"&gt;\");\n res = res.replace(\"\\n\",\"\\\\n\");\n return res;\n }", "private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\")\r\n\t\t\t\t.replaceAll(\">\", \"&gt;\");\r\n\t}", "private String escapeHtml(String html) {\n\t\tif (html == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\")\n\t\t\t\t.replaceAll(\">\", \"&gt;\");\n\t}", "private String escapeHtml(String html) {\n\t\tif (html == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\")\n\t\t\t\t.replaceAll(\">\", \"&gt;\");\n\t}", "public interface HtmlEscaper {\n String escape(String string);\n}", "public static String escapeHTML(String s) {\n return escapeHTML(s, true);\n }", "public void setEscapeHTML(boolean escapeHTML) {\n this.escapeHTML = escapeHTML;\n }", "protected String escape( String text )\n {\n return text.replaceAll( \"([`\\\\|*_])\", \"\\\\\\\\$1\" );\n }", "public static String escapeHTML(String s, boolean escapeAmpersand) {\n // got to do amp's first so we don't double escape\n if (escapeAmpersand) {\n s = StringUtils.replace(s, \"&\", \"&amp;\");\n }\n s = StringUtils.replace(s, \"&nbsp;\", \" \");\n s = StringUtils.replace(s, \"\\\"\", \"&quot;\");\n s = StringUtils.replace(s, \"<\", \"&lt;\");\n s = StringUtils.replace(s, \">\", \"&gt;\");\n return s;\n }", "CharSequence escape(char c);", "public static String encodeHtml(String str) {\n StringBuffer unencodedContent = new StringBuffer(str.length());\n Matcher fixCharMatch = encodeCharactersPattern.matcher(str);\n while (fixCharMatch.find()) {\n fixCharMatch.appendReplacement(unencodedContent, \"&#\" + fixCharMatch.group(1).codePointAt(0) + \";\");\n }\n fixCharMatch.appendTail(unencodedContent);\n return unencodedContent.toString();\n }", "public static String escapeSpecialChars(String value) {\r\n if (value != null) {\r\n for (int c = 0; c < SPECIAL_CHARS.length; c++) {\r\n value = value.replaceAll(\"\" + SPECIAL_CHARS[c], SPECIAL_CHAR_NAME[c]);\r\n }\r\n }\r\n return value;\r\n }", "public static final String escapeHTMLTags(String input) { \r\n if (input == null || input.length() == 0) {\r\n return input;\r\n } \r\n StringBuffer buf = new StringBuffer(input.length());\r\n char ch = ' ';\r\n for (int i = 0; i < input.length(); i++) {\r\n ch = input.charAt(i);\r\n if (ch == '<') {\r\n buf.append(LT);\r\n } else if (ch == '>') {\r\n buf.append(GT);\r\n } else if (ch == '\\'') {\r\n buf.append(S_QUTO);\r\n } else if (ch == '\"') {\r\n buf.append(D_QUTO);\r\n } else {\r\n buf.append(ch);\r\n }\r\n }\r\n return buf.toString();\r\n }", "@org.junit.Test\n public void encodeHTML()\n {\n assertEquals(\"apos\", \"I can&#39;t do &#34;this&#34;\",\n Encodings.encodeHTMLAttribute(\"I can't do \\\"this\\\"\"));\n assertEquals(\"no replace\", \"just a test\",\n Encodings.encodeHTMLAttribute(\"just a test\"));\n assertEquals(\"empty\", \"\", Encodings.encodeHTMLAttribute(\"\"));\n }", "public static String EncodeHTML(String s) {\n StringBuilder out = new StringBuilder();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (c > 127 || c == '\"' || c == '<' || c == '>') {\n out.append(\"&#\" + (int) c + \";\");\n } else {\n out.append(c);\n }\n }\n return out.toString();\n }", "private String escape(String str) {\n String result = null; // replace(str, \"&\", \"&amp;\");\n\n while (str.indexOf(\"&\") != -1) {\n str = replace(str, \"&\", \"&amp;\");\n }\n result = str;\n while (result.indexOf(\"-\") != -1) {\n result = replace(result, \"-\", \"\");\n }\n return result;\n }", "private String encodeXSS(String s) { \n if (s == null || \"\".equals(s)) { \n return s; \n } \n StringBuilder sb = new StringBuilder(s.length() + 16); \n for (int i = 0; i < s.length(); i++) { \n char c = s.charAt(i); \n switch (c) { \n \n //handle the '<' and '>' which can be used for constructing <script> and </script> \n case '>': \n sb.append('>'); \n break; \n case '<': \n sb.append('<'); \n break; \n \n //since the html can support the characters using $#number format \n //so here also need to escape '#','&' and quote symbol \n case '\\'': \n sb.append('‘'); \n break; \n case '\\\"': \n sb.append('“'); \n break; \n case '&': \n sb.append('&'); \n break; \n case '\\\\': \n sb.append('\'); \n break; \n case '#': \n sb.append('#'); \n break; \n //if not the special characters ,then output it directly \n default: \n sb.append(c); \n break; \n } \n } \n return sb.toString(); \n }", "default String escape(CharSequence input) {\n return Strings.escape(input, this);\n }", "public static String encodeToHtml(String in)\n {\n // New StringBuffer for output concatenation\n StringBuffer out = new StringBuffer();\n \n // For each character in the input string\n for (int i = 0; in != null && i < in.length(); i++)\n {\n // Get the current character\n char c = in.charAt(i);\n \n // Encode this character\n if (c == '\\'')\n {\n out.append(\"&#039;\");\n }\n else if (c == '\\\"')\n {\n out.append(\"&quot;\");\n }\n else if (c == '<')\n {\n out.append(\"&lt;\");\n }\n else if (c == '>')\n {\n out.append(\"&gt;\");\n }\n else if (c == '&')\n {\n out.append(\"&amp;\");\n }\n else\n {\n out.append(c);\n }\n }\n \n // Return encoded string\n return out.toString();\n }", "public static String encodeHTML(String input) {\n int size = input.length();\n StringBuffer buffer = new StringBuffer(size);\n for (int i = 0; i < size; i++ ) {\n char c = input.charAt(i);\n switch (c) {\n case '<':\n buffer.append(\"&lt;\");\n break;\n case '>':\n buffer.append(\"&gt;\");\n break;\n case '\"':\n buffer.append(\"&quot;\");\n break;\n default:\n buffer.append(c);\n }\n }\n return buffer.toString();\n }", "default HtmlFormatter escapeJava() {\n return andThen(StringEscapeUtils::escapeJava);\n }", "public static String escape(CharSequence charSeq)\n\t{\n\t\treturn escape(charSeq, Apostrophe.XML_ENTITY);\n\t}", "public static String htmlEscapeCharsToString(String source) {\n if (TextUtils.isEmpty(source)) {\n return source;\n } else {\n return source.replaceAll(\"&lt;\", \"<\").replaceAll(\"&gt;\", \">\").replaceAll(\"&amp;\", \"&\")\n .replaceAll(\"&quot;\", \"\\\"\");\n }\n }", "static String escapeLiteral(LiteralRule rule) {\n String specialChars = \".[]{}()*+-?^$|\";\n StringBuilder sb = new StringBuilder();\n\n for (int i = 0; i < rule.value.length(); ++i) {\n char c = rule.value.charAt(i);\n if (specialChars.indexOf(c) != -1) {\n sb.append(\"\\\\\");\n }\n\n sb.append(c);\n }\n\n return sb.toString();\n }", "@Override\n public void handleSpecialChar(\n com.globalsight.ling.docproc.extractor.html.HtmlObjects.Text t)\n {\n\n }", "public interface Escaper {\n\n /**\n * Escape one character, returning an escaped version of it if one is\n * needed, and otherwise returning null.\n *\n * @param c A character\n * @return A character sequence to replace the character with, or null if no\n * escaping is needed\n */\n CharSequence escape(char c);\n\n /**\n * Returns an escaped version of the input character sequence using this\n * Escaper.\n *\n * @param input The input\n * @return The escaped version of it\n */\n default String escape(CharSequence input) {\n return Strings.escape(input, this);\n }\n\n /**\n * Escape a character with contextual information about the current position\n * and the preceding character (will be 0 on the first character); a few\n * escapers that respond to things like delimiters and camel casing make use\n * of this; the default is simply to call <code>escape(c)</code>\n *\n * @param c The character to escape\n * @param index The index of the character within the string\n * @param of The total number of characters in this string\n * @param prev The preceding character\n * @return A CharSequence if the character cannot be used as-is, or null if\n * it can\n */\n default CharSequence escape(char c, int index, int of, char prev) {\n return escape(c);\n }\n\n /**\n * For use when logging a badly encoded string. Converts unencodable\n * characters to hex and ISO control characters to hex or their standard\n * escaped Java string representation if there is one (e.g. 0x05 ->\n * \"&lt;0x05&gt;\" but \\n -> \"\\n\").\n *\n * @param cs The character set.\n * @return A string representation that does not include raw unencodable or\n * control characters.\n */\n static Escaper escapeUnencodableAndControlCharacters(Charset cs) {\n CharsetEncoder enc = cs.newEncoder();\n return c -> {\n switch (c) {\n case '\\t':\n return \"\\\\t\";\n case '\\r':\n return \"\\\\r\";\n case '\\n':\n return \"\\\\n\";\n }\n if (!enc.canEncode(c) || Character.isISOControl(c)) {\n return \"<0x\" + Strings.toHex(c) + \">\";\n }\n return null;\n };\n }\n\n /**\n * Returns an escaper which does not escape the specified character, but\n * otherwise behaves the same as its parent.\n *\n * @param c A character\n * @return a new escaper\n */\n default Escaper ignoring(char c) {\n return c1 -> {\n if (c1 == c) {\n return null;\n }\n return this.escape(c);\n };\n }\n\n /**\n * Combine this escaper with another, such that the passed escaper is used\n * only on characters this escaper did not escape.\n *\n * @param other Another escaper\n * @return A new escaper\n */\n default Escaper and(Escaper other) {\n return new Escaper() {\n @Override\n public CharSequence escape(char c) {\n CharSequence result = Escaper.this.escape(c);\n return result == null ? other.escape(c) : result;\n }\n\n @Override\n public CharSequence escape(char c, int index, int of, char prev) {\n CharSequence result = Escaper.this.escape(c, index, of, prev);\n return result == null ? other.escape(c, index, of, prev) : result;\n }\n };\n }\n\n /**\n * Returns a new escaper which will also escape the passed character by\n * prefixing it with \\ in output.\n *\n * @param c A character\n * @return A new escaper\n */\n default Escaper escaping(char c) {\n return and((char c1) -> {\n if (c1 == c) {\n return \"\\\\\" + c;\n }\n return null;\n });\n }\n\n /**\n * Adds the behavior of escaping \" characters.\n *\n * @return A new escaper\n */\n default Escaper escapeDoubleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }\n\n /**\n * Adds the behavior of escaping ' characters.\n *\n * @return A new escaper\n */\n default Escaper escapeSingleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }\n\n /**\n * Converts some text incorporating symbols into a legal Java identifier,\n * separating symbol names and spaces in unicode character names with\n * underscores. Uses programmer-friendly character names for commonly used\n * characters (e.g. \\ is \"Backslash\" instead of the unicode name \"reverse\n * solidus\" (!). Useful when you have some text that needs to be converted\n * into a variable name in generated code and be recognizable as what it\n * refers to.\n */\n public static Escaper JAVA_IDENTIFIER_DELIMITED = new SymbolEscaper(true);\n\n /**\n * Converts some text incorporating symbols into a legal Java identifier,\n * separating symbol names and spaces using casing. Uses programmer-friendly\n * character names for commonly used characters (e.g. \\ is \"Backslash\"\n * instead of the unicode name \"reverse solidus\" (!). Useful when you have\n * some text that needs to be converted into a variable name in generated\n * code and be recognizable as what it refers to.\n */\n public static Escaper JAVA_IDENTIFIER_CAMEL_CASE = new SymbolEscaper(false);\n\n /**\n * Escapes double quotes, ampersands, less-than and greater-than to their\n * SGML entities.\n */\n public static Escaper BASIC_HTML = c -> {\n switch (c) {\n case '\"':\n return \"&quot;\";\n case '\\'':\n return \"&apos;\";\n case '&':\n return \"&amp;\";\n case '<':\n return \"&lt;\";\n case '>':\n return \"&gt;\";\n case '©':\n return \"&copy;\";\n case '®':\n return \"&reg;\";\n case '\\u2122':\n return \"&trade;\";\n case '¢':\n return \"&cent;\";\n case '£':\n return \"&pound;\";\n case '¥':\n return \"&yen;\";\n case '€':\n return \"&euro;\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes the usual HTML to SGML entities, plus escaping @, { and }, which\n * can otherwise result in javadoc build failures if they appear in code\n * samples.\n */\n public static Escaper JAVADOC_CODE_SAMPLE = c -> {\n switch (c) {\n case '@':\n return \"&#064;\";\n case '{':\n return \"&#123;\";\n case '}':\n return \"&#125;\";\n case '\"':\n return \"&quot;\";\n case '\\'':\n return \"&apos;\";\n case '&':\n return \"&amp;\";\n case '<':\n return \"&lt;\";\n case '>':\n return \"&gt;\";\n case '©':\n return \"&copy;\";\n case '®':\n return \"&reg;\";\n case '\\u2122':\n return \"&trade;\";\n case '¢':\n return \"&cent;\";\n case '£':\n return \"&pound;\";\n case '¥':\n return \"&yen;\";\n case '€':\n return \"&euro;\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes double quotes, ampersands, less-than and greater-than to their\n * SGML entities, and replaces \\n with &lt;br&gt;.\n */\n public static Escaper HTML_WITH_LINE_BREAKS = c -> {\n CharSequence result = BASIC_HTML.escape(c);\n if (result == null) {\n switch (c) {\n case '\\r':\n result = \"\";\n break;\n case '\\n':\n result = \"<br>\";\n }\n }\n return result;\n };\n\n /**\n * Replaces \\n, \\r, \\t and \\b with literal strings starting with \\.\n */\n public static Escaper NEWLINES_AND_OTHER_WHITESPACE = c -> {\n switch (c) {\n case '\\n':\n return \"\\\\n\";\n case '\\t':\n return \"\\\\t\";\n case '\\r':\n return \"\\\\r\";\n case '\\b':\n return \"\\\\b\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes the standard characters which must be escaped for generating\n * valid lines of code in Java or Javascript - \\n, \\r, \\t, \\b, \\f and \\.\n * Does <i>not</i> escape quote characters (this may differ based on the\n * target language) - call escapeSingleQuotes() or escapeDoubleQuotes() to\n * create a wrapper around this escaper which does that.\n */\n public static Escaper CONTROL_CHARACTERS = c -> {\n switch (c) {\n case '\\n':\n return \"\\\\n\";\n case '\\r':\n return \"\\\\r\";\n case '\\t':\n return \"\\\\t\";\n case '\\b':\n return \"\\\\b\";\n case '\\f':\n return \"\\\\f\";\n case '\\\\':\n return \"\\\\\\\\\";\n default:\n return null;\n }\n };\n\n /**\n * Omits characters which are neither letters nor digits - useful for\n * hash-matching text that may have varying amounts of whitespace or other\n * non-semantic formatting differences.\n */\n public static Escaper OMIT_NON_WORD_CHARACTERS = c -> {\n return !Character.isDigit(c) && !Character.isLetter(c) ? \"\"\n : Character.toString(c);\n };\n}", "public static String encodeEscapes(@Nullable String inString)\n {\n if(inString == null)\n return \"\";\n\n // replace all special characters with some equivalent\n StringBuilder result = new StringBuilder();\n for(int i = 0; i < inString.length(); i++)\n {\n char c = inString.charAt(i);\n int pos = s_escapes.indexOf(c);\n\n if(pos >= 0)\n result.append(s_marker + pos + s_marker);\n else\n result.append(c);\n }\n\n return result.toString();\n }", "private static String escape(String value, String chars) {\n\t\treturn escape(value, chars, \"\\\\\\\\\");\n\t}", "protected void content(String text) {\n // small hack due to DOXIA-314\n String txt = escapeHTML(text);\n txt = StringUtils.replace(txt, \"&amp;#\", \"&#\");\n write(txt);\n }", "final protected String translateSpecialChars(String title)\r\n {\r\n int start;\r\n\tint i;\r\n\t// HTML representation of selected extended chars\r\n\tString rawString[]={\r\n\t\t\t\t\t\t \"&aacute;\",\"&acirc;\",\"&aelig;\",\r\n\t\t\t\t\t\t \"&agrave;\",\"&auml;\",\"&ccedil;\",\r\n\t\t\t\t\t\t \"&eacute;\",\"&ecirc;\",\"&egrave;\",\r\n\t\t\t\t \"&euml;\",\"&icirc;\",\"&iuml;\",\r\n\t\t\t\t \"&ocirc;\",\"&ouml;\",\"&szlig;\",\r\n\t\t\t\t \"&uuml;\",\"&yuml;\",\"&copy;\",\r\n\t\t\t\t \"&pound;\",\"&reg;\",\"&lt;\",\r\n\t\t\t\t \"&gt;\",\"&amp;\",\"&quot;\",\r\n \t\t\t\t\t \"&atilde;\",\"&aring;\",\"&igrave;\",\r\n\t\t\t\t\t \"&iacute;\",\"&eth;\",\"&ntilde;\",\r\n\t\t\t\t\t \"&ograve;\",\"&oacute;\",\"&otilde;\",\r\n\t\t\t\t\t \"&divide;\",\"&oslash;\",\"&ugrave;\",\r\n\t\t\t\t\t \"&uacute;\",\"&ucirc;\",\"&yacute;\",\r\n\t\t\t\t\t \"&thorn;\",\"&times;\",\"&nbsp;\",\r\n\t\t\t\t\t \"&sect;\",\"&cent;\",\"&deg;\"\r\n\t\t\t\t\t };\r\n // Unicode representation of above\r\n\tchar translatedChar[]={\r\n\t\t\t\t\t\t\t'\\u00e1','\\u00e2','\\u00e6',\r\n\t\t\t\t\t\t\t'\\u00e0','\\u00e4','\\u00e7',\r\n\t\t\t\t\t\t\t'\\u00e9','\\u00ea','\\u00e8',\r\n\t\t\t\t\t\t\t'\\u00eb','\\u00ee','\\u00ef',\r\n\t\t\t\t\t\t\t'\\u00f4','\\u00f6','\\u00df',\r\n\t\t\t\t\t\t\t'\\u00fc','\\u00ff','\\u00a9',\r\n\t\t\t\t\t\t\t'\\u00a3','\\u00ae','\\u003c',\r\n\t\t\t\t\t\t\t'\\u003e','\\u0026','\\u0022',\r\n\t\t\t\t\t\t\t'\\u00e3','\\u00e5','\\u00ec',\r\n\t\t\t\t\t\t\t'\\u00ed','\\u00f0','\\u00f1',\r\n\t\t\t\t\t\t\t'\\u00f2','\\u00f3','\\u00f5',\r\n\t\t\t\t\t\t\t'\\u00f7','\\u00f8','\\u00f9',\r\n\t\t\t\t\t\t\t'\\u00fa','\\u00fb','\\u00fd',\r\n\t\t\t\t\t\t\t'\\u00fe','\\u00d7','\\u00a0',\r\n\t\t\t\t\t\t\t'\\u00a7','\\u00a2','\\u00b0'\r\n\t\t\t\t\t\t };\r\n StringBuffer translated=new StringBuffer(\"\");\r\n\tString titleString=title;\r\n\r\n\t//Check the title for each of the above HTML special chars\r\n\tfor(int loop=0;loop<NUMBER_SPECIAL_CHARS;loop++)\r\n\t{\r\n\t if(translated.length()>0)\r\n\t {\r\n\t titleString=translated.toString();\r\n\t\ttranslated=new StringBuffer(\"\");\r\n\t }\r\n\t start=titleString.indexOf(rawString[loop]);\r\n\t if(start!=-1)\r\n\t {\r\n\t //HTML special character found so replace it \r\n\t\t// with the unicode equalent for display.\r\n\t\tfor(i=0;i<start;i++)\r\n\t\t translated.insert(i,titleString.charAt(i));\r\n translated.append(translatedChar[loop]);\r\n\t\tfor(i=start+rawString[loop].length();i<titleString.length();i++)\r\n\t\t translated.append(titleString.charAt(i));\r\n\t }\r\n\t}\r\n\treturn (translated.length()==0) ? titleString : translated.toString();\r\n }", "protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }", "public static String escapeControlCharactersAndQuotes(CharSequence seq) {\n int len = seq.length();\n StringBuilder sb = new StringBuilder(seq.length() + 1);\n escapeControlCharactersAndQuotes(seq, len, sb);\n return sb.toString();\n }", "protected String escape(String replacement) {\n return replacement.replace(\"\\\\\", \"\\\\\\\\\").replace(\"$\", \"\\\\$\");\n }", "private static void escape(CharSequence s, Appendable out) throws IOException {\n for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n switch (ch) {\n case '\"':\n out.append(\"\\\\\\\"\");\n break;\n case '\\\\':\n out.append(\"\\\\\\\\\");\n break;\n case '\\b':\n out.append(\"\\\\b\");\n break;\n case '\\f':\n out.append(\"\\\\f\");\n break;\n case '\\n':\n out.append(\"\\\\n\");\n break;\n case '\\r':\n out.append(\"\\\\r\");\n break;\n case '\\t':\n out.append(\"\\\\t\");\n break;\n case '/':\n out.append(\"\\\\/\");\n break;\n default:\n // Reference: http://www.unicode.org/versions/Unicode5.1.0/\n if ((ch >= '\\u0000' && ch <= '\\u001F')\n || (ch >= '\\u007F' && ch <= '\\u009F')\n || (ch >= '\\u2000' && ch <= '\\u20FF')) {\n String ss = Ascii.toUpperCase(Integer.toHexString(ch));\n out.append(\"\\\\u\");\n out.append(Strings.padStart(ss, 4, '0'));\n } else {\n out.append(ch);\n }\n }\n }\n }", "public void putUrlEncodedHTML(final String key, final String value) {\n put(key, value == null ? \"\" : CharacterCoding.unicode2html(value, true));\n }", "public static String escapeMarkup(final String s,\n\t\t\tfinal boolean escapeSpaces, final boolean convertToHtmlUnicodeEscapes)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal StringBuffer buffer = new StringBuffer();\n\n\t\t\tint len = s.length();\n\t\t\tfor (int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\tfinal char c = s.charAt(i);\n\n\t\t\t\tswitch (c)\n\t\t\t\t{\n\t\t\t\t\tcase '\\t' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Assumption is four space tabs (sorry, but that's\n\t\t\t\t\t\t\t// just\n\t\t\t\t\t\t\t// how it is!)\n\t\t\t\t\t\t\tbuffer.append(\"&nbsp;&nbsp;&nbsp;&nbsp;\");\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\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase ' ' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(\"&nbsp;\");\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\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '<' :\n\t\t\t\t\t\tbuffer.append(\"&lt;\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '>' :\n\t\t\t\t\t\tbuffer.append(\"&gt;\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '&':\n\n\t\t\t\t\t\t// if this is an entity (&#), then do not convert\n\t\t\t\t\t\tif ( (i < len - 1) && (s.charAt(i + 1) == '#') )\n\t\t\t\t\t {\n\t\t\t\t\t\t\tbuffer.append(c);\n\n\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\t// it is not an entity, so convert it to &amp;\n\t\t\t\t\t\t\tbuffer.append(\"&amp;\");\n\t\t\t\t\t\t}\n\t\t\t\t\t break;\n\n\t\t\t\t\tcase '\"':\n\t\t\t\t\t buffer.append(\"&quot;\");\n\t\t\t\t\t break;\n\n\t\t\t\t\tcase '\\'':\n\t\t\t\t\t buffer.append(\"&#039;\");\n\t\t\t\t\t break;\n\n\t\t\t\t\tdefault :\n\n\t\t\t\t\t\tif(convertToHtmlUnicodeEscapes)\n\t\t\t\t\t\t{\n\t\t\t int ci = 0xffff & c;\n\t\t\t if (ci < 160 )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// nothing special only 7 Bit\n\t\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\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 // Not 7 Bit use the unicode system\n\t\t\t\t\t\t\t\tbuffer.append(\"&#\");\n\t\t\t\t\t\t\t\tbuffer.append(new Integer(ci).toString());\n\t\t\t\t\t\t\t\tbuffer.append(';');\n\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\tbuffer.append(c);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn buffer.toString();\n\t\t}\n\t}", "public static CharSequence escapeMarkup(final String s, final boolean escapeSpaces,\n\t\t\tfinal boolean convertToHtmlUnicodeEscapes)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint len = s.length();\n\t\t\tfinal AppendingStringBuffer buffer = new AppendingStringBuffer((int)(len * 1.1));\n\n\t\t\tfor (int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\tfinal char c = s.charAt(i);\n\n\t\t\t\tswitch (c)\n\t\t\t\t{\n\t\t\t\t\tcase '\\t' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Assumption is four space tabs (sorry, but that's\n\t\t\t\t\t\t\t// just how it is!)\n\t\t\t\t\t\t\tbuffer.append(\"&nbsp;&nbsp;&nbsp;&nbsp;\");\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\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase ' ' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(\"&nbsp;\");\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\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '<' :\n\t\t\t\t\t\tbuffer.append(\"&lt;\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '>' :\n\t\t\t\t\t\tbuffer.append(\"&gt;\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '&' :\n\n\t\t\t\t\t\t// if this is an entity (&#), then do not convert\n\t\t\t\t\t\tif ((i < len - 1) && (s.charAt(i + 1) == '#'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(c);\n\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\t// it is not an entity, so convert it to &amp;\n\t\t\t\t\t\t\tbuffer.append(\"&amp;\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '\"' :\n\t\t\t\t\t\tbuffer.append(\"&quot;\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '\\'' :\n\t\t\t\t\t\tbuffer.append(\"&#039;\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault :\n\n\t\t\t\t\t\tif (convertToHtmlUnicodeEscapes)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint ci = 0xffff & c;\n\t\t\t\t\t\t\tif (ci < 160)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// nothing special only 7 Bit\n\t\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\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// Not 7 Bit use the unicode system\n\t\t\t\t\t\t\t\tbuffer.append(\"&#\");\n\t\t\t\t\t\t\t\tbuffer.append(new Integer(ci).toString());\n\t\t\t\t\t\t\t\tbuffer.append(';');\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\tbuffer.append(c);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn buffer;\n\t\t}\n\t}", "public static String escape(String string) throws UnsupportedEncodingException {\n\t\t\n fill();\n \n StringBuilder bufOutput = new StringBuilder(string);\n for (int i = 0; i < bufOutput.length(); i++) {\n //String replacement = (String) SPARQL_ESCAPE_SEARCH_REPLACEMENTS.get(\"\" + bufOutput.charAt(i));\n // if(replacement!=null) {\n if( SPARQL_ESCAPE_SEARCH_REPLACEMENTS.contains(bufOutput.charAt(i))) {\n String replacement = URLEncoder.encode( Character.toString(bufOutput.charAt(i)), \"UTF-8\");\n bufOutput.deleteCharAt(i);\n bufOutput.insert(i, replacement);\n // advance past the replacement\n i += (replacement.length() - 1);\n }\n }\n return bufOutput.toString();\n\t}", "@Override\r\n\t\tpublic String encode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar content[] = str.toCharArray();\r\n\t\t\t\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(content.length);\r\n\t\t\tfor (int i = 0; i < content.length; i++) {\r\n\t\t\t\tswitch (content[i]) {\r\n\t\t\t\tcase '<':\r\n\t\t\t\t\tresult.append(\"&lt;\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '>':\r\n\t\t\t\t\tresult.append(\"&gt;\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '&':\r\n\t\t\t\t\tresult.append(\"&amp;\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '\"':\r\n\t\t\t\t\tresult.append(\"&quot;\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '\\'':\r\n\t\t\t\t\tresult.append(\"&apos;\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tresult.append(content[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn (result.toString());\r\n\t\t}", "public String escape(final String input) {\n\t\tStringBuilder builder = new StringBuilder(input);\n\t\tescape(builder);\n\t\treturn builder.toString();\n\t}", "@Override\r\n\t\tpublic String encode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar content[] = str.toCharArray();\r\n\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(content.length);\r\n\t\t\tfor (int i = 0; i < content.length; i++) {\r\n\t\t\t\tswitch (content[i]) {\r\n\t\t\t\t\tcase '<':\r\n\t\t\t\t\t\tresult.append(\"&#60;\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '>':\r\n\t\t\t\t\t\tresult.append(\"&#62;\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '&':\r\n\t\t\t\t\t\tresult.append(\"&#38;\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '\"':\r\n\t\t\t\t\t\tresult.append(\"&#34;\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '\\'':\r\n\t\t\t\t\t\tresult.append(\"&#39;\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tresult.append(content[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn (result.toString());\r\n\t\t}", "public static String encode(String in){\n in = in.replace(\"&\", \"&amp;\");\n in = in.replace(\"\\\"\", \"&quot;\");\n in = in.replace(\"<\", \"&lt;\");\n in = in.replace(\">\", \"&gt;\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &amp;\n return in;\n }", "private String escapeValue(String value) {\n Matcher match = escapePattern.matcher(value);\n String ret = match.replaceAll(\"\\\\\\\\\\\\\\\\\");\n return ret.replace(\"\\\"\", \"\\\\\\\"\").replace(\"\\n\", \" \").replace(\"\\t\", \" \");\n }", "public void putHTML(final String key, final String value) {\n put(key, value == null ? \"\" : CharacterCoding.unicode2html(UTF8.decodeURL(value), true));\n }", "private void writeEsc(char ch[], int start, int length, boolean isAttVal) throws IOException {\n\t\tescapeHandler.escape(ch, start, length, isAttVal, output);\n\t}", "public String handleEntities(String content, boolean attribute)\n\t{\n\t\tString text;\n\t\t\n\t\tif (keepEntities(attribute))\n\t\t\ttext = EscHandler.theInstance.escape(content);\n\t\telse\n\t\t\ttext = content;\n\t\t\n\t\treturn text;\n\t}", "public String escapeElementEntities(String str) {\r\n StringBuffer buffer;\r\n char ch;\r\n String entity;\r\n\r\n buffer = null;\r\n for (int i = 0; i < str.length(); i++) {\r\n ch = str.charAt(i);\r\n switch(ch) {\r\n case '<' :\r\n entity = \"&lt;\";\r\n break;\r\n case '>' :\r\n entity = \"&gt;\";\r\n break;\r\n case '&' :\r\n entity = \"&amp;\";\r\n break;\r\n default :\r\n entity = null;\r\n break;\r\n }\r\n if (buffer == null) {\r\n if (entity != null) {\r\n // An entity occurred, so we'll have to use StringBuffer\r\n // (allocate room for it plus a few more entities).\r\n buffer = new StringBuffer(str.length() + 20);\r\n // Copy previous skipped characters and fall through\r\n // to pickup current character\r\n buffer.append(str.substring(0, i));\r\n buffer.append(entity);\r\n }\r\n }\r\n else {\r\n if (entity == null) {\r\n buffer.append(ch);\r\n }\r\n else {\r\n buffer.append(entity);\r\n }\r\n }\r\n }\r\n\r\n // If there were any entities, return the escaped characters\r\n // that we put in the StringBuffer. Otherwise, just return\r\n // the unmodified input string.\r\n return (buffer == null) ? str : buffer.toString();\r\n }", "@Override\n public String getSaveValue() {\n String saveValue = super.getSaveValue();\n // Replace &, <, >, ', and \"\n saveValue = saveValue.replace(\"&\", \"&amp;\");\n saveValue = saveValue.replace(\"<\", \"&lt;\");\n saveValue = saveValue.replace(\">\", \"&gt;\");\n saveValue = saveValue.replace(\"\\'\", \"&apos;\");\n saveValue = saveValue.replace(\"\\\"\", \"&quot;\");\n return saveValue;\n }", "public static String encodeHTMLAttribute(String inText)\n {\n return inText.replaceAll(\"\\\"\", \"&#34;\").replaceAll(\"\\'\", \"&#39;\");\n }", "private String escapeXML(String string) {\n StringBuffer sb = new StringBuffer();\n int length = string.length();\n for (int i = 0; i < length; ++i) {\n char c = string.charAt(i);\n switch (c) {\n case '&':\n sb.append(\"&amp;\");\n break;\n case '<':\n sb.append(\"&lt;\");\n break;\n case '>':\n sb.append(\"&gt;\");\n break;\n case '\\'':\n sb.append(\"&#039;\");\n break;\n case '\"':\n sb.append(\"&quot;\");\n break;\n default:\n sb.append(c);\n }\n }\n return sb.toString();\n }", "public static String escapeMarkup(final String s)\n\t{\n\t\treturn escapeMarkup(s, false);\n\t}", "public static String removeAndEscapeHTML( String s ) {\n if ( s==null ) return \"\";\n else return Utilities.escapeHTML( Utilities.removeHTML(s) );\n }", "private static String escape(String arg) {\n int max;\n StringBuilder result;\n char c;\n\n max = arg.length();\n result = new StringBuilder(max);\n for (int i = 0; i < max; i++) {\n c = arg.charAt(i);\n switch (c) {\n case '\\'':\n case '\"':\n case ' ':\n case '\\t':\n case '&':\n case '|':\n case '(':\n case ')':\n case '\\n':\n result.append('\\\\');\n result.append(c);\n break;\n default:\n result.append(c);\n break;\n }\n }\n return result.toString();\n }", "public static String escapeXML(String value){\r\n\t\treturn FuzzyXMLUtil.escape(value, false);\r\n\t}", "private String escapeXML(String string) {\n if (string == null)\n return \"null\";\n StringBuffer sb = new StringBuffer();\n int length = string.length();\n for (int i = 0; i < length; ++i) {\n char c = string.charAt(i);\n switch (c) {\n case '&':\n sb.append(\"&amp;\");\n break;\n case '<':\n sb.append(\"&lt;\");\n break;\n case '>':\n sb.append(\"&gt;\");\n break;\n case '\\'':\n sb.append(\"&#039;\");\n break;\n case '\"':\n sb.append(\"&quot;\");\n break;\n default:\n sb.append(c);\n }\n }\n return sb.toString();\n }", "private static String escape(String value, String chars, String escapeSequence) {\n\t\tString escaped = value;\n\t\t\n\t\tif (escaped == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tfor (char ch : chars.toCharArray()) {\n\t\t\tescaped = escaped.replaceAll(String.valueOf(ch), escapeSequence + ch);\n\t\t}\n\t\n\t\treturn escaped;\n\t}", "private void writeEscaped(String in)\n\t\tthrows IOException\n\t{\n\t\tfor(int i=0, n=in.length(); i<n; i++)\n\t\t{\n\t\t\tchar c = in.charAt(i);\n\t\t\tif(c == '\"' || c == '\\\\')\n\t\t\t{\n\t\t\t\twriter.write('\\\\');\n\t\t\t\twriter.write(c);\n\t\t\t}\n\t\t\telse if(c == '\\r')\n\t\t\t{\n\t\t\t\twriter.write('\\\\');\n\t\t\t\twriter.write('r');\n\t\t\t}\n\t\t\telse if(c == '\\n')\n\t\t\t{\n\t\t\t\twriter.write('\\\\');\n\t\t\t\twriter.write('n');\n\t\t\t}\n\t\t\telse if(c == '\\t')\n\t\t\t{\n\t\t\t\twriter.write('\\\\');\n\t\t\t\twriter.write('t');\n\t\t\t}\n\t\t\telse if(c == '\\b')\n\t\t\t{\n\t\t\t\twriter.write('\\\\');\n\t\t\t\twriter.write('b');\n\t\t\t}\n\t\t\telse if(c == '\\f')\n\t\t\t{\n\t\t\t\twriter.write('\\\\');\n\t\t\t\twriter.write('f');\n\t\t\t}\n\t\t\telse if(c <= 0x1F)\n\t\t\t{\n\t\t\t\twriter.write('\\\\');\n\t\t\t\twriter.write('u');\n\n\t\t\t\tint v = c;\n\t\t\t\tint pos = 4;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tencoded[--pos] = DIGITS[v & HEX_MASK];\n\t\t\t\t\tv >>>= 4;\n\t\t\t\t}\n\t\t\t\twhile (v != 0);\n\n\t\t\t\tfor(int j=0; j<pos; j++) writer.write('0');\n\t\t\t\twriter.write(encoded, pos, 4 - pos);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twriter.write(c);\n\t\t\t}\n\t\t}\n\t}", "private static String escapeTags(final String input) {\n if ((input == null) || (input.length() == 0)\n || (input.indexOf(\"<\") == -1 && input.indexOf(\">\") == -1)) {\n return input;\n }\n\n StringBuffer buf = new StringBuffer(input);\n return escapeTags(buf);\n }", "public void setEncodeHtml(String off) {\n\t\ttry {\n\t\t\tencodeHtml = Integer.parseInt(off);\n\t\t} catch (Exception e) {\n\t\t\tencodeHtml = 1;\n\t\t}\n\t}", "@Test\n\tvoid transformTagWithHtmlEscape() throws JspException {\n\t\tPageContext pc = createPageContext();\n\t\tTestBean tb = new TestBean();\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tServletRequestDataBinder binder = new ServletRequestDataBinder(tb, \"tb\");\n\t\tCustomDateEditor l = new CustomDateEditor(df, true);\n\t\tbinder.registerCustomEditor(Date.class, l);\n\t\tpc.getRequest().setAttribute(BindingResult.MODEL_KEY_PREFIX + \"tb\", binder.getBindingResult());\n\n\t\t// try another time, this time using Strings\n\t\tBindTag bind = new BindTag();\n\t\tbind.setPageContext(pc);\n\t\tbind.setPath(\"tb.name\");\n\t\tbind.doStartTag();\n\n\t\tTransformTag transform = new TransformTag();\n\t\ttransform.setPageContext(pc);\n\t\ttransform.setValue(\"na<me\");\n\t\ttransform.setParent(bind);\n\t\ttransform.setVar(\"theString\");\n\t\ttransform.setHtmlEscape(true);\n\t\ttransform.doStartTag();\n\n\t\tassertThat(pc.getAttribute(\"theString\")).isNotNull();\n\t\tassertThat(pc.getAttribute(\"theString\")).isEqualTo(\"na&lt;me\");\n\t}", "public static String HTMLEncode(String str) {\n\t\tif(null == str)\n\t\t\treturn \"null\";\n\t\tStringBuffer strbuf = new StringBuffer(str.length());\n\t\tchar tmp;\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\ttmp = str.charAt(i);\n\t\t\tif('<' == tmp) {\n\t\t\t\tstrbuf.append(\"&lt;\");\n\t\t\t} else if('>' == tmp) {\n\t\t\t\tstrbuf.append(\"&gt;\");\n\t\t\t} else {\n\t\t\t\tstrbuf.append(tmp);\n\t\t\t}\n\t\t}\n\t\treturn strbuf.toString();\n\t}", "private String encode(String s) {\n\t\tString t = \"\";\n\n\t\tif (s == null) {\n\t\t\treturn t;\n\t\t}\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\n\t\t\tif (c == '<') {\n\t\t\t\tt += \"&lt;\";\n\t\t\t} else if (c == '>') {\n\t\t\t\tt += \"&gt;\";\n\t\t\t} else if (c == '&') {\n\t\t\t\tt += \"&amp;\";\n\t\t\t} else if (c == '\"') {\n\t\t\t\tt += \"&quot;\";\n\t\t\t} else if (c == '\\'') {\n\t\t\t\tt += \"&apos;\";\n\t\t\t} else {\n\t\t\t\tt += c;\n\t\t\t}\n\t\t}\n\n\t\treturn t;\n\t}", "public String escapeAttributeEntities(String str) {\r\n StringBuffer buffer;\r\n char ch;\r\n String entity;\r\n\r\n buffer = null;\r\n for (int i = 0; i < str.length(); i++) {\r\n ch = str.charAt(i);\r\n switch(ch) {\r\n case '<' :\r\n entity = \"&lt;\";\r\n break;\r\n case '>' :\r\n entity = \"&gt;\";\r\n break;\r\n/*\r\n case '\\'' :\r\n entity = \"&apos;\";\r\n break;\r\n*/\r\n case '\\\"' :\r\n entity = \"&quot;\";\r\n break;\r\n case '&' :\r\n entity = \"&amp;\";\r\n break;\r\n default :\r\n entity = null;\r\n break;\r\n }\r\n if (buffer == null) {\r\n if (entity != null) {\r\n // An entity occurred, so we'll have to use StringBuffer\r\n // (allocate room for it plus a few more entities).\r\n buffer = new StringBuffer(str.length() + 20);\r\n // Copy previous skipped characters and fall through\r\n // to pickup current character\r\n buffer.append(str.substring(0, i));\r\n buffer.append(entity);\r\n }\r\n }\r\n else {\r\n if (entity == null) {\r\n buffer.append(ch);\r\n }\r\n else {\r\n buffer.append(entity);\r\n }\r\n }\r\n }\r\n\r\n // If there were any entities, return the escaped characters\r\n // that we put in the StringBuffer. Otherwise, just return\r\n // the unmodified input string.\r\n return (buffer == null) ? str : buffer.toString();\r\n }", "public static String sanitize(String input){\n\t\tinput.replaceAll(\"&\", \"&amp;\");\n\t\tinput.replaceAll(\"<\", \"&lt;\");\n\t\tinput.replaceAll(\">\", \"&gt;\");\n\t\tinput.replaceAll(\"/\", \"&frasl;\");\n\t\treturn input;\n\t}", "public String escape(String source) {\r\n\t\treturn null;\r\n\t}", "private String sanitizeSpecialChars(String value) {\n return value.replaceAll(\"[^a-zA-Z0-9_]\", \"_\");\n }", "String escChr(char pChar) throws Exception;", "private String escapeLdapNameForFilter(LdapName ldn) {\n\n if (ldn == null) {\n if (log.isDebugEnabled()) {\n log.debug(\"Received null value to escape special characters. Returning null\");\n }\n return null;\n }\n\n boolean replaceEscapeCharacters = true;\n\n String replaceEscapeCharactersAtUserLoginString = userStoreProperties\n .get(CommonConstants.PROPERTY_REPLACE_ESCAPE_CHARACTERS_AT_USER_LOGIN);\n\n if (replaceEscapeCharactersAtUserLoginString != null) {\n replaceEscapeCharacters = Boolean\n .parseBoolean(replaceEscapeCharactersAtUserLoginString);\n if (log.isDebugEnabled()) {\n log.debug(\"Replace escape characters configured to: \"\n + replaceEscapeCharactersAtUserLoginString);\n }\n }\n\n if (replaceEscapeCharacters) {\n StringBuilder escapedDN = new StringBuilder();\n for (int i = ldn.size() - 1; i > -1; i--) { //escaping the rdns separately and re-constructing the DN\n escapedDN = escapedDN.append(escapeSpecialCharactersForFilterWithStarAsRegex(ldn.get(i)));\n if (i != 0) {\n escapedDN.append(\",\");\n }\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Escaped DN value for filter : \" + escapedDN);\n }\n return escapedDN.toString();\n } else {\n return ldn.toString();\n }\n }", "public static String toHTML(String s) {\n\t\ts=replace(s,\"<\",\"&lt;\");\n\t\ts=replace(s,\">\",\"&gt;\");\n\t\ts=replace(s,\"\\n\",\"<br>\\n\");\n\t\treturn s;\n\t}", "protected abstract boolean evalEscapeXml() throws JspException;", "public interface EscapeMarker {}", "public static void escapeLikeValue(StringBuilder sb, String value, char escapeChar) {\n for (int i = 0; i < value.length(); i++) {\n char ch = value.charAt(i);\n if (ch == '%' || ch == '_') {\n sb.append(escapeChar);\n }\n sb.append(ch);\n }\n }", "private static String escape(String in) {\n // After regexp escaping \\\\\\\\ = 1 slash, \\\\\\\\\\\\\\\\ = 2 slashes.\n\n // Also, the second args of replaceAll are neither strings nor regexps, and\n // are instead a special DSL used by Matcher. Therefore, we need to double\n // escape slashes (4 slashes) and quotes (3 slashes + \") in those strings.\n // Since we need to write \\\\ and \\\", we end up with 8 and 7 slashes,\n // respectively.\n return in.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\").replaceAll(\"\\\"\", \"\\\\\\\\\\\\\\\"\");\n }", "public static String unicodeEscaped(Character ch) {\n/* 380 */ if (ch == null) {\n/* 381 */ return null;\n/* */ }\n/* 383 */ return unicodeEscaped(ch.charValue());\n/* */ }", "public static CharSequence escapeMarkup(final String s)\n\t{\n\t\treturn escapeMarkup(s, false);\n\t}", "@DISPID(-2147417084)\n @PropPut\n void outerHTML(\n java.lang.String rhs);", "static Escaper escapeUnencodableAndControlCharacters(Charset cs) {\n CharsetEncoder enc = cs.newEncoder();\n return c -> {\n switch (c) {\n case '\\t':\n return \"\\\\t\";\n case '\\r':\n return \"\\\\r\";\n case '\\n':\n return \"\\\\n\";\n }\n if (!enc.canEncode(c) || Character.isISOControl(c)) {\n return \"<0x\" + Strings.toHex(c) + \">\";\n }\n return null;\n };\n }", "private String escape(String token) {\n return token.replace(\",\" , \"\");\n }", "private static String escape(String s) {\r\n\t\tif (s == null)\r\n\t\t\treturn null;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tescape(s, sb);\r\n\t\treturn sb.toString();\r\n\t}", "default Escaper escaping(char c) {\n return and((char c1) -> {\n if (c1 == c) {\n return \"\\\\\" + c;\n }\n return null;\n });\n }", "private String escape(String s) {\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < s.length(); ) {\r\n int ch = s.codePointAt(i);\r\n i += Character.charCount(ch);\r\n if (' ' <= ch && ch <= '~') sb.append((char)ch);\r\n else {\r\n sb.append(\"\\\\\");\r\n sb.append(ch);\r\n if (i < s.length()) {\r\n ch = s.charAt(i);\r\n if (ch == ';' || ('0' <= ch && ch <= '9')) sb.append(';');\r\n }\r\n }\r\n }\r\n return sb.toString();\r\n }", "private String encode(String value) {\n String encoded = \"\";\n try {\n encoded = URLEncoder.encode(value, \"UTF-8\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n String sb = \"\";\n char focus;\n for (int i = 0; i < encoded.length(); i++) {\n focus = encoded.charAt(i);\n if (focus == '*') {\n sb += \"%2A\";\n } else if (focus == '+') {\n sb += \"%20\";\n } else if (focus == '%' && i + 1 < encoded.length() && encoded.charAt(i + 1) == '7' && encoded.charAt(i + 2) == 'E') {\n sb += '~';\n i += 2;\n } else {\n sb += focus;\n }\n }\n return sb.toString();\n }", "public static String escape(String value, String escape) {\n String result = value.replace(\"_\", \"_\" + escape);\n result = result.replace(\"%\", \"%\" + escape);\n result = result.replace(escape, escape + escape);\n return result;\n }", "public static void escapeControlCharactersAndQuotes(CharSequence seq, StringBuilder into) {\n escapeControlCharactersAndQuotes(seq, seq.length(), into);\n }", "static String escape(String str,char quote) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(quote);\n\t\tsb.append(str.replaceAll(Character.toString(quote), \"\\\\\"+quote));\n\t\tsb.append(quote);\n\t\treturn sb.toString();\n\t}", "public static final String StringToSafeHtml(final Object o) {\n\t\t\n\t\tfinal String string = Convert.Any.toString(o, null);\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn string.replace(\"\\r\", \"\").replace(\">\\n<\", \"><\").replace(\"<br>\", \"\\n\").replace(\"<p>\", \"\\n\\n\").replace(\"</p>\", \"\").replace(\"&#13;\", \"\\n\").replace(\" \\n\", \"\\n\")\n\t\t\t\t.replace(\"\\n\\n\\n\", \"\\n\\n\").replace(\" \", \" &nbsp;\").replace(\"\\t\", \" &nbsp; &nbsp;\").replace(\"<\", \"&lt;\").replace(\"\\n\\n\", \"<p>\").replace(\"\\n\", \"<br>\");\n\t}", "public static String escapeXML(String val)\n {\n if (val == null) {\n return \"\";\n } else {\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < val.length(); i++) {\n char ch = val.charAt(i);\n switch (ch) {\n // -- TODO: must also handle unicode escaping\n case '\\\"':\n sb.append(\"&quot;\");\n break;\n case '\\'':\n sb.append(\"&apos;\");\n break;\n case '<':\n sb.append(\"&lt;\");\n break;\n case '>':\n sb.append(\"&gt;\");\n break;\n case '&':\n sb.append(\"&amp;\");\n break;\n default:\n sb.append(ch);\n break;\n }\n }\n return sb.toString();\n }\n }", "public static String addSpecialCharacters(String guid)\r\n\t{\r\n\t\tStringBuffer sb = new StringBuffer(\"{\");\r\n\t\tsb.append(guid.substring(0, 8) + \"-\");\r\n\t\tsb.append(guid.substring(8, 12) + \"-\");\r\n\t\tsb.append(guid.substring(12, 16) + \"-\");\r\n\t\tsb.append(guid.substring(16, 20) + \"-\");\r\n\t\tsb.append(guid.substring(20) + \"}\");\r\n\t\treturn sb.toString();\r\n\t}", "private boolean escape() {\r\n return backslash() && (\r\n (digits() && (CHAR(';') || true)) || SET(\"rnqdgb\"));\r\n }", "private String escape(String name) {\n return name.replaceAll(\"[^a-zA-Z0-9.-]\", \"_\");\n }", "private static String escapeTags(final StringBuffer buf) {\n for (int i = 0; i < buf.length(); i++) {\n char ch = buf.charAt(i);\n if (ch == '<') {\n buf.replace(i, i + 1, \"&lt;\");\n } else if (ch == '>') {\n buf.replace(i, i + 1, \"&gt;\");\n }\n }\n return buf.toString();\n }", "protected String getEscapedUri(String uriToEscape) {\r\n\t\treturn UriComponent.encode(uriToEscape, UriComponent.Type.PATH_SEGMENT);\r\n\t}", "protected void writeEncoded(PrintWriter out,\n String str) {\n for (int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n\n switch (ch) {\n case '<':\n out.write(\"&lt;\");\n break;\n case '>':\n out.write(\"&gt;\");\n break;\n case '&':\n out.write(\"&amp;\");\n break;\n case '\"':\n out.write(\"&quot;\");\n break;\n case '\\'':\n out.write(\"&apos;\");\n break;\n case '\\r':\n case '\\n':\n out.write(ch);\n break;\n default:\n if (((int) ch < 32) || ((int) ch > 126)) {\n out.write(\"&#x\");\n out.write(Integer.toString((int) ch, 16));\n out.write(';');\n }\n else {\n out.write(ch);\n }\n }\n }\n }", "public static String prepareText(String s)\n {\n return StringEscapeUtils.escapeHtml4(s);\n }", "protected native String encodeURIComponent(String text) /*-{\r\n\t\treturn encodeURIComponent(text);\r\n\t}-*/;", "public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}", "default String escapeString(final String input) {\n return noQuestion(GedRenderer.escapeString(input)).trim();\n }" ]
[ "0.73750883", "0.73750883", "0.7345054", "0.7334031", "0.7304987", "0.72494406", "0.72494406", "0.70228237", "0.67790186", "0.6636282", "0.6607913", "0.65785056", "0.64164263", "0.63753533", "0.6372292", "0.6366606", "0.63423985", "0.62964267", "0.62080866", "0.61839473", "0.6174358", "0.61135465", "0.60699403", "0.60695755", "0.5954006", "0.59003764", "0.58875376", "0.58873826", "0.58817685", "0.58540237", "0.58202916", "0.5811262", "0.5800734", "0.5794368", "0.57911164", "0.5754731", "0.5737136", "0.57349235", "0.57286906", "0.5692856", "0.5680032", "0.56765044", "0.5675271", "0.56649655", "0.56563497", "0.56553954", "0.5631703", "0.56123835", "0.56010747", "0.55911404", "0.5588377", "0.5562459", "0.5553397", "0.5545839", "0.5539096", "0.55293995", "0.5523537", "0.55110496", "0.54538906", "0.5449891", "0.5449884", "0.5442852", "0.54368085", "0.54331", "0.5415549", "0.54150796", "0.5405094", "0.53972244", "0.53738725", "0.53624475", "0.53597915", "0.5345574", "0.5333555", "0.5332727", "0.53291273", "0.53248364", "0.53225714", "0.5311489", "0.5310671", "0.53053665", "0.53045213", "0.52746034", "0.5273938", "0.5261775", "0.52600294", "0.5251072", "0.5239885", "0.52372235", "0.5226035", "0.5189971", "0.5189265", "0.518672", "0.5181587", "0.5176451", "0.5171949", "0.5156998", "0.5151326", "0.5148157", "0.51226103", "0.5119014" ]
0.73412836
3
Replaces comments of CSS with whitespaces.
public static String cssComment2space(String source){ int index = 0; int last = 0; StringBuffer sb = new StringBuffer(); while((index = source.indexOf("/*",last))!=-1){ int end = source.indexOf("*/",index); if(end!=-1){ sb.append(source.substring(last,index)); int length = end - index + 2; for(int i=0;i<length;i++){ sb.append(" "); } } else { break; } last = end + 2; } if(last != source.length()-1){ sb.append(source.substring(last)); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stripComments() {\r\n if (command.contains(\"//\")) {\r\n command = command.substring(0, command.indexOf(\"//\"));\r\n }\r\n command = command.replace(\"\\n\", \"\");\r\n command = command.replace(\"\\t\", \"\");\r\n }", "private void skipWhiteSpace()\n throws Exception\n {\n char currentChar = currentChar();\n char next;\n boolean foundAsterisk = false; // flag to detect closing */ in comments\n \n while (Character.isWhitespace(currentChar) || (currentChar == '/')) \n { // Start of a comment?\n if (currentChar == '/')\n {\n next = source.peekChar();\n \n // Consume comments with '//'\n if (next == '/')\n {\n do currentChar = nextChar();\n while (currentChar != EOL && currentChar != EOF);\n \n if (currentChar == EOL)\n currentChar = nextChar();\n }\n // Consume comments with '/* */'\n else if (next == '*')\n {\n currentChar = nextChar(); // Consume '/'\n do \n { \n currentChar = nextChar();\n if (foundAsterisk && currentChar == '/')\n break;\n else \n foundAsterisk = currentChar == '*';\n } while (currentChar != EOF);\n \n if (currentChar == '/')\n currentChar = nextChar();\n }\n else\n break;\n }\n // Not a comment.\n else {\n currentChar = nextChar(); // consume whitespace character\n }\n }\n }", "private void cleanComments() throws IOException {\n boolean parsingComment = false;\n PrintWriter writer = new PrintWriter(\"clean.txt\", \"UTF-8\");\n ArrayList<String> symbols = new ArrayList<String>();\n String c = String.valueOf((char) _br.read());\n symbols.add(c);\n while (!c.equals(String.valueOf((char) -1))) {\n if (parsingComment) {\n String scan = \"\";\n while (!scan.endsWith(\"*/\")) {\n c = String.valueOf((char) _br.read());\n if (c.equals(\"\\n\"))\n symbols.add(c);\n scan += c;\n }\n parsingComment = false;\n }\n c = String.valueOf((char) _br.read());\n if (c.equals(\"*\") && symbols.get(symbols.size() - 1).equals(\"/\")) {\n symbols.remove(symbols.size() - 1);\n parsingComment = true;\n continue;\n }\n if (!c.equals(String.valueOf((char) -1)))\n symbols.add(c);\n }\n for (String s : symbols) {\n writer.print(s);\n }\n writer.close();\n _br.close();\n _br = new BufferedReader(new FileReader(\"clean.txt\"));\n }", "private void removeWhitespace() {\n /*\n * Get rid of comments.\n * Regex breakdown:\n * //.* : Some string that starts with \"//\"\n */\n instruction = instruction.replaceAll(\"//.*\", \"\");\n\n /*\n * Now replace all whitespace with a single space\n * Regex breakdown:\n * \\s+ : Find all whitespace that appear in a chunk\n */\n instruction = instruction.replaceAll(\"\\\\s+\", \" \");\n\n // Get rid of leading/trailing whitespace (if there is any whitespace at\n // the start/end of a line, it will be converted into one space character\n // as a result of the previous line)\n /*\n * Regex breakdown:\n * ^ : At the start of the line...\n * \\s+ : Match whitespace that occurs in a glob\n */\n instruction = instruction.replaceAll(\"^\\\\s+\", \"\");\n /*\n * Regex breakdown:\n * \\s+ : Match whitespace that occurs in a glob\n * $ : At the end of the line\n */\n instruction = instruction.replaceAll(\"\\\\s+$\", \"\");\n }", "public static String getStripCommentsTransformationStylesheetString()\r\n {\r\n return wrapInXSLStylesheet(getStripCommentsTransformationTemplateString());\r\n }", "static public String scrubComments(String what) {\n char p[] = what.toCharArray();\n\n int index = 0;\n while (index < p.length) {\n // for any double slash comments, ignore until the end of the line\n if ((p[index] == '/') &&\n (index < p.length - 1) &&\n (p[index+1] == '/')) {\n p[index++] = ' ';\n p[index++] = ' ';\n while ((index < p.length) &&\n (p[index] != '\\n')) {\n p[index++] = ' ';\n }\n\n // check to see if this is the start of a new multiline comment.\n // if it is, then make sure it's actually terminated somewhere.\n } else if ((p[index] == '/') &&\n (index < p.length - 1) &&\n (p[index+1] == '*')) {\n p[index++] = ' ';\n p[index++] = ' ';\n boolean endOfRainbow = false;\n while (index < p.length - 1) {\n if ((p[index] == '*') && (p[index+1] == '/')) {\n p[index++] = ' ';\n p[index++] = ' ';\n endOfRainbow = true;\n break;\n\n } else {\n // continue blanking this area\n p[index++] = ' ';\n }\n }\n if (!endOfRainbow) {\n throw new RuntimeException(_(\"Missing the */ from the end of a \" +\n \"/* comment */\"));\n }\n } else { // any old character, move along\n index++;\n }\n }\n return new String(p);\n }", "public static String comment2space(String source,boolean contentsOnly){\r\n\t\tsource = jspComment2space(source,contentsOnly);\r\n\t\tsource = FuzzyXMLUtil.comment2space(source,contentsOnly);\r\n\t\treturn source;\r\n\t}", "public final void mCOMMENT() throws RecognitionException {\r\n try {\r\n int _type = COMMENT;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:9: ( '/*' ( options {greedy=false; } : . )* '*/' )\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:12: '/*' ( options {greedy=false; } : . )* '*/'\r\n {\r\n match(\"/*\"); \r\n\r\n\r\n\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:17: ( options {greedy=false; } : . )*\r\n loop1:\r\n do {\r\n int alt1=2;\r\n int LA1_0 = input.LA(1);\r\n\r\n if ( (LA1_0=='*') ) {\r\n int LA1_1 = input.LA(2);\r\n\r\n if ( (LA1_1=='/') ) {\r\n alt1=2;\r\n }\r\n else if ( ((LA1_1 >= '\\u0000' && LA1_1 <= '.')||(LA1_1 >= '0' && LA1_1 <= '\\uFFFF')) ) {\r\n alt1=1;\r\n }\r\n\r\n\r\n }\r\n else if ( ((LA1_0 >= '\\u0000' && LA1_0 <= ')')||(LA1_0 >= '+' && LA1_0 <= '\\uFFFF')) ) {\r\n alt1=1;\r\n }\r\n\r\n\r\n switch (alt1) {\r\n \tcase 1 :\r\n \t // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:45: .\r\n \t {\r\n \t matchAny(); \r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop1;\r\n }\r\n } while (true);\r\n\r\n\r\n match(\"*/\"); \r\n\r\n\r\n\r\n _channel = HIDDEN; \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "private StringBuilder stripWhitespace(String description)\n/* */ {\n/* 1650 */ StringBuilder result = new StringBuilder();\n/* */ \n/* */ \n/* 1653 */ int start = 0;\n/* 1654 */ while ((start != -1) && (start < description.length()))\n/* */ {\n/* */ \n/* 1657 */ while ((start < description.length()) && (PatternProps.isWhiteSpace(description.charAt(start)))) {\n/* 1658 */ start++;\n/* */ }\n/* */ \n/* */ \n/* 1662 */ if ((start < description.length()) && (description.charAt(start) == ';')) {\n/* 1663 */ start++;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* 1670 */ int p = description.indexOf(';', start);\n/* 1671 */ if (p == -1)\n/* */ {\n/* */ \n/* 1674 */ result.append(description.substring(start));\n/* 1675 */ start = -1;\n/* */ }\n/* 1677 */ else if (p < description.length()) {\n/* 1678 */ result.append(description.substring(start, p + 1));\n/* 1679 */ start = p + 1;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* */ \n/* 1687 */ start = -1;\n/* */ }\n/* */ } }\n/* 1690 */ return result;\n/* */ }", "private void removeComments(Node node) {\n for (int i = 0; i < node.childNodeSize();) {\n Node child = node.childNode(i);\n if (child.nodeName().equals(\"#comment\")) {\n child.remove();\n } else {\n removeComments(child);\n i++;\n }\n }\n }", "public final void mSINGLE_COMMENT() throws RecognitionException {\r\n try {\r\n int _type = SINGLE_COMMENT;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:256:2: ( '//' (~ ( '\\\\n' | '\\\\r' ) )* )\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:256:4: '//' (~ ( '\\\\n' | '\\\\r' ) )*\r\n {\r\n match(\"//\"); \r\n\r\n\r\n\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:256:9: (~ ( '\\\\n' | '\\\\r' ) )*\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 >= '\\u0000' && LA2_0 <= '\\t')||(LA2_0 >= '\\u000B' && LA2_0 <= '\\f')||(LA2_0 >= '\\u000E' && LA2_0 <= '\\uFFFF')) ) {\r\n alt2=1;\r\n }\r\n\r\n\r\n switch (alt2) {\r\n \tcase 1 :\r\n \t // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:\r\n \t {\r\n \t if ( (input.LA(1) >= '\\u0000' && input.LA(1) <= '\\t')||(input.LA(1) >= '\\u000B' && input.LA(1) <= '\\f')||(input.LA(1) >= '\\u000E' && input.LA(1) <= '\\uFFFF') ) {\r\n \t input.consume();\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 \t }\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 _channel = HIDDEN; \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "private boolean reformatMultilineComments() {\n \n \t\tString curLine = line.trim();\n \n \t\t// abort the operation?\n \t\tboolean bAbort = false;\n \t\t// the level of nested comments\n \t\tint nestedCommentsLevel = 0;\n \t\t// a comment until the end of the line\n \t\tMatcher matcherCommentEOL = patternCommentEOL.matcher(curLine);\n \t\tif (matcherCommentEOL.find()) {\n \n \t\t\tif (matcherCommentEOL.start() + 2 < curLine.length()) {\n \t\t\t\tchar firstChar = curLine.charAt(matcherCommentEOL.start() + 2);\n \t\t\t\t// this character means \"do not reformat this comment\"\n \t\t\t\tif (firstChar == '*' || firstChar == '|') {\n \t\t\t\t\tbDoNotFormatComment = true;\n \t\t\t\t\tbAbort = true;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// check that this comment is not closed (or else, we would loop\n \t\t\t// indefinitely)\n \t\t\tMatcher matcherComment = patternComment.matcher(curLine);\n \t\t\twhile (matcherComment.find())\n \t\t\t\tif (matcherComment.start() == matcherCommentEOL.start())\n \t\t\t\t\tbAbort = true;\n \n \t\t\t// if we are inside a string, do nothing\n \t\t\tMatcher matcherString = patternString.matcher(curLine);\n \t\t\twhile (matcherString.find()) {\n \t\t\t\tif ((matcherString.start() < matcherCommentEOL.start())\n \t\t\t\t\t\t&& (matcherCommentEOL.start() < matcherString.end()))\n \t\t\t\t\tbAbort = true;\n \t\t\t}\n \n \t\t\tif (!bAbort && preferenceFormatComments) {\n \n \t\t\t\tnestedCommentsLevel = 1;\n \n \t\t\t\t// look for the end of the comment\n \t\t\t\tPattern patternCommentBeginEnd = Pattern.compile(\"(\\\\(\\\\*)|(\\\\*\\\\))\");\n \n \t\t\t\t// all the lines of the comment, concatenated\n \t\t\t\tString commentLines = curLine.substring(matcherCommentEOL.start() + 2);\n \n \t\t\t\t// what's before the comment on its first line\n \t\t\t\tString beforeComment = curLine.substring(0, matcherCommentEOL.start());\n \n \t\t\t\t// what's left after the comment on its last line\n \t\t\t\tString afterComment = \"\";\n \n \t\t\t\t// the index of the current line\n \t\t\t\tint l;\n \t\t\t\tgetWholeComment: for (l = currentLine; l < lines.length; l++) {\n \n \t\t\t\t\tString commentLine;\n \t\t\t\t\t// first line\n \t\t\t\t\tif (l == currentLine) {\n \t\t\t\t\t\tcommentLine = commentLines;\n \t\t\t\t\t\tcommentLines = \"\";\n \t\t\t\t\t} else\n \t\t\t\t\t\tcommentLine = lines[l].trim();\n \n \t\t\t\t\tMatcher matcherCommentBeginEnd = patternCommentBeginEnd.matcher(commentLine);\n \n \t\t\t\t\t/*\n \t\t\t\t\t * parse all the delimiters, and delete the nested ones, while keeping the body of the\n \t\t\t\t\t * comment\n \t\t\t\t\t */\n \t\t\t\t\twhile (matcherCommentBeginEnd.find()) {\n \n \t\t\t\t\t\t// check that we are not inside a string\n \t\t\t\t\t\tMatcher matcherString2 = patternString.matcher(commentLine);\n \t\t\t\t\t\tboolean bInString = false;\n \n \t\t\t\t\t\twhile (matcherString2.find()) {\n \n \t\t\t\t\t\t\tif (matcherString2.start() <= matcherCommentBeginEnd.start()\n \t\t\t\t\t\t\t\t\t&& matcherCommentBeginEnd.start() < matcherString2.end()) {\n \t\t\t\t\t\t\t\tbInString = true;\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (!bInString) {\n \n \t\t\t\t\t\t\tif (matcherCommentBeginEnd.group().equals(\"(*\"))\n \t\t\t\t\t\t\t\tnestedCommentsLevel++;\n \t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\tnestedCommentsLevel--;\n \n \t\t\t\t\t\t\t// delete the comment delimiter from the body of the\n \t\t\t\t\t\t\t// comment\n \t\t\t\t\t\t\tif (nestedCommentsLevel != 0) {\n \t\t\t\t\t\t\t\tString before = commentLine.substring(0, matcherCommentBeginEnd.start());\n \t\t\t\t\t\t\t\tString after = commentLine.substring(matcherCommentBeginEnd.start() + 2);\n \t\t\t\t\t\t\t\tcommentLine = before + after;\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\tif (nestedCommentsLevel == 0) {\n \n \t\t\t\t\t\t\t\tcommentLines = commentLines + \" \"\n \t\t\t\t\t\t\t\t\t\t+ commentLine.substring(0, matcherCommentBeginEnd.start());\n \t\t\t\t\t\t\t\tafterComment = commentLine.substring(matcherCommentBeginEnd.start() + 2);\n \n \t\t\t\t\t\t\t\tbreak getWholeComment;\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// we modified the string: we have to restart the\n \t\t\t\t\t\t\t// matcher\n \t\t\t\t\t\t\tmatcherCommentBeginEnd = patternCommentBeginEnd.matcher(commentLine);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tcommentLines = commentLines + \" \" + commentLine;\n \t\t\t\t}\n \n \t\t\t\t// if we are at the beginning, we must insert blank lines (or\n \t\t\t\t// else we would access\n \t\t\t\t// out of\n \t\t\t\t// bounds)\n \t\t\t\tif (l < 3) {\n \t\t\t\t\tString[] lines2 = new String[lines.length + 2];\n \t\t\t\t\tfor (int k = 0; k < lines.length; k++)\n \t\t\t\t\t\tlines2[k + 2] = lines[k];\n \t\t\t\t\tlines = lines2;\n \t\t\t\t\tl += 2;\n \t\t\t\t}\n \n \t\t\t\t// if we didn't go through at least one iteration of the loop\n \t\t\t\tif (l >= lines.length)\n \t\t\t\t\tl--;\n \n \t\t\t\t/*\n \t\t\t\t * Now, we put all the modified lines in the table, and we modify the current line so that the\n \t\t\t\t * formatter will take the modifications into account.\n \t\t\t\t */\n \n \t\t\t\t// Do not put blank lines\n \t\t\t\tif (beforeComment.trim().equals(\"\") && afterComment.trim().equals(\"\")) {\n \t\t\t\t\tlines[l] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\tcurrentLine = l;\n \t\t\t\t\treturn true;\n \t\t\t\t} else if (beforeComment.trim().equals(\"\")) {\n \t\t\t\t\tlines[l - 1] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\tlines[l] = afterComment;\n \t\t\t\t\tcurrentLine = l - 1;\n \t\t\t\t\treturn true;\n \t\t\t\t} else if (afterComment.trim().equals(\"\")) {\n \t\t\t\t\tlines[l - 1] = beforeComment;\n \t\t\t\t\tlines[l] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\tcurrentLine = l - 1;\n \t\t\t\t\treturn true;\n \t\t\t\t} else {\n \t\t\t\t\t// the source code before the comment\n \t\t\t\t\tlines[l - 2] = beforeComment;\n \t\t\t\t\t// the body of the comment\n \t\t\t\t\tlines[l - 1] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\t// the source code after the comment\n \t\t\t\t\tlines[l] = afterComment;\n \t\t\t\t\t// the line on which we will continue formatting\n \t\t\t\t\tcurrentLine = l - 2;\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn false;\n \t}", "private String removeComments(String str) {\n boolean inDQ = false;\n boolean inSQ = false;\n \n String result = str;\n \n for(int i = 0; i < result.length()-1; i++) {\n char c = result.charAt(i);\n \n if(inDQ) {\n if(c == '\\\"' && result.charAt(i-1) != '\\\\') {\n inDQ = false;\n }\n }\n else if(inSQ) {\n if(c == '\\'' && result.charAt(i-1) != '\\\\') {\n inSQ = false;\n }\n }\n else {\n \n // Line comment\n if(c == '/' && result.charAt(i+1) == '/') {\n int newLineIndex = result.indexOf(\"\\n\", i);\n \n result = result.substring(0, i) + result.substring(newLineIndex);\n i--;\n }\n \n // Block comment\n else if(c == '/' && result.charAt(i+1) == '*') {\n int endBlockIndex = result.indexOf(\"*/\", i) + 2;\n \n result = result.substring(0, i) + result.substring(endBlockIndex);\n i--;\n }\n \n // Python comment\n else if(c == '#' && (i == 0 || result.charAt(i-1) == '\\n')) {\n int newLineIndex = result.indexOf(\"\\n\", i);\n \n result = result.substring(0, i) + result.substring(newLineIndex+1); \n i--;\n }\n else if(c == '\\\"') {\n inDQ = true;\n }\n else if(c == '\\'') {\n inSQ = true;\n }\n }\n }\n \n return result;\n }", "private String filterComments(String[] initial) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int a = 0; a < initial.length; a++) {\n\t\t\tString potential = initial[a];\n\t\t\tint index = potential.indexOf(START_COMMENT);\n\t\t\tif(index != -1)\n\t\t\t\tpotential = potential.substring(0,index);\n\t\t\tif (!potential.trim().isEmpty())\n\t\t\t\tanswer.append(potential + \" \");\n\t\t}\n\t\treturn answer.toString();\n\t}", "public void skipComments() {\r\n this.ignoreLinesStartWith(this.charComment);\r\n }", "public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}", "private String removeComments(String line) {\n\t\tint commentIndex = line.indexOf(\"//\");\n\t\tif (commentIndex >= 0) {\n\t\t\tline = line.substring(0, commentIndex);\n\t\t}\n\t\tline = line.trim();\n\n\t\t// clear line if entire line is comment\n\t\tif (line.startsWith(\"#\")) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn line;\n\t}", "void unsetComments();", "public void refreshMultilineComments(String text) {\n\t\tcommentOffsets.clear();\r\n\r\n\t\t// Go through all the instances of COMMENT_START\r\n\t\tfor (int pos = text.indexOf(COMMENT_START); pos > -1; pos = text.indexOf(COMMENT_START, pos)) {\r\n\t\t\t// offsets[0] holds the COMMENT_START offset\r\n\t\t\t// and COMMENT_END holds the ending offset\r\n\t\t\tint[] offsets = new int[2];\r\n\t\t\toffsets[0] = pos;\r\n\r\n\t\t\t// Find the corresponding end comment.\r\n\t\t\tpos = text.indexOf(COMMENT_END, pos);\r\n\r\n\t\t\t// If no corresponding end comment, use the end of the text\r\n\t\t\toffsets[1] = pos == -1 ? text.length() - 1 : pos + COMMENT_END.length() - 1;\r\n\t\t\tpos = offsets[1];\r\n\r\n\t\t\t// Add the offsets to the collection\r\n\t\t\tcommentOffsets.add(offsets);\r\n\t\t}\r\n\t}", "public static String stripComments(String s, ParseResult result) {\n\t\tint commentStart = s.indexOf(\";\");\n\t\tif (commentStart != -1) {\n\t\t\ts = s.substring(0, commentStart);\n\t\t\tresult.commentStartPos = commentStart;\n\t\t\t// undo the effect escape() has had on commas\n\t\t\tint index = s.indexOf(\" , \");\n\t\t\twhile (index > -1) {\n\t\t\t\tresult.commentStartPos -= 2;\n\t\t\t\tindex = s.indexOf(\" , \", index + 3);\n\t\t\t}\n\t\t}\n\t\treturn s.trim();\n\t}", "public final void mCOMMENT() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = COMMENT;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:9: ( ( '//' ( . )* NEWLINE | '/*' ( . )* '*/' ) )\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:11: ( '//' ( . )* NEWLINE | '/*' ( . )* '*/' )\n\t\t\t{\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:11: ( '//' ( . )* NEWLINE | '/*' ( . )* '*/' )\n\t\t\tint alt9=2;\n\t\t\tint LA9_0 = input.LA(1);\n\t\t\tif ( (LA9_0=='/') ) {\n\t\t\t\tint LA9_1 = input.LA(2);\n\t\t\t\tif ( (LA9_1=='/') ) {\n\t\t\t\t\talt9=1;\n\t\t\t\t}\n\t\t\t\telse if ( (LA9_1=='*') ) {\n\t\t\t\t\talt9=2;\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 9, 1, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 9, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\n\t\t\tswitch (alt9) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:13: '//' ( . )* NEWLINE\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"//\"); \n\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:18: ( . )*\n\t\t\t\t\tloop7:\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tint alt7=2;\n\t\t\t\t\t\tint LA7_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA7_0=='\\r') ) {\n\t\t\t\t\t\t\talt7=2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( (LA7_0=='\\n') ) {\n\t\t\t\t\t\t\talt7=2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( ((LA7_0 >= '\\u0000' && LA7_0 <= '\\t')||(LA7_0 >= '\\u000B' && LA7_0 <= '\\f')||(LA7_0 >= '\\u000E' && LA7_0 <= '\\uFFFF')) ) {\n\t\t\t\t\t\t\talt7=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (alt7) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:18: .\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmatchAny(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak loop7;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmNEWLINE(); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:31: '/*' ( . )* '*/'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"/*\"); \n\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:36: ( . )*\n\t\t\t\t\tloop8:\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tint alt8=2;\n\t\t\t\t\t\tint LA8_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA8_0=='*') ) {\n\t\t\t\t\t\t\tint LA8_1 = input.LA(2);\n\t\t\t\t\t\t\tif ( (LA8_1=='/') ) {\n\t\t\t\t\t\t\t\talt8=2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( ((LA8_1 >= '\\u0000' && LA8_1 <= '.')||(LA8_1 >= '0' && LA8_1 <= '\\uFFFF')) ) {\n\t\t\t\t\t\t\t\talt8=1;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( ((LA8_0 >= '\\u0000' && LA8_0 <= ')')||(LA8_0 >= '+' && LA8_0 <= '\\uFFFF')) ) {\n\t\t\t\t\t\t\talt8=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (alt8) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:36: .\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmatchAny(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak loop8;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmatch(\"*/\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t _channel=HIDDEN; \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "private void collectComments(JSParseRootNode result)\n {\n\n List<Symbol> sDocComments = fScanner.getSDocComments();\n List<Symbol> vsDocComments = fScanner.getVSDocComments();\n List<Symbol> singleLineComments = fScanner.getSingleLineComments();\n List<Symbol> multiLineComments = fScanner.getMultiLineComments();\n\n List<JSCommentNode> comments = new ArrayList<JSCommentNode>(sDocComments.size() + vsDocComments.size()\n + singleLineComments.size() + multiLineComments.size());\n\n for (Symbol symbol : sDocComments)\n {\n comments.add(new JSCommentNode(IJSNodeTypes.SDOC_COMMENT, symbol.getStart(), symbol.getEnd()));\n }\n\n for (Symbol symbol : vsDocComments)\n {\n comments.add(new JSCommentNode(IJSNodeTypes.VSDOC_COMMENT, symbol.getStart(), symbol.getEnd()));\n }\n\n for (Symbol symbol : singleLineComments)\n {\n comments.add(new JSCommentNode(IJSNodeTypes.SINGLE_LINE_COMMENT, symbol.getStart(), symbol.getEnd()));\n }\n\n for (Symbol symbol : multiLineComments)\n {\n comments.add(new JSCommentNode(IJSNodeTypes.MULTI_LINE_COMMENT, symbol.getStart(), symbol.getEnd()));\n }\n\n result.setCommentNodes(comments.toArray(new IParseNode[comments.size()]));\n }", "public static String removeSparqlComments(String query) {\n\t\treturn query.replaceAll(\"(?m)^\\\\s*#.*?$\", \"\");\n\t}", "public static String eraseComments(String input) {\r\n int count = input.length();\r\n StringBuffer sb = new StringBuffer(count);\r\n boolean isCComment = false;\r\n boolean isString = false;\r\n\r\n for (int i = 0; i < count; i++) {\r\n char c = input.charAt(i);\r\n\r\n if (c == '\\\"') {\r\n isString = !isString;\r\n }\r\n\r\n if (!isString && c == '/' && input.charAt(i + 1) == '*') {\r\n isCComment = true;\r\n i++;\r\n } // endif\r\n\r\n if (!isCComment) {\r\n sb.append(c);\r\n }\r\n\r\n if (!isString && c == '*' && input.charAt(i + 1) == '/') {\r\n isCComment = false;\r\n i++;\r\n } // endif\r\n } // endfor\r\n\r\n return sb.toString();\r\n }", "static void writeBlockComment(String s) {\n String[] lines = s.split(\"\\u005cr\\u005cn|\\u005cr|\\u005cn\");\n\n // indent the first line. It won't have any leading whitespace, but\n // may have trailing whitespace\n String line = lines[0].trim();\n for (int j = 0; j < level; j++) {\n line = \" \" + line; // 4 spaces\n }\n outputBuffer.append(line).append(ls);\n\n // output body of comment without change\n for (int i = 1; i < lines.length - 1; i++) {\n line = lines[i]; // trimStart(lines[i], level * 4);\n outputBuffer.append(line).append(ls);\n }\n\n // output the last line. It will probably have leading whitespace, so\n // trim it then indent it the same as the first line.\n line = lines[lines.length - 1].trim();\n for (int j = 0; j < level; j++) {\n line = \" \" + line; // 4 spaces\n }\n outputBuffer.append(line);\n }", "public final void mCOMMENT() throws RecognitionException {\r\n try {\r\n final int _type = SparqlMarcoLexer.COMMENT;\r\n int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:5: ( '//' (~ ( '\\\\n'\r\n // | '\\\\r' ) )* ( '\\\\r' )? '\\\\n' | '/*' ( options {greedy=false; } : . )* '*/' )\r\n int alt15 = 2;\r\n final int LA15_0 = this.input.LA(1);\r\n\r\n if (LA15_0 == '/') {\r\n final int LA15_1 = this.input.LA(2);\r\n\r\n if (LA15_1 == '/') {\r\n alt15 = 1;\r\n } else if (LA15_1 == '*') {\r\n alt15 = 2;\r\n } else {\r\n final NoViableAltException nvae = new NoViableAltException(\"\", 15, 1,\r\n this.input);\r\n\r\n throw nvae;\r\n }\r\n } else {\r\n final NoViableAltException nvae = new NoViableAltException(\"\", 15, 0, this.input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt15) {\r\n case 1:\r\n this.match(\"//\");\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:14: (~ ( '\\\\n'\r\n // | '\\\\r' ) )*\r\n loop12: do {\r\n int alt12 = 2;\r\n final int LA12_0 = this.input.LA(1);\r\n\r\n if (LA12_0 >= '\\u0000' && LA12_0 <= '\\t' || LA12_0 >= '\\u000B'\r\n && LA12_0 <= '\\f' || LA12_0 >= '\\u000E' && LA12_0 <= '\\uFFFF') {\r\n alt12 = 1;\r\n }\r\n\r\n switch (alt12) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:14: ~\r\n // ( '\\\\n' | '\\\\r' )\r\n {\r\n if (this.input.LA(1) >= '\\u0000' && this.input.LA(1) <= '\\t'\r\n || this.input.LA(1) >= '\\u000B' && this.input.LA(1) <= '\\f'\r\n || this.input.LA(1) >= '\\u000E'\r\n && this.input.LA(1) <= '\\uFFFF') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(\r\n null, this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n\r\n }\r\n break;\r\n\r\n default:\r\n break loop12;\r\n }\r\n } while (true);\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:28: ( '\\\\r' )?\r\n int alt13 = 2;\r\n final int LA13_0 = this.input.LA(1);\r\n if (LA13_0 == '\\r') {\r\n alt13 = 1;\r\n }\r\n switch (alt13) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:28: '\\\\r'\r\n {\r\n this.match('\\r');\r\n\r\n }\r\n break;\r\n\r\n }\r\n this.match('\\n');\r\n _channel = BaseRecognizer.HIDDEN;\r\n break;\r\n case 2:\r\n this.match(\"/*\");\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:65:14: ( options\r\n // {greedy=false; } : . )*\r\n loop14: do {\r\n int alt14 = 2;\r\n final int LA14_0 = this.input.LA(1);\r\n\r\n if (LA14_0 == '*') {\r\n final int LA14_1 = this.input.LA(2);\r\n\r\n if (LA14_1 == '/') {\r\n alt14 = 2;\r\n } else if (LA14_1 >= '\\u0000' && LA14_1 <= '.' || LA14_1 >= '0'\r\n && LA14_1 <= '\\uFFFF') {\r\n alt14 = 1;\r\n }\r\n\r\n } else if (LA14_0 >= '\\u0000' && LA14_0 <= ')' || LA14_0 >= '+'\r\n && LA14_0 <= '\\uFFFF') {\r\n alt14 = 1;\r\n }\r\n\r\n switch (alt14) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:65:42: .\r\n {\r\n this.matchAny();\r\n\r\n }\r\n break;\r\n\r\n default:\r\n break loop14;\r\n }\r\n } while (true);\r\n this.match(\"*/\");\r\n _channel = BaseRecognizer.HIDDEN;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n this.state.type = _type;\r\n this.state.channel = _channel;\r\n } finally {\r\n }\r\n }", "private void Spacing() {\n\n try {\n while (true) {\n try {\n Space();\n } catch (SyntaxError e) {\n Comment();\n }\n }\n } catch (SyntaxError e) {\n }\n }", "public void removeComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "void createCommentWithAllSingleFileComments(String string);", "public final void mCOMMENT() throws RecognitionException {\r\n\t\ttry {\r\n\t\t\tint _type = COMMENT;\r\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:154:6: ( '/*' ( . )* '*/' | '//' (~ '\\\\n' )* )\r\n\t\t\tint alt3=2;\r\n\t\t\tint LA3_0 = input.LA(1);\r\n\t\t\tif ( (LA3_0=='/') ) {\r\n\t\t\t\tint LA3_1 = input.LA(2);\r\n\t\t\t\tif ( (LA3_1=='*') ) {\r\n\t\t\t\t\talt3=1;\r\n\t\t\t\t}\r\n\t\t\t\telse if ( (LA3_1=='/') ) {\r\n\t\t\t\t\talt3=2;\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\t\t\t\t\tint nvaeMark = input.mark();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tinput.consume();\r\n\t\t\t\t\t\tNoViableAltException nvae =\r\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 3, 1, input);\r\n\t\t\t\t\t\tthrow nvae;\r\n\t\t\t\t\t} finally {\r\n\t\t\t\t\t\tinput.rewind(nvaeMark);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tNoViableAltException nvae =\r\n\t\t\t\t\tnew NoViableAltException(\"\", 3, 0, input);\r\n\t\t\t\tthrow nvae;\r\n\t\t\t}\r\n\r\n\t\t\tswitch (alt3) {\r\n\t\t\t\tcase 1 :\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:154:10: '/*' ( . )* '*/'\r\n\t\t\t\t\t{\r\n\t\t\t\t\tmatch(\"/*\"); \r\n\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:154:15: ( . )*\r\n\t\t\t\t\tloop1:\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\tint alt1=2;\r\n\t\t\t\t\t\tint LA1_0 = input.LA(1);\r\n\t\t\t\t\t\tif ( (LA1_0=='*') ) {\r\n\t\t\t\t\t\t\tint LA1_1 = input.LA(2);\r\n\t\t\t\t\t\t\tif ( (LA1_1=='/') ) {\r\n\t\t\t\t\t\t\t\talt1=2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if ( ((LA1_1 >= '\\u0000' && LA1_1 <= '.')||(LA1_1 >= '0' && LA1_1 <= '\\uFFFF')) ) {\r\n\t\t\t\t\t\t\t\talt1=1;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if ( ((LA1_0 >= '\\u0000' && LA1_0 <= ')')||(LA1_0 >= '+' && LA1_0 <= '\\uFFFF')) ) {\r\n\t\t\t\t\t\t\talt1=1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tswitch (alt1) {\r\n\t\t\t\t\t\tcase 1 :\r\n\t\t\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:154:15: .\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmatchAny(); \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\tbreak loop1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tmatch(\"*/\"); \r\n\r\n\t\t\t\t\t_channel=HIDDEN;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2 :\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:155:10: '//' (~ '\\\\n' )*\r\n\t\t\t\t\t{\r\n\t\t\t\t\tmatch(\"//\"); \r\n\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:155:15: (~ '\\\\n' )*\r\n\t\t\t\t\tloop2:\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\tint alt2=2;\r\n\t\t\t\t\t\tint LA2_0 = input.LA(1);\r\n\t\t\t\t\t\tif ( ((LA2_0 >= '\\u0000' && LA2_0 <= '\\t')||(LA2_0 >= '\\u000B' && LA2_0 <= '\\uFFFF')) ) {\r\n\t\t\t\t\t\t\talt2=1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tswitch (alt2) {\r\n\t\t\t\t\t\tcase 1 :\r\n\t\t\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ( (input.LA(1) >= '\\u0000' && input.LA(1) <= '\\t')||(input.LA(1) >= '\\u000B' && input.LA(1) <= '\\uFFFF') ) {\r\n\t\t\t\t\t\t\t\tinput.consume();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\r\n\t\t\t\t\t\t\t\trecover(mse);\r\n\t\t\t\t\t\t\t\tthrow mse;\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\t\tbreak;\r\n\r\n\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\tbreak loop2;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t_channel=HIDDEN;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tstate.type = _type;\r\n\t\t\tstate.channel = _channel;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t// do for sure before leaving\r\n\t\t}\r\n\t}", "public static ParseAction<Located<Void>> skipWhitespaceAndTLAComments(){\n\t\treturn repeat(parseOneOf(\n\t\t\t\tmatchWhitespace(),\n\t\t\t\tmatchTLAComment()\n\t\t)).map(list -> new Located<>(list.getLocation(), null));\n\t}", "public final void mMULTILINE_COMMENT() throws RecognitionException {\n try {\n int _type = MULTILINE_COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:623:5: ( '/*' ( . )* '*/' )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:623:7: '/*' ( . )* '*/'\n {\n match(\"/*\"); \n\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:623:12: ( . )*\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0=='*') ) {\n int LA13_1 = input.LA(2);\n\n if ( (LA13_1=='/') ) {\n alt13=2;\n }\n else if ( ((LA13_1>='\\u0000' && LA13_1<='.')||(LA13_1>='0' && LA13_1<='\\uFFFF')) ) {\n alt13=1;\n }\n\n\n }\n else if ( ((LA13_0>='\\u0000' && LA13_0<=')')||(LA13_0>='+' && LA13_0<='\\uFFFF')) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:623:12: .\n \t {\n \t matchAny(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop13;\n }\n } while (true);\n\n match(\"*/\"); \n\n _channel = HIDDEN; \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private void findComments(String remainingText) {\n while (remainingText.length() > 0) {\n if (shouldEvaluateMultilineComment(remainingText)) {\n findComments(remainingText.substring(0, remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS)));\n remainingText = remainingText.substring(remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS));\n\n if (Pattern.compile(MULTILINE_COMMENT_PATTERN).matcher(remainingText).matches()) {\n appendToPane(remainingText.substring(0, remainingText.indexOf(MULTILINE_COMMENT_END_CHARACTERS,\n remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS) + MULTILINE_COMMENT_START_CHARACTERS.length())\n + MULTILINE_COMMENT_END_CHARACTERS.length()), true);\n if (remainingText.length() > remainingText.indexOf(MULTILINE_COMMENT_END_CHARACTERS,\n remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS)\n + MULTILINE_COMMENT_START_CHARACTERS.length()) + MULTILINE_COMMENT_END_CHARACTERS.length()) {\n remainingText = remainingText.substring(remainingText.indexOf(MULTILINE_COMMENT_END_CHARACTERS,\n remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS)\n + MULTILINE_COMMENT_START_CHARACTERS.length()) + MULTILINE_COMMENT_END_CHARACTERS.length());\n } else {\n remainingText = \"\";\n }\n } else {\n appendToPane(remainingText, true);\n remainingText = \"\";\n }\n } else if (remainingText.contains(SINGLE_LINE_COMMENT_CHARACTERS)) {\n appendToPane(remainingText.substring(0, remainingText.indexOf(SINGLE_LINE_COMMENT_CHARACTERS)), false);\n remainingText = remainingText.substring(remainingText.indexOf(SINGLE_LINE_COMMENT_CHARACTERS));\n if (remainingText.contains(NEWLINE_CHARACTERS)) {\n appendToPane(remainingText.substring(0, remainingText.indexOf(NEWLINE_CHARACTERS)), true);\n remainingText = remainingText.substring(remainingText.indexOf(NEWLINE_CHARACTERS));\n } else {\n appendToPane(remainingText, true);\n remainingText = \"\";\n }\n } else {\n appendToPane(remainingText, false);\n remainingText = \"\";\n }\n }\n }", "public final void mCOMMENT() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.COMMENT;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:787:5: ( ';' ( . )*\n\t\t\t// '\\\\n' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:787:9: ';' ( . )*\n\t\t\t// '\\\\n'\n\t\t\t{\n\t\t\t\tthis.match(';');\n\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:787:13: ( . )*\n\t\t\t\tloop5:\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tint alt5 = 2;\n\t\t\t\t\tfinal int LA5_0 = this.input.LA(1);\n\n\t\t\t\t\tif ((LA5_0 == '\\n'))\n\t\t\t\t\t{\n\t\t\t\t\t\talt5 = 2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (((LA5_0 >= '\\u0000' && LA5_0 <= '\\t') || (LA5_0 >= '\\u000B' && LA5_0 <= '\\uFFFF')))\n\t\t\t\t\t{\n\t\t\t\t\t\talt5 = 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch (alt5)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:787:13: .\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.matchAny();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak loop5;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (true);\n\n\t\t\t\tthis.match('\\n');\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "private String removeCommentsFromSourceCode(String codeString, char[] code, CompilationUnit ast) {\n String commentLessCodeString = codeString;\n for (Object commentObj : ast.getCommentList()) {\n Comment comment = (Comment) commentObj;\n String commentString = \"\";\n int start = comment.getStartPosition();\n int length = comment.getLength();\n if (comment.isLineComment() == Boolean.TRUE) {\n for (int i = start; i < code.length; i++) {\n commentString += code[i];\n if (code[i] == '\\n') {\n break;\n }\n }\n } else {\n for (int i = start; i < start + length; i++) {\n commentString += code[i];\n }\n }\n commentLessCodeString = commentLessCodeString.replace(commentString, \"\");\n }\n return commentLessCodeString;\n }", "public String getCss() {\n return clean(css);\n }", "public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n String codeWithComments = scanner.nextLine();\n //Prints out the contents of the string sourcecode with the comments removed.\n //Greedy Matching\n System.out.println(codeWithComments.replaceAll(NO_COMMENTS_GREEDY, \"\"));\n //Non-greedy Matching\n //System.out.println(codeWithComments.replaceAll(NO_COMMENTS_NON_GREEDY, \"\"));\n }\n\n }", "private void skipComment() {\r\n int length = sourceCode.length();\r\n if (++index < length) {\r\n char character = sourceCode.charAt(index);\r\n if (character == '/') {\r\n // If it's a line comment (//) then skip to the next line.\r\n // Find the next line.\r\n index = sourceCode.indexOf('\\n', index);\r\n // Skip to after it if it's found, or the end of the source code\r\n // otherwise.\r\n index = index == -1 ? length : index + 1;\r\n } else if (character == '*') {\r\n // If it's a long comment (/* ... */) then skip to after the\r\n // occurrence of \"*/\".\r\n // Find \"*/\".\r\n index = sourceCode.indexOf(\"*/\", index);\r\n // Skip to after it if it's found, or the end of the source code\r\n // otherwise.\r\n index = index == -1 ? length : index + 2;\r\n }\r\n }\r\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void removedComment() {\n\t}", "private String cleanString(String data){\n Pattern ptn = Pattern.compile(\"//.*\");\n Matcher mc = ptn.matcher(data);\n while(mc.find())data = data.replace(mc.group(),\"\");\n ptn = Pattern.compile(\"/\\\\*(.|\\n)*?\\\\*/\");\n mc = ptn.matcher(data);\n while(mc.find()) data = data.replace(mc.group(),\"\");\n return data.trim();\n }", "private void interpretComments() throws IOException {\n trimLines( comments );\n \n /* Try to interpret the last remaining comment line as a set of\n * column headings. */\n if ( comments.size() > 0 ) {\n String hline = (String) comments.get( comments.size() - 1 );\n List headings = readHeadings( new PushbackInputStream( \n new ByteArrayInputStream( hline.getBytes() ) ) );\n \n /* If this line looks like a set of headings (there are the\n * right number of fields) modify the colinfos accordingly and\n * remove it from the set of comments. */\n if ( headings.size() == ncol ) {\n comments.remove( comments.size() - 1 );\n for ( int i = 0; i < ncol; i++ ) {\n colinfos[ i ].setName( (String) headings.get( i ) );\n }\n trimLines( comments );\n }\n }\n \n /* If there are any other comment lines, concatenate them and bung\n * them into a description parameter. */\n if ( comments.size() > 0 ) {\n StringBuffer dbuf = new StringBuffer();\n for ( Iterator it = comments.iterator(); it.hasNext(); ) {\n dbuf.append( (String) it.next() );\n if ( it.hasNext() ) {\n dbuf.append( '\\n' );\n }\n }\n ValueInfo descriptionInfo =\n new DefaultValueInfo( \"Description\", String.class,\n \"Comments included in text file\" );\n parameters.add( new DescribedValue( descriptionInfo, \n dbuf.toString() ) );\n }\n }", "@NotNull\n private List<UMLComment> extractInternalComments(@NotNull PsiFile file,\n @NotNull String sourceFile) {\n Collection<PsiComment> psiComments = PsiTreeUtil.findChildrenOfType(file, PsiComment.class);\n List<UMLComment> umlComments = new ArrayList<>();\n for (PsiComment comment : psiComments) {\n LocationInfo locationInfo = null;\n if (comment.getTokenType() == JavaTokenType.END_OF_LINE_COMMENT) {\n locationInfo = new LocationInfo(file, sourceFile, comment, LocationInfo.CodeElementType.LINE_COMMENT);\n } else if (comment.getTokenType() == JavaTokenType.C_STYLE_COMMENT) {\n locationInfo = new LocationInfo(file, sourceFile, comment, LocationInfo.CodeElementType.BLOCK_COMMENT);\n }\n if (locationInfo != null) {\n String text = Formatter.format(comment);\n UMLComment umlComment = new UMLComment(text, locationInfo);\n umlComments.add(umlComment);\n }\n }\n return umlComments;\n }", "private Comment handleComment(String line) {\n\t\tComment c = new Comment();\n\t\tc.setText(\"\");\n\t\treturn (Comment) c;\n\t}", "public static String jspComment2space(String source,boolean contentsOnly){\r\n\t\tint index = 0;\r\n\t\tint last = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\twhile((index = source.indexOf(\"<%--\",last))!=-1){\r\n\t\t\tint end = source.indexOf(\"--%>\",index);\r\n\t\t\tif(end!=-1){\r\n\t\t\t\tsb.append(source.substring(last,index));\r\n\t\t\t\tint length = end - index + 4;\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"<%--\");\r\n\t\t\t\t\tlength = length - 8;\r\n\t\t\t\t}\r\n\t\t\t\tfor(int i=0;i<length;i++){\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"--%>\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tlast = end + 4;\r\n\t\t}\r\n\t\tif(last != source.length()-1){\r\n\t\t\tsb.append(source.substring(last));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public final void mRULE_SL_COMMENT() throws RecognitionException {\r\n try {\r\n int _type = RULE_SL_COMMENT;\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:19814:17: ( '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\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:19814:19: '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )?\r\n {\r\n match(\"//\"); \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:19814:24: (~ ( ( '\\\\n' | '\\\\r' ) ) )*\r\n loop17:\r\n do {\r\n int alt17=2;\r\n int LA17_0 = input.LA(1);\r\n\r\n if ( ((LA17_0>='\\u0000' && LA17_0<='\\t')||(LA17_0>='\\u000B' && LA17_0<='\\f')||(LA17_0>='\\u000E' && LA17_0<='\\uFFFF')) ) {\r\n alt17=1;\r\n }\r\n\r\n\r\n switch (alt17) {\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:19814:24: ~ ( ( '\\\\n' | '\\\\r' ) )\r\n \t {\r\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\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 loop17;\r\n }\r\n } while (true);\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:19814:40: ( ( '\\\\r' )? '\\\\n' )?\r\n int alt19=2;\r\n int LA19_0 = input.LA(1);\r\n\r\n if ( (LA19_0=='\\n'||LA19_0=='\\r') ) {\r\n alt19=1;\r\n }\r\n switch (alt19) {\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:19814:41: ( '\\\\r' )? '\\\\n'\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:19814:41: ( '\\\\r' )?\r\n int alt18=2;\r\n int LA18_0 = input.LA(1);\r\n\r\n if ( (LA18_0=='\\r') ) {\r\n alt18=1;\r\n }\r\n switch (alt18) {\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:19814:41: '\\\\r'\r\n {\r\n match('\\r'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n match('\\n'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "private void scanComment(LocatedChar ch) {\n\t\tch = input.next();\n\t\twhile(!ch.matchChar('%') && !ch.matchChar('\\n')) {\n\t\t\tch = input.next();\n\t\t}\n\t}", "public final void mCOMMENT() throws RecognitionException {\n try {\n int _type = COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:5: ( ( '--' | '//' ) ( . )* ( '\\\\n' | '\\\\r' ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:7: ( '--' | '//' ) ( . )* ( '\\\\n' | '\\\\r' )\n {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:7: ( '--' | '//' )\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0=='-') ) {\n alt11=1;\n }\n else if ( (LA11_0=='/') ) {\n alt11=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 0, input);\n\n throw nvae;\n }\n switch (alt11) {\n case 1 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:8: '--'\n {\n match(\"--\"); \n\n\n }\n break;\n case 2 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:15: '//'\n {\n match(\"//\"); \n\n\n }\n break;\n\n }\n\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:21: ( . )*\n loop12:\n do {\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0=='\\n'||LA12_0=='\\r') ) {\n alt12=2;\n }\n else if ( ((LA12_0>='\\u0000' && LA12_0<='\\t')||(LA12_0>='\\u000B' && LA12_0<='\\f')||(LA12_0>='\\u000E' && LA12_0<='\\uFFFF')) ) {\n alt12=1;\n }\n\n\n switch (alt12) {\n \tcase 1 :\n \t // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:21: .\n \t {\n \t matchAny(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop12;\n }\n } while (true);\n\n if ( input.LA(1)=='\\n'||input.LA(1)=='\\r' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n _channel = HIDDEN; \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void clear_defineSetupPage_comments() {\r\n\t\tClearText(DefineSetup_Cmnts_txtBx);\r\n\t}", "public static String noComments(String strIn){\n\n int position = strIn.indexOf(\"//\");\n\n if (position != -1){\n\n strIn = strIn.substring(0, position);\n\n }\n\n return strIn;\n }", "public final void mRULE_SL_COMMENT() throws RecognitionException {\n try {\n int _type = RULE_SL_COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2525:17: ( '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )? )\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2525:19: '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )?\n {\n match(\"//\"); \n\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2525:24: (~ ( ( '\\\\n' | '\\\\r' ) ) )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( ((LA2_0>='\\u0000' && LA2_0<='\\t')||(LA2_0>='\\u000B' && LA2_0<='\\f')||(LA2_0>='\\u000E' && LA2_0<='\\uFFFF')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2525:24: ~ ( ( '\\\\n' | '\\\\r' ) )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\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 // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2525:40: ( ( '\\\\r' )? '\\\\n' )?\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0=='\\n'||LA4_0=='\\r') ) {\n alt4=1;\n }\n switch (alt4) {\n case 1 :\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2525:41: ( '\\\\r' )? '\\\\n'\n {\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2525:41: ( '\\\\r' )?\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0=='\\r') ) {\n alt3=1;\n }\n switch (alt3) {\n case 1 :\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2525:41: '\\\\r'\n {\n match('\\r'); \n\n }\n break;\n\n }\n\n match('\\n'); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void clearComments(Address startAddr, Address endAddr);", "private String spacing(String line) {\n \n \t\t/* Remove redundant spaces (keep only one space between two words) */\n \t\tint limit = 0;\n \t\tMatcher matcher = patternSpaces.matcher(line);\n \n \t\tString oldLine = line;\n \n \t\tremSpaces: while (matcher.find()) {\n \n \t\t\tint offset = matcher.start();\n \n \t\t\t// do not remove spaces at the beginning of a line\n \t\t\tif (line.substring(0, offset).trim().equals(\"\"))\n \t\t\t\tcontinue;\n \n \t\t\t/*\n \t\t\t * if the spaces (or tabs) are at the beginning of a line or before a comment, then we keep them\n \t\t\t */\n \t\t\t/*\n \t\t\t * Matcher matcherSpacesBeforeComment = patternSpacesBeforeComment.matcher(line); if\n \t\t\t * (matcherSpacesBeforeComment.find()) { if (offset < matcherSpacesBeforeComment.end()) continue\n \t\t\t * remSpaces; }\n \t\t\t */\n \n \t\t\t// if the spaces are before a comment, then we keep them\n \t\t\tString afterSpaces = line.substring(matcher.end());\n \t\t\tif (afterSpaces.startsWith(\"(*\"))\n \t\t\t\tcontinue remSpaces;\n \n \t\t\t// If we are inside a string, then we skip this replacing\n \t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\twhile (matcherString.find()) {\n \t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\t// If we are inside a comment, then we skip this replacing\n \t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\twhile (matcherComment.find()) {\n \t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\tline = line.substring(0, offset) + \" \" + line.substring(matcher.end());\n \n \t\t\t// we have to reset the matcher, because we modified the line\n \t\t\tmatcher = patternSpaces.matcher(line);\n \n \t\t\t// we put a limit, just in case we would get into an infinite loop\n \t\t\tif (limit++ > 10000) {\n \t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (1): <<\" + oldLine\n \t\t\t\t\t\t+ \">>\");\n \t\t\t\tbreak;\n \t\t\t}\n \n \t\t}\n \n \t\t// remove spaces before commas\n \t\t//line = line.replaceAll(\" ,\", \",\");\n \t\t// remove spaces before semicolons\n \t\t//line = line.replaceAll(\" ;\", \";\");\n \n \t\tfor (int nPattern = 0; nPattern <= 1; nPattern++) {\n \t\t\tPattern patternSpacing;\n \t\t\tif (nPattern == 0)\n \t\t\t\tpatternSpacing = patternSpacingRight;\n \t\t\telse\n \t\t\t\tpatternSpacing = patternSpacingLeft;\n \n \t\t\t/*\n \t\t\t * We put a limit to the number of replacements, just in case we would get into an infinite loop\n \t\t\t */\n \t\t\tlimit = 0;\n \t\t\t// add spaces before some characters\n \t\t\tmatcher = patternSpacing.matcher(line);\n \n \t\t\toldLine = line;\n \n \t\t\taddSpaces: while (matcher.find()) {\n \n \t\t\t\tint offset = matcher.start() + 1;\n \t\t\t\tif (offset > line.length() - 1 || offset < 0) {\n \t\t\t\t\tocaml.OcamlPlugin.logError(\"OcamlIndenter:format : invalid position\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \n \t\t\t\t// if we are inside a string, then we skip this replacement\n \t\t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\t\twhile (matcherString.find()) {\n \t\t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\t// Skip replacement if in comment\n \t\t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\t\twhile (matcherComment.find()) {\n \t\t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\tline = line.substring(0, offset) + \" \" + line.substring(offset);\n \n \t\t\t\t// we have to reset the matcher, because we modified the line\n \t\t\t\tmatcher = patternSpacing.matcher(line);\n \t\t\t\tif (limit++ > 10000) {\n \t\t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (2): <<\"\n \t\t\t\t\t\t\t+ oldLine + \">>\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn line;\n \n \t}", "public static String comment(String string, boolean docs, String delimiter){\n String concl = docs ? \"/**\\n\" : \"/*\\n\";\n for (String line : string.split(delimiter)){\n concl += \" * \" + line + \"\\n\";\n }\n return concl + \" */\";\n }", "public static String trimComments(String text, char ch) {\n\t\tchar[] chars = text.toCharArray();\n\t\tboolean foundTab = true; // Comment could start at beginning of line.\n\t\tif (sb == null) {\n\t\t\tsb = new StringBuilder();\n\t\t}\n\t\tfor (int i=0; i<chars.length; i++) {\n\t\t\tif (chars[i] == '\\t') {\n\t\t\t\tfoundTab = true;\n\t\t\t} else if (foundTab) {\n\t\t\t\tif (chars[i] == ch) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfoundTab = false;\n\t\t\t}\n\t\t\tsb.append(chars[i]);\n\t\t}\n\t\tString trimmed = sb.toString();\n\t\tsb.setLength(0);\n\t\treturn trimmed;\n\t}", "private static void testComments() throws IOException {\n\t// say what output is expected\n\tSystem.err.println(\"\\nTESTING COMMENTS -- NO OUTPUT EXPECTED\");\n\n\t// open input file\n\tFileReader inFile = null;\n\ttry {\n\t inFile = new FileReader(\"inComments\");\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inUntermComment not found.\");\n\t System.exit(-1);\n\t}\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\tif (token.sym != sym.EOF) {\n\t System.err.println(\"ERROR TESTING COMMENTS: not at EOF\");\n\t System.err.println(\"sym: \" + token.sym);\n\t}\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "public void processFile() {\n Matcher m = css.matcher(html);\n html = m.replaceAll(matchResult -> {\n String location = File.relative(this.file, matchResult.group(1));\n String stylesheet = File.readFrom(location);\n File loc = new File(location).getParentFile();\n Matcher urlMatcher = url.matcher(stylesheet);\n stylesheet = urlMatcher.replaceAll(match -> {\n String s = \"url(\\\"\" + File.relative(loc, match.group(1)) + \"\\\")\";\n return s.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\n });\n loc.close();\n return String.format(\"<style type=\\\"text/css\\\">%n%s%n</style>\", stylesheet);\n });\n replaceItAll(js, \"<script type=\\\"text/javascript\\\">%n%s%n</script>\", s -> File.readFrom(file.getAbsolutePath() + \"\\\\\" + s));\n }", "public final void mRULE_ML_COMMENT() throws RecognitionException {\r\n try {\r\n int _type = RULE_ML_COMMENT;\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:19812:17: ( '/*' ( options {greedy=false; } : . )* '*/' )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19812:19: '/*' ( options {greedy=false; } : . )* '*/'\r\n {\r\n match(\"/*\"); \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:19812:24: ( options {greedy=false; } : . )*\r\n loop16:\r\n do {\r\n int alt16=2;\r\n int LA16_0 = input.LA(1);\r\n\r\n if ( (LA16_0=='*') ) {\r\n int LA16_1 = input.LA(2);\r\n\r\n if ( (LA16_1=='/') ) {\r\n alt16=2;\r\n }\r\n else if ( ((LA16_1>='\\u0000' && LA16_1<='.')||(LA16_1>='0' && LA16_1<='\\uFFFF')) ) {\r\n alt16=1;\r\n }\r\n\r\n\r\n }\r\n else if ( ((LA16_0>='\\u0000' && LA16_0<=')')||(LA16_0>='+' && LA16_0<='\\uFFFF')) ) {\r\n alt16=1;\r\n }\r\n\r\n\r\n switch (alt16) {\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:19812:52: .\r\n \t {\r\n \t matchAny(); \r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop16;\r\n }\r\n } while (true);\r\n\r\n match(\"*/\"); \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 }", "private void normaliseWhitespace() {\t\t\t\r\n\t\tdocument.normalizeDocument();\r\n\t\t\r\n\t\tif (document.getDocumentElement() == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tfinal Queue<Node> queue = Lists.newLinkedList();\r\n\t\tqueue.add(document.getDocumentElement());\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tfinal Node node = queue.remove();\r\n\t\t\tfinal NodeList children = node.getChildNodes();\r\n\t\t\tfor (int index = 0; index < children.getLength(); index++) {\r\n\t\t\t\tqueue.add(children.item(index));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (node.getNodeType() == Node.TEXT_NODE) {\r\n\t\t\t\tnode.setTextContent(node.getTextContent().trim());\r\n\t\t\t\tif (node.getTextContent().isEmpty()) {\r\n\t\t\t\t\tnode.getParentNode().removeChild(node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void writeComment(String s) throws Exception {\r\n\tif (s.indexOf(EOL) != -1 && s.startsWith(commentString))\r\n\t\tthrow new Exception(\"bad line\");\r\n\r\n\tout.write(commentSeparator);\r\n\tout.write(s.getBytes());\r\n\tout.write(EOL);\r\n}", "public final void mCOMMENTS() throws RecognitionException {\r\n try {\r\n int _type = COMMENTS;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:7:10: ( 'COMMENTS' )\r\n // Satmc.g:7:12: 'COMMENTS'\r\n {\r\n match(\"COMMENTS\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "private void skipCommentLine() {\n while (position < length) {\n int c = data.charAt(position);\n if (c == '\\r' || c == '\\n') {\n return;\n }\n position++;\n }\n }", "public static void main (String[] args) throws IOException\n\t{\n\t\ttry (Scanner s = new Scanner(System.in))\n\t\t{\n\t\t // This regex matches comments. Two things are noteworthy. First,\n\t\t // the .*? in the pattern is reluctant. Also, the second parameter\n\t\t // allows a dot to match newline characters. Why are both of\n\t\t // these necessary?\n\t\t\tPattern p = Pattern.compile(\"(/\\\\*.*?\\\\*/)\", Pattern.DOTALL);\n\n\t\t\t// Pull the entire document into a string\n\t\t\tString document = \"\";\n\t\t\twhile (s.hasNextLine())\n\t\t\t{\n\t\t\t\tdocument += s.nextLine() + \"\\n\";\n\t\t\t}\n\n\t\t\t// Replace every substring that matches the pattern with\n\t\t\t// the string \"COMMENT\"\n\t\t\tMatcher m = p.matcher(document);\n\t\t\tString result = m.replaceAll(\"COMMENT\");\n\t\t\t\n\t\t\t// Print out the result\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}", "private void consolidateCommentBlock(Token commentToken) {\n List<Token> newlines = new ArrayList<Token>();\n List<Token> comments = new ArrayList<Token>();\n\n Token previous = null;\n Token next = commentToken;\n while (true) {\n if (Tokens.isNewline(next)) {\n if (previous != null && Tokens.isNewline(previous)) {\n // blank line; drop all comments to this point and\n // start a new comment block\n comments.clear();\n }\n newlines.add(next);\n } else if (Tokens.isComment(next)) {\n comments.add(next);\n } else {\n // a non-newline non-comment token\n break;\n }\n\n previous = next;\n next = tokens.next();\n }\n\n // put our concluding token in the queue with all the comments\n // attached\n buffer.push(new TokenWithComments(next, comments));\n\n // now put all the newlines back in front of it\n ListIterator<Token> li = newlines.listIterator(newlines.size());\n while (li.hasPrevious()) {\n buffer.push(new TokenWithComments(li.previous()));\n }\n }", "@Test\n public void eofHandling() {\n assertLine(Language.CSS, new Line(Language.CSS, BLANK), \" \");\n assertLine(Language.CSS, new Line(Language.CSS, BLANK), \"\\t\");\n assertLine(Language.CSS, new Line(Language.CSS, CODE), \"margin: 1em;\");\n assertLine(Language.CSS, new Line(Language.CSS, COMMENT), \"/* comment */\");\n assertLine(Language.CSS, new Line(Language.CSS, CODE), \"margin: 1em; /* with comment */\");\n }", "public void removeComments(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "public static Document getStripCommentsTransformationStylesheetDocument()\r\n throws SAXException,\r\n IOException\r\n {\r\n return XMLUtil.loadDocumentFromString\r\n (getStripCommentsTransformationStylesheetString()); \r\n }", "private String magicComment( CharSequence needle, String haystack,\r\n CharSequence replacement )\r\n {\r\n int startIndex = haystack.indexOf( \"//# \" + needle );\r\n String endString = \"//# END \" + needle;\r\n int endIndex = haystack.indexOf( endString ) + endString.length();\r\n CharSequence region = haystack.subSequence( startIndex, endIndex + 1 );\r\n\r\n return haystack.replace( region, replacement );\r\n }", "private String nocomment(String s) {\r\n\t\tint excLocation=s.indexOf('!');\r\n\t\tif(excLocation!=-1) s=s.substring(0,excLocation);\r\n\t\treturn s.trim();\r\n\t}", "public static void processCSS(File file) throws Exception {\n BufferedReader in = new BufferedReader(new FileReader(file));\n Vector<String> vLines = new Vector<String>();\n String line;\n int init, end;\n\n while ((line = in.readLine()) != null) {\n if ((init = line.indexOf(\"/*~RTL \")) != -1) {\n end = line.indexOf(\"*/\");\n if (end == -1)\n end = line.length();\n vLines.add(line.substring(init + 7, end) + \"\\n\");\n } else {\n vLines.add(line + \"\\n\");\n }\n }\n in.close();\n\n BufferedWriter out = new BufferedWriter(new FileWriter(file));\n for (String lineToWrite : vLines) {\n out.write(lineToWrite);\n }\n out.close();\n }", "private void emitComment() throws SAXException {\n if (wantsComments) {\n if (longStrBufPending != '\\u0000') {\n appendLongStrBuf(longStrBufPending);\n }\n }\n tokenHandler.comment(longStrBuf, longStrBufLen);\n }", "public final void mCOMMENT() throws RecognitionException {\n try {\n int _type = COMMENT;\n // /Users/benjamincoe/HackWars/C.g:158:9: ( '//' (~ ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' ) )* )\n // /Users/benjamincoe/HackWars/C.g:158:11: '//' (~ ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' ) )*\n {\n match(\"//\"); \n\n // /Users/benjamincoe/HackWars/C.g:158:16: (~ ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( ((LA1_0>='\\u0000' && LA1_0<='\\t')||(LA1_0>='\\u000B' && LA1_0<='\\f')||(LA1_0>='\\u000E' && LA1_0<='\\uFFFE')) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // /Users/benjamincoe/HackWars/C.g:158:16: ~ ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFE') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse =\n \t new MismatchedSetException(null,input);\n \t recover(mse); throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n channel=HIDDEN;\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public final void mRULE_SL_COMMENT() throws RecognitionException {\n try {\n int _type = RULE_SL_COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalStateMachine.g:853:17: ( '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )? )\n // InternalStateMachine.g:853:19: '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )?\n {\n match(\"//\"); \n\n // InternalStateMachine.g:853:24: (~ ( ( '\\\\n' | '\\\\r' ) ) )*\n loop9:\n do {\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( ((LA9_0>='\\u0000' && LA9_0<='\\t')||(LA9_0>='\\u000B' && LA9_0<='\\f')||(LA9_0>='\\u000E' && LA9_0<='\\uFFFF')) ) {\n alt9=1;\n }\n\n\n switch (alt9) {\n \tcase 1 :\n \t // InternalStateMachine.g:853:24: ~ ( ( '\\\\n' | '\\\\r' ) )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\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 loop9;\n }\n } while (true);\n\n // InternalStateMachine.g:853:40: ( ( '\\\\r' )? '\\\\n' )?\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0=='\\n'||LA11_0=='\\r') ) {\n alt11=1;\n }\n switch (alt11) {\n case 1 :\n // InternalStateMachine.g:853:41: ( '\\\\r' )? '\\\\n'\n {\n // InternalStateMachine.g:853:41: ( '\\\\r' )?\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0=='\\r') ) {\n alt10=1;\n }\n switch (alt10) {\n case 1 :\n // InternalStateMachine.g:853:41: '\\\\r'\n {\n match('\\r'); \n\n }\n break;\n\n }\n\n match('\\n'); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mCOMMENT() throws RecognitionException {\n try {\n int _type = COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // Office.g:965:8: ( ( '//' (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )* ) )\n // Office.g:966:2: ( '//' (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )* )\n {\n // Office.g:966:2: ( '//' (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )* )\n // Office.g:966:3: '//' (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )*\n {\n match(\"//\"); \n\n\n\n // Office.g:966:7: (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( ((LA1_0 >= '\\u0000' && LA1_0 <= '\\t')||(LA1_0 >= '\\u000B' && LA1_0 <= '\\f')||(LA1_0 >= '\\u000E' && LA1_0 <= '\\uFFFE')) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // Office.g:\n \t {\n \t if ( (input.LA(1) >= '\\u0000' && input.LA(1) <= '\\t')||(input.LA(1) >= '\\u000B' && input.LA(1) <= '\\f')||(input.LA(1) >= '\\u000E' && input.LA(1) <= '\\uFFFE') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n\n _channel = 99; \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "@org.junit.Test\n public void css()\n {\n assertEquals(\"empty\", \"\", Encodings.toCSSString(\"\"));\n assertEquals(\"simple\", \"simple\", Encodings.toCSSString(\"simple\"));\n assertEquals(\"spaces\", \"justatest\", Encodings.toCSSString(\"just a test\"));\n assertEquals(\"special\", \"a\", Encodings.toCSSString(\"&*%$#a%#!@()\"));\n }", "public final void mRULE_SL_COMMENT() throws RecognitionException {\n try {\n int _type = RULE_SL_COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12787:17: ( '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )? )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12787:19: '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )?\n {\n match(\"//\"); \n\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12787:24: (~ ( ( '\\\\n' | '\\\\r' ) ) )*\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( ((LA8_0>='\\u0000' && LA8_0<='\\t')||(LA8_0>='\\u000B' && LA8_0<='\\f')||(LA8_0>='\\u000E' && LA8_0<='\\uFFFF')) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12787:24: ~ ( ( '\\\\n' | '\\\\r' ) )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\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 // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12787:40: ( ( '\\\\r' )? '\\\\n' )?\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0=='\\n'||LA10_0=='\\r') ) {\n alt10=1;\n }\n switch (alt10) {\n case 1 :\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12787:41: ( '\\\\r' )? '\\\\n'\n {\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12787:41: ( '\\\\r' )?\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( (LA9_0=='\\r') ) {\n alt9=1;\n }\n switch (alt9) {\n case 1 :\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12787:41: '\\\\r'\n {\n match('\\r'); \n\n }\n break;\n\n }\n\n match('\\n'); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.removeComments(\"!}1w/G=6\");\n assertEquals(\"!}1w/G=6\", string0);\n }", "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.comments.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "public static void openComment() {\n Log.write(\"<!-- \");\n }", "public static String removeHtmlComments(final String page)\n {\n return RegExUtils.removeAll(page, HTML_COMMENT_PATTERN);\n }", "private void deleteStylesheet() {\n\n// find start of the section\nString str = strBuf.toString();\nfinal int start = str.indexOf( SEC_START );\n\nif ( start == -1 ) {\n// section not contained, so just return ...\nreturn;\n}\n\n// find end of section\nfinal int end = str.indexOf( SEC_END, start );\n\n// delete section\nstrBuf.delete( start, end + 2 );\n}", "public final void mCOMMENT() throws RecognitionException {\n try {\n int _type = COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2697:3: ( ( ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) ) ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:6: ( ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) ) )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:6: ( ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:7: ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:7: ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:8: ( '//' (~ ( '\\\\r' | '\\\\n' ) )* )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:8: ( '//' (~ ( '\\\\r' | '\\\\n' ) )* )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:9: '//' (~ ( '\\\\r' | '\\\\n' ) )*\n {\n match(\"//\"); if (state.failed) return ;\n\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:14: (~ ( '\\\\r' | '\\\\n' ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( ((LA1_0>='\\u0000' && LA1_0<='\\t')||(LA1_0>='\\u000B' && LA1_0<='\\f')||(LA1_0>='\\u000E' && LA1_0<='\\uFFFF')) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:15: ~ ( '\\\\r' | '\\\\n' )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\n \t input.consume();\n \t state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return ;}\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 loop1;\n }\n } while (true);\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n _channel=HIDDEN;\n }\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mML_COMMENT() throws RecognitionException {\n try {\n int _type = ML_COMMENT;\n // /Users/benjamincoe/HackWars/C.g:165:5: ( '/*' ( options {greedy=false; } : . )* '*/' )\n // /Users/benjamincoe/HackWars/C.g:165:9: '/*' ( options {greedy=false; } : . )* '*/'\n {\n match(\"/*\"); \n\n // /Users/benjamincoe/HackWars/C.g:165:14: ( options {greedy=false; } : . )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0=='*') ) {\n int LA2_1 = input.LA(2);\n\n if ( (LA2_1=='/') ) {\n alt2=2;\n }\n else if ( ((LA2_1>='\\u0000' && LA2_1<='.')||(LA2_1>='0' && LA2_1<='\\uFFFE')) ) {\n alt2=1;\n }\n\n\n }\n else if ( ((LA2_0>='\\u0000' && LA2_0<=')')||(LA2_0>='+' && LA2_0<='\\uFFFE')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // /Users/benjamincoe/HackWars/C.g:165:41: .\n \t {\n \t matchAny(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop2;\n }\n } while (true);\n\n match(\"*/\"); \n\n channel=HIDDEN;\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public final void mMULTI_LINE_COMMENT() throws RecognitionException {\n try {\n int _type = MULTI_LINE_COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2703:3: ( ( ( ( '/*' ( options {greedy=false; } : ( '\\\\n' | ~ '\\\\n' ) )* '*/' ) ) ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2704:6: ( ( ( '/*' ( options {greedy=false; } : ( '\\\\n' | ~ '\\\\n' ) )* '*/' ) ) )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2704:6: ( ( ( '/*' ( options {greedy=false; } : ( '\\\\n' | ~ '\\\\n' ) )* '*/' ) ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2704:7: ( ( '/*' ( options {greedy=false; } : ( '\\\\n' | ~ '\\\\n' ) )* '*/' ) )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2704:7: ( ( '/*' ( options {greedy=false; } : ( '\\\\n' | ~ '\\\\n' ) )* '*/' ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2704:8: ( '/*' ( options {greedy=false; } : ( '\\\\n' | ~ '\\\\n' ) )* '*/' )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2704:8: ( '/*' ( options {greedy=false; } : ( '\\\\n' | ~ '\\\\n' ) )* '*/' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2704:9: '/*' ( options {greedy=false; } : ( '\\\\n' | ~ '\\\\n' ) )* '*/'\n {\n match(\"/*\"); if (state.failed) return ;\n\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2704:14: ( options {greedy=false; } : ( '\\\\n' | ~ '\\\\n' ) )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0=='*') ) {\n int LA2_1 = input.LA(2);\n\n if ( (LA2_1=='/') ) {\n alt2=2;\n }\n else if ( ((LA2_1>='\\u0000' && LA2_1<='.')||(LA2_1>='0' && LA2_1<='\\uFFFF')) ) {\n alt2=1;\n }\n\n\n }\n else if ( ((LA2_0>='\\u0000' && LA2_0<=')')||(LA2_0>='+' && LA2_0<='\\uFFFF')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2704:43: ( '\\\\n' | ~ '\\\\n' )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\uFFFF') ) {\n \t input.consume();\n \t state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return ;}\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 match(\"*/\"); if (state.failed) return ;\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n _channel=HIDDEN;\n }\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "String getComment() {\n final StringBuilder sb = new StringBuilder();\n sb.append(indent(1)).append(\"/**\").append(EOL);\n sb.append(indent(1)).append(\" * \").append(\"{@code\").append(EOL);\n\n // Unwrapped so that you can search through the descriptor\n // file for a message and not have to worry about line breaks\n final String ws = formatString; // wrapText(formatString, 70);\n\n final String[] sa = ws.split(EOL);\n for (final String s : sa) {\n sb.append(indent(1)).append(\" * \").append(s).append(EOL);\n }\n\n sb.append(indent(1)).append(\" * \").append(\"}\").append(EOL);\n sb.append(indent(1)).append(\" */\").append(EOL);\n return sb.toString();\n }", "public final void mRULE_SL_COMMENT() throws RecognitionException {\n try {\n int _type = RULE_SL_COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16711:17: ( '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )? )\n // InternalDSL.g:16711:19: '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )?\n {\n match(\"//\"); \n\n // InternalDSL.g:16711:24: (~ ( ( '\\\\n' | '\\\\r' ) ) )*\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( ((LA13_0>='\\u0000' && LA13_0<='\\t')||(LA13_0>='\\u000B' && LA13_0<='\\f')||(LA13_0>='\\u000E' && LA13_0<='\\uFFFF')) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // InternalDSL.g:16711:24: ~ ( ( '\\\\n' | '\\\\r' ) )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\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 loop13;\n }\n } while (true);\n\n // InternalDSL.g:16711:40: ( ( '\\\\r' )? '\\\\n' )?\n int alt15=2;\n int LA15_0 = input.LA(1);\n\n if ( (LA15_0=='\\n'||LA15_0=='\\r') ) {\n alt15=1;\n }\n switch (alt15) {\n case 1 :\n // InternalDSL.g:16711:41: ( '\\\\r' )? '\\\\n'\n {\n // InternalDSL.g:16711:41: ( '\\\\r' )?\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0=='\\r') ) {\n alt14=1;\n }\n switch (alt14) {\n case 1 :\n // InternalDSL.g:16711:41: '\\\\r'\n {\n match('\\r'); \n\n }\n break;\n\n }\n\n match('\\n'); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mRULE_ML_COMMENT() throws RecognitionException {\r\n try {\r\n int _type = RULE_ML_COMMENT;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2487:17: ( '/*' ( options {greedy=false; } : . )* '*/' )\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2487:19: '/*' ( options {greedy=false; } : . )* '*/'\r\n {\r\n match(\"/*\"); \r\n\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2487:24: ( options {greedy=false; } : . )*\r\n loop8:\r\n do {\r\n int alt8=2;\r\n int LA8_0 = input.LA(1);\r\n\r\n if ( (LA8_0=='*') ) {\r\n int LA8_1 = input.LA(2);\r\n\r\n if ( (LA8_1=='/') ) {\r\n alt8=2;\r\n }\r\n else if ( ((LA8_1>='\\u0000' && LA8_1<='.')||(LA8_1>='0' && LA8_1<='\\uFFFF')) ) {\r\n alt8=1;\r\n }\r\n\r\n\r\n }\r\n else if ( ((LA8_0>='\\u0000' && LA8_0<=')')||(LA8_0>='+' && LA8_0<='\\uFFFF')) ) {\r\n alt8=1;\r\n }\r\n\r\n\r\n switch (alt8) {\r\n \tcase 1 :\r\n \t // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2487:52: .\r\n \t {\r\n \t matchAny(); \r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop8;\r\n }\r\n } while (true);\r\n\r\n match(\"*/\"); \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 }", "static void writeEndOfLineComment(String s) {\n String line = s.trim();\n for (int j = 0; j < level; j++) {\n line = \" \" + line; // 4 spaces\n }\n outputBuffer.append(line).append(ls);\n }", "public static Node stripComments(Node xmlXML, DOMResult xmlResult)\r\n throws SAXException,\r\n IOException,\r\n TransformerConfigurationException,\r\n TransformerException \r\n {\r\n return transform\r\n (xmlXML, \r\n getStripCommentsTransformationStylesheetDocument(),\r\n xmlResult);\r\n }", "public final void mRULE_SL_COMMENT() throws RecognitionException {\n try {\n int _type = RULE_SL_COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:101:17: ( '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )? )\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:101:19: '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )?\n {\n match(\"//\"); \n\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:101:24: (~ ( ( '\\\\n' | '\\\\r' ) ) )*\n loop29:\n do {\n int alt29=2;\n int LA29_0 = input.LA(1);\n\n if ( ((LA29_0>='\\u0000' && LA29_0<='\\t')||(LA29_0>='\\u000B' && LA29_0<='\\f')||(LA29_0>='\\u000E' && LA29_0<='\\uFFFF')) ) {\n alt29=1;\n }\n\n\n switch (alt29) {\n \tcase 1 :\n \t // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:101:24: ~ ( ( '\\\\n' | '\\\\r' ) )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\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 loop29;\n }\n } while (true);\n\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:101:40: ( ( '\\\\r' )? '\\\\n' )?\n int alt31=2;\n int LA31_0 = input.LA(1);\n\n if ( (LA31_0=='\\n'||LA31_0=='\\r') ) {\n alt31=1;\n }\n switch (alt31) {\n case 1 :\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:101:41: ( '\\\\r' )? '\\\\n'\n {\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:101:41: ( '\\\\r' )?\n int alt30=2;\n int LA30_0 = input.LA(1);\n\n if ( (LA30_0=='\\r') ) {\n alt30=1;\n }\n switch (alt30) {\n case 1 :\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:101:41: '\\\\r'\n {\n match('\\r'); \n\n }\n break;\n\n }\n\n match('\\n'); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr'\n || sb.charAt(sb.length() - 1) == '\\u005cn'\n || sb.charAt(sb.length() - 1) == '\\u005ct'\n || sb.charAt(sb.length() - 1) == ' ')) {\n sb.deleteCharAt(sb.length() - 1);\n }\n if (sb.length() == 0) {\n a.remove(i);\n }\n else {\n a.set(i, sb.toString());\n break;\n }\n }\n if (a.size() == 0) {\n while(outputBuffer.length() > 0 && (outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005ct'\n || outputBuffer.charAt(outputBuffer.length() - 1) == ' ')) {\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }\n }\n }", "private static boolean isComment(String line) {\n String trimLine = line.trim();\n return trimLine.startsWith(\"#\") || trimLine.isEmpty();\n }", "public final void mCOMMENT() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = COMMENT;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// src/VSLLexer.g:12:9: ( '//' (~ '\\\\n' )* )\n\t\t\t// src/VSLLexer.g:12:11: '//' (~ '\\\\n' )*\n\t\t\t{\n\t\t\tmatch(\"//\"); \n\n\t\t\t// src/VSLLexer.g:12:16: (~ '\\\\n' )*\n\t\t\tloop1:\n\t\t\twhile (true) {\n\t\t\t\tint alt1=2;\n\t\t\t\tint LA1_0 = input.LA(1);\n\t\t\t\tif ( ((LA1_0 >= '\\u0000' && LA1_0 <= '\\t')||(LA1_0 >= '\\u000B' && LA1_0 <= '\\uFFFF')) ) {\n\t\t\t\t\talt1=1;\n\t\t\t\t}\n\n\t\t\t\tswitch (alt1) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src/VSLLexer.g:\n\t\t\t\t\t{\n\t\t\t\t\tif ( (input.LA(1) >= '\\u0000' && input.LA(1) <= '\\t')||(input.LA(1) >= '\\u000B' && input.LA(1) <= '\\uFFFF') ) {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\t\t\trecover(mse);\n\t\t\t\t\t\tthrow mse;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak loop1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t_channel = HIDDEN;\n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "private void commentStates() throws SAXException, IOException {\n CommentState state = CommentState.COMMENT_START_STATE;\n for (;;) {\n char c = read();\n switch (state) {\n case COMMENT_START_STATE:\n /*\n * Comment start state\n * \n * \n * Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment\n * start dash state.\n */\n state = CommentState.COMMENT_START_DASH_STATE;\n continue;\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Parse error.\n */\n err(\"Premature end of comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Switch to the data state.\n */\n return;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append the input character to the\n * comment token's data.\n */\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n case COMMENT_START_DASH_STATE:\n /*\n * Comment start dash state\n * \n * Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment end\n * state\n */\n state = CommentState.COMMENT_END_STATE;\n continue;\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Parse error.\n */\n err(\"Premature end of comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Switch to the data state.\n */\n return;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append a U+002D HYPHEN-MINUS (-)\n * character and the input character to the comment\n * token's data.\n */\n appendToComment('-');\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n case COMMENT_STATE:\n /*\n * Comment state Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment end\n * dash state\n */\n state = CommentState.COMMENT_END_DASH_STATE;\n continue;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append the input character to the\n * comment token's data.\n */\n appendToComment(c);\n /*\n * Stay in the comment state.\n */\n continue;\n }\n case COMMENT_END_DASH_STATE:\n /*\n * Comment end dash state Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment end\n * state\n */\n state = CommentState.COMMENT_END_STATE;\n continue;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append a U+002D HYPHEN-MINUS (-)\n * character and the input character to the comment\n * token's data.\n */\n appendToComment('-');\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n case COMMENT_END_STATE:\n /*\n * Comment end dash state Consume the next input character:\n */\n switch (c) {\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Emit the comment\n * token.\n */\n emitComment();\n /*\n * Switch to the data state.\n */\n return;\n case '-':\n /* U+002D HYPHEN-MINUS (-) Parse error. */\n err(\"Consecutive hyphens did not terminate a comment.\");\n /*\n * Append a U+002D HYPHEN-MINUS (-) character to the\n * comment token's data.\n */\n appendToComment('-');\n /*\n * Stay in the comment end state.\n */\n continue;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Parse error.\n */\n err(\"Consecutive hyphens did not terminate a comment.\");\n /*\n * Append two U+002D HYPHEN-MINUS (-) characters and\n * the input character to the comment token's data.\n */\n appendToComment('-');\n appendToComment('-');\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n }\n }\n }", "private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }", "private boolean formatComment(StringBuilder result, String tab) {\n \n \t\tif (!preferenceFormatComments)\n \t\t\treturn false;\n \n \t\t/* The list of remaining words to continue on the next line */\n \t\tLinkedList<String> commentWords = new LinkedList<String>();\n \n \t\tint maxLineLength = OcamlPlugin.getInstance().getPreferenceStore().getInt(\n \t\t\t\tPreferenceConstants.P_FORMATTER_COMMENT_WIDTH);\n \n \t\tint nCommentLine = currentLine;\n \n \t\tbInMultilineComment = false;\n \n \t\tString firstCommentLine = line;\n \n \t\t/* Read all the following lines having a single comment */\n \t\tboolean bWholeLineComment;\n \t\tdo {\n \t\t\tif (bDoNotFormatComment)\n \t\t\t\tbreak;\n \n \t\t\tbWholeLineComment = false;\n \n \t\t\tString commentLine = lines[nCommentLine];\n \n \t\t\tString trimmed2 = commentLine.trim();\n \t\t\t/*\n \t\t\t * Matcher matcherString = patternString.matcher(trimmed); trimmed =\n \t\t\t * matcherString.replaceAll(\"\\\"\\\"\");\n \t\t\t */\n \n \t\t\t/*\n \t\t\t * Count the number of comments on the line, because patternWholeLineComment matches several\n \t\t\t * comments in a single match. If there are several comments on the same line, then we leave them\n \t\t\t * as is.\n \t\t\t */\n \t\t\tMatcher matcherComment = patternComment.matcher(trimmed2);\n \t\t\tboolean bMoreThanOneComment = matcherComment.find() && matcherComment.find();\n \n \t\t\tif (!bMoreThanOneComment) {\n \n \t\t\t\t/*\n \t\t\t\t * Read all the words (anything separated by spaces) of this comment, and add them to the\n \t\t\t\t * list.\n \t\t\t\t */\n \t\t\t\tMatcher matcherWholeLineComment = patternWholeLineComment.matcher(trimmed2);\n \n \t\t\t\tString commentBody = null;\n \n \t\t\t\tif (trimmed2.startsWith(\"(*\") && !trimmed2.contains(\"*)\"))\n \t\t\t\t\tbInMultilineComment = true;\n \n \t\t\t\tif (matcherWholeLineComment.find() || bInMultilineComment) {\n \n \t\t\t\t\tif (bInMultilineComment) {\n \t\t\t\t\t\tif (trimmed2.endsWith(\"*)\")) {\n \t\t\t\t\t\t\tbInMultilineComment = false;\n \t\t\t\t\t\t\tcommentBody = trimmed2.substring(0, trimmed2.length() - 2);\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\telse if (trimmed2.startsWith(\"(*\")) {\n \t\t\t\t\t\t\tcommentBody = trimmed2.substring(2, trimmed2.length());\n \t\t\t\t\t\t} else\n \t\t\t\t\t\t\tcommentBody = trimmed2;\n \t\t\t\t\t}\n \n \t\t\t\t\tif (commentBody == null)\n \t\t\t\t\t\tcommentBody = matcherWholeLineComment.group(1);\n \n \t\t\t\t\t// Special character that means: do not format this comment\n \t\t\t\t\t// We don't format documentation comments either\n \t\t\t\t\tif (commentBody.startsWith(\"|\") || commentBody.startsWith(\"*\")) {\n \t\t\t\t\t\tbDoNotFormatComment = true;\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \n \t\t\t\t\tString[] words = commentBody.split(\"\\\\s\");\n \n \t\t\t\t\t// add the words to the list\n \t\t\t\t\tfor (String w : words)\n \t\t\t\t\t\tif (!w.trim().equals(\"\"))\n \t\t\t\t\t\t\tcommentWords.addLast(w);\n \n \t\t\t\t\tbWholeLineComment = true;\n \n \t\t\t\t\tnCommentLine++;\n \t\t\t\t\tif (nCommentLine >= lines.length)\n \t\t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \n \t\t} while (bWholeLineComment);\n \n \t\tint nLastCommentLine = nCommentLine - 1;\n \n \t\t/* If we found at least one comment */\n \t\tif (!commentWords.isEmpty()) {\n \t\t\t/*\n \t\t\t * Get the indentation of the first comment line. The following ones will get the same\n \t\t\t * indentation.\n \t\t\t */\n \t\t\tint firstCommentLineIndent = getLineIndent(firstCommentLine);\n \n \t\t\tint currentOffset = 0;\n \t\t\tint tabSize = ocaml.editors.OcamlEditor.getTabSize();\n \n \t\t\t/*\n \t\t\t * Now that we have a list of words, we spread it onto the following lines\n \t\t\t */\n \n \t\t\t// indentation in number of spaces from the beginning of the line\n \t\t\tint leadingSpace = 0;\n \t\t\tfor (int j = 0; j < firstCommentLineIndent; j++) {\n \t\t\t\tresult.append(tab);\n \t\t\t\tcurrentOffset += tabSize;\n \t\t\t\tleadingSpace += tabSize;\n \t\t\t}\n \n \t\t\tresult.append(\"(* \");\n \t\t\tcurrentOffset += 3;\n \n \t\t\tint nCommentLines = 1;\n \t\t\t// for each word of the comment\n \t\t\tfor (String word : commentWords) {\n \t\t\t\t// if the word fits into the remaining space on the line or if\n \t\t\t\t// the line is empty\n \t\t\t\tif ((currentOffset + word.length() + 3 < maxLineLength || currentOffset == firstCommentLineIndent + 3)) {\n \t\t\t\t\tresult.append(word + \" \");\n \t\t\t\t\tcurrentOffset += word.length() + 1;\n \t\t\t\t}\n \n \t\t\t\t/*\n \t\t\t\t * if the word doesn't fit on the remaining space on the line, then we create a new line\n \t\t\t\t */\n \t\t\t\telse {\n \t\t\t\t\tnCommentLines++;\n \n \t\t\t\t\twhile (currentOffset++ < maxLineLength - 3)\n \t\t\t\t\t\tresult.append(\" \");\n \n \t\t\t\t\tresult.append(\"*)\" + OcamlPlugin.newline);\n \n \t\t\t\t\tcurrentOffset = 0;\n \t\t\t\t\tfor (int j = 0; j < firstCommentLineIndent; j++) {\n \t\t\t\t\t\tresult.append(\"\\t\");\n \t\t\t\t\t\tcurrentOffset += tabSize;\n \t\t\t\t\t}\n \n \t\t\t\t\tresult.append(\"(* \" + word + \" \");\n \t\t\t\t\tcurrentOffset += word.length() + 4;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * if there are several comment lines, we put the ending \"*)\" against the margin, so that the\n \t\t\t * comment endings are all aligned\n \t\t\t */\n \t\t\tif (nCommentLines != 1)\n \t\t\t\twhile (currentOffset++ < maxLineLength - 3)\n \t\t\t\t\tresult.append(\" \");\n \n \t\t\tresult.append(\"*)\" + OcamlPlugin.newline);\n \n \t\t\t/*\n \t\t\t * We're done with this comment: analyze the remaining lines: continue at i (the +1 is done by the\n \t\t\t * loop)\n \t\t\t */\n \t\t\tcurrentLine = nLastCommentLine;\n \t\t\t// true means: jump back\n \t\t\treturn true;\n \t\t}\n \t\t// continue normally (do not jump in the loop)\n \t\treturn false;\n \t}", "public final void mRULE_SL_COMMENT() throws RecognitionException {\n try {\n int _type = RULE_SL_COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:669:17: ( '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )? )\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:669:19: '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )?\n {\n match(\"//\"); \n\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:669:24: (~ ( ( '\\\\n' | '\\\\r' ) ) )*\n loop12:\n do {\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( ((LA12_0>='\\u0000' && LA12_0<='\\t')||(LA12_0>='\\u000B' && LA12_0<='\\f')||(LA12_0>='\\u000E' && LA12_0<='\\uFFFF')) ) {\n alt12=1;\n }\n\n\n switch (alt12) {\n \tcase 1 :\n \t // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:669:24: ~ ( ( '\\\\n' | '\\\\r' ) )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\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 loop12;\n }\n } while (true);\n\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:669:40: ( ( '\\\\r' )? '\\\\n' )?\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0=='\\n'||LA14_0=='\\r') ) {\n alt14=1;\n }\n switch (alt14) {\n case 1 :\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:669:41: ( '\\\\r' )? '\\\\n'\n {\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:669:41: ( '\\\\r' )?\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0=='\\r') ) {\n alt13=1;\n }\n switch (alt13) {\n case 1 :\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:669:41: '\\\\r'\n {\n match('\\r'); \n\n }\n break;\n\n }\n\n match('\\n'); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mRULE_SL_COMMENT() throws RecognitionException {\r\n try {\r\n int _type = RULE_SL_COMMENT;\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:3481:17: ( '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )? )\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3481:19: '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )?\r\n {\r\n match(\"//\"); \r\n\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3481:24: (~ ( ( '\\\\n' | '\\\\r' ) ) )*\r\n loop10:\r\n do {\r\n int alt10=2;\r\n int LA10_0 = input.LA(1);\r\n\r\n if ( ((LA10_0>='\\u0000' && LA10_0<='\\t')||(LA10_0>='\\u000B' && LA10_0<='\\f')||(LA10_0>='\\u000E' && LA10_0<='\\uFFFF')) ) {\r\n alt10=1;\r\n }\r\n\r\n\r\n switch (alt10) {\r\n \tcase 1 :\r\n \t // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3481:24: ~ ( ( '\\\\n' | '\\\\r' ) )\r\n \t {\r\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\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 loop10;\r\n }\r\n } while (true);\r\n\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3481:40: ( ( '\\\\r' )? '\\\\n' )?\r\n int alt12=2;\r\n int LA12_0 = input.LA(1);\r\n\r\n if ( (LA12_0=='\\n'||LA12_0=='\\r') ) {\r\n alt12=1;\r\n }\r\n switch (alt12) {\r\n case 1 :\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3481:41: ( '\\\\r' )? '\\\\n'\r\n {\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3481:41: ( '\\\\r' )?\r\n int alt11=2;\r\n int LA11_0 = input.LA(1);\r\n\r\n if ( (LA11_0=='\\r') ) {\r\n alt11=1;\r\n }\r\n switch (alt11) {\r\n case 1 :\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3481:41: '\\\\r'\r\n {\r\n match('\\r'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n match('\\n'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public final void mRULE_SL_COMMENT() throws RecognitionException {\n try {\n int _type = RULE_SL_COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalEsm.g:13308:17: ( '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )? )\n // InternalEsm.g:13308:19: '//' (~ ( ( '\\\\n' | '\\\\r' ) ) )* ( ( '\\\\r' )? '\\\\n' )?\n {\n match(\"//\"); \n\n // InternalEsm.g:13308:24: (~ ( ( '\\\\n' | '\\\\r' ) ) )*\n loop11:\n do {\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( ((LA11_0>='\\u0000' && LA11_0<='\\t')||(LA11_0>='\\u000B' && LA11_0<='\\f')||(LA11_0>='\\u000E' && LA11_0<='\\uFFFF')) ) {\n alt11=1;\n }\n\n\n switch (alt11) {\n \tcase 1 :\n \t // InternalEsm.g:13308:24: ~ ( ( '\\\\n' | '\\\\r' ) )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\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 loop11;\n }\n } while (true);\n\n // InternalEsm.g:13308:40: ( ( '\\\\r' )? '\\\\n' )?\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0=='\\n'||LA13_0=='\\r') ) {\n alt13=1;\n }\n switch (alt13) {\n case 1 :\n // InternalEsm.g:13308:41: ( '\\\\r' )? '\\\\n'\n {\n // InternalEsm.g:13308:41: ( '\\\\r' )?\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0=='\\r') ) {\n alt12=1;\n }\n switch (alt12) {\n case 1 :\n // InternalEsm.g:13308:41: '\\\\r'\n {\n match('\\r'); \n\n }\n break;\n\n }\n\n match('\\n'); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private void formatCode() {\n isLongComment = false;\n\n for (int i = 0; i < formattedCode.size(); i++) {\n String line = formattedCode.get(i);\n // format each line\n String handledLine = handleLine(line);\n\n // if not empty, replace given line with its formatted version\n if (handledLine != null && !handledLine.equals(\"\"))\n formattedCode.set(i, handledLine);\n else\n // else remove the line without any instructions\n formattedCode.remove(i--);\n }\n }" ]
[ "0.65147007", "0.6448316", "0.64189404", "0.62464255", "0.57932544", "0.5788482", "0.5766049", "0.5725947", "0.56526244", "0.56016463", "0.5589107", "0.55160254", "0.5501287", "0.5496584", "0.54763293", "0.54573965", "0.54465896", "0.540845", "0.54065967", "0.5399341", "0.5360549", "0.5351535", "0.5336426", "0.5318985", "0.53154194", "0.53038365", "0.52890944", "0.5274087", "0.5252217", "0.52440035", "0.52131516", "0.5177459", "0.5177155", "0.5161368", "0.51514894", "0.5141464", "0.5139391", "0.51288396", "0.51278234", "0.51195216", "0.5118359", "0.51084185", "0.5076903", "0.5062042", "0.50576794", "0.5039951", "0.5035337", "0.50346845", "0.5019516", "0.50181866", "0.5009239", "0.5004121", "0.4989306", "0.49747816", "0.49740487", "0.4949861", "0.49359858", "0.49262372", "0.49215293", "0.49190125", "0.48913184", "0.4888858", "0.4888243", "0.48797494", "0.4872661", "0.4864541", "0.4854168", "0.4849343", "0.48417637", "0.48387355", "0.4823676", "0.4821997", "0.48194116", "0.481457", "0.48104268", "0.48018596", "0.47898754", "0.47718927", "0.47638002", "0.4749467", "0.47444737", "0.47408065", "0.47354403", "0.47248873", "0.47192493", "0.470909", "0.47089717", "0.47073087", "0.47072527", "0.4707125", "0.47052315", "0.46790007", "0.46785358", "0.46747366", "0.46722028", "0.4669729", "0.46673834", "0.46645817", "0.4660623", "0.46600455" ]
0.71748835
0
Replace comments of HTML/JSP/XML with whitespaces. replace &lt;! ... &gt; to the whitespaces replace &lt;% ... %&gt; to the whitespaces
public static String comment2space(String source,boolean contentsOnly){ source = jspComment2space(source,contentsOnly); source = FuzzyXMLUtil.comment2space(source,contentsOnly); return source; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String jspComment2space(String source,boolean contentsOnly){\r\n\t\tint index = 0;\r\n\t\tint last = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\twhile((index = source.indexOf(\"<%--\",last))!=-1){\r\n\t\t\tint end = source.indexOf(\"--%>\",index);\r\n\t\t\tif(end!=-1){\r\n\t\t\t\tsb.append(source.substring(last,index));\r\n\t\t\t\tint length = end - index + 4;\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"<%--\");\r\n\t\t\t\t\tlength = length - 8;\r\n\t\t\t\t}\r\n\t\t\t\tfor(int i=0;i<length;i++){\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"--%>\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tlast = end + 4;\r\n\t\t}\r\n\t\tif(last != source.length()-1){\r\n\t\t\tsb.append(source.substring(last));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public static String pagefilter(String content){\n //String p = System.getProperty(\"line.separator\") ; //\\r\\n in windows jp\n\n content = content.replaceAll(\"&\",\"&amp;\"); \n content = content.replaceAll(\"<\",\"&lt;\");\n content = content.replaceAll(\">\",\"&gt;\"); \n content = content.replaceAll(\"\\n\",\"<br/>\");\n content = content.replaceAll(\" \",\"&nbsp;\");\n \n \n return content;\n }", "private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n return html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\n \">\", \"&gt;\");\n }", "private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n return html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\n \">\", \"&gt;\");\n }", "private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\">\", \"&gt;\");\r\n\t}", "private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\")\r\n\t\t\t\t.replaceAll(\">\", \"&gt;\");\r\n\t}", "private String escapeHtml(String html) {\n\t\tif (html == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\")\n\t\t\t\t.replaceAll(\">\", \"&gt;\");\n\t}", "private String escapeHtml(String html) {\n\t\tif (html == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\")\n\t\t\t\t.replaceAll(\">\", \"&gt;\");\n\t}", "public static String getStripCommentsTransformationTemplateString()\r\n {\r\n return \r\n \" <!-- StripComments transformation - Copy all XML constructs\\n\"\r\n + \" not mentioned more explicitly later in the same\\n\"\r\n + \" transformation, except for comments, which are omitted. -->\\n\"\r\n + \" <xsl:template match='@*|*|text()|processing-instruction()'>\\n\"\r\n + \" <xsl:copy>\\n\"\r\n + \" <xsl:apply-templates select='@*|*|text()|processing-instruction()|comment()'/>\\n\"\r\n + \" </xsl:copy>\\n\"\r\n + \" </xsl:template>\\n\"\r\n ;\r\n }", "@Test\r\n public void testWriteHTML() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n StringWriter w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \"<span class='comment'>\"+COMMENT+\"</span>\\n\", w.toString());\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \r\n \"<span class='comment'>\"+COMMENTS[0]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[1]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[2]+\"</span>\\n\" +\r\n \"\", w.toString());\r\n }", "public String harmonizeXml(String xmlDoc) {\n\t\treturn xmlDoc.replace(\"\\r\", \"\").replace(\"\\n\", \"\").replace(\"\\t\", \"\").replaceAll(\"> *<\", \"><\").replaceAll(\"^ *\", \"\");\n\t}", "private void cleanComments() throws IOException {\n boolean parsingComment = false;\n PrintWriter writer = new PrintWriter(\"clean.txt\", \"UTF-8\");\n ArrayList<String> symbols = new ArrayList<String>();\n String c = String.valueOf((char) _br.read());\n symbols.add(c);\n while (!c.equals(String.valueOf((char) -1))) {\n if (parsingComment) {\n String scan = \"\";\n while (!scan.endsWith(\"*/\")) {\n c = String.valueOf((char) _br.read());\n if (c.equals(\"\\n\"))\n symbols.add(c);\n scan += c;\n }\n parsingComment = false;\n }\n c = String.valueOf((char) _br.read());\n if (c.equals(\"*\") && symbols.get(symbols.size() - 1).equals(\"/\")) {\n symbols.remove(symbols.size() - 1);\n parsingComment = true;\n continue;\n }\n if (!c.equals(String.valueOf((char) -1)))\n symbols.add(c);\n }\n for (String s : symbols) {\n writer.print(s);\n }\n writer.close();\n _br.close();\n _br = new BufferedReader(new FileReader(\"clean.txt\"));\n }", "public static String getStripCommentsTransformationStylesheetString()\r\n {\r\n return wrapInXSLStylesheet(getStripCommentsTransformationTemplateString());\r\n }", "private String cleanString(String data){\n Pattern ptn = Pattern.compile(\"//.*\");\n Matcher mc = ptn.matcher(data);\n while(mc.find())data = data.replace(mc.group(),\"\");\n ptn = Pattern.compile(\"/\\\\*(.|\\n)*?\\\\*/\");\n mc = ptn.matcher(data);\n while(mc.find()) data = data.replace(mc.group(),\"\");\n return data.trim();\n }", "private String cleanXSS(String unsafe) {\n String safe = Jsoup.clean(unsafe, Whitelist.basic());\n return safe;\n }", "public static String removeHtmlComments(final String page)\n {\n return RegExUtils.removeAll(page, HTML_COMMENT_PATTERN);\n }", "private void cleanPharagraph() {\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?p[^>]*[>]\", \"\");\n\n // replace closing p tag with <br> to indicate paragraph\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?(/)(\\\\s+)?p[^>]*[>]\", \"<br>\");\n }", "protected abstract boolean evalEscapeXml() throws JspException;", "private void removeWhitespace() {\n /*\n * Get rid of comments.\n * Regex breakdown:\n * //.* : Some string that starts with \"//\"\n */\n instruction = instruction.replaceAll(\"//.*\", \"\");\n\n /*\n * Now replace all whitespace with a single space\n * Regex breakdown:\n * \\s+ : Find all whitespace that appear in a chunk\n */\n instruction = instruction.replaceAll(\"\\\\s+\", \" \");\n\n // Get rid of leading/trailing whitespace (if there is any whitespace at\n // the start/end of a line, it will be converted into one space character\n // as a result of the previous line)\n /*\n * Regex breakdown:\n * ^ : At the start of the line...\n * \\s+ : Match whitespace that occurs in a glob\n */\n instruction = instruction.replaceAll(\"^\\\\s+\", \"\");\n /*\n * Regex breakdown:\n * \\s+ : Match whitespace that occurs in a glob\n * $ : At the end of the line\n */\n instruction = instruction.replaceAll(\"\\\\s+$\", \"\");\n }", "public String stripHtml(String content) {\n\n System.out.println(content);\n\n // <p>段落替换为换行\n content = content.replaceAll(\"</p>\", \"tabstr\");\n // <br><br/>替换为换行\n content = content.replaceAll(\"<br/>\", \"tabstr\");\n // 去掉其它的<>之间的东西\n content = content.replaceAll(\"\\\\<.*?>\", \"\");\n content = content.replaceAll(\"(&nbsp;){3,}\", \" \");\n content = content.replaceAll(\"(&nbsp;){2,}\", \" \");\n content = content.replaceAll(\"&nbsp;\", \" \");\n System.out.println(content);\n\n return content;\n }", "public static String removeAndEscapeHTML( String s ) {\n if ( s==null ) return \"\";\n else return Utilities.escapeHTML( Utilities.removeHTML(s) );\n }", "public void stripComments() {\r\n if (command.contains(\"//\")) {\r\n command = command.substring(0, command.indexOf(\"//\"));\r\n }\r\n command = command.replace(\"\\n\", \"\");\r\n command = command.replace(\"\\t\", \"\");\r\n }", "public static String fomatStrForJsp(String str){\t\t\n\t\tif( str==null || str.trim().equals(\"\")) return \"&nbsp;\";\n\t\treturn str;\n\t}", "public static String sanitize(String input){\n\t\tinput.replaceAll(\"&\", \"&amp;\");\n\t\tinput.replaceAll(\"<\", \"&lt;\");\n\t\tinput.replaceAll(\">\", \"&gt;\");\n\t\tinput.replaceAll(\"/\", \"&frasl;\");\n\t\treturn input;\n\t}", "private String cleanup(String bibContent, boolean cut) throws UnsupportedEncodingException{\n\t\tbibContent = bibContent.replace(\"&#150;\", \"-\");\n\t\tbibContent = StringEscapeUtils.unescapeHtml(bibContent);\n\t\t\n\t\tbibContent = bibContent.replaceAll(\"<!-- CHANGE -->\", \"\");\n\t\t\n\t\tif(cut){\n\t\t\tint indexStartI = -1;\n\t\t\tint indexEndI = -1;\n\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\t// cut all content between <i> and </i>\n\t\t\t\tindexStartI = bibContent.indexOf(\"<i>\");\n\t\t\t\tif(indexStartI == -1)\n\t\t\t\t\tindexStartI = bibContent.indexOf(\"<I>\");\n\t\t\t\t\n\t\t\t\tindexEndI = bibContent.indexOf(\"</i>\");\n\t\t\t\tif(indexEndI == -1)\n\t\t\t\t\tindexEndI = bibContent.indexOf(\"</I>\");\n\t\t\t\t\n\t\t\t\tif(indexStartI != -1){\n\t\t\t\t\t// cut string\n\t\t\t\t\tString firstSection = bibContent.substring(0, indexStartI);\n\t\t\t\t\t\n\t\t\t\t\tString secondSection = \"\"; \n\t\t\t\t\tif(indexEndI != -1)// has end tag\n\t\t\t\t\t\tsecondSection = bibContent.substring(indexEndI +4);\n\t\t\t\t\t// else no end tag, remove rest of the string (rest of the string is \"\")\n\t\t\t\t\t\n\t\t\t\t\t// concat\n\t\t\t\t\tbibContent = firstSection + secondSection;\n\t\t\t\t}\n\t\t\t\n\t\t\t// only start i tag is importent (may be closing tag ist missing)\n\t\t\t}while(indexStartI != -1);\n\t\t}else{\n\t\t\tbibContent = bibContent.replaceAll(\"<i>\", \"\");\n\t\t\tbibContent = bibContent.replaceAll(\"<I>\", \"\");\n\t\t\tbibContent = bibContent.replaceAll(\"</i>\", \"\");\n\t\t\tbibContent = bibContent.replaceAll(\"</I>\", \"\");\n\t\t}\n\n\t\tbibContent = bibContent.replace(\"<BR>\", \"\\n\");\n\t\tbibContent = bibContent.replace(\"<br>\", \"\\n\");\n\t\t\n\t\treturn bibContent.trim();\n\t}", "public static String toHTML(String s) {\n\t\ts=replace(s,\"<\",\"&lt;\");\n\t\ts=replace(s,\">\",\"&gt;\");\n\t\ts=replace(s,\"\\n\",\"<br>\\n\");\n\t\treturn s;\n\t}", "private static String convertForHTML(final String src) {\n String s = src;\n for (Map.Entry<String, String> entry: HTML_CONVERSIONS.entrySet()) s = s.replace(entry.getKey(), entry.getValue());\n return s;\n }", "private String renderSpecific( String strHTML )\n {\n String strRender = strHTML;\n strRender = strRender.replaceAll( \"\\\\[lt;\", \"&lt;\" );\n strRender = strRender.replaceAll( \"\\\\[gt;\", \"&gt;\" );\n strRender = strRender.replaceAll( \"\\\\[nbsp;\", \"&nbsp;\" );\n strRender = strRender.replaceAll( \"\\\\[quot;\", \"&quot;\" );\n strRender = strRender.replaceAll( \"\\\\[amp;\", \"&amp;\" );\n strRender = strRender.replaceAll( \"\\\\[hashmark;\", \"#\" );\n\n if ( _strPageUrl != null )\n {\n strRender = strRender.replaceAll( \"#page_url\", _strPageUrl );\n }\n\n return strRender;\n }", "private void emitComment() throws SAXException {\n if (wantsComments) {\n if (longStrBufPending != '\\u0000') {\n appendLongStrBuf(longStrBufPending);\n }\n }\n tokenHandler.comment(longStrBuf, longStrBufLen);\n }", "private String removeHTML(String word) {\r\n\t\tString result = \"\";\r\n\t\t\r\n\t\tString temp = null;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=0;i<word.length();i++) {\r\n\t\t\tchar character = word.charAt(i);\r\n\t\t\t\r\n\t\t\t//if < is found we don't add that text \r\n\t\t\tif(word.charAt(i) == '<') {\r\n\t\t\t\tstartFlag = true;\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t//if < is found we don't add that text \r\n\t\t\tif(startFlag == true) {\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t//System.out.println(word.charAt(i)+\" Removed\");\r\n\t\t\t\t//end bracket > found so we can continue to add now \r\n\t\t\t\tif(character == '>') {\r\n\t\t\t\t\tstartFlag = false;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\t\r\n\t\t\t\tif(i == 0) {\t\t\t\t\r\n\t\t\t\t\tresult = Character.toString(character);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresult += character;\r\n\t\t\t\t}\t\t\r\n\t\t\t\t\r\n\t\t\t}\t\t\t\t\r\n\t\t\t\r\n\t\t}\t\r\n\t\t\ttemp = result;\r\n\t\t\treturn temp;\t\t \r\n\t\t\r\n\t}", "public static Node stripComments(Node xmlXML, Node xmlResult)\r\n throws SAXException,\r\n IOException,\r\n TransformerConfigurationException,\r\n TransformerException \r\n {\r\n DOMResult domResult = xmlResult == null \r\n ? new DOMResult()\r\n : new DOMResult(xmlResult);\r\n return stripComments(xmlXML, domResult); \r\n }", "public String htmlSpecialChar(String string){\n String res = string.replaceAll(\"&\",\"&amp;\");\n res = res.replace(\"'\",\"&#039;\");\n res = res.replace(\"\\\"\",\"&qout;\");\n res = res.replace(\"$\",\"&#036;\");\n res = res.replace(\"%\",\"&#037;\");\n res = res.replace(\"<\",\"&lt;\");\n res = res.replace(\">\",\"&gt;\");\n res = res.replace(\"\\n\",\"\\\\n\");\n return res;\n }", "public static String cssComment2space(String source){\r\n\t\tint index = 0;\r\n\t\tint last = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\twhile((index = source.indexOf(\"/*\",last))!=-1){\r\n\t\t\tint end = source.indexOf(\"*/\",index);\r\n\t\t\tif(end!=-1){\r\n\t\t\t\tsb.append(source.substring(last,index));\r\n\t\t\t\tint length = end - index + 2;\r\n\t\t\t\tfor(int i=0;i<length;i++){\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tlast = end + 2;\r\n\t\t}\r\n\t\tif(last != source.length()-1){\r\n\t\t\tsb.append(source.substring(last));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public String toHTML( String comment ){\n\t\tTextPresentation presentation = new TextPresentation();\n\t\tcomment = updatePresentation( comment, presentation );\n\t\treturn toHTML( comment, presentation );\n\t}", "public static String eraseComments(String input) {\r\n int count = input.length();\r\n StringBuffer sb = new StringBuffer(count);\r\n boolean isCComment = false;\r\n boolean isString = false;\r\n\r\n for (int i = 0; i < count; i++) {\r\n char c = input.charAt(i);\r\n\r\n if (c == '\\\"') {\r\n isString = !isString;\r\n }\r\n\r\n if (!isString && c == '/' && input.charAt(i + 1) == '*') {\r\n isCComment = true;\r\n i++;\r\n } // endif\r\n\r\n if (!isCComment) {\r\n sb.append(c);\r\n }\r\n\r\n if (!isString && c == '*' && input.charAt(i + 1) == '/') {\r\n isCComment = false;\r\n i++;\r\n } // endif\r\n } // endfor\r\n\r\n return sb.toString();\r\n }", "private String removeHTMLTags(final String lineToFix) {\n String fixedLine = lineToFix;\n\n fixedLine = fixedLine.replaceAll(\"<b>\", \"\");\n fixedLine = fixedLine.replaceAll(\"</b>\", \"\");\n fixedLine = fixedLine.replaceAll(\"<i>\", \"\");\n fixedLine = fixedLine.replaceAll(\"</i>\", \"\");\n fixedLine = fixedLine.replaceAll(\"<br>\", \"\");\n fixedLine = fixedLine.replaceAll(\"<br />\", \"\");\n\n return fixedLine;\n }", "@Test\n\tpublic void smart_whitespace() throws Exception\n\t{\n\t\tcheckOutput(\"\\tTrue\", T(\"<?if True?>\\tTrue<?end if?>\", Template.Whitespace.smart));\n\n\t\t// Line feeds will be removed from lines containing only a \"control flow\" tag.\n\t\tcheckOutput(\"True\\n\", T(\"<?if True?>\\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Indentation will also be removed from those lines.\n\t\tcheckOutput(\"True\\n\", T(\" <?if True?>\\nTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Additional text (before and after tag) will leave the line feeds intact.\n\t\tcheckOutput(\"x\\nTrue\\n\", T(\"x<?if True?>\\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\t\tcheckOutput(\" \\nTrue\\n\", T(\"<?if True?> \\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Multiple tags will also leave the line feeds intact.\n\t\tcheckOutput(\"\\nTrue\\n\\n\", T(\"<?if True?><?if True?>\\nTrue\\n<?end if?><?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// For <?print?> and <?printx?> tags the indentation and line feed will not be stripped\n\t\tcheckOutput(\" 42\\n\", T(\" <?print 42?>\\n\", Template.Whitespace.smart));\n\t\tcheckOutput(\" 42\\n\", T(\" <?printx 42?>\\n\", Template.Whitespace.smart));\n\n\t\t// For <?render?> tags the line feed will be stripped, but the indentation will be reused for each line rendered by the call\n\t\tcheckOutput(\" x\\r\\n\", T(\"<?def x?>\\nx\\r\\n<?end def?>\\n <?render x()?>\\n\", Template.Whitespace.smart));\n\n\t\t// But of course \"common\" indentation will be ignored\n\t\tcheckOutput(\"x\\r\\n\", T(\"<?if True?>\\n <?def x?>\\n x\\r\\n <?end def?>\\n <?render x()?>\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// But not on the outermost level, which leads to an esoteric corner case:\n\t\t// The indentation will be output twice (once by the text itself, and once by the render call).\n\t\tcheckOutput(\" x\\r\\n\", T(\" <?def x?>\\n x\\r\\n <?end def?>\\n <?render x()?>\\n\", Template.Whitespace.smart));\n\n\t\t// Additional indentation in the block will be removed.\n\t\tcheckOutput(\"True\\n\", T(\"<?if True?>\\n\\tTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Outer indentation will be kept.\n\t\tcheckOutput(\" True\\n\", T(\" <?if True?>\\n \\tTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Mixed indentation will not be recognized as indentation.\n\t\tcheckOutput(\"\\tTrue\\n\", T(\" <?if True?>\\n\\tTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\t}", "public void formatText(String text){\n\t\ttext = text.replaceAll(\"\\\\<[^>]*>\",\"\");\n\t}", "private String removeCommentsFromSourceCode(String codeString, char[] code, CompilationUnit ast) {\n String commentLessCodeString = codeString;\n for (Object commentObj : ast.getCommentList()) {\n Comment comment = (Comment) commentObj;\n String commentString = \"\";\n int start = comment.getStartPosition();\n int length = comment.getLength();\n if (comment.isLineComment() == Boolean.TRUE) {\n for (int i = start; i < code.length; i++) {\n commentString += code[i];\n if (code[i] == '\\n') {\n break;\n }\n }\n } else {\n for (int i = start; i < start + length; i++) {\n commentString += code[i];\n }\n }\n commentLessCodeString = commentLessCodeString.replace(commentString, \"\");\n }\n return commentLessCodeString;\n }", "private String encodeXSS(String s) { \n if (s == null || \"\".equals(s)) { \n return s; \n } \n StringBuilder sb = new StringBuilder(s.length() + 16); \n for (int i = 0; i < s.length(); i++) { \n char c = s.charAt(i); \n switch (c) { \n \n //handle the '<' and '>' which can be used for constructing <script> and </script> \n case '>': \n sb.append('>'); \n break; \n case '<': \n sb.append('<'); \n break; \n \n //since the html can support the characters using $#number format \n //so here also need to escape '#','&' and quote symbol \n case '\\'': \n sb.append('‘'); \n break; \n case '\\\"': \n sb.append('“'); \n break; \n case '&': \n sb.append('&'); \n break; \n case '\\\\': \n sb.append('\'); \n break; \n case '#': \n sb.append('#'); \n break; \n //if not the special characters ,then output it directly \n default: \n sb.append(c); \n break; \n } \n } \n return sb.toString(); \n }", "public static Node stripComments(Node xmlXML, DOMResult xmlResult)\r\n throws SAXException,\r\n IOException,\r\n TransformerConfigurationException,\r\n TransformerException \r\n {\r\n return transform\r\n (xmlXML, \r\n getStripCommentsTransformationStylesheetDocument(),\r\n xmlResult);\r\n }", "public static String scriptlet2space(String source,boolean contentsOnly){\r\n\t\tint index = 0;\r\n\t\tint last = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\twhile((index = source.indexOf(\"<%\",last))!=-1){\r\n\t\t\tint end = source.indexOf(\"%>\",index);\r\n\t\t\tif(end!=-1){\r\n\t\t\t\tsb.append(source.substring(last,index));\r\n\t\t\t\tint length = end - index + 2;\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"<%\");\r\n\t\t\t\t\tlength = length - 4;\r\n\t\t\t\t}\r\n\t\t\t\tfor(int i=0;i<length;i++){\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"%>\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tlast = end + 2;\r\n\t\t}\r\n\t\tif(last != source.length()-1){\r\n\t\t\tsb.append(source.substring(last));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "private String removeComments(String str) {\n boolean inDQ = false;\n boolean inSQ = false;\n \n String result = str;\n \n for(int i = 0; i < result.length()-1; i++) {\n char c = result.charAt(i);\n \n if(inDQ) {\n if(c == '\\\"' && result.charAt(i-1) != '\\\\') {\n inDQ = false;\n }\n }\n else if(inSQ) {\n if(c == '\\'' && result.charAt(i-1) != '\\\\') {\n inSQ = false;\n }\n }\n else {\n \n // Line comment\n if(c == '/' && result.charAt(i+1) == '/') {\n int newLineIndex = result.indexOf(\"\\n\", i);\n \n result = result.substring(0, i) + result.substring(newLineIndex);\n i--;\n }\n \n // Block comment\n else if(c == '/' && result.charAt(i+1) == '*') {\n int endBlockIndex = result.indexOf(\"*/\", i) + 2;\n \n result = result.substring(0, i) + result.substring(endBlockIndex);\n i--;\n }\n \n // Python comment\n else if(c == '#' && (i == 0 || result.charAt(i-1) == '\\n')) {\n int newLineIndex = result.indexOf(\"\\n\", i);\n \n result = result.substring(0, i) + result.substring(newLineIndex+1); \n i--;\n }\n else if(c == '\\\"') {\n inDQ = true;\n }\n else if(c == '\\'') {\n inSQ = true;\n }\n }\n }\n \n return result;\n }", "public static String removeSparqlComments(String query) {\n\t\treturn query.replaceAll(\"(?m)^\\\\s*#.*?$\", \"\");\n\t}", "@Test\n\tpublic void fixWhiteSpaceTest() {\n\t\tString query1 = \"((hello))\";\n\t\tString query2 = \"\\\"hello my\\\"\";\n\t\tString query3 = \"( hello & goodbye) \";\n\t\t\n\t\tString query1Result = \"( ( hello ) )\";\n\t\tString query2Result = \"\\\" hello my \\\"\";\n\t\tString query3Result = \"( hello & goodbye )\";\n\t\t\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixSpacing(query1));\n\t\tassertEquals(query2Result, queryTest.fixSpacing(query2));\n\t\tassertEquals(query3Result, queryTest.fixSpacing(query3));\n\t}", "static String prettyXml(String xml) {\n\t\tDocument doc = null;\n\t\tOutputFormat format = new OutputFormat(\" \", true);\n\t\tformat.setTrimText(true);\n\t\tStringWriter sw = new StringWriter();\n\t\ttry {\n\t\t\txml = SchemEditUtils.expandAmpersands(xml);\n\t\t\tdoc = Dom4jUtils.getXmlDocument(xml);\n\t\t\tXMLWriter prettyWriter = new XMLWriter(sw, format);\n\t\t\tprettyWriter.write(doc);\n\t\t} catch (Throwable e) {\n\t\t\tprtln(\"prettyXml error: \" + e.getMessage());\n\t\t\treturn \"\";\n\t\t}\n\t\treturn sw.toString();\n\t}", "public static String stripHTML(final String in) {\n\t return in.replaceAll(\"</?(A|a|B|b|BR|br|DD|dd|DL|dl|DT|dt|H2|h2|I|i|LI|li|P|p|PRE|pre|TT|tt|UL|ul|BLOCKQUOTE|blockquote)\\\\s*[^>]*>\",\"\");\n// return in.replaceAll(\"<\\\\w+\\\\s*[^>]>\",\"\");\n //return in.replaceAll(\"<(B|BR)\\\\s*[^>]*>\",\"\");\n\t}", "private StringBuilder stripWhitespace(String description)\n/* */ {\n/* 1650 */ StringBuilder result = new StringBuilder();\n/* */ \n/* */ \n/* 1653 */ int start = 0;\n/* 1654 */ while ((start != -1) && (start < description.length()))\n/* */ {\n/* */ \n/* 1657 */ while ((start < description.length()) && (PatternProps.isWhiteSpace(description.charAt(start)))) {\n/* 1658 */ start++;\n/* */ }\n/* */ \n/* */ \n/* 1662 */ if ((start < description.length()) && (description.charAt(start) == ';')) {\n/* 1663 */ start++;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* 1670 */ int p = description.indexOf(';', start);\n/* 1671 */ if (p == -1)\n/* */ {\n/* */ \n/* 1674 */ result.append(description.substring(start));\n/* 1675 */ start = -1;\n/* */ }\n/* 1677 */ else if (p < description.length()) {\n/* 1678 */ result.append(description.substring(start, p + 1));\n/* 1679 */ start = p + 1;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* */ \n/* 1687 */ start = -1;\n/* */ }\n/* */ } }\n/* 1690 */ return result;\n/* */ }", "public static String getNormalizedDom(String html) {\n \t\n \tString s = Pattern.quote(html.toUpperCase());\n \t//String s = html;\n \t\n \ts = s.replaceAll(\"\\t\", \" \");\n \ts = s.replaceAll(\"\\n\", \" \");\n \ts = s.replaceAll(\" +\", \" \");\n \t//s = s.replaceAll(\"<SCRIPT.*>.*</SCRIPT>\", \"\");\n \ts = s.replaceAll(\"> *\", \">\");\n \ts = s.replaceAll(\" *<\", \"<\");\n \t\n \t/**s = s.replaceAll(\"(< *INPUT\" + wPat + \" \" + txtPat + wPat + \") \" + valPat +\"(\" + wPat + \">)\",\"$1 VALUE='' $2\");\n \ts = s.replaceAll(\"(< *INPUT\" + wPat + \") \" + valPat + \"( \" + wPat + txtPat + wPat + \">)\", \"$1 VALUE='' $2\");\n \t\n \ts = s.replaceAll(\"(< *INPUT\" + wPat + \" \" + pwdPat + wPat + \") \" + valPat +\"(\" + wPat + \">)\",\"$1 VALUE='' $2\");\n \ts = s.replaceAll(\"(< *INPUT\" + wPat + \") \" + valPat + \"( \" + wPat + pwdPat + wPat + \">)\", \"$1 VALUE='' $2\");**/\n \t\n \ts = s.replaceAll(\"(<\\\\w+)[^>]*(>)\",\"$1$2\");\n \t\n \treturn s;\n }", "public static final String escapeHTMLTags(String input) { \r\n if (input == null || input.length() == 0) {\r\n return input;\r\n } \r\n StringBuffer buf = new StringBuffer(input.length());\r\n char ch = ' ';\r\n for (int i = 0; i < input.length(); i++) {\r\n ch = input.charAt(i);\r\n if (ch == '<') {\r\n buf.append(LT);\r\n } else if (ch == '>') {\r\n buf.append(GT);\r\n } else if (ch == '\\'') {\r\n buf.append(S_QUTO);\r\n } else if (ch == '\"') {\r\n buf.append(D_QUTO);\r\n } else {\r\n buf.append(ch);\r\n }\r\n }\r\n return buf.toString();\r\n }", "public static String filter(String text)\n { StringBuffer buffer = new StringBuffer();\n for (int i=0; i<text.length(); i++)\n { char c = text.charAt(i);\n if (c == '<') buffer.append(\"&lt;\");\n else if (c == '>') buffer.append(\"&gt;\");\n else if (c == '\"') buffer.append(\"quot;\");\n else if (c == '&') buffer.append(\"amp;\");\n else buffer.append(c);\n }\n return buffer.toString();\n }", "final String removeHTMLTags(String inputLine)\r\n {\r\n StringBuffer outputLine=new StringBuffer(\"\");\r\n\tboolean foundTag=false;\r\n\tfor(int i=0;i<inputLine.length();i++)\r\n\t{\r\n\t if(inputLine.charAt(i)=='<')\r\n\t foundTag=true;\r\n else if(inputLine.charAt(i)=='>')\r\n\t foundTag=false;\r\n\t else if(foundTag==false)\r\n\t outputLine.append(inputLine.charAt(i));\r\n\t}\r\n\treturn (outputLine.toString());\r\n }", "public void dispatchAsComment(LexicalHandler lh) throws SAXException {}", "public static Document stripComments(Node xml)\r\n throws SAXException,\r\n IOException,\r\n TransformerConfigurationException,\r\n TransformerException \r\n {\r\n return XMLUtil.getOwnerDocument(stripComments(xml, (Node)null));\r\n }", "void prepareMetaTag()\r\n\t{\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=iso-8859-1\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=windows-1252\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=windows-1258\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=us-ascii\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=x-user-defined\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str,\r\n\t\t\t\t\"<meta http-equiv=Content-Type content=\\\"text/html; \\\">\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str,\r\n\t\t\t\t\"<meta http-equiv=Content-Type content=\\\"text/html;\\\">\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str,\r\n\t\t\t\t\"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; \\\">\",\r\n\t\t\t\t\"\");\r\n\t\tstr = replaceStringIgnoreCase(str,\r\n\t\t\t\t\"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;\\\">\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"<head>\",\r\n\t\t\t\t\"<head><meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=UTF-8\\\">\");\r\n\t}", "private void skipWhiteSpace()\n throws Exception\n {\n char currentChar = currentChar();\n char next;\n boolean foundAsterisk = false; // flag to detect closing */ in comments\n \n while (Character.isWhitespace(currentChar) || (currentChar == '/')) \n { // Start of a comment?\n if (currentChar == '/')\n {\n next = source.peekChar();\n \n // Consume comments with '//'\n if (next == '/')\n {\n do currentChar = nextChar();\n while (currentChar != EOL && currentChar != EOF);\n \n if (currentChar == EOL)\n currentChar = nextChar();\n }\n // Consume comments with '/* */'\n else if (next == '*')\n {\n currentChar = nextChar(); // Consume '/'\n do \n { \n currentChar = nextChar();\n if (foundAsterisk && currentChar == '/')\n break;\n else \n foundAsterisk = currentChar == '*';\n } while (currentChar != EOF);\n \n if (currentChar == '/')\n currentChar = nextChar();\n }\n else\n break;\n }\n // Not a comment.\n else {\n currentChar = nextChar(); // consume whitespace character\n }\n }\n }", "private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }", "protected void content(String text) {\n // small hack due to DOXIA-314\n String txt = escapeHTML(text);\n txt = StringUtils.replace(txt, \"&amp;#\", \"&#\");\n write(txt);\n }", "private String clean_fields(String data) {\n\t\treturn data.replace(\"<\", \"\").replace(\">\", \"\");\n\t}", "public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail, boolean doublePunctuationSpaces) {\n/* 92 */ return new XMLStringDefault(this.m_str.trim());\n/* */ }", "protected String completeHtml(String data) {\n if (data.indexOf(\"<html>\") == -1) {\n\t\t\tdata = \"<html><head></head><body style='margin:0;padding:0;'>\"\n\t\t\t\t\t+ data + \"</body></html>\";\n }\n\n\t\treturn data;\n\t}", "private void normaliseWhitespace() {\t\t\t\r\n\t\tdocument.normalizeDocument();\r\n\t\t\r\n\t\tif (document.getDocumentElement() == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tfinal Queue<Node> queue = Lists.newLinkedList();\r\n\t\tqueue.add(document.getDocumentElement());\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tfinal Node node = queue.remove();\r\n\t\t\tfinal NodeList children = node.getChildNodes();\r\n\t\t\tfor (int index = 0; index < children.getLength(); index++) {\r\n\t\t\t\tqueue.add(children.item(index));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (node.getNodeType() == Node.TEXT_NODE) {\r\n\t\t\t\tnode.setTextContent(node.getTextContent().trim());\r\n\t\t\t\tif (node.getTextContent().isEmpty()) {\r\n\t\t\t\t\tnode.getParentNode().removeChild(node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static String escapeTags(final StringBuffer buf) {\n for (int i = 0; i < buf.length(); i++) {\n char ch = buf.charAt(i);\n if (ch == '<') {\n buf.replace(i, i + 1, \"&lt;\");\n } else if (ch == '>') {\n buf.replace(i, i + 1, \"&gt;\");\n }\n }\n return buf.toString();\n }", "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.comments.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "private String filterComments(String[] initial) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int a = 0; a < initial.length; a++) {\n\t\t\tString potential = initial[a];\n\t\t\tint index = potential.indexOf(START_COMMENT);\n\t\t\tif(index != -1)\n\t\t\t\tpotential = potential.substring(0,index);\n\t\t\tif (!potential.trim().isEmpty())\n\t\t\t\tanswer.append(potential + \" \");\n\t\t}\n\t\treturn answer.toString();\n\t}", "public static void encode(ArrayList<Token> tokens) {\n String header = \"<!DOCTYPE html>\\n<html>\\n\\t<style>body { background-color: black; } </style>\\n\";\n String comment = \"\\t<!--\\n\\t\";\n String body = \"\\n\\t<body>\\n\\t\\t<p>\\n\"; \n String type = \"\";\n int count = 1;\n\n for (Token t : tokens) {\n type = t.getType();\n\n if (!(type.equals(\"NEWLINE\") || type.equals(\"TAB\") || type.equals(\"SPACE\"))) {\n comment = comment + t.getTokenString() + \" \";\n\n if (count % 8 == 0) {\n comment += \"\\n\\t\";\n }\n\n count++;\n }\n }\n\n comment += \"\\n\\t-->\";\n\n for (Token t : tokens) {\n body = body + setColour(t);\n }\n \n body = body + \"\\t\\t</p>\\n\\t</body>\\n</html>\";\n System.out.print(header + comment + body);\n }", "public static String removeRefHtmlDev(final String text) {\r\n\t\treturn REF_HTML_DEV_PATTERN.matcher(text).replaceAll(\"\");\r\n\t}", "protected String parseHtml(String html) {\n\t\tString tokens = new String();\n\t\ttry {\n\t\t\tDocument document = Jsoup.parse(html);\n\t\t\tdocument.select(\"code,pre\").remove();\n\t\t\tString textcontent = document.text();\n\t\t\tArrayList<String> cleaned = removeSpecialChars(textcontent);\n\t\t\tfor (String token : cleaned) {\n\t\t\t\ttokens += token + \" \";\n\t\t\t}\n\t\t} catch (Exception exc) {\n\t\t\t// handle the exception\n\t\t}\n\t\treturn tokens;\n\t}", "@Test\n public void commentGetHtmlStart() {\n // White-Box! Temporär mit NotNull-Test ersetzt\n // assertEquals(\"<i><font color=\\\"grey\\\">\", comment.htmlStart());\n assertNotNull(comment.htmlStart());\n }", "protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }", "public static void openComment() {\n Log.write(\"<!-- \");\n }", "public static String ClearJavaScriptTags(String strHTML) {\r\n\t\tstrHTML = strHTML.replaceAll(\"\\n\", \"<br/>\");\r\n\t\tString nohtml = strHTML.replaceAll(\"<script>\", \"\");\r\n\t\tnohtml = nohtml.replaceAll(\"</script>\", \"\");\r\n\t\treturn nohtml;\r\n\t\t// strHTML.rep\r\n\t}", "public static String removeHTML(String str, boolean addSpace) {\n if (str == null) return \"\";\n StringBuffer ret = new StringBuffer(str.length());\n int start = 0;\n int beginTag = str.indexOf(\"<\");\n int endTag = 0;\n if (beginTag == -1)\n return str;\n \n while (beginTag >= start) {\n if (beginTag > 0) {\n ret.append(str.substring(start, beginTag));\n \n // replace each tag with a space (looks better)\n if (addSpace) ret.append(\" \");\n }\n endTag = str.indexOf(\">\", beginTag);\n \n // if endTag found move \"cursor\" forward\n if (endTag > -1) {\n start = endTag + 1;\n beginTag = str.indexOf(\"<\", start);\n }\n // if no endTag found, get rest of str and break\n else {\n ret.append(str.substring(beginTag));\n break;\n }\n }\n // append everything after the last endTag\n if (endTag > -1 && endTag + 1 < str.length()) {\n ret.append(str.substring(endTag + 1));\n }\n return ret.toString().trim();\n }", "protected String preprocessSQL(String sql, QueryParameters parameters, Dialect dialect)\n \t\t\tthrows HibernateException {\n \n \t\tsql = applyLocks( sql, parameters.getLockOptions(), dialect );\n \n \t\treturn getFactory().getSettings().isCommentsEnabled() ?\n \t\t\t\tprependComment( sql, parameters ) : sql;\n \t}", "private void removeComments(Node node) {\n for (int i = 0; i < node.childNodeSize();) {\n Node child = node.childNode(i);\n if (child.nodeName().equals(\"#comment\")) {\n child.remove();\n } else {\n removeComments(child);\n i++;\n }\n }\n }", "private String jsf22Bugfix() {\n return \"\";\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.removeComments(\"!}1w/G=6\");\n assertEquals(\"!}1w/G=6\", string0);\n }", "public static String stripComments(String s, ParseResult result) {\n\t\tint commentStart = s.indexOf(\";\");\n\t\tif (commentStart != -1) {\n\t\t\ts = s.substring(0, commentStart);\n\t\t\tresult.commentStartPos = commentStart;\n\t\t\t// undo the effect escape() has had on commas\n\t\t\tint index = s.indexOf(\" , \");\n\t\t\twhile (index > -1) {\n\t\t\t\tresult.commentStartPos -= 2;\n\t\t\t\tindex = s.indexOf(\" , \", index + 3);\n\t\t\t}\n\t\t}\n\t\treturn s.trim();\n\t}", "public String toHTML () {\n // TODO barely more than a stub\n // TODO should use CSS rather than header tags\n StringBuffer ret = new StringBuffer ( );\n ret.append (\"<div class=\\\"comment\\\"\" +\n \"style=\\\"margin-left: \" +\n Integer.toString (nestLevel * 24) +\n \"pt\\\">\\n\");\n ret.append (\"<span class=\\\"cmtcredit\\\">Posted by \" + poster + \n \" at \" + date + \"</span><br>\");\n if (subject != null) {\n ret.append (\"<span class=\\\"cmtsubj\\\">\" + subject + \"</span><br>\\n\");\n }\n ret.append (\"<div class=\\\"cmtbody\\\">\" + body + \"</div>\\n\");\n String ipaddr = properties.get (\"poster_ip\");\n if (ipaddr != null) {\n ret.append (\"<br>&nbsp;<br>IP address: \" + ipaddr + \"<br>\\n\");\n }\n if (!replies.isEmpty ()) {\n ret.append (\"<p class=\\\"fill2\\\"></p>\\n\");\n }\n for (Comment rep : replies) {\n ret.append (rep.toHTML());\n }\n ret.append (\"<p class=\\\"fill2\\\"></p>\\n\");\n ret.append (\"</div>\"); // Close div class comment\n return ret.toString();\n }", "static String eraseXML (StringBuffer fileTextWithXML) {\n\t\tboolean inTag = false;\n\t\tint length = fileTextWithXML.length();\n\t\tStringBuffer fileText = new StringBuffer();\n\t\tfor (int i=0; i<length; i++) {\n\t\t\tchar c = fileTextWithXML.charAt(i);\n\t\t\tif(c == '<') inTag = true;\n\t\t\tif (!inTag) fileText.append(c);\n\t\t\tif(c == '>') inTag = false;\n\t\t}\n\t\treturn fileText.toString();\n\t}", "@org.junit.Test\n public static final void testSgmlShortTags() {\n junit.framework.TestCase.assertEquals(\"<p></p>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testSgmlShortTags()|0\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<p/b/\")));// Short-tag discarded.\n\n junit.framework.TestCase.assertEquals(\"<p></p>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testSgmlShortTags()|1\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<p<b>\")));// Discard <b attribute\n\n // This behavior for short tags is not ideal, but it is safe.\n junit.framework.TestCase.assertEquals(\"<p href=\\\"/\\\">first part of the text&lt;/&gt; second part</p>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testSgmlShortTags()|2\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<p<a href=\\\"/\\\">first part of the text</> second part\")));\n }", "public static String HTMLEncode(String str) {\n\t\tif(null == str)\n\t\t\treturn \"null\";\n\t\tStringBuffer strbuf = new StringBuffer(str.length());\n\t\tchar tmp;\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\ttmp = str.charAt(i);\n\t\t\tif('<' == tmp) {\n\t\t\t\tstrbuf.append(\"&lt;\");\n\t\t\t} else if('>' == tmp) {\n\t\t\t\tstrbuf.append(\"&gt;\");\n\t\t\t} else {\n\t\t\t\tstrbuf.append(tmp);\n\t\t\t}\n\t\t}\n\t\treturn strbuf.toString();\n\t}", "public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}", "public static String encodeHtml(String str) {\n StringBuffer unencodedContent = new StringBuffer(str.length());\n Matcher fixCharMatch = encodeCharactersPattern.matcher(str);\n while (fixCharMatch.find()) {\n fixCharMatch.appendReplacement(unencodedContent, \"&#\" + fixCharMatch.group(1).codePointAt(0) + \";\");\n }\n fixCharMatch.appendTail(unencodedContent);\n return unencodedContent.toString();\n }", "public static final String StringToSafeHtml(final Object o) {\n\t\t\n\t\tfinal String string = Convert.Any.toString(o, null);\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn string.replace(\"\\r\", \"\").replace(\">\\n<\", \"><\").replace(\"<br>\", \"\\n\").replace(\"<p>\", \"\\n\\n\").replace(\"</p>\", \"\").replace(\"&#13;\", \"\\n\").replace(\" \\n\", \"\\n\")\n\t\t\t\t.replace(\"\\n\\n\\n\", \"\\n\\n\").replace(\" \", \" &nbsp;\").replace(\"\\t\", \" &nbsp; &nbsp;\").replace(\"<\", \"&lt;\").replace(\"\\n\\n\", \"<p>\").replace(\"\\n\", \"<br>\");\n\t}", "private void preserveNecessaryTag() {\n Whitelist whitelist = Whitelist.none();\n whitelist.addTags(\"br\", \"h2\", \"a\", \"img\", \"p\", \"b\", \"i\", \"pre\", \"li\");\n\n // preserve img and its src value\n whitelist.addAttributes(\"img\", \"src\");\n // allow this protocol inside img src attribute value\n whitelist.addProtocols(\"img\", \"src\", \"http\", \"https\", \"data\", \"cid\");\n\n // preserve anchor and its href value\n whitelist.addAttributes(\"a\", \"href\");\n // allow this protocols value inside href attribute value\n whitelist.addProtocols(\"a\", \"href\", \"http\", \"https\", \"data\", \"cid\");\n\n postBodyHTMLContent = Jsoup.clean(postBodyHTMLContent, whitelist);\n }", "private void commentStates() throws SAXException, IOException {\n CommentState state = CommentState.COMMENT_START_STATE;\n for (;;) {\n char c = read();\n switch (state) {\n case COMMENT_START_STATE:\n /*\n * Comment start state\n * \n * \n * Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment\n * start dash state.\n */\n state = CommentState.COMMENT_START_DASH_STATE;\n continue;\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Parse error.\n */\n err(\"Premature end of comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Switch to the data state.\n */\n return;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append the input character to the\n * comment token's data.\n */\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n case COMMENT_START_DASH_STATE:\n /*\n * Comment start dash state\n * \n * Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment end\n * state\n */\n state = CommentState.COMMENT_END_STATE;\n continue;\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Parse error.\n */\n err(\"Premature end of comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Switch to the data state.\n */\n return;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append a U+002D HYPHEN-MINUS (-)\n * character and the input character to the comment\n * token's data.\n */\n appendToComment('-');\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n case COMMENT_STATE:\n /*\n * Comment state Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment end\n * dash state\n */\n state = CommentState.COMMENT_END_DASH_STATE;\n continue;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append the input character to the\n * comment token's data.\n */\n appendToComment(c);\n /*\n * Stay in the comment state.\n */\n continue;\n }\n case COMMENT_END_DASH_STATE:\n /*\n * Comment end dash state Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment end\n * state\n */\n state = CommentState.COMMENT_END_STATE;\n continue;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append a U+002D HYPHEN-MINUS (-)\n * character and the input character to the comment\n * token's data.\n */\n appendToComment('-');\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n case COMMENT_END_STATE:\n /*\n * Comment end dash state Consume the next input character:\n */\n switch (c) {\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Emit the comment\n * token.\n */\n emitComment();\n /*\n * Switch to the data state.\n */\n return;\n case '-':\n /* U+002D HYPHEN-MINUS (-) Parse error. */\n err(\"Consecutive hyphens did not terminate a comment.\");\n /*\n * Append a U+002D HYPHEN-MINUS (-) character to the\n * comment token's data.\n */\n appendToComment('-');\n /*\n * Stay in the comment end state.\n */\n continue;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Parse error.\n */\n err(\"Consecutive hyphens did not terminate a comment.\");\n /*\n * Append two U+002D HYPHEN-MINUS (-) characters and\n * the input character to the comment token's data.\n */\n appendToComment('-');\n appendToComment('-');\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n }\n }\n }", "protected int scanComment () throws HTMLParseException {\r\n int startvalue = index - 1;\r\n int i = -1;\r\n int j = index;\r\n while (j+2 < length) {\r\n if (pagepart[j] == '-' &&\r\n pagepart[j + 1] == '-' &&\r\n pagepart[j + 2] == '>') {\r\n i = j;\r\n break;\r\n }\r\n j++;\r\n }\r\n if (i > -1) {\r\n index = i + 2;\r\n nextToken = MT;\r\n match (MT);\r\n stringLength = index - startvalue;\r\n return COMMENT;\r\n }\r\n block.setRest (startvalue);\r\n return END;\r\n }", "@Test\n public void commentGetHtmlEnd() {\n // White-Box! Temporär mit NotNull-Test ersetzt\n // assertEquals(\"</i></font><br />\", comment.htmlEnd());\n assertNotNull(comment.htmlStart());\n }", "void unsetComments();", "public static String createValidContent(final String string) {\n\t\treturn Strings.replace(string, XML_ENTITY_CHARS, XML_ENTITY_REPLACMENTS); //do the replacements for the special XML symbols and return the results\n\t}", "public void writeComment(Object data)\n throws IOException\n {\n closeStart();\n\n out.write(\"<!--\");\n if (data != null) {\n String comment = data.toString();\n int length = comment.length();\n boolean sawDash = false;\n\n // \"--\" illegal in comments, expand it\n for (int i = 0; i < length; i++) {\n char c = comment.charAt(i);\n if (c == '-') {\n if (sawDash) {\n out.write(' ');\n } else {\n sawDash = true;\n }\n } else {\n sawDash = false;\n }\n out.write(c);\n }\n if (sawDash)\n out.write(' ');\n }\n out.write(\"-->\");\n }", "public static String commentTag(CommentUnit comment) {\n\t\treturn \"\\t\\t\\t<comm cntt=\\\"\" + comment.toString() + \"\\\"/>\\n\";\n\t}", "private void prepArticle(Element articleContent) {\n // we don't need to do this, we don't care\n cleanStyles(articleContent);\n // this replaces any break element or an nbsp with a plain break\n // element.\n // not needed. We will deal with breaks as we deal with breaks\n // killBreaks(articleContent);\n\n /* Clean out junk from the article content */\n cleanConditionally(articleContent, \"form\");\n clean(articleContent, \"object\");\n clean(articleContent, \"h1\");\n\n /**\n * If there is only one h2, they are probably using it as a header and not a subheader, so remove it\n * since we already have a header.\n ***/\n if (articleContent.getElementsByTag(\"h2\").size() == 1) {\n clean(articleContent, \"h2\");\n }\n clean(articleContent, \"iframe\");\n\n cleanHeaders(articleContent);\n\n /*\n * Do these last as the previous stuff may have removed junk that will affect these\n */\n cleanConditionally(articleContent, \"table\");\n cleanConditionally(articleContent, \"ul\");\n //could have no children, will crash then\n if (articleContent.children().size() != 0) {\n cleanConditionally(articleContent.child(0), \"div\");\n }\n\n /* Remove extra paragraphs */\n Elements articleParagraphs = articleContent.getElementsByTag(\"p\");\n for (Element para : articleParagraphs) {\n int imgCount = para.getElementsByTag(\"img\").size();\n int embedCount = para.getElementsByTag(\"embed\").size();\n int objectCount = para.getElementsByTag(\"object\").size();\n\n if (imgCount == 0 && embedCount == 0 && objectCount == 0 && para.text().matches(\"\\\\s*\")) {\n para.remove();\n }\n }\n\n Elements parasWithPreceedingBreaks = articleContent.getElementsByTag(\"br + p\");\n for (Element pe : parasWithPreceedingBreaks) {\n Element brElement = pe.previousElementSibling();\n brElement.remove();\n }\n }", "public String stripBadXMLCharacters( String xml , String rep )\r\n\t{\r\n\t\tStringBuffer result\t= new StringBuffer();\r\n\r\n\t\tint codePoint;\r\n\r\n\t\tif ( ( xml != null ) && ( xml.length() > 0 ) )\r\n\t\t{\r\n\t\t\tint i = 0;\r\n\r\n\t\t\twhile ( i < xml.length() )\r\n\t\t\t{\r\n\t \t\tcodePoint\t= xml.codePointAt( i );\r\n\r\n\t\t\t\tif\t(\t( codePoint == 0x9 ) ||\r\n\t\t\t\t\t\t( codePoint == 0xA ) ||\r\n\t\t\t\t\t\t( codePoint == 0xD ) ||\r\n\t\t\t\t\t\t( ( codePoint >= 0x20 ) && ( codePoint <= 0xD7FF ) ) ||\r\n\t\t\t\t\t\t( ( codePoint >= 0xE000 ) && ( codePoint <= 0xFFFD ) ) ||\r\n\t\t\t\t\t\t( ( codePoint >= 0x10000 ) && ( codePoint <= 0x10FFFF ) )\r\n\t\t\t\t\t)\r\n\t\t\t\t{\r\n\t\t\t\t\tresult.append( Character.toChars( codePoint ) );\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tresult.append( rep );\r\n\t\t\t\t}\r\n\r\n\t\t\t\ti += Character.charCount( codePoint );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result.toString();\r\n\t}", "@Override\n protected void visitHtmlCommentNode(HtmlCommentNode node) {\n errorReporter.report(\n node.getSourceLocation(), UNSUPPORTED_HTML_COMMENTS_FOR_IDOM, node.toSourceString());\n }", "private XDOM prepareWikiMacroContent(MacroTransformationContext context)\n {\n XDOM xdom = this.content.clone();\n\n // Macro code segment is always parsed into a separate xdom document. Now if this code segment starts with\n // another macro block, it will always be interpreted as a block macro regardless of the current wiki macro's\n // context (because as far as the nested macro is concerned, it starts on a new line). This will introduce\n // unnecessary paragraph elements when the wiki macro is used inline, so we need to force such opening macro\n // blocks to behave as inline macros if the wiki macro is used inline.\n if (context.isInline()) {\n List<Block> children = xdom.getChildren();\n if (children.size() > 0 && children.get(0) instanceof MacroBlock) {\n MacroBlock old = (MacroBlock) children.get(0);\n MacroBlock replacement = new MacroBlock(old.getId(), old.getParameters(), old.getContent(), true);\n xdom.replaceChild(replacement, old);\n }\n }\n\n return xdom;\n }", "@Override\n protected void generateCommonConstants(StringBuilder outputCode) {\n outputCode\n .append('\\n')\n .append(\"/**\\n\")\n .append(\" * Matches all tags, HTML comments, and DOCTYPEs in tag soup HTML.\\n\")\n .append(\" * By removing these, and replacing any '<' or '>' characters with\\n\")\n .append(\" * entities we guarantee that the result can be embedded into a\\n\")\n .append(\" * an attribute without introducing a tag boundary.\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!RegExp}\\n\")\n .append(\" */\\n\")\n .append(\"const $$HTML_TAG_REGEX_ = \")\n .append(convertFromJavaRegex(EscapingConventions.HTML_TAG_CONTENT))\n .append(\"g;\\n\");\n\n outputCode\n .append(\"\\n\")\n .append(\"/**\\n\")\n .append(\" * Matches all occurrences of '<'.\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!RegExp}\\n\")\n .append(\" */\\n\")\n .append(\"const $$LT_REGEX_ = /</g;\\n\");\n\n outputCode\n .append('\\n')\n .append(\"/**\\n\")\n .append(\" * Maps lower-case names of innocuous tags to true.\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!Object<string, boolean>}\\n\")\n .append(\" */\\n\")\n .append(\"const $$SAFE_TAG_WHITELIST_ = \")\n .append(toJsStringSet(TagWhitelist.FORMATTING.asSet()))\n .append(\";\\n\");\n\n outputCode\n .append('\\n')\n .append(\"/**\\n\")\n .append(\" * Pattern for matching attribute name and value, where value is single-quoted\\n\")\n .append(\" * or double-quoted.\\n\")\n .append(\" * See http://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#attributes-0\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!RegExp}\\n\")\n .append(\" */\\n\")\n .append(\"const $$HTML_ATTRIBUTE_REGEX_ = \")\n .append(convertFromJavaRegex(Sanitizers.HTML_ATTRIBUTE_PATTERN))\n .append(\"g;\\n\");\n }", "public String getContent() {\n String s = page;\n\n // Bliki doesn't seem to properly handle inter-language links, so remove manually.\n s = LANG_LINKS.matcher(s).replaceAll(\" \");\n\n wikiModel.setUp();\n s = getTitle() + \"\\n\" + wikiModel.render(textConverter, s);\n wikiModel.tearDown();\n\n // The way the some entities are encoded, we have to unescape twice.\n s = StringEscapeUtils.unescapeHtml(StringEscapeUtils.unescapeHtml(s));\n\n s = REF.matcher(s).replaceAll(\" \");\n s = HTML_COMMENT.matcher(s).replaceAll(\" \");\n\n // Sometimes, URL bumps up against comments e.g., <!-- http://foo.com/-->\n // Therefore, we want to remove the comment first; otherwise the URL pattern might eat up\n // the comment terminator.\n s = URL.matcher(s).replaceAll(\" \");\n s = DOUBLE_CURLY.matcher(s).replaceAll(\" \");\n s = HTML_TAG.matcher(s).replaceAll(\" \");\n\n return s;\n }", "private String escapeXML(String string) {\n if (string == null)\n return \"null\";\n StringBuffer sb = new StringBuffer();\n int length = string.length();\n for (int i = 0; i < length; ++i) {\n char c = string.charAt(i);\n switch (c) {\n case '&':\n sb.append(\"&amp;\");\n break;\n case '<':\n sb.append(\"&lt;\");\n break;\n case '>':\n sb.append(\"&gt;\");\n break;\n case '\\'':\n sb.append(\"&#039;\");\n break;\n case '\"':\n sb.append(\"&quot;\");\n break;\n default:\n sb.append(c);\n }\n }\n return sb.toString();\n }" ]
[ "0.60536784", "0.5599177", "0.5571442", "0.5571442", "0.5569304", "0.55550176", "0.55058146", "0.55058146", "0.54754966", "0.5454447", "0.53962994", "0.53943306", "0.5338894", "0.5311469", "0.51796764", "0.5168733", "0.5165021", "0.515128", "0.5145366", "0.51382655", "0.51378673", "0.51345515", "0.51151943", "0.50903493", "0.5054609", "0.50040567", "0.49821132", "0.4947396", "0.49439216", "0.49292353", "0.48988086", "0.48973277", "0.48917416", "0.48687422", "0.48595577", "0.48337847", "0.48234555", "0.48071927", "0.480497", "0.47999653", "0.47938016", "0.47736225", "0.47557017", "0.4755186", "0.4730552", "0.4728998", "0.47147986", "0.47125143", "0.46979022", "0.46836948", "0.46745974", "0.46706137", "0.46634868", "0.46570706", "0.4650308", "0.4649444", "0.4629993", "0.46261325", "0.46142697", "0.4613879", "0.46065032", "0.46051037", "0.45983163", "0.45695367", "0.45592523", "0.45111197", "0.45052785", "0.4499428", "0.44989133", "0.44965315", "0.4492438", "0.4489985", "0.44890818", "0.44724163", "0.44697693", "0.44657815", "0.44625705", "0.44529232", "0.44494766", "0.4445892", "0.4441055", "0.44366232", "0.44345143", "0.4434504", "0.44282055", "0.442589", "0.4425562", "0.44215322", "0.44179177", "0.4413999", "0.44139662", "0.4405942", "0.43959054", "0.4395903", "0.4389926", "0.43837926", "0.4382986", "0.43822962", "0.43815348", "0.4374939" ]
0.6111083
0
Replace comments of the JSP with whitespaces.
public static String jspComment2space(String source,boolean contentsOnly){ int index = 0; int last = 0; StringBuffer sb = new StringBuffer(); while((index = source.indexOf("<%--",last))!=-1){ int end = source.indexOf("--%>",index); if(end!=-1){ sb.append(source.substring(last,index)); int length = end - index + 4; if(contentsOnly){ sb.append("<%--"); length = length - 8; } for(int i=0;i<length;i++){ sb.append(" "); } if(contentsOnly){ sb.append("--%>"); } } else { break; } last = end + 4; } if(last != source.length()-1){ sb.append(source.substring(last)); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String comment2space(String source,boolean contentsOnly){\r\n\t\tsource = jspComment2space(source,contentsOnly);\r\n\t\tsource = FuzzyXMLUtil.comment2space(source,contentsOnly);\r\n\t\treturn source;\r\n\t}", "private void removeWhitespace() {\n /*\n * Get rid of comments.\n * Regex breakdown:\n * //.* : Some string that starts with \"//\"\n */\n instruction = instruction.replaceAll(\"//.*\", \"\");\n\n /*\n * Now replace all whitespace with a single space\n * Regex breakdown:\n * \\s+ : Find all whitespace that appear in a chunk\n */\n instruction = instruction.replaceAll(\"\\\\s+\", \" \");\n\n // Get rid of leading/trailing whitespace (if there is any whitespace at\n // the start/end of a line, it will be converted into one space character\n // as a result of the previous line)\n /*\n * Regex breakdown:\n * ^ : At the start of the line...\n * \\s+ : Match whitespace that occurs in a glob\n */\n instruction = instruction.replaceAll(\"^\\\\s+\", \"\");\n /*\n * Regex breakdown:\n * \\s+ : Match whitespace that occurs in a glob\n * $ : At the end of the line\n */\n instruction = instruction.replaceAll(\"\\\\s+$\", \"\");\n }", "public void stripComments() {\r\n if (command.contains(\"//\")) {\r\n command = command.substring(0, command.indexOf(\"//\"));\r\n }\r\n command = command.replace(\"\\n\", \"\");\r\n command = command.replace(\"\\t\", \"\");\r\n }", "private void cleanComments() throws IOException {\n boolean parsingComment = false;\n PrintWriter writer = new PrintWriter(\"clean.txt\", \"UTF-8\");\n ArrayList<String> symbols = new ArrayList<String>();\n String c = String.valueOf((char) _br.read());\n symbols.add(c);\n while (!c.equals(String.valueOf((char) -1))) {\n if (parsingComment) {\n String scan = \"\";\n while (!scan.endsWith(\"*/\")) {\n c = String.valueOf((char) _br.read());\n if (c.equals(\"\\n\"))\n symbols.add(c);\n scan += c;\n }\n parsingComment = false;\n }\n c = String.valueOf((char) _br.read());\n if (c.equals(\"*\") && symbols.get(symbols.size() - 1).equals(\"/\")) {\n symbols.remove(symbols.size() - 1);\n parsingComment = true;\n continue;\n }\n if (!c.equals(String.valueOf((char) -1)))\n symbols.add(c);\n }\n for (String s : symbols) {\n writer.print(s);\n }\n writer.close();\n _br.close();\n _br = new BufferedReader(new FileReader(\"clean.txt\"));\n }", "public static String fomatStrForJsp(String str){\t\t\n\t\tif( str==null || str.trim().equals(\"\")) return \"&nbsp;\";\n\t\treturn str;\n\t}", "public static String cssComment2space(String source){\r\n\t\tint index = 0;\r\n\t\tint last = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\twhile((index = source.indexOf(\"/*\",last))!=-1){\r\n\t\t\tint end = source.indexOf(\"*/\",index);\r\n\t\t\tif(end!=-1){\r\n\t\t\t\tsb.append(source.substring(last,index));\r\n\t\t\t\tint length = end - index + 2;\r\n\t\t\t\tfor(int i=0;i<length;i++){\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tlast = end + 2;\r\n\t\t}\r\n\t\tif(last != source.length()-1){\r\n\t\t\tsb.append(source.substring(last));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public static String getStripCommentsTransformationTemplateString()\r\n {\r\n return \r\n \" <!-- StripComments transformation - Copy all XML constructs\\n\"\r\n + \" not mentioned more explicitly later in the same\\n\"\r\n + \" transformation, except for comments, which are omitted. -->\\n\"\r\n + \" <xsl:template match='@*|*|text()|processing-instruction()'>\\n\"\r\n + \" <xsl:copy>\\n\"\r\n + \" <xsl:apply-templates select='@*|*|text()|processing-instruction()|comment()'/>\\n\"\r\n + \" </xsl:copy>\\n\"\r\n + \" </xsl:template>\\n\"\r\n ;\r\n }", "public static String getStripCommentsTransformationStylesheetString()\r\n {\r\n return wrapInXSLStylesheet(getStripCommentsTransformationTemplateString());\r\n }", "private void skipWhiteSpace()\n throws Exception\n {\n char currentChar = currentChar();\n char next;\n boolean foundAsterisk = false; // flag to detect closing */ in comments\n \n while (Character.isWhitespace(currentChar) || (currentChar == '/')) \n { // Start of a comment?\n if (currentChar == '/')\n {\n next = source.peekChar();\n \n // Consume comments with '//'\n if (next == '/')\n {\n do currentChar = nextChar();\n while (currentChar != EOL && currentChar != EOF);\n \n if (currentChar == EOL)\n currentChar = nextChar();\n }\n // Consume comments with '/* */'\n else if (next == '*')\n {\n currentChar = nextChar(); // Consume '/'\n do \n { \n currentChar = nextChar();\n if (foundAsterisk && currentChar == '/')\n break;\n else \n foundAsterisk = currentChar == '*';\n } while (currentChar != EOF);\n \n if (currentChar == '/')\n currentChar = nextChar();\n }\n else\n break;\n }\n // Not a comment.\n else {\n currentChar = nextChar(); // consume whitespace character\n }\n }\n }", "void unsetComments();", "public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}", "public void clear_defineSetupPage_comments() {\r\n\t\tClearText(DefineSetup_Cmnts_txtBx);\r\n\t}", "public static String removeHtmlComments(final String page)\n {\n return RegExUtils.removeAll(page, HTML_COMMENT_PATTERN);\n }", "private void removeComments(Node node) {\n for (int i = 0; i < node.childNodeSize();) {\n Node child = node.childNode(i);\n if (child.nodeName().equals(\"#comment\")) {\n child.remove();\n } else {\n removeComments(child);\n i++;\n }\n }\n }", "public static String eraseComments(String input) {\r\n int count = input.length();\r\n StringBuffer sb = new StringBuffer(count);\r\n boolean isCComment = false;\r\n boolean isString = false;\r\n\r\n for (int i = 0; i < count; i++) {\r\n char c = input.charAt(i);\r\n\r\n if (c == '\\\"') {\r\n isString = !isString;\r\n }\r\n\r\n if (!isString && c == '/' && input.charAt(i + 1) == '*') {\r\n isCComment = true;\r\n i++;\r\n } // endif\r\n\r\n if (!isCComment) {\r\n sb.append(c);\r\n }\r\n\r\n if (!isString && c == '*' && input.charAt(i + 1) == '/') {\r\n isCComment = false;\r\n i++;\r\n } // endif\r\n } // endfor\r\n\r\n return sb.toString();\r\n }", "private String cleanString(String data){\n Pattern ptn = Pattern.compile(\"//.*\");\n Matcher mc = ptn.matcher(data);\n while(mc.find())data = data.replace(mc.group(),\"\");\n ptn = Pattern.compile(\"/\\\\*(.|\\n)*?\\\\*/\");\n mc = ptn.matcher(data);\n while(mc.find()) data = data.replace(mc.group(),\"\");\n return data.trim();\n }", "public static void openComment() {\n Log.write(\"<!-- \");\n }", "private String removeCommentsFromSourceCode(String codeString, char[] code, CompilationUnit ast) {\n String commentLessCodeString = codeString;\n for (Object commentObj : ast.getCommentList()) {\n Comment comment = (Comment) commentObj;\n String commentString = \"\";\n int start = comment.getStartPosition();\n int length = comment.getLength();\n if (comment.isLineComment() == Boolean.TRUE) {\n for (int i = start; i < code.length; i++) {\n commentString += code[i];\n if (code[i] == '\\n') {\n break;\n }\n }\n } else {\n for (int i = start; i < start + length; i++) {\n commentString += code[i];\n }\n }\n commentLessCodeString = commentLessCodeString.replace(commentString, \"\");\n }\n return commentLessCodeString;\n }", "@Override\n\tpublic int doEndTag() throws JspException {\n\t\tJspWriter writer=pageContext.getOut();\n\t\ttry {\n\t\t\twriter.write(tmp.toString()+\"<br>\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn SKIP_PAGE;\n\t}", "public void removeComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "private void collectComments(JSParseRootNode result)\n {\n\n List<Symbol> sDocComments = fScanner.getSDocComments();\n List<Symbol> vsDocComments = fScanner.getVSDocComments();\n List<Symbol> singleLineComments = fScanner.getSingleLineComments();\n List<Symbol> multiLineComments = fScanner.getMultiLineComments();\n\n List<JSCommentNode> comments = new ArrayList<JSCommentNode>(sDocComments.size() + vsDocComments.size()\n + singleLineComments.size() + multiLineComments.size());\n\n for (Symbol symbol : sDocComments)\n {\n comments.add(new JSCommentNode(IJSNodeTypes.SDOC_COMMENT, symbol.getStart(), symbol.getEnd()));\n }\n\n for (Symbol symbol : vsDocComments)\n {\n comments.add(new JSCommentNode(IJSNodeTypes.VSDOC_COMMENT, symbol.getStart(), symbol.getEnd()));\n }\n\n for (Symbol symbol : singleLineComments)\n {\n comments.add(new JSCommentNode(IJSNodeTypes.SINGLE_LINE_COMMENT, symbol.getStart(), symbol.getEnd()));\n }\n\n for (Symbol symbol : multiLineComments)\n {\n comments.add(new JSCommentNode(IJSNodeTypes.MULTI_LINE_COMMENT, symbol.getStart(), symbol.getEnd()));\n }\n\n result.setCommentNodes(comments.toArray(new IParseNode[comments.size()]));\n }", "public static ParseAction<Located<Void>> skipWhitespaceAndTLAComments(){\n\t\treturn repeat(parseOneOf(\n\t\t\t\tmatchWhitespace(),\n\t\t\t\tmatchTLAComment()\n\t\t)).map(list -> new Located<>(list.getLocation(), null));\n\t}", "public static String pagefilter(String content){\n //String p = System.getProperty(\"line.separator\") ; //\\r\\n in windows jp\n\n content = content.replaceAll(\"&\",\"&amp;\"); \n content = content.replaceAll(\"<\",\"&lt;\");\n content = content.replaceAll(\">\",\"&gt;\"); \n content = content.replaceAll(\"\\n\",\"<br/>\");\n content = content.replaceAll(\" \",\"&nbsp;\");\n \n \n return content;\n }", "static void writeBlockComment(String s) {\n String[] lines = s.split(\"\\u005cr\\u005cn|\\u005cr|\\u005cn\");\n\n // indent the first line. It won't have any leading whitespace, but\n // may have trailing whitespace\n String line = lines[0].trim();\n for (int j = 0; j < level; j++) {\n line = \" \" + line; // 4 spaces\n }\n outputBuffer.append(line).append(ls);\n\n // output body of comment without change\n for (int i = 1; i < lines.length - 1; i++) {\n line = lines[i]; // trimStart(lines[i], level * 4);\n outputBuffer.append(line).append(ls);\n }\n\n // output the last line. It will probably have leading whitespace, so\n // trim it then indent it the same as the first line.\n line = lines[lines.length - 1].trim();\n for (int j = 0; j < level; j++) {\n line = \" \" + line; // 4 spaces\n }\n outputBuffer.append(line);\n }", "@Test\n\tpublic void smart_whitespace() throws Exception\n\t{\n\t\tcheckOutput(\"\\tTrue\", T(\"<?if True?>\\tTrue<?end if?>\", Template.Whitespace.smart));\n\n\t\t// Line feeds will be removed from lines containing only a \"control flow\" tag.\n\t\tcheckOutput(\"True\\n\", T(\"<?if True?>\\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Indentation will also be removed from those lines.\n\t\tcheckOutput(\"True\\n\", T(\" <?if True?>\\nTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Additional text (before and after tag) will leave the line feeds intact.\n\t\tcheckOutput(\"x\\nTrue\\n\", T(\"x<?if True?>\\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\t\tcheckOutput(\" \\nTrue\\n\", T(\"<?if True?> \\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Multiple tags will also leave the line feeds intact.\n\t\tcheckOutput(\"\\nTrue\\n\\n\", T(\"<?if True?><?if True?>\\nTrue\\n<?end if?><?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// For <?print?> and <?printx?> tags the indentation and line feed will not be stripped\n\t\tcheckOutput(\" 42\\n\", T(\" <?print 42?>\\n\", Template.Whitespace.smart));\n\t\tcheckOutput(\" 42\\n\", T(\" <?printx 42?>\\n\", Template.Whitespace.smart));\n\n\t\t// For <?render?> tags the line feed will be stripped, but the indentation will be reused for each line rendered by the call\n\t\tcheckOutput(\" x\\r\\n\", T(\"<?def x?>\\nx\\r\\n<?end def?>\\n <?render x()?>\\n\", Template.Whitespace.smart));\n\n\t\t// But of course \"common\" indentation will be ignored\n\t\tcheckOutput(\"x\\r\\n\", T(\"<?if True?>\\n <?def x?>\\n x\\r\\n <?end def?>\\n <?render x()?>\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// But not on the outermost level, which leads to an esoteric corner case:\n\t\t// The indentation will be output twice (once by the text itself, and once by the render call).\n\t\tcheckOutput(\" x\\r\\n\", T(\" <?def x?>\\n x\\r\\n <?end def?>\\n <?render x()?>\\n\", Template.Whitespace.smart));\n\n\t\t// Additional indentation in the block will be removed.\n\t\tcheckOutput(\"True\\n\", T(\"<?if True?>\\n\\tTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Outer indentation will be kept.\n\t\tcheckOutput(\" True\\n\", T(\" <?if True?>\\n \\tTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Mixed indentation will not be recognized as indentation.\n\t\tcheckOutput(\"\\tTrue\\n\", T(\" <?if True?>\\n\\tTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\t}", "private void Spacing() {\n\n try {\n while (true) {\n try {\n Space();\n } catch (SyntaxError e) {\n Comment();\n }\n }\n } catch (SyntaxError e) {\n }\n }", "private String filterComments(String[] initial) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int a = 0; a < initial.length; a++) {\n\t\t\tString potential = initial[a];\n\t\t\tint index = potential.indexOf(START_COMMENT);\n\t\t\tif(index != -1)\n\t\t\t\tpotential = potential.substring(0,index);\n\t\t\tif (!potential.trim().isEmpty())\n\t\t\t\tanswer.append(potential + \" \");\n\t\t}\n\t\treturn answer.toString();\n\t}", "private StringBuilder stripWhitespace(String description)\n/* */ {\n/* 1650 */ StringBuilder result = new StringBuilder();\n/* */ \n/* */ \n/* 1653 */ int start = 0;\n/* 1654 */ while ((start != -1) && (start < description.length()))\n/* */ {\n/* */ \n/* 1657 */ while ((start < description.length()) && (PatternProps.isWhiteSpace(description.charAt(start)))) {\n/* 1658 */ start++;\n/* */ }\n/* */ \n/* */ \n/* 1662 */ if ((start < description.length()) && (description.charAt(start) == ';')) {\n/* 1663 */ start++;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* 1670 */ int p = description.indexOf(';', start);\n/* 1671 */ if (p == -1)\n/* */ {\n/* */ \n/* 1674 */ result.append(description.substring(start));\n/* 1675 */ start = -1;\n/* */ }\n/* 1677 */ else if (p < description.length()) {\n/* 1678 */ result.append(description.substring(start, p + 1));\n/* 1679 */ start = p + 1;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* */ \n/* 1687 */ start = -1;\n/* */ }\n/* */ } }\n/* 1690 */ return result;\n/* */ }", "void printJavaDocBody(String doc) throws IOException{\n String docClean = doc.trim()\n .replace(\"\\t\", \"\")\n .replace(\"*/\", \"* /\");\n\n for (String s : docClean.split(\"[\\\\n\\\\r]+\")) {\n emit(\" * \" + s);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String id= request.getParameter(\"id\");\n //String user= request.getParameter(\"user\");\n String comment = request.getParameter(\"comment\");\n RequestDispatcher dispatcher = null;\n HttpSession session = request.getSession();\n int user = (int) session.getAttribute(\"userid\");\n dispatcher=getServletContext().getRequestDispatcher( \"/error.jsp\" );\n try{\n String sql = \"Insert into comment (createdon,modifiedon,refid,comment,postid) values (?,?,?,?,?)\";\n PreparedStatement preparedStatement = Database.getDatabase().connect.prepareStatement(sql);\n Calendar cal = Calendar.getInstance(); \n java.sql.Timestamp timestamp = new Timestamp(cal.getTimeInMillis());\n preparedStatement.setTimestamp(1, timestamp);\n preparedStatement.setTimestamp(2, timestamp);\n preparedStatement.setInt(3, user);\n preparedStatement.setString(4, comment);\n preparedStatement.setInt(5, Integer.parseInt(id));\n preparedStatement.executeUpdate();\n \n }\n catch (SQLException ex) {\n Logger.getLogger(Posts.class.getName()).log(Level.SEVERE, null, ex);\n }\n List<Comments> com = new ArrayList<>();\n ResultSet rs = Database.getDatabase().Query(\"select * from commentview\");\n try{\n while(rs.next()){\n\n Comments e = new Comments();\n e.setId(rs.getInt(1));\n e.setCreatedon(rs.getDate(2).toString());\n e.setModifiedon(rs.getDate(3).toString());\n e.setRefid(rs.getInt(4));\n e.setComment(rs.getString(5));\n e.setPostid(rs.getInt(6));\n e.setFullname(rs.getString(7));\n com.add(e);\n \n }\n dispatcher=getServletContext().getRequestDispatcher(\"/WEB-INF/home.jsp\" );\n request.setAttribute(\"comment\", com);\n dispatcher.include(request, response);\n }\n catch(Exception e){\n \n }\n \n dispatcher.include(request, response);\n \n }", "private String removeComments(String str) {\n boolean inDQ = false;\n boolean inSQ = false;\n \n String result = str;\n \n for(int i = 0; i < result.length()-1; i++) {\n char c = result.charAt(i);\n \n if(inDQ) {\n if(c == '\\\"' && result.charAt(i-1) != '\\\\') {\n inDQ = false;\n }\n }\n else if(inSQ) {\n if(c == '\\'' && result.charAt(i-1) != '\\\\') {\n inSQ = false;\n }\n }\n else {\n \n // Line comment\n if(c == '/' && result.charAt(i+1) == '/') {\n int newLineIndex = result.indexOf(\"\\n\", i);\n \n result = result.substring(0, i) + result.substring(newLineIndex);\n i--;\n }\n \n // Block comment\n else if(c == '/' && result.charAt(i+1) == '*') {\n int endBlockIndex = result.indexOf(\"*/\", i) + 2;\n \n result = result.substring(0, i) + result.substring(endBlockIndex);\n i--;\n }\n \n // Python comment\n else if(c == '#' && (i == 0 || result.charAt(i-1) == '\\n')) {\n int newLineIndex = result.indexOf(\"\\n\", i);\n \n result = result.substring(0, i) + result.substring(newLineIndex+1); \n i--;\n }\n else if(c == '\\\"') {\n inDQ = true;\n }\n else if(c == '\\'') {\n inSQ = true;\n }\n }\n }\n \n return result;\n }", "private String removeComments(String line) {\n\t\tint commentIndex = line.indexOf(\"//\");\n\t\tif (commentIndex >= 0) {\n\t\t\tline = line.substring(0, commentIndex);\n\t\t}\n\t\tline = line.trim();\n\n\t\t// clear line if entire line is comment\n\t\tif (line.startsWith(\"#\")) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn line;\n\t}", "private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }", "public static String stripComments(String s, ParseResult result) {\n\t\tint commentStart = s.indexOf(\";\");\n\t\tif (commentStart != -1) {\n\t\t\ts = s.substring(0, commentStart);\n\t\t\tresult.commentStartPos = commentStart;\n\t\t\t// undo the effect escape() has had on commas\n\t\t\tint index = s.indexOf(\" , \");\n\t\t\twhile (index > -1) {\n\t\t\t\tresult.commentStartPos -= 2;\n\t\t\t\tindex = s.indexOf(\" , \", index + 3);\n\t\t\t}\n\t\t}\n\t\treturn s.trim();\n\t}", "static public String scrubComments(String what) {\n char p[] = what.toCharArray();\n\n int index = 0;\n while (index < p.length) {\n // for any double slash comments, ignore until the end of the line\n if ((p[index] == '/') &&\n (index < p.length - 1) &&\n (p[index+1] == '/')) {\n p[index++] = ' ';\n p[index++] = ' ';\n while ((index < p.length) &&\n (p[index] != '\\n')) {\n p[index++] = ' ';\n }\n\n // check to see if this is the start of a new multiline comment.\n // if it is, then make sure it's actually terminated somewhere.\n } else if ((p[index] == '/') &&\n (index < p.length - 1) &&\n (p[index+1] == '*')) {\n p[index++] = ' ';\n p[index++] = ' ';\n boolean endOfRainbow = false;\n while (index < p.length - 1) {\n if ((p[index] == '*') && (p[index+1] == '/')) {\n p[index++] = ' ';\n p[index++] = ' ';\n endOfRainbow = true;\n break;\n\n } else {\n // continue blanking this area\n p[index++] = ' ';\n }\n }\n if (!endOfRainbow) {\n throw new RuntimeException(_(\"Missing the */ from the end of a \" +\n \"/* comment */\"));\n }\n } else { // any old character, move along\n index++;\n }\n }\n return new String(p);\n }", "public void removeComments(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "public static String scriptlet2space(String source,boolean contentsOnly){\r\n\t\tint index = 0;\r\n\t\tint last = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\twhile((index = source.indexOf(\"<%\",last))!=-1){\r\n\t\t\tint end = source.indexOf(\"%>\",index);\r\n\t\t\tif(end!=-1){\r\n\t\t\t\tsb.append(source.substring(last,index));\r\n\t\t\t\tint length = end - index + 2;\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"<%\");\r\n\t\t\t\t\tlength = length - 4;\r\n\t\t\t\t}\r\n\t\t\t\tfor(int i=0;i<length;i++){\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"%>\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tlast = end + 2;\r\n\t\t}\r\n\t\tif(last != source.length()-1){\r\n\t\t\tsb.append(source.substring(last));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void removedComment() {\n\t}", "private String parseComment(List commentList) {\n \t\tStringBuffer comment = new StringBuffer();\n \t\tcomment.append(((String) commentList.get(4)) + \" \");\n \t\tfor (int i = 5; i < commentList.size(); i++) {\n \t\t\tcomment.append(((String) commentList.get(i)) + \" \");\n \t\t}\n \n \t\treturn comment.toString().trim();\n \t}", "public void setComments(String comments) {\n this.comments = comments == null ? null : comments.trim();\n }", "private String getContent(String s) {\n\t\tif (s == null)\n\t\t\treturn null;\n\t\tint commentIndex = s.indexOf(\"//\");\n\t\tif (commentIndex != -1)\n\t\t\ts = s.substring(0, commentIndex);\n\t\treturn s.trim();\n\t}", "void visit(Comment node);", "java.lang.String getComments();", "private void skipComment() {\r\n int length = sourceCode.length();\r\n if (++index < length) {\r\n char character = sourceCode.charAt(index);\r\n if (character == '/') {\r\n // If it's a line comment (//) then skip to the next line.\r\n // Find the next line.\r\n index = sourceCode.indexOf('\\n', index);\r\n // Skip to after it if it's found, or the end of the source code\r\n // otherwise.\r\n index = index == -1 ? length : index + 1;\r\n } else if (character == '*') {\r\n // If it's a long comment (/* ... */) then skip to after the\r\n // occurrence of \"*/\".\r\n // Find \"*/\".\r\n index = sourceCode.indexOf(\"*/\", index);\r\n // Skip to after it if it's found, or the end of the source code\r\n // otherwise.\r\n index = index == -1 ? length : index + 2;\r\n }\r\n }\r\n }", "@PrePersist\r\n @PreUpdate\r\n public void removeEmptyComments()\r\n {\r\n List<Comment> empty = new ArrayList<Comment>();\r\n for (Comment current : this.getComments())\r\n {\r\n current.removeEmptyComments();\r\n if (current.getText() == null || current.getText().isEmpty())\r\n {\r\n empty.add(current);\r\n }\r\n }\r\n\r\n this.getComments().removeAll(empty);\r\n }", "public static void removeComments( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, COMMENTS, value);\r\n\t}", "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.comments.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "public static void methodComment(StringBuffer buffer, List<String> comments) {\n\t\tfor(String comment : comments)\n\t\t\tbuffer.append(\"\\t\\t\\t\\t<comm cntt=\\\"\" + comment + \"\\\"/>\" + \"\\n\");\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException\n\t{\n\t\t\n\t\treq.getRequestDispatcher(\"commentResult.jsp\").forward(req, resp);\n\t\t\n\t}", "public void clearComments(Address startAddr, Address endAddr);", "public void skipComments() {\r\n this.ignoreLinesStartWith(this.charComment);\r\n }", "public void showMyComments(){\n String nothing=null;\n }", "protected String replaceMacros(String sTemplate, Object source)\n {\n String sRet = sTemplate;\n Set setMacros = Reporter.getMacros(sTemplate);\n\n for (Iterator i = setMacros.iterator(); i.hasNext();)\n {\n String sId = (String) i.next();\n ReportColumnView columnView = (ReportColumnView) m_mapColumns.get(sId);\n Object oValue = columnView.getOutputString(source);\n if (columnView != null && oValue != null)\n {\n sRet = sRet.replaceAll(MACRO_START + sId + MACRO_STOP,\n oValue.toString());\n }\n }\n return sRet;\n }", "public final void mSINGLE_COMMENT() throws RecognitionException {\r\n try {\r\n int _type = SINGLE_COMMENT;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:256:2: ( '//' (~ ( '\\\\n' | '\\\\r' ) )* )\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:256:4: '//' (~ ( '\\\\n' | '\\\\r' ) )*\r\n {\r\n match(\"//\"); \r\n\r\n\r\n\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:256:9: (~ ( '\\\\n' | '\\\\r' ) )*\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 >= '\\u0000' && LA2_0 <= '\\t')||(LA2_0 >= '\\u000B' && LA2_0 <= '\\f')||(LA2_0 >= '\\u000E' && LA2_0 <= '\\uFFFF')) ) {\r\n alt2=1;\r\n }\r\n\r\n\r\n switch (alt2) {\r\n \tcase 1 :\r\n \t // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:\r\n \t {\r\n \t if ( (input.LA(1) >= '\\u0000' && input.LA(1) <= '\\t')||(input.LA(1) >= '\\u000B' && input.LA(1) <= '\\f')||(input.LA(1) >= '\\u000E' && input.LA(1) <= '\\uFFFF') ) {\r\n \t input.consume();\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 \t }\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 _channel = HIDDEN; \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "public static String removeSparqlComments(String query) {\n\t\treturn query.replaceAll(\"(?m)^\\\\s*#.*?$\", \"\");\n\t}", "@Override\n\tpublic void comment() {\n\t\t\n\t}", "private String nocomment(String s) {\r\n\t\tint excLocation=s.indexOf('!');\r\n\t\tif(excLocation!=-1) s=s.substring(0,excLocation);\r\n\t\treturn s.trim();\r\n\t}", "public final void mCOMMENT() throws RecognitionException {\r\n try {\r\n int _type = COMMENT;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:9: ( '/*' ( options {greedy=false; } : . )* '*/' )\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:12: '/*' ( options {greedy=false; } : . )* '*/'\r\n {\r\n match(\"/*\"); \r\n\r\n\r\n\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:17: ( options {greedy=false; } : . )*\r\n loop1:\r\n do {\r\n int alt1=2;\r\n int LA1_0 = input.LA(1);\r\n\r\n if ( (LA1_0=='*') ) {\r\n int LA1_1 = input.LA(2);\r\n\r\n if ( (LA1_1=='/') ) {\r\n alt1=2;\r\n }\r\n else if ( ((LA1_1 >= '\\u0000' && LA1_1 <= '.')||(LA1_1 >= '0' && LA1_1 <= '\\uFFFF')) ) {\r\n alt1=1;\r\n }\r\n\r\n\r\n }\r\n else if ( ((LA1_0 >= '\\u0000' && LA1_0 <= ')')||(LA1_0 >= '+' && LA1_0 <= '\\uFFFF')) ) {\r\n alt1=1;\r\n }\r\n\r\n\r\n switch (alt1) {\r\n \tcase 1 :\r\n \t // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:45: .\r\n \t {\r\n \t matchAny(); \r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop1;\r\n }\r\n } while (true);\r\n\r\n\r\n match(\"*/\"); \r\n\r\n\r\n\r\n _channel = HIDDEN; \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "public interface CommentsProcessor {\n\t\n\t/**\n\t * Processes passed token. By contract it is guaranteed that passed token will be always \n\t * javascript comment (i.e. {@link Token#isComment()} always returns <code>true</code>.\n\t * @param comment to process\n\t * @return result of comments processing or <code>null</code> if there is no result.\n\t */\n\tString process(Token comment);\n}", "public void setComments(java.lang.String value);", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _servicioProfesional page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n {\n org.apache.taglibs.standard.tag.rt.core.SetTag __jsp_taghandler_1=(org.apache.taglibs.standard.tag.rt.core.SetTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.SetTag.class,\"org.apache.taglibs.standard.tag.rt.core.SetTag var value\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setVar(\"context\");\n __jsp_taghandler_1.setValue(request.getContextPath());\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[4]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag modelAttribute\");\n __jsp_taghandler_2.setParent(null);\n __jsp_taghandler_2.setModelAttribute(\"expedienteDTO\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[5]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\n __jsp_taghandler_3.setCode(\"sireh.label.expediente.titulo12\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[6]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_4=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_4.setParent(__jsp_taghandler_2);\n __jsp_taghandler_4.setJspContext(pageContext);\n __jsp_taghandler_4.setPath(\"nombreEmp\");\n __jsp_taghandler_4.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_4, pageContext);\n }\n out.write(__oracle_jsp_text[7]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_5=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_2);\n __jsp_taghandler_5.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.gruesolinea}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_6=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_2);\n __jsp_taghandler_6.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.colormarco}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_7=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_2);\n __jsp_taghandler_7.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.gruesoletra}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_2);\n __jsp_taghandler_8.setText(\"Servicio Profesional\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.ThemeTag __jsp_taghandler_9=(org.springframework.web.servlet.tags.ThemeTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.ThemeTag.class,\"org.springframework.web.servlet.tags.ThemeTag code\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_2);\n __jsp_taghandler_9.setCode(\"persona.jpg\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_9.doCatch(th);\n } finally {\n __jsp_taghandler_9.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_2);\n __jsp_taghandler_10.setText(\"de Carrera\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_10.doCatch(th);\n } finally {\n __jsp_taghandler_10.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_11=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_2);\n __jsp_taghandler_11.setValue(\"Registros localizados: \");\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[14]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_12=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_2);\n __jsp_taghandler_12.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.locSPC}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_13=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_2);\n __jsp_taghandler_13.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.jsonSPC}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\n }\n out.write(__oracle_jsp_text[16]);\n out.write(__oracle_jsp_text[17]);\n out.write(__oracle_jsp_text[18]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_14=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_2);\n __jsp_taghandler_14.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${context}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.springframework.web.servlet.tags.ThemeTag __jsp_taghandler_15=(org.springframework.web.servlet.tags.ThemeTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.ThemeTag.class,\"org.springframework.web.servlet.tags.ThemeTag code\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_2);\n __jsp_taghandler_15.setCode(\"pdf-download.jpg\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_15.doCatch(th);\n } finally {\n __jsp_taghandler_15.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\n }\n out.write(__oracle_jsp_text[20]);\n out.write(__oracle_jsp_text[21]);\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "void createCommentWithAllSingleFileComments(String string);", "protected void printComment(Comment comment, Writer out)\r\n throws IOException {\r\n out.write(\"<!--\");\r\n out.write(comment.getText());\r\n out.write(\"-->\");\r\n }", "org.hl7.fhir.String addNewComments();", "private void interpretComments() throws IOException {\n trimLines( comments );\n \n /* Try to interpret the last remaining comment line as a set of\n * column headings. */\n if ( comments.size() > 0 ) {\n String hline = (String) comments.get( comments.size() - 1 );\n List headings = readHeadings( new PushbackInputStream( \n new ByteArrayInputStream( hline.getBytes() ) ) );\n \n /* If this line looks like a set of headings (there are the\n * right number of fields) modify the colinfos accordingly and\n * remove it from the set of comments. */\n if ( headings.size() == ncol ) {\n comments.remove( comments.size() - 1 );\n for ( int i = 0; i < ncol; i++ ) {\n colinfos[ i ].setName( (String) headings.get( i ) );\n }\n trimLines( comments );\n }\n }\n \n /* If there are any other comment lines, concatenate them and bung\n * them into a description parameter. */\n if ( comments.size() > 0 ) {\n StringBuffer dbuf = new StringBuffer();\n for ( Iterator it = comments.iterator(); it.hasNext(); ) {\n dbuf.append( (String) it.next() );\n if ( it.hasNext() ) {\n dbuf.append( '\\n' );\n }\n }\n ValueInfo descriptionInfo =\n new DefaultValueInfo( \"Description\", String.class,\n \"Comments included in text file\" );\n parameters.add( new DescribedValue( descriptionInfo, \n dbuf.toString() ) );\n }\n }", "private void dispatchJSP(WebPageDescriptor p_thePageDescriptor,\n HttpServletRequest p_theRequest, HttpServletResponse p_theResponse,\n ServletContext p_context)\n throws ServletException,\n IOException,\n EnvoyServletException\n {\n HttpSession session = p_theRequest.getSession();\n\n SessionManager sessionMgr = (SessionManager)session.getAttribute(\n WebAppConstants.SESSION_MANAGER);\n EditorState state = (EditorState)sessionMgr.getAttribute(\n WebAppConstants.EDITORSTATE);\n\n long tuId = state.getTuId();\n long tuvId = state.getTuvId();\n long subId = state.getSubId();\n long sourceLocaleId = state.getSourceLocale().getId();\n long targetLocaleId = state.getTargetLocale().getId();\n\n // this file has to be deleted\n SegmentView segmentView = new SegmentView();\n\n sessionMgr.setAttribute(WebAppConstants.SEGMENTVIEW, segmentView); \n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }", "static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr'\n || sb.charAt(sb.length() - 1) == '\\u005cn'\n || sb.charAt(sb.length() - 1) == '\\u005ct'\n || sb.charAt(sb.length() - 1) == ' ')) {\n sb.deleteCharAt(sb.length() - 1);\n }\n if (sb.length() == 0) {\n a.remove(i);\n }\n else {\n a.set(i, sb.toString());\n break;\n }\n }\n if (a.size() == 0) {\n while(outputBuffer.length() > 0 && (outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005ct'\n || outputBuffer.charAt(outputBuffer.length() - 1) == ' ')) {\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }\n }\n }", "public void setComments (java.lang.String comments) {\r\n\t\tthis.comments = comments;\r\n\t}", "private void cleanPharagraph() {\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?p[^>]*[>]\", \"\");\n\n // replace closing p tag with <br> to indicate paragraph\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?(/)(\\\\s+)?p[^>]*[>]\", \"<br>\");\n }", "void displayAllComments();", "@Override\n public void comment(String comment)\n {\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "public void setComments(String comments) {\r\n this.comments = comments;\r\n }", "private void removeCommentsFromParameters(final Collection<String> collection) {\n final List<String> itemsToRemove = new ArrayList<String>();\n\n for (final String parameter : collection) {\n if (parameter.indexOf(\"#\") == 0) {\n itemsToRemove.add(parameter);\n }\n }\n collection.removeAll(itemsToRemove);\n }", "public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n String codeWithComments = scanner.nextLine();\n //Prints out the contents of the string sourcecode with the comments removed.\n //Greedy Matching\n System.out.println(codeWithComments.replaceAll(NO_COMMENTS_GREEDY, \"\"));\n //Non-greedy Matching\n //System.out.println(codeWithComments.replaceAll(NO_COMMENTS_NON_GREEDY, \"\"));\n }\n\n }", "public void setComments(String comments) {\n _comments = comments;\n }", "public void setComments(String comments) {\n this.comments = comments;\n }", "public void removeComment() { \n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"removeComment() \" );\n Via via=(Via)sipHeader;\n via.removeComment();\n }", "private void space() {\n if (wereTokens && !spaceSuppressed) {\n out.print(' ');\n }\n }", "public void processFile() {\n Matcher m = css.matcher(html);\n html = m.replaceAll(matchResult -> {\n String location = File.relative(this.file, matchResult.group(1));\n String stylesheet = File.readFrom(location);\n File loc = new File(location).getParentFile();\n Matcher urlMatcher = url.matcher(stylesheet);\n stylesheet = urlMatcher.replaceAll(match -> {\n String s = \"url(\\\"\" + File.relative(loc, match.group(1)) + \"\\\")\";\n return s.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\n });\n loc.close();\n return String.format(\"<style type=\\\"text/css\\\">%n%s%n</style>\", stylesheet);\n });\n replaceItAll(js, \"<script type=\\\"text/javascript\\\">%n%s%n</script>\", s -> File.readFrom(file.getAbsolutePath() + \"\\\\\" + s));\n }", "public String getAllComments() {\n\t\tString concatinatedComments = \"\";\n\t\tfor (CommentModel comment : comments) {\n\t\t\tString commentContent = comment.getContent();\n\t\t\tconcatinatedComments = concatinatedComments.concat(\" \"\n\t\t\t\t\t+ commentContent);\n\t\t}\n\t\treturn concatinatedComments;\n\t}", "public void ReturnComments(HttpServletRequest request, HttpServletResponse response,int Format,String Title) throws ServletException, IOException{\n\t\tCommentConnector commtc = new CommentConnector();\n\t\tcommtc.setHost(\"134.36.36.150\");\n\t\tSystem.out.println(\"Return All comments for\"+Title);\n\t\tList<CommentStore> Comments = commtc.getComments(Title);\n\t\tswitch(Format){\n\t\t\tcase 0: request.setAttribute(\"Comments\", Comments);\n\t\t\t\t\t\n\t\t\t\t\tRequestDispatcher rd=null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\trd=request.getRequestDispatcher(\"/RenderComments.jsp\");\n\t\t\t\t\t\n\t\t\t\t\t\trd.forward(request,response);\n\t\t\t\t\t}catch(Exception et){\n\t\t\t\t\t\tSystem.out.println(\"Can't forward to \"+ rd.toString());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\tcase 3: request.setAttribute(\"Data\", Comments);\n\t\t\t\t\tRequestDispatcher rdjson=request.getRequestDispatcher(\"/RenderJson\");\n\t\t\t\t\trdjson.forward(request,response);\n\t\t\t\t\tbreak;\n\t\t\tdefault: System.out.println(\"Invalid Format in ReturnArticle \");\n\t\t}\n\t\n\t}", "public void setComments (java.lang.String comments) {\n\t\tthis.comments = comments;\n\t}", "protected int scanComment () throws HTMLParseException {\r\n int startvalue = index - 1;\r\n int i = -1;\r\n int j = index;\r\n while (j+2 < length) {\r\n if (pagepart[j] == '-' &&\r\n pagepart[j + 1] == '-' &&\r\n pagepart[j + 2] == '>') {\r\n i = j;\r\n break;\r\n }\r\n j++;\r\n }\r\n if (i > -1) {\r\n index = i + 2;\r\n nextToken = MT;\r\n match (MT);\r\n stringLength = index - startvalue;\r\n return COMMENT;\r\n }\r\n block.setRest (startvalue);\r\n return END;\r\n }", "public void writeComment(Object data)\n throws IOException\n {\n closeStart();\n\n out.write(\"<!--\");\n if (data != null) {\n String comment = data.toString();\n int length = comment.length();\n boolean sawDash = false;\n\n // \"--\" illegal in comments, expand it\n for (int i = 0; i < length; i++) {\n char c = comment.charAt(i);\n if (c == '-') {\n if (sawDash) {\n out.write(' ');\n } else {\n sawDash = true;\n }\n } else {\n sawDash = false;\n }\n out.write(c);\n }\n if (sawDash)\n out.write(' ');\n }\n out.write(\"-->\");\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }", "boolean isDoNotRegenerateJspFiles();", "private void emitComment() throws SAXException {\n if (wantsComments) {\n if (longStrBufPending != '\\u0000') {\n appendLongStrBuf(longStrBufPending);\n }\n }\n tokenHandler.comment(longStrBuf, longStrBufLen);\n }", "public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}", "public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}", "private void consolidateCommentBlock(Token commentToken) {\n List<Token> newlines = new ArrayList<Token>();\n List<Token> comments = new ArrayList<Token>();\n\n Token previous = null;\n Token next = commentToken;\n while (true) {\n if (Tokens.isNewline(next)) {\n if (previous != null && Tokens.isNewline(previous)) {\n // blank line; drop all comments to this point and\n // start a new comment block\n comments.clear();\n }\n newlines.add(next);\n } else if (Tokens.isComment(next)) {\n comments.add(next);\n } else {\n // a non-newline non-comment token\n break;\n }\n\n previous = next;\n next = tokens.next();\n }\n\n // put our concluding token in the queue with all the comments\n // attached\n buffer.push(new TokenWithComments(next, comments));\n\n // now put all the newlines back in front of it\n ListIterator<Token> li = newlines.listIterator(newlines.size());\n while (li.hasPrevious()) {\n buffer.push(new TokenWithComments(li.previous()));\n }\n }", "public String refineOutput(String output) {\n // Case where comments are at top of library - before any other constructs\n for (Token token : commentsAtTop) {\n output = token.getText() + \"\\r\\n\" + output;\n }\n\n // Comments preserve whitespace, which can lead to extra newlines before statements\n return output.replaceAll(\"\\\\r\\\\n\\\\r\\\\n\\\\r\\\\n\", \"\\r\\n\");\n }", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html;charset=utf-8\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, \"/errors.jsp\", true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _DeleteException page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n {\n org.apache.taglibs.standard.tag.rt.core.SetTag __jsp_taghandler_1=(org.apache.taglibs.standard.tag.rt.core.SetTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.SetTag.class,\"org.apache.taglibs.standard.tag.rt.core.SetTag var value scope\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setVar(\"unit_id\");\n __jsp_taghandler_1.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${param.unit}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_1.setScope(\"page\");\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[3]);\n {\n org.apache.taglibs.standard.tag.rt.core.SetTag __jsp_taghandler_2=(org.apache.taglibs.standard.tag.rt.core.SetTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.SetTag.class,\"org.apache.taglibs.standard.tag.rt.core.SetTag var value scope\");\n __jsp_taghandler_2.setParent(null);\n __jsp_taghandler_2.setVar(\"period_id\");\n __jsp_taghandler_2.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${param.period}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_2.setScope(\"page\");\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\n }\n out.write(__oracle_jsp_text[4]);\n edu.ucla.library.libservices.scheduler.beans.webbeans.ScheduleWebBean exceptions;\n synchronized (pageContext) {\n if ((exceptions = (edu.ucla.library.libservices.scheduler.beans.webbeans.ScheduleWebBean) pageContext.getAttribute( \"exceptions\", PageContext.PAGE_SCOPE)) == null) {\n exceptions = (edu.ucla.library.libservices.scheduler.beans.webbeans.ScheduleWebBean) new edu.ucla.library.libservices.scheduler.beans.webbeans.ScheduleWebBean();\n pageContext.setAttribute( \"exceptions\", exceptions, PageContext.PAGE_SCOPE);\n out.write(__oracle_jsp_text[5]);\n exceptions.setUnitID(OracleJspRuntime.toInt( (java.lang.Integer)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${unit_id}\",java.lang.Integer.class, __ojsp_varRes,null)));\n out.write(__oracle_jsp_text[6]);\n exceptions.setPeriodID(OracleJspRuntime.toInt( (java.lang.Integer)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${period_id}\",java.lang.Integer.class, __ojsp_varRes,null)));\n out.write(__oracle_jsp_text[7]);\n exceptions.setSourceName((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${initParam['db.source']}\",java.lang.String.class, __ojsp_varRes,null));\n out.write(__oracle_jsp_text[8]);\n }\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_3=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_3.setParent(null);\n __jsp_taghandler_3.setUrl(\"header.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_3,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[10]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_4=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_3);\n __jsp_taghandler_4.setName(\"unit\");\n __jsp_taghandler_4.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${param.unit}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_5=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_3);\n __jsp_taghandler_5.setName(\"period\");\n __jsp_taghandler_5.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${param.period}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[12]);\n } while (__jsp_taghandler_3.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,1);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.apache.taglibs.standard.tag.rt.core.ForEachTag __jsp_taghandler_6=(org.apache.taglibs.standard.tag.rt.core.ForEachTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ForEachTag.class,\"org.apache.taglibs.standard.tag.rt.core.ForEachTag items var\");\n __jsp_taghandler_6.setParent(null);\n __jsp_taghandler_6.setItems((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${exceptions.exceptionsInPeriod}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_6.setVar(\"theException\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[14]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_7=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_6);\n __jsp_taghandler_7.setUrl(\"except_title.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_7,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[15]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_8=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_7);\n __jsp_taghandler_8.setName(\"has_special_range\");\n __jsp_taghandler_8.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.has_special_range}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,3);\n }\n out.write(__oracle_jsp_text[16]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_9=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_7);\n __jsp_taghandler_9.setName(\"period_id\");\n __jsp_taghandler_9.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.period_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,3);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_10=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_7);\n __jsp_taghandler_10.setName(\"schedule_id\");\n __jsp_taghandler_10.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,3);\n }\n out.write(__oracle_jsp_text[18]);\n } while (__jsp_taghandler_7.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_11=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_6);\n __jsp_taghandler_11.setUrl(\"show_day.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_11,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[20]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_12=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_11);\n __jsp_taghandler_12.setName(\"dayName\");\n __jsp_taghandler_12.setValue(\"Mon-Thurs\");\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,3);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_13=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_11);\n __jsp_taghandler_13.setName(\"schedule\");\n __jsp_taghandler_13.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,3);\n }\n out.write(__oracle_jsp_text[22]);\n } while (__jsp_taghandler_11.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_11.doCatch(th);\n } finally {\n __jsp_taghandler_11.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[23]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_14=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_6);\n __jsp_taghandler_14.setUrl(\"show_day.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_14,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[24]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_15=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_14);\n __jsp_taghandler_15.setName(\"dayName\");\n __jsp_taghandler_15.setValue(\"Fri\");\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,3);\n }\n out.write(__oracle_jsp_text[25]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_16=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_14);\n __jsp_taghandler_16.setName(\"schedule\");\n __jsp_taghandler_16.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,3);\n }\n out.write(__oracle_jsp_text[26]);\n } while (__jsp_taghandler_14.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_14.doCatch(th);\n } finally {\n __jsp_taghandler_14.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[27]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_17=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_17.setParent(__jsp_taghandler_6);\n __jsp_taghandler_17.setUrl(\"show_day.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_17,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[28]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_18=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_17);\n __jsp_taghandler_18.setName(\"dayName\");\n __jsp_taghandler_18.setValue(\"Sat\");\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,3);\n }\n out.write(__oracle_jsp_text[29]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_19=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_19.setParent(__jsp_taghandler_17);\n __jsp_taghandler_19.setName(\"schedule\");\n __jsp_taghandler_19.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,3);\n }\n out.write(__oracle_jsp_text[30]);\n } while (__jsp_taghandler_17.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_17.doCatch(th);\n } finally {\n __jsp_taghandler_17.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,2);\n }\n out.write(__oracle_jsp_text[31]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_20=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_6);\n __jsp_taghandler_20.setUrl(\"show_day.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_20,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[32]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_21=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_21.setParent(__jsp_taghandler_20);\n __jsp_taghandler_21.setName(\"dayName\");\n __jsp_taghandler_21.setValue(\"Sun\");\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21,3);\n }\n out.write(__oracle_jsp_text[33]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_22=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_22.setParent(__jsp_taghandler_20);\n __jsp_taghandler_22.setName(\"schedule\");\n __jsp_taghandler_22.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,3);\n }\n out.write(__oracle_jsp_text[34]);\n } while (__jsp_taghandler_20.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_20.doCatch(th);\n } finally {\n __jsp_taghandler_20.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,2);\n }\n out.write(__oracle_jsp_text[35]);\n } while (__jsp_taghandler_6.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,1);\n }\n out.write(__oracle_jsp_text[36]);\n\n\n }\n catch( Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch( Exception clearException) {\n }\n pageContext.handlePageException( e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext,true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "public static String commentTag(CommentUnit comment) {\n\t\treturn \"\\t\\t\\t<comm cntt=\\\"\" + comment.toString() + \"\\\"/>\\n\";\n\t}", "private void handlePP() {\n String inner = document.body().html();\n inner.replaceAll(\"<p></p>\", \"<p>\");\n document.body().html(inner);\n }", "protected String preprocessSQL(String sql, QueryParameters parameters, Dialect dialect)\n \t\t\tthrows HibernateException {\n \n \t\tsql = applyLocks( sql, parameters.getLockOptions(), dialect );\n \n \t\treturn getFactory().getSettings().isCommentsEnabled() ?\n \t\t\t\tprependComment( sql, parameters ) : sql;\n \t}", "@Test\r\n public void testWriteHTML() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n StringWriter w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \"<span class='comment'>\"+COMMENT+\"</span>\\n\", w.toString());\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \r\n \"<span class='comment'>\"+COMMENTS[0]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[1]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[2]+\"</span>\\n\" +\r\n \"\", w.toString());\r\n }", "public static void closeComment() {\n Log.write(\" -->\");\n }", "public static void removeComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.remove(model, instanceResource, COMMENTS, value);\r\n\t}" ]
[ "0.635014", "0.580986", "0.5580711", "0.54866403", "0.5431039", "0.54169583", "0.5377187", "0.52583915", "0.52515113", "0.51215076", "0.5091607", "0.50791454", "0.5057986", "0.50354505", "0.5016399", "0.49934286", "0.49740544", "0.49481058", "0.49245566", "0.49036992", "0.488807", "0.48808068", "0.48548153", "0.4846685", "0.48447502", "0.48390323", "0.482069", "0.48088077", "0.4799853", "0.47663626", "0.47512218", "0.47413725", "0.4737172", "0.47371507", "0.47317117", "0.47242483", "0.4710632", "0.46751735", "0.46539682", "0.46529153", "0.46444112", "0.4632759", "0.4609673", "0.46082708", "0.4607369", "0.4595469", "0.4591322", "0.458167", "0.45762792", "0.4574038", "0.45704576", "0.4562841", "0.4562067", "0.4548649", "0.4547208", "0.45409408", "0.4539958", "0.45385814", "0.45320308", "0.45296663", "0.4524156", "0.452387", "0.45109746", "0.45093313", "0.4509293", "0.44933367", "0.4487689", "0.44866532", "0.44768274", "0.44763607", "0.44651124", "0.44619054", "0.4460463", "0.44604447", "0.44537455", "0.44535977", "0.44420204", "0.44373772", "0.44259787", "0.44163147", "0.4414617", "0.44145164", "0.4414329", "0.44110352", "0.44064438", "0.4406112", "0.4402299", "0.44016585", "0.4396303", "0.43938634", "0.43938634", "0.43926498", "0.43843088", "0.43814045", "0.43813637", "0.43786296", "0.43780276", "0.43768167", "0.43731007", "0.43685475" ]
0.6493069
0
Replace scriptlet in the JSP to whitespaces.
public static String scriptlet2space(String source,boolean contentsOnly){ int index = 0; int last = 0; StringBuffer sb = new StringBuffer(); while((index = source.indexOf("<%",last))!=-1){ int end = source.indexOf("%>",index); if(end!=-1){ sb.append(source.substring(last,index)); int length = end - index + 2; if(contentsOnly){ sb.append("<%"); length = length - 4; } for(int i=0;i<length;i++){ sb.append(" "); } if(contentsOnly){ sb.append("%>"); } } else { break; } last = end + 2; } if(last != source.length()-1){ sb.append(source.substring(last)); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String fomatStrForJsp(String str){\t\t\n\t\tif( str==null || str.trim().equals(\"\")) return \"&nbsp;\";\n\t\treturn str;\n\t}", "public void doTag() throws JspException, IOException {\n\t\tgetJspContext().getOut().write(\"<p><strong>\" + name + \"</strong></p>\");\n\t}", "public static String ClearJavaScriptTags(String strHTML) {\r\n\t\tstrHTML = strHTML.replaceAll(\"\\n\", \"<br/>\");\r\n\t\tString nohtml = strHTML.replaceAll(\"<script>\", \"\");\r\n\t\tnohtml = nohtml.replaceAll(\"</script>\", \"\");\r\n\t\treturn nohtml;\r\n\t\t// strHTML.rep\r\n\t}", "@Override\n\tpublic int doEndTag() throws JspException {\n\t\tJspWriter writer=pageContext.getOut();\n\t\ttry {\n\t\t\twriter.write(tmp.toString()+\"<br>\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn SKIP_PAGE;\n\t}", "public void setInsertSpaces(boolean substitute);", "private String filterScriptMarkup(HttpServletRequest request, HttpServletResponse response, CMAbstractCode code) {\n //construct xmlFilters to strip RichText from <div> and <p> tags\n Markup unfilteredCode = code.getCode();\n List<XMLFilter> filters = new ArrayList<>();\n filters.addAll(xmlFilterFactory.createFilters(request, response, unfilteredCode, \"script\"));\n filters.add(new ScriptFilter());\n\n //strip <div> and <p> from markup\n StringWriter writer = new StringWriter();\n ScriptSerializer handler = new ScriptSerializer(writer);\n unfilteredCode.writeOn(filters, handler);\n return writer.getBuffer().toString();\n }", "private void setJstl(String var, Object val, int scope) {\n pageContext.setAttribute(var, val, scope);\n }", "private void space() {\n if (wereTokens && !spaceSuppressed) {\n out.print(' ');\n }\n }", "public static String jspComment2space(String source,boolean contentsOnly){\r\n\t\tint index = 0;\r\n\t\tint last = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\twhile((index = source.indexOf(\"<%--\",last))!=-1){\r\n\t\t\tint end = source.indexOf(\"--%>\",index);\r\n\t\t\tif(end!=-1){\r\n\t\t\t\tsb.append(source.substring(last,index));\r\n\t\t\t\tint length = end - index + 4;\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"<%--\");\r\n\t\t\t\t\tlength = length - 8;\r\n\t\t\t\t}\r\n\t\t\t\tfor(int i=0;i<length;i++){\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\t\t\t\tif(contentsOnly){\r\n\t\t\t\t\tsb.append(\"--%>\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tlast = end + 4;\r\n\t\t}\r\n\t\tif(last != source.length()-1){\r\n\t\t\tsb.append(source.substring(last));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "private String jsf22Bugfix() {\n return \"\";\n }", "@Override\n public void doTag() throws JspException, IOException {\n setAttributes();\n\n String layout = getBodyContent();\n jspContext.getOut().write(layout);\n }", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _servicioProfesional page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n {\n org.apache.taglibs.standard.tag.rt.core.SetTag __jsp_taghandler_1=(org.apache.taglibs.standard.tag.rt.core.SetTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.SetTag.class,\"org.apache.taglibs.standard.tag.rt.core.SetTag var value\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setVar(\"context\");\n __jsp_taghandler_1.setValue(request.getContextPath());\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[4]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag modelAttribute\");\n __jsp_taghandler_2.setParent(null);\n __jsp_taghandler_2.setModelAttribute(\"expedienteDTO\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[5]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\n __jsp_taghandler_3.setCode(\"sireh.label.expediente.titulo12\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[6]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_4=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_4.setParent(__jsp_taghandler_2);\n __jsp_taghandler_4.setJspContext(pageContext);\n __jsp_taghandler_4.setPath(\"nombreEmp\");\n __jsp_taghandler_4.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_4, pageContext);\n }\n out.write(__oracle_jsp_text[7]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_5=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_2);\n __jsp_taghandler_5.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.gruesolinea}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_6=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_2);\n __jsp_taghandler_6.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.colormarco}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_7=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_2);\n __jsp_taghandler_7.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.gruesoletra}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_2);\n __jsp_taghandler_8.setText(\"Servicio Profesional\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.ThemeTag __jsp_taghandler_9=(org.springframework.web.servlet.tags.ThemeTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.ThemeTag.class,\"org.springframework.web.servlet.tags.ThemeTag code\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_2);\n __jsp_taghandler_9.setCode(\"persona.jpg\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_9.doCatch(th);\n } finally {\n __jsp_taghandler_9.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_2);\n __jsp_taghandler_10.setText(\"de Carrera\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_10.doCatch(th);\n } finally {\n __jsp_taghandler_10.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_11=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_2);\n __jsp_taghandler_11.setValue(\"Registros localizados: \");\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[14]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_12=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_2);\n __jsp_taghandler_12.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.locSPC}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_13=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_2);\n __jsp_taghandler_13.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.jsonSPC}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\n }\n out.write(__oracle_jsp_text[16]);\n out.write(__oracle_jsp_text[17]);\n out.write(__oracle_jsp_text[18]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_14=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_2);\n __jsp_taghandler_14.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${context}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.springframework.web.servlet.tags.ThemeTag __jsp_taghandler_15=(org.springframework.web.servlet.tags.ThemeTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.ThemeTag.class,\"org.springframework.web.servlet.tags.ThemeTag code\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_2);\n __jsp_taghandler_15.setCode(\"pdf-download.jpg\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_15.doCatch(th);\n } finally {\n __jsp_taghandler_15.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\n }\n out.write(__oracle_jsp_text[20]);\n out.write(__oracle_jsp_text[21]);\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "@Override\r\n\tpublic boolean manipulate() {\n\t\tStatement statement = mp.getStatement();\r\n\t\tStatement ingredStatementCopy = (Statement) ASTNode.copySubtree(statement.getAST(), ingredStatement);\r\n\t\trewriter.replace(statement, ingredStatementCopy, null);\r\n\t\treturn true;\r\n\t}", "public static void Javascript() {\n\n\t}", "public static String pagefilter(String content){\n //String p = System.getProperty(\"line.separator\") ; //\\r\\n in windows jp\n\n content = content.replaceAll(\"&\",\"&amp;\"); \n content = content.replaceAll(\"<\",\"&lt;\");\n content = content.replaceAll(\">\",\"&gt;\"); \n content = content.replaceAll(\"\\n\",\"<br/>\");\n content = content.replaceAll(\" \",\"&nbsp;\");\n \n \n return content;\n }", "private String cleanXSS(String unsafe) {\n String safe = Jsoup.clean(unsafe, Whitelist.basic());\n return safe;\n }", "public abstract void doTagLogic() throws JspException, IOException;", "protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }", "private String replaceVariable(String statement) {\r\n String pattern = \"\\\\$\\\\{(.+?)\\\\}\";\r\n Pattern p = Pattern.compile(pattern);\r\n Matcher m = p.matcher(statement);\r\n StringBuffer sb = new StringBuffer();\r\n while (m.find()) {\r\n String key = m.group(1);\r\n String value = this.getSqlFragment(key);\r\n m.appendReplacement(sb, \"\");\r\n sb.append(value == null ? \"\" : value);\r\n }\r\n m.appendTail(sb);\r\n return sb.toString();\r\n }", "@Override\r\n\tpublic String repl() {\n\t\treturn null;\r\n\t}", "private void removeWhitespace() {\n /*\n * Get rid of comments.\n * Regex breakdown:\n * //.* : Some string that starts with \"//\"\n */\n instruction = instruction.replaceAll(\"//.*\", \"\");\n\n /*\n * Now replace all whitespace with a single space\n * Regex breakdown:\n * \\s+ : Find all whitespace that appear in a chunk\n */\n instruction = instruction.replaceAll(\"\\\\s+\", \" \");\n\n // Get rid of leading/trailing whitespace (if there is any whitespace at\n // the start/end of a line, it will be converted into one space character\n // as a result of the previous line)\n /*\n * Regex breakdown:\n * ^ : At the start of the line...\n * \\s+ : Match whitespace that occurs in a glob\n */\n instruction = instruction.replaceAll(\"^\\\\s+\", \"\");\n /*\n * Regex breakdown:\n * \\s+ : Match whitespace that occurs in a glob\n * $ : At the end of the line\n */\n instruction = instruction.replaceAll(\"\\\\s+$\", \"\");\n }", "@Override\n\tfinal public void destroy() {\n\t\tjspDestroy();\n\t}", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _detalleResumenMerito page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code var\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setCode(\"selectList.nonValue\");\n __jsp_taghandler_1.setVar(\"nonValue\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_1.doCatch(th);\n } finally {\n __jsp_taghandler_1.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[6]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag modelAttribute\");\n __jsp_taghandler_2.setParent(null);\n __jsp_taghandler_2.setModelAttribute(\"resumenMeritoDTO\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[7]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\n __jsp_taghandler_3.setCode(\"sireh.label.merito.resumen.detalle.titulo\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_2);\n __jsp_taghandler_4.setText(\"Notas de Merito\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_4.doCatch(th);\n } finally {\n __jsp_taghandler_4.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.springframework.web.servlet.tags.ThemeTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.ThemeTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.ThemeTag.class,\"org.springframework.web.servlet.tags.ThemeTag code\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_2);\n __jsp_taghandler_5.setCode(\"acierto.jpg\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_5.doCatch(th);\n } finally {\n __jsp_taghandler_5.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_2);\n __jsp_taghandler_6.setText(\"Resumen\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_2);\n __jsp_taghandler_7.setCode(\"sireh.label.merito.resumen.detalle.rfc\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_8=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_8.setParent(__jsp_taghandler_2);\n __jsp_taghandler_8.setJspContext(pageContext);\n __jsp_taghandler_8.setPath(\"plazaRfc\");\n __jsp_taghandler_8.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_8, pageContext);\n }\n {\n _oracle._jsp._tag._detalleCalculoNomina_tag __jsp_taghandler_9=(_oracle._jsp._tag._detalleCalculoNomina_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._detalleCalculoNomina_tag.class, pageContext);\n __jsp_taghandler_9.setParent(__jsp_taghandler_2);\n __jsp_taghandler_9.setJspContext(pageContext);\n __jsp_taghandler_9.setRfc((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${resumenMeritoDTO.plazaRfc}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_taghandler_9.setImage(\"detail.gif\");\n __jsp_taghandler_9.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_9, pageContext);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_2);\n __jsp_taghandler_10.setCode(\"sireh.label.merito.resumen.detalle.situacion.plaza\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_10.doCatch(th);\n } finally {\n __jsp_taghandler_10.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\n }\n out.write(__oracle_jsp_text[14]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_11=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_11.setParent(__jsp_taghandler_2);\n __jsp_taghandler_11.setJspContext(pageContext);\n __jsp_taghandler_11.setPath(\"descripcionSitua\");\n __jsp_taghandler_11.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_11, pageContext);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_12=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_2);\n __jsp_taghandler_12.setCode(\"sireh.label.merito.resumen.detalle.nombre\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_12.doCatch(th);\n } finally {\n __jsp_taghandler_12.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[16]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_13=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_13.setParent(__jsp_taghandler_2);\n __jsp_taghandler_13.setJspContext(pageContext);\n __jsp_taghandler_13.setPath(\"nombre\");\n __jsp_taghandler_13.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_13, pageContext);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_2);\n __jsp_taghandler_14.setCode(\"sireh.label.merito.resumen.detalle.nombramiento\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_14.doCatch(th);\n } finally {\n __jsp_taghandler_14.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[18]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_15=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_15.setParent(__jsp_taghandler_2);\n __jsp_taghandler_15.setJspContext(pageContext);\n __jsp_taghandler_15.setPath(\"descripcionNombramiento\");\n __jsp_taghandler_15.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_15, pageContext);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_16=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_2);\n __jsp_taghandler_16.setCode(\"sireh.label.merito.resumen.detalle.unidad\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_16.doCatch(th);\n } finally {\n __jsp_taghandler_16.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,2);\n }\n out.write(__oracle_jsp_text[20]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_17=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_17.setParent(__jsp_taghandler_2);\n __jsp_taghandler_17.setJspContext(pageContext);\n __jsp_taghandler_17.setPath(\"idUnidadNom\");\n __jsp_taghandler_17.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_17, pageContext);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_18=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_2);\n __jsp_taghandler_18.setCode(\"sireh.label.merito.resumen.detalle.sueldo.mensual.tabular\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_18.doCatch(th);\n } finally {\n __jsp_taghandler_18.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,2);\n }\n out.write(__oracle_jsp_text[22]);\n {\n org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag __jsp_taghandler_19=(org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag.class,\"org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag value pattern\");\n __jsp_taghandler_19.setParent(__jsp_taghandler_2);\n __jsp_taghandler_19.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${resumenMeritoDTO.tabSueldo}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_19.setPattern(\"$ #,###,##0.00\");\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,2);\n }\n out.write(__oracle_jsp_text[23]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_20=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_2);\n __jsp_taghandler_20.setCode(\"sireh.label.merito.resumen.detalle.puesto\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_20.doCatch(th);\n } finally {\n __jsp_taghandler_20.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,2);\n }\n out.write(__oracle_jsp_text[24]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_21=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_21.setParent(__jsp_taghandler_2);\n __jsp_taghandler_21.setJspContext(pageContext);\n __jsp_taghandler_21.setPath(\"idPuestoNom\");\n __jsp_taghandler_21.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_21, pageContext);\n }\n out.write(__oracle_jsp_text[25]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_22=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_22.setParent(__jsp_taghandler_2);\n __jsp_taghandler_22.setCode(\"sireh.label.merito.resumen.detalle.ultimo.pago.puntualidad\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_22.doCatch(th);\n } finally {\n __jsp_taghandler_22.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,2);\n }\n out.write(__oracle_jsp_text[26]);\n {\n org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag __jsp_taghandler_23=(org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag.class,\"org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag value pattern\");\n __jsp_taghandler_23.setParent(__jsp_taghandler_2);\n __jsp_taghandler_23.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${resumenMeritoDTO.ultimoPagoPuntualidad}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_23.setPattern(\"$ #,###,##0.00\");\n __jsp_tag_starteval=__jsp_taghandler_23.doStartTag();\n if (__jsp_taghandler_23.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_23,2);\n }\n out.write(__oracle_jsp_text[27]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_24=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_24.setParent(__jsp_taghandler_2);\n __jsp_taghandler_24.setCode(\"sireh.label.merito.resumen.detalle.nivel\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_24.doCatch(th);\n } finally {\n __jsp_taghandler_24.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24,2);\n }\n out.write(__oracle_jsp_text[28]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_25=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_25.setParent(__jsp_taghandler_2);\n __jsp_taghandler_25.setJspContext(pageContext);\n __jsp_taghandler_25.setPath(\"idNivelPto\");\n __jsp_taghandler_25.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_25, pageContext);\n }\n out.write(__oracle_jsp_text[29]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_26=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_26.setParent(__jsp_taghandler_2);\n __jsp_taghandler_26.setCode(\"sireh.label.merito.resumen.detalle.ultimo.pago.consecutividad\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_26.doStartTag();\n if (__jsp_taghandler_26.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_26.doCatch(th);\n } finally {\n __jsp_taghandler_26.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_26,2);\n }\n out.write(__oracle_jsp_text[30]);\n {\n org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag __jsp_taghandler_27=(org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag.class,\"org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag value pattern\");\n __jsp_taghandler_27.setParent(__jsp_taghandler_2);\n __jsp_taghandler_27.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${resumenMeritoDTO.ultimoPagoConsecutividad}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_27.setPattern(\"$ #,###,##0.00\");\n __jsp_tag_starteval=__jsp_taghandler_27.doStartTag();\n if (__jsp_taghandler_27.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_27,2);\n }\n out.write(__oracle_jsp_text[31]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_28=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_28.setParent(__jsp_taghandler_2);\n __jsp_taghandler_28.setCode(\"sireh.label.merito.resumen.detalle.plaza\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_28.doStartTag();\n if (__jsp_taghandler_28.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_28.doCatch(th);\n } finally {\n __jsp_taghandler_28.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_28,2);\n }\n out.write(__oracle_jsp_text[32]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_29=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_29.setParent(__jsp_taghandler_2);\n __jsp_taghandler_29.setJspContext(pageContext);\n __jsp_taghandler_29.setPath(\"idPlaza\");\n __jsp_taghandler_29.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_29, pageContext);\n }\n out.write(__oracle_jsp_text[33]);\n {\n _oracle._jsp._tag._graficaMerito_tag __jsp_taghandler_30=(_oracle._jsp._tag._graficaMerito_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._graficaMerito_tag.class, pageContext);\n __jsp_taghandler_30.setParent(__jsp_taghandler_2);\n __jsp_taghandler_30.setJspContext(pageContext);\n __jsp_taghandler_30.setRfc((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${resumenMeritoDTO.tdNmrRfc}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_taghandler_30.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_30, pageContext);\n }\n out.write(__oracle_jsp_text[34]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_31=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_31.setParent(__jsp_taghandler_2);\n __jsp_taghandler_31.setJspContext(pageContext);\n __jsp_taghandler_31.setAction((java.lang.String) (\"notaDeMerito/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${resumenMeritoDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_31.setValue(\"submit.back\");\n __jsp_taghandler_31.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_31, pageContext);\n }\n out.write(__oracle_jsp_text[35]);\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html;charset=utf-8\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, \"/errors.jsp\", true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _DeleteException page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n {\n org.apache.taglibs.standard.tag.rt.core.SetTag __jsp_taghandler_1=(org.apache.taglibs.standard.tag.rt.core.SetTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.SetTag.class,\"org.apache.taglibs.standard.tag.rt.core.SetTag var value scope\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setVar(\"unit_id\");\n __jsp_taghandler_1.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${param.unit}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_1.setScope(\"page\");\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[3]);\n {\n org.apache.taglibs.standard.tag.rt.core.SetTag __jsp_taghandler_2=(org.apache.taglibs.standard.tag.rt.core.SetTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.SetTag.class,\"org.apache.taglibs.standard.tag.rt.core.SetTag var value scope\");\n __jsp_taghandler_2.setParent(null);\n __jsp_taghandler_2.setVar(\"period_id\");\n __jsp_taghandler_2.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${param.period}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_2.setScope(\"page\");\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\n }\n out.write(__oracle_jsp_text[4]);\n edu.ucla.library.libservices.scheduler.beans.webbeans.ScheduleWebBean exceptions;\n synchronized (pageContext) {\n if ((exceptions = (edu.ucla.library.libservices.scheduler.beans.webbeans.ScheduleWebBean) pageContext.getAttribute( \"exceptions\", PageContext.PAGE_SCOPE)) == null) {\n exceptions = (edu.ucla.library.libservices.scheduler.beans.webbeans.ScheduleWebBean) new edu.ucla.library.libservices.scheduler.beans.webbeans.ScheduleWebBean();\n pageContext.setAttribute( \"exceptions\", exceptions, PageContext.PAGE_SCOPE);\n out.write(__oracle_jsp_text[5]);\n exceptions.setUnitID(OracleJspRuntime.toInt( (java.lang.Integer)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${unit_id}\",java.lang.Integer.class, __ojsp_varRes,null)));\n out.write(__oracle_jsp_text[6]);\n exceptions.setPeriodID(OracleJspRuntime.toInt( (java.lang.Integer)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${period_id}\",java.lang.Integer.class, __ojsp_varRes,null)));\n out.write(__oracle_jsp_text[7]);\n exceptions.setSourceName((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${initParam['db.source']}\",java.lang.String.class, __ojsp_varRes,null));\n out.write(__oracle_jsp_text[8]);\n }\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_3=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_3.setParent(null);\n __jsp_taghandler_3.setUrl(\"header.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_3,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[10]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_4=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_3);\n __jsp_taghandler_4.setName(\"unit\");\n __jsp_taghandler_4.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${param.unit}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_5=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_3);\n __jsp_taghandler_5.setName(\"period\");\n __jsp_taghandler_5.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${param.period}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[12]);\n } while (__jsp_taghandler_3.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,1);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.apache.taglibs.standard.tag.rt.core.ForEachTag __jsp_taghandler_6=(org.apache.taglibs.standard.tag.rt.core.ForEachTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ForEachTag.class,\"org.apache.taglibs.standard.tag.rt.core.ForEachTag items var\");\n __jsp_taghandler_6.setParent(null);\n __jsp_taghandler_6.setItems((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${exceptions.exceptionsInPeriod}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_6.setVar(\"theException\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[14]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_7=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_6);\n __jsp_taghandler_7.setUrl(\"except_title.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_7,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[15]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_8=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_7);\n __jsp_taghandler_8.setName(\"has_special_range\");\n __jsp_taghandler_8.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.has_special_range}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,3);\n }\n out.write(__oracle_jsp_text[16]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_9=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_7);\n __jsp_taghandler_9.setName(\"period_id\");\n __jsp_taghandler_9.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.period_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,3);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_10=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_7);\n __jsp_taghandler_10.setName(\"schedule_id\");\n __jsp_taghandler_10.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,3);\n }\n out.write(__oracle_jsp_text[18]);\n } while (__jsp_taghandler_7.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_11=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_6);\n __jsp_taghandler_11.setUrl(\"show_day.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_11,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[20]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_12=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_11);\n __jsp_taghandler_12.setName(\"dayName\");\n __jsp_taghandler_12.setValue(\"Mon-Thurs\");\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,3);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_13=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_11);\n __jsp_taghandler_13.setName(\"schedule\");\n __jsp_taghandler_13.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,3);\n }\n out.write(__oracle_jsp_text[22]);\n } while (__jsp_taghandler_11.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_11.doCatch(th);\n } finally {\n __jsp_taghandler_11.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[23]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_14=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_6);\n __jsp_taghandler_14.setUrl(\"show_day.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_14,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[24]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_15=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_14);\n __jsp_taghandler_15.setName(\"dayName\");\n __jsp_taghandler_15.setValue(\"Fri\");\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,3);\n }\n out.write(__oracle_jsp_text[25]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_16=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_14);\n __jsp_taghandler_16.setName(\"schedule\");\n __jsp_taghandler_16.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,3);\n }\n out.write(__oracle_jsp_text[26]);\n } while (__jsp_taghandler_14.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_14.doCatch(th);\n } finally {\n __jsp_taghandler_14.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[27]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_17=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_17.setParent(__jsp_taghandler_6);\n __jsp_taghandler_17.setUrl(\"show_day.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_17,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[28]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_18=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_17);\n __jsp_taghandler_18.setName(\"dayName\");\n __jsp_taghandler_18.setValue(\"Sat\");\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,3);\n }\n out.write(__oracle_jsp_text[29]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_19=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_19.setParent(__jsp_taghandler_17);\n __jsp_taghandler_19.setName(\"schedule\");\n __jsp_taghandler_19.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,3);\n }\n out.write(__oracle_jsp_text[30]);\n } while (__jsp_taghandler_17.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_17.doCatch(th);\n } finally {\n __jsp_taghandler_17.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,2);\n }\n out.write(__oracle_jsp_text[31]);\n {\n org.apache.taglibs.standard.tag.rt.core.ImportTag __jsp_taghandler_20=(org.apache.taglibs.standard.tag.rt.core.ImportTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ImportTag.class,\"org.apache.taglibs.standard.tag.rt.core.ImportTag url\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_6);\n __jsp_taghandler_20.setUrl(\"show_day.jsp\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_20,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[32]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_21=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_21.setParent(__jsp_taghandler_20);\n __jsp_taghandler_21.setName(\"dayName\");\n __jsp_taghandler_21.setValue(\"Sun\");\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21,3);\n }\n out.write(__oracle_jsp_text[33]);\n {\n org.apache.taglibs.standard.tag.rt.core.ParamTag __jsp_taghandler_22=(org.apache.taglibs.standard.tag.rt.core.ParamTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ParamTag.class,\"org.apache.taglibs.standard.tag.rt.core.ParamTag name value\");\n __jsp_taghandler_22.setParent(__jsp_taghandler_20);\n __jsp_taghandler_22.setName(\"schedule\");\n __jsp_taghandler_22.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${theException.schedule_id}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,3);\n }\n out.write(__oracle_jsp_text[34]);\n } while (__jsp_taghandler_20.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_20.doCatch(th);\n } finally {\n __jsp_taghandler_20.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,2);\n }\n out.write(__oracle_jsp_text[35]);\n } while (__jsp_taghandler_6.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,1);\n }\n out.write(__oracle_jsp_text[36]);\n\n\n }\n catch( Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch( Exception clearException) {\n }\n pageContext.handlePageException( e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext,true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "private String render(OWLClass cls) {\n\t\treturn ren.render(cls).replaceAll(\"'\", \"\").replaceAll(\" \", \"\");\n\t}", "public static String getStripCommentsTransformationStylesheetString()\r\n {\r\n return wrapInXSLStylesheet(getStripCommentsTransformationTemplateString());\r\n }", "default HtmlFormatter escapeJava() {\n return andThen(StringEscapeUtils::escapeJava);\n }", "private void handlePP() {\n String inner = document.body().html();\n inner.replaceAll(\"<p></p>\", \"<p>\");\n document.body().html(inner);\n }", "public int doStartTag() throws JspException {\n try {\n JspWriter pw = pageContext.getOut();\n if (mode.equals(\"javascript\"))\n pw.println(\"<script language=\\\"JavaScript\\\">\");\n\n if (isExpression)\n pw.println(\" document.getElementById(\\\"message_\" + name +\n \"\\\").innerHTML=\" + message + \";\");\n else\n pw.println(\" document.getElementById(\\\"message_\" + name +\n \"\\\").innerHTML='\" + message + \"';\");\n\n if (mode.equals(\"javascript\"))\n pw.println(\"</script>\");\n }\n catch (Exception ex) {\n JspTagException jte =\n new JspTagException(\"Error handling clear progress monitor tag\");\n jte.initCause(ex);\n throw jte;\n }\n return SKIP_BODY;\n }", "public static String removeAndEscapeHTML( String s ) {\n if ( s==null ) return \"\";\n else return Utilities.escapeHTML( Utilities.removeHTML(s) );\n }", "public static String comment2space(String source,boolean contentsOnly){\r\n\t\tsource = jspComment2space(source,contentsOnly);\r\n\t\tsource = FuzzyXMLUtil.comment2space(source,contentsOnly);\r\n\t\treturn source;\r\n\t}", "void doAfterEndTag() {\r\n }", "private void dispatchJSP(WebPageDescriptor p_thePageDescriptor,\n HttpServletRequest p_theRequest, HttpServletResponse p_theResponse,\n ServletContext p_context)\n throws ServletException,\n IOException,\n EnvoyServletException\n {\n HttpSession session = p_theRequest.getSession();\n\n SessionManager sessionMgr = (SessionManager)session.getAttribute(\n WebAppConstants.SESSION_MANAGER);\n EditorState state = (EditorState)sessionMgr.getAttribute(\n WebAppConstants.EDITORSTATE);\n\n long tuId = state.getTuId();\n long tuvId = state.getTuvId();\n long subId = state.getSubId();\n long sourceLocaleId = state.getSourceLocale().getId();\n long targetLocaleId = state.getTargetLocale().getId();\n\n // this file has to be deleted\n SegmentView segmentView = new SegmentView();\n\n sessionMgr.setAttribute(WebAppConstants.SEGMENTVIEW, segmentView); \n }", "public void spaces() {\n System.out.println(\"\");\n System.out.println(\"\");\n }", "String getReplaced();", "protected abstract String evalDefault() throws JspException;", "@Override\r\n\tpublic int doEndTag() throws JspException {\n\t\treturn 0;\r\n\t}", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html;charset=UTF-8\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _mapclient page = this;\n ServletConfig config = pageContext.getServletConfig();\n\n com.evermind.server.http.JspCommonExtraWriter __ojsp_s_out = (com.evermind.server.http.JspCommonExtraWriter) out;\n try {\n\n\n __ojsp_s_out.write(__oracle_jsp_text[0]);\n __ojsp_s_out.write(__oracle_jsp_text[1]);\n __ojsp_s_out.write(__oracle_jsp_text[2]);\n __ojsp_s_out.write(__oracle_jsp_text[3]);\n __ojsp_s_out.write(__oracle_jsp_text[4]);\n __ojsp_s_out.write(__oracle_jsp_text[5]);\n __ojsp_s_out.write(__oracle_jsp_text[6]);\n mapdemo.MapClientBean mcb;\n synchronized (session) {\n if ((mcb = (mapdemo.MapClientBean) pageContext.getAttribute( \"mcb\", PageContext.SESSION_SCOPE)) == null) {\n mcb = (mapdemo.MapClientBean) new mapdemo.MapClientBean();\n pageContext.setAttribute( \"mcb\", mcb, PageContext.SESSION_SCOPE);\n __ojsp_s_out.write(__oracle_jsp_text[7]);\n mcb.setMapViewerServerURL(OracleJspRuntime.toStr( mcb.determineURL(request)));\n __ojsp_s_out.write(__oracle_jsp_text[8]);\n pageContext.setAttribute( \"mcb\", mcb, PageContext.SESSION_SCOPE);\n }\n }\n __ojsp_s_out.write(__oracle_jsp_text[9]);\n {\n String[] __paramList = request.getParameterValues( \"mapViewerServerURL\");\n if ((__paramList != null) && (__paramList[0] != null) && (__paramList[0].length() > 0)) {\n mcb.setMapViewerServerURL(__paramList[0]);\n }\n }\n __ojsp_s_out.write(__oracle_jsp_text[10]);\n OracleJspRuntime.__jspSetAllParams(request, (Object)mcb, true);\n __ojsp_s_out.write(__oracle_jsp_text[11]);\n \n mcb.processRequest(request);\n \n __ojsp_s_out.write(__oracle_jsp_text[12]);\n out.print(mcb.getMapViewerServerURL());\n __ojsp_s_out.write(__oracle_jsp_text[13]);\n out.print( mcb.getDataSource() );\n __ojsp_s_out.write(__oracle_jsp_text[14]);\n out.print( mcb.getTitle() );\n __ojsp_s_out.write(__oracle_jsp_text[15]);\n out.print( mcb.getBaseMap() );\n __ojsp_s_out.write(__oracle_jsp_text[16]);\n out.print( mcb.getCenterX() );\n __ojsp_s_out.write(__oracle_jsp_text[17]);\n out.print( mcb.getCenterY() );\n __ojsp_s_out.write(__oracle_jsp_text[18]);\n out.print( mcb.getSize() );\n __ojsp_s_out.write(__oracle_jsp_text[19]);\n out.print(mcb.getImageW());\n __ojsp_s_out.write(__oracle_jsp_text[20]);\n if (mcb.getSuccess()) { \n __ojsp_s_out.write(__oracle_jsp_text[21]);\n out.print( mcb.getMapImageURL() );\n __ojsp_s_out.write(__oracle_jsp_text[22]);\n out.print( mcb.getImageW() );\n __ojsp_s_out.write(__oracle_jsp_text[23]);\n out.print( mcb.getImageH() );\n __ojsp_s_out.write(__oracle_jsp_text[24]);\n } else { \n __ojsp_s_out.write(__oracle_jsp_text[25]);\n } \n __ojsp_s_out.write(__oracle_jsp_text[26]);\n out.print( mcb.getImageW() );\n __ojsp_s_out.write(__oracle_jsp_text[27]);\n out.print( mcb.getImageW() );\n __ojsp_s_out.write(__oracle_jsp_text[28]);\n out.print(mcb.getXMLRequest());\n __ojsp_s_out.write(__oracle_jsp_text[29]);\n out.print(mcb.getXMLResponse());\n __ojsp_s_out.write(__oracle_jsp_text[30]);\n \n if(mcb.getErrorMsg()!=null && mcb.getDataSource()!=null)\n {\n \n __ojsp_s_out.write(__oracle_jsp_text[31]);\n out.print(mcb.getErrorMsg());\n __ojsp_s_out.write(__oracle_jsp_text[32]);\n \n }\n \n __ojsp_s_out.write(__oracle_jsp_text[33]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr'\n || sb.charAt(sb.length() - 1) == '\\u005cn'\n || sb.charAt(sb.length() - 1) == '\\u005ct'\n || sb.charAt(sb.length() - 1) == ' ')) {\n sb.deleteCharAt(sb.length() - 1);\n }\n if (sb.length() == 0) {\n a.remove(i);\n }\n else {\n a.set(i, sb.toString());\n break;\n }\n }\n if (a.size() == 0) {\n while(outputBuffer.length() > 0 && (outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005ct'\n || outputBuffer.charAt(outputBuffer.length() - 1) == ' ')) {\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }\n }\n }", "private static String clearSpaces(final String old) {\n return old.replace(\" \", \"\").replace(\"\\n\", \"\");\n }", "public void delLiteral();", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html;charset=windows-1252\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _DummyMenu page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n \n String strServerName = request.getServerName();\n String strServerPort = \"\"+request.getServerPort();\n String lstrCtxPath = request.getContextPath();\n \n String strUserid = (String)request.getParameter(\"userid\");\n String strAppId = (String) request.getParameter(\"appId\");\n if(strAppId == null || \"\".equals(strAppId)){\n strAppId = \"webbkg\";\n }\n //String strUserid = \"\"; // for Dolphin testing\n \n out.write(__oracle_jsp_text[6]);\n out.write(__oracle_jsp_text[7]);\n out.print(\"http://\" + strServerName + \":\" + strServerPort);\n out.write(__oracle_jsp_text[8]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[9]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[10]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[11]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[12]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[13]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[14]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[15]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[16]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[17]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[18]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[19]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[20]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[21]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[22]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[23]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[24]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[25]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[26]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[27]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[28]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[29]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[30]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[31]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[32]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[33]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[34]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[35]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[36]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[37]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[38]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[39]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[40]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[41]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[42]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[43]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[44]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[45]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "@Override\n\tpublic String getShinyStringServerScript() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}", "void toJavaScript(StringBuilder js, PageGeneratorContext pageContext) {\n\t\tjs.append(\"\\n/***** action field = \").append(this.name)\n\t\t\t\t.append(\" ********/\\n\");\n\t\tjs.append(Page.JS_VAR_NAME)\n\t\t\t\t.append(\" = new PM.\")\n\t\t\t\t.append(this\n\t\t\t\t\t\t.getClass()\n\t\t\t\t\t\t.getName()\n\t\t\t\t\t\t.substring(\n\t\t\t\t\t\t\t\tthis.getClass().getName().lastIndexOf('.') + 1))\n\t\t\t\t.append(\"();\");\n\t\tpageContext.setAttributes(this, js,\n\t\t\t\tAbstractAction.ACTION_ATTRIBUTE_NAMES);\n\t\tpageContext.setTableSensitiveAttributes(this, js,\n\t\t\t\tAbstractAction.ALL_TABLE_SENSITIVE_ATTRIBUTES);\n\t\tpageContext.setTableSensitiveArrays(this, js,\n\t\t\t\tAbstractAction.ALL_TABLE_SENSITIVE_ARRAYS);\n\t\tjs.append('\\n').append(\"P2.addAction(\").append(Page.JS_VAR_NAME)\n\t\t\t\t.append(\");\");\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onNext(final String s) {\n\t\t\t\t\t\t\t\t\tif (s.contains(\"}\") && outJSVar.charAt(outJSVar.length()-2) == ',') {\n\t\t\t\t\t\t\t\t\t\toutJSVar.deleteCharAt(outJSVar.length()-2);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\toutJSVar.append(s);\n\t\t\t\t\t\t\t\t\toutJSVar.append(\"\\n\");\n\t\t\t\t\t\t\t\t}", "private String replaceSpaces(String value) {\r\n\t\treturn value.replace(\" \", \"_\");\r\n\t}", "@Test\n\tpublic void smart_whitespace() throws Exception\n\t{\n\t\tcheckOutput(\"\\tTrue\", T(\"<?if True?>\\tTrue<?end if?>\", Template.Whitespace.smart));\n\n\t\t// Line feeds will be removed from lines containing only a \"control flow\" tag.\n\t\tcheckOutput(\"True\\n\", T(\"<?if True?>\\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Indentation will also be removed from those lines.\n\t\tcheckOutput(\"True\\n\", T(\" <?if True?>\\nTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Additional text (before and after tag) will leave the line feeds intact.\n\t\tcheckOutput(\"x\\nTrue\\n\", T(\"x<?if True?>\\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\t\tcheckOutput(\" \\nTrue\\n\", T(\"<?if True?> \\nTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Multiple tags will also leave the line feeds intact.\n\t\tcheckOutput(\"\\nTrue\\n\\n\", T(\"<?if True?><?if True?>\\nTrue\\n<?end if?><?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// For <?print?> and <?printx?> tags the indentation and line feed will not be stripped\n\t\tcheckOutput(\" 42\\n\", T(\" <?print 42?>\\n\", Template.Whitespace.smart));\n\t\tcheckOutput(\" 42\\n\", T(\" <?printx 42?>\\n\", Template.Whitespace.smart));\n\n\t\t// For <?render?> tags the line feed will be stripped, but the indentation will be reused for each line rendered by the call\n\t\tcheckOutput(\" x\\r\\n\", T(\"<?def x?>\\nx\\r\\n<?end def?>\\n <?render x()?>\\n\", Template.Whitespace.smart));\n\n\t\t// But of course \"common\" indentation will be ignored\n\t\tcheckOutput(\"x\\r\\n\", T(\"<?if True?>\\n <?def x?>\\n x\\r\\n <?end def?>\\n <?render x()?>\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// But not on the outermost level, which leads to an esoteric corner case:\n\t\t// The indentation will be output twice (once by the text itself, and once by the render call).\n\t\tcheckOutput(\" x\\r\\n\", T(\" <?def x?>\\n x\\r\\n <?end def?>\\n <?render x()?>\\n\", Template.Whitespace.smart));\n\n\t\t// Additional indentation in the block will be removed.\n\t\tcheckOutput(\"True\\n\", T(\"<?if True?>\\n\\tTrue\\n<?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Outer indentation will be kept.\n\t\tcheckOutput(\" True\\n\", T(\" <?if True?>\\n \\tTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\n\t\t// Mixed indentation will not be recognized as indentation.\n\t\tcheckOutput(\"\\tTrue\\n\", T(\" <?if True?>\\n\\tTrue\\n <?end if?>\\n\", Template.Whitespace.smart));\n\t}", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _EserviceQuatationRoutingPopup page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n out.write(__oracle_jsp_text[6]);\n out.write(__oracle_jsp_text[7]);\n out.write(__oracle_jsp_text[8]);\n out.write(__oracle_jsp_text[9]);\n \n String lstrCtxPath = request.getContextPath();\n List<EserviceNewWebBookingUim> eServiceQuatationRoutingList = (List<EserviceNewWebBookingUim>) session.getAttribute(\"eServiceQuatationRoutingList\");\n if(eServiceQuatationRoutingList != null && !eServiceQuatationRoutingList.isEmpty()){\n System.out.println(\"eServiceQuatationRoutingList.size = \"+eServiceQuatationRoutingList.size());\n }else{\n System.out.println(\"Empty\");\n }\n \n out.write(__oracle_jsp_text[10]);\n {\n org.apache.struts.taglib.html.HtmlTag __jsp_taghandler_1=(org.apache.struts.taglib.html.HtmlTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HtmlTag.class,\"org.apache.struts.taglib.html.HtmlTag\");\n __jsp_taghandler_1.setParent(null);\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[11]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[12]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[13]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[14]);\n out.print(com.niit.control.web.JSPUtils.getActionMappingURL(\"/serv001SetQuotationRoutingData\", pageContext));\n out.write(__oracle_jsp_text[15]);\n {\n org.apache.struts.taglib.html.FormTag __jsp_taghandler_2=(org.apache.struts.taglib.html.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.FormTag.class,\"org.apache.struts.taglib.html.FormTag action method\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setAction(\"/serv001\");\n __jsp_taghandler_2.setMethod(\"POST\");\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[16]);\n out.write(__oracle_jsp_text[17]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_3=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name scope\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\n __jsp_taghandler_3.setName(\"quotationNumber\");\n __jsp_taghandler_3.setScope(\"request\");\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,3);\n }\n out.write(__oracle_jsp_text[18]);\n {\n org.apache.struts.taglib.logic.NotEmptyTag __jsp_taghandler_4=(org.apache.struts.taglib.logic.NotEmptyTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.NotEmptyTag.class,\"org.apache.struts.taglib.logic.NotEmptyTag name scope\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_2);\n __jsp_taghandler_4.setName(\"eServiceQuatationRoutingList\");\n __jsp_taghandler_4.setScope(\"session\");\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[19]);\n out.write(__oracle_jsp_text[20]);\n {\n org.apache.struts.taglib.bean.DefineTag __jsp_taghandler_5=(org.apache.struts.taglib.bean.DefineTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.DefineTag.class,\"org.apache.struts.taglib.bean.DefineTag id name scope\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_4);\n __jsp_taghandler_5.setId(\"quatationRoutingList\");\n __jsp_taghandler_5.setName(\"eServiceQuatationRoutingList\");\n __jsp_taghandler_5.setScope(\"session\");\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,4);\n }\n java.lang.Object quatationRoutingList = null;\n quatationRoutingList = (java.lang.Object) pageContext.findAttribute(\"quatationRoutingList\");\n out.write(__oracle_jsp_text[21]);\n {\n org.apache.struts.taglib.logic.IterateTag __jsp_taghandler_6=(org.apache.struts.taglib.logic.IterateTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.IterateTag.class,\"org.apache.struts.taglib.logic.IterateTag id indexId name type\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_4);\n __jsp_taghandler_6.setId(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_6.setIndexId(\"rowIndex\");\n __jsp_taghandler_6.setName(\"quatationRoutingList\");\n __jsp_taghandler_6.setType(\"com.rclgroup.dolphin.rcl.web.eservice.actionform.EserviceNewWebBookingUim\");\n com.rclgroup.dolphin.rcl.web.eservice.actionform.EserviceNewWebBookingUim eserviceNewWebBookingUim = null;\n java.lang.Integer rowIndex = null;\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_6,__jsp_tag_starteval,out);\n do {\n eserviceNewWebBookingUim = (com.rclgroup.dolphin.rcl.web.eservice.actionform.EserviceNewWebBookingUim) pageContext.findAttribute(\"eserviceNewWebBookingUim\");\n rowIndex = (java.lang.Integer) pageContext.findAttribute(\"rowIndex\");\n out.write(__oracle_jsp_text[22]);\n {\n org.apache.struts.taglib.bean.DefineTag __jsp_taghandler_7=(org.apache.struts.taglib.bean.DefineTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.DefineTag.class,\"org.apache.struts.taglib.bean.DefineTag id value\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_6);\n __jsp_taghandler_7.setId(\"newRowIndex\");\n __jsp_taghandler_7.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${rowIndex+1}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,5);\n }\n java.lang.String newRowIndex = null;\n newRowIndex = (java.lang.String) pageContext.findAttribute(\"newRowIndex\");\n out.write(__oracle_jsp_text[23]);\n out.write(__oracle_jsp_text[24]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.pol}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[25]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.pod}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[26]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.originCountry}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[27]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.destinationCountry}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[28]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.placeOfReceipt}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[29]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.portOfLoading}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[30]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.portOfDischarge}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[31]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.placeOfDelivery}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[32]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.shipmentType}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[33]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.socCocUserFlag}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[34]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_8=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_6);\n __jsp_taghandler_8.setName(\"newRowIndex\");\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,5);\n }\n out.write(__oracle_jsp_text[35]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_9=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_6);\n __jsp_taghandler_9.setName(\"newRowIndex\");\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,5);\n }\n out.write(__oracle_jsp_text[36]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_10=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_6);\n __jsp_taghandler_10.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_10.setProperty(\"originCountry\");\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,5);\n }\n out.write(__oracle_jsp_text[37]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_11=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_6);\n __jsp_taghandler_11.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_11.setProperty(\"destinationCountry\");\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,5);\n }\n out.write(__oracle_jsp_text[38]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_12=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_6);\n __jsp_taghandler_12.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_12.setProperty(\"placeOfReceipt\");\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,5);\n }\n out.write(__oracle_jsp_text[39]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_13=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_6);\n __jsp_taghandler_13.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_13.setProperty(\"portOfLoading\");\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,5);\n }\n out.write(__oracle_jsp_text[40]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_14=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_6);\n __jsp_taghandler_14.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_14.setProperty(\"portOfDischarge\");\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,5);\n }\n out.write(__oracle_jsp_text[41]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_15=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_6);\n __jsp_taghandler_15.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_15.setProperty(\"placeOfDelivery\");\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,5);\n }\n out.write(__oracle_jsp_text[42]);\n } while (__jsp_taghandler_6.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,4);\n }\n out.write(__oracle_jsp_text[43]);\n } while (__jsp_taghandler_4.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,3);\n }\n out.write(__oracle_jsp_text[44]);\n {\n org.apache.struts.taglib.logic.EmptyTag __jsp_taghandler_16=(org.apache.struts.taglib.logic.EmptyTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EmptyTag.class,\"org.apache.struts.taglib.logic.EmptyTag name scope\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_2);\n __jsp_taghandler_16.setName(\"eServiceQuatationRoutingList\");\n __jsp_taghandler_16.setScope(\"session\");\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[45]);\n } while (__jsp_taghandler_16.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,3);\n }\n out.write(__oracle_jsp_text[46]);\n {\n String __url=OracleJspRuntime.toStr(\"../common/tiles/pagination.jsp\");\n __url=OracleJspRuntime.genPageUrl(__url,request,response,new String[] {\"formName\" } ,new String[] {OracleJspRuntime.toStr(\"feserv01\") } );\n // Include \n pageContext.include( __url,false);\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;\n }\n\n out.write(__oracle_jsp_text[47]);\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\n }\n out.write(__oracle_jsp_text[48]);\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[49]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "String getReplacementString();", "public void enfoncerRaz() {\n\t\tthis.valC = 0;\n\t\tthis.op = null;\n\t}", "@Override\n\tpublic int doStartTag() throws JspException {\n\t\ttry {\n\t\t\tJspWriter out = pageContext.getOut();\n\t\t\tout.print(\"<font color='#ff0000'>*Hello11 you have used HTML taglib</font>\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn SKIP_BODY;\n\t}", "@Override\n\tpublic String Pretty_Prints() {\n\t\treturn \"!=\";\n\t}", "private String encodeXSS(String s) { \n if (s == null || \"\".equals(s)) { \n return s; \n } \n StringBuilder sb = new StringBuilder(s.length() + 16); \n for (int i = 0; i < s.length(); i++) { \n char c = s.charAt(i); \n switch (c) { \n \n //handle the '<' and '>' which can be used for constructing <script> and </script> \n case '>': \n sb.append('>'); \n break; \n case '<': \n sb.append('<'); \n break; \n \n //since the html can support the characters using $#number format \n //so here also need to escape '#','&' and quote symbol \n case '\\'': \n sb.append('‘'); \n break; \n case '\\\"': \n sb.append('“'); \n break; \n case '&': \n sb.append('&'); \n break; \n case '\\\\': \n sb.append('\'); \n break; \n case '#': \n sb.append('#'); \n break; \n //if not the special characters ,then output it directly \n default: \n sb.append(c); \n break; \n } \n } \n return sb.toString(); \n }", "public void formatText(String text){\n\t\ttext = text.replaceAll(\"\\\\<[^>]*>\",\"\");\n\t}", "void replace(CtElement element);", "public static String saveWhitespaces(String s) {\n\t\treturn StringUtil.replace(s, \" \", \"\\u00A0\");\n\t}", "@Override\n\tpublic int doStartTag() throws JspException {\n\t\treturn EVAL_BODY_INCLUDE;\n\t}", "@Override\n\tpublic int doStartTag() throws JspException {\n\t\treturn EVAL_BODY_INCLUDE;\n\t}", "public static String removeAllScriptTags(final String page)\n {\n return removeAllTags(page, SCRIPT_TAG_PATTERN);\n }", "String convertTagsToWhitespaceSeparated(List<T> tags);", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _consultaCurso page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n out.write(__oracle_jsp_text[6]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag name modelAttribute\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setName(\"checkBoxTest\");\n __jsp_taghandler_1.setModelAttribute(\"consultaCursoDTO\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[7]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setPath(\"beanName\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\n __jsp_taghandler_3.setPath(\"urlOrigen\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\n __jsp_taghandler_4.setPath(\"urlDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_4.doCatch(th);\n } finally {\n __jsp_taghandler_4.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\n __jsp_taghandler_5.setPath(\"urlRegistroCurso\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_5.doCatch(th);\n } finally {\n __jsp_taghandler_5.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\n __jsp_taghandler_6.setPath(\"urlDeleteRegistroCurso\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\n __jsp_taghandler_7.setPath(\"linkDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\n __jsp_taghandler_8.setPath(\"paramIdDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[14]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_9=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\n __jsp_taghandler_9.setPath(\"propertyDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_9.doCatch(th);\n } finally {\n __jsp_taghandler_9.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,2);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\n __jsp_taghandler_10.setPath(\"interior\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_10.doCatch(th);\n } finally {\n __jsp_taghandler_10.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\n }\n out.write(__oracle_jsp_text[16]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_11=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\n __jsp_taghandler_11.setPath(\"control\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_11.doCatch(th);\n } finally {\n __jsp_taghandler_11.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_12=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\n __jsp_taghandler_12.setPath(\"rolAdministradorCapacitacion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_12.doCatch(th);\n } finally {\n __jsp_taghandler_12.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[18]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_13=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\n __jsp_taghandler_13.setPath(\"rolOperadorCapacitacion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_13.doCatch(th);\n } finally {\n __jsp_taghandler_13.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\n __jsp_taghandler_14.setPath(\"cursoFecIniTxt\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_14.doCatch(th);\n } finally {\n __jsp_taghandler_14.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[20]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_15=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_1);\n __jsp_taghandler_15.setPath(\"cursoFecFinTxt\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_15.doCatch(th);\n } finally {\n __jsp_taghandler_15.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.apache.taglibs.standard.tag.common.core.ChooseTag __jsp_taghandler_16=(org.apache.taglibs.standard.tag.common.core.ChooseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.ChooseTag.class,\"org.apache.taglibs.standard.tag.common.core.ChooseTag\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_1);\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[22]);\n {\n org.apache.taglibs.standard.tag.rt.core.WhenTag __jsp_taghandler_17=(org.apache.taglibs.standard.tag.rt.core.WhenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.WhenTag.class,\"org.apache.taglibs.standard.tag.rt.core.WhenTag test\");\n __jsp_taghandler_17.setParent(__jsp_taghandler_16);\n __jsp_taghandler_17.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.control eq 'ASIGNAR_INSTRUCTOR'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[23]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_18=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code arguments\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_17);\n __jsp_taghandler_18.setCode(\"sireh.label.spc.capcer.registro.general.consultaCursos.title\");\n __jsp_taghandler_18.setArguments((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.interior}\",java.lang.Object.class, __ojsp_varRes,null));\n try {\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_18.doCatch(th);\n } finally {\n __jsp_taghandler_18.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,4);\n }\n out.write(__oracle_jsp_text[24]);\n } while (__jsp_taghandler_17.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,3);\n }\n out.write(__oracle_jsp_text[25]);\n {\n org.apache.taglibs.standard.tag.common.core.OtherwiseTag __jsp_taghandler_19=(org.apache.taglibs.standard.tag.common.core.OtherwiseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.OtherwiseTag.class,\"org.apache.taglibs.standard.tag.common.core.OtherwiseTag\");\n __jsp_taghandler_19.setParent(__jsp_taghandler_16);\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[26]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_20=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code arguments\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_19);\n __jsp_taghandler_20.setCode(\"sireh.label.spc.capcer.registro.general.consultaCursos.title\");\n __jsp_taghandler_20.setArguments((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.interior}\",java.lang.Object.class, __ojsp_varRes,null));\n try {\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_20.doCatch(th);\n } finally {\n __jsp_taghandler_20.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,4);\n }\n out.write(__oracle_jsp_text[27]);\n } while (__jsp_taghandler_19.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,3);\n }\n out.write(__oracle_jsp_text[28]);\n } while (__jsp_taghandler_16.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,2);\n }\n out.write(__oracle_jsp_text[29]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_21=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_21.setParent(__jsp_taghandler_1);\n __jsp_taghandler_21.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.rolAdministradorCapacitacion || consultaCursoDTO.rolAdministradorCertificacion}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[30]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_22=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_22.setParent(__jsp_taghandler_21);\n __jsp_taghandler_22.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.coordinacion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_22.doCatch(th);\n } finally {\n __jsp_taghandler_22.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,3);\n }\n out.write(__oracle_jsp_text[31]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_23=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_23.setParent(__jsp_taghandler_21);\n __jsp_taghandler_23.setJspContext(pageContext);\n __jsp_taghandler_23.setKey(\"\");\n __jsp_taghandler_23.setValue(\"selectList.nonValue\");\n __jsp_taghandler_23.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_23, pageContext);\n }\n out.write(__oracle_jsp_text[32]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_24=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_24.setParent(__jsp_taghandler_21);\n __jsp_taghandler_24.setJspContext(pageContext);\n __jsp_taghandler_24.setBeanName(\"tcCapCoordinacion-consultaCurso\");\n __jsp_taghandler_24.setPath(\"idCoordinacion\");\n __jsp_taghandler_24.setStyle(\"width:200px;\");\n __jsp_taghandler_24.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_24, pageContext);\n }\n out.write(__oracle_jsp_text[33]);\n } while (__jsp_taghandler_21.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21,2);\n }\n out.write(__oracle_jsp_text[34]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_25=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_25.setParent(__jsp_taghandler_1);\n __jsp_taghandler_25.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${(consultaCursoDTO.rolAdministradorCapacitacion || consultaCursoDTO.rolOperadorCapacitacion) and (consultaCursoDTO.control eq 'REG_CURSO' || consultaCursoDTO.control eq 'ASIGNAR_INSTRUCTOR') }\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_25.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[35]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_26=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_26.setParent(__jsp_taghandler_25);\n __jsp_taghandler_26.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.proveedor\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_26.doStartTag();\n if (__jsp_taghandler_26.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_26.doCatch(th);\n } finally {\n __jsp_taghandler_26.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_26,3);\n }\n out.write(__oracle_jsp_text[36]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_27=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_27.setParent(__jsp_taghandler_25);\n __jsp_taghandler_27.setJspContext(pageContext);\n __jsp_taghandler_27.setKey(\"\");\n __jsp_taghandler_27.setValue(\"selectList.nonValue\");\n __jsp_taghandler_27.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_27, pageContext);\n }\n out.write(__oracle_jsp_text[37]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_28=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_28.setParent(__jsp_taghandler_25);\n __jsp_taghandler_28.setJspContext(pageContext);\n __jsp_taghandler_28.setBeanName(\"tcCapProveedor-consultaCurso\");\n __jsp_taghandler_28.setPath(\"idProveedor\");\n __jsp_taghandler_28.setStyle(\"width:200px;\");\n __jsp_taghandler_28.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_28, pageContext);\n }\n out.write(__oracle_jsp_text[38]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_29=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_29.setParent(__jsp_taghandler_25);\n __jsp_taghandler_29.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.operadorDGRH\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_29.doStartTag();\n if (__jsp_taghandler_29.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_29.doCatch(th);\n } finally {\n __jsp_taghandler_29.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_29,3);\n }\n out.write(__oracle_jsp_text[39]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_30=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_30.setParent(__jsp_taghandler_25);\n __jsp_taghandler_30.setJspContext(pageContext);\n __jsp_taghandler_30.setKey(\"\");\n __jsp_taghandler_30.setValue(\"selectList.nonValue\");\n __jsp_taghandler_30.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_30, pageContext);\n }\n out.write(__oracle_jsp_text[40]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_31=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_31.setParent(__jsp_taghandler_25);\n __jsp_taghandler_31.setJspContext(pageContext);\n __jsp_taghandler_31.setBeanName(\"tcCapOperDgrh-consultaCurso\");\n __jsp_taghandler_31.setPath(\"rfcOperDgrh\");\n __jsp_taghandler_31.setStyle(\"width:200px;\");\n __jsp_taghandler_31.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_31, pageContext);\n }\n out.write(__oracle_jsp_text[41]);\n } while (__jsp_taghandler_25.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_25.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_25,2);\n }\n out.write(__oracle_jsp_text[42]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_32=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_32.setParent(__jsp_taghandler_1);\n __jsp_taghandler_32.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.subprograma\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_32.doCatch(th);\n } finally {\n __jsp_taghandler_32.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32,2);\n }\n out.write(__oracle_jsp_text[43]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_33=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_33.setParent(__jsp_taghandler_1);\n __jsp_taghandler_33.setJspContext(pageContext);\n __jsp_taghandler_33.setKey(\"\");\n __jsp_taghandler_33.setValue(\"selectList.nonValue\");\n __jsp_taghandler_33.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_33, pageContext);\n }\n out.write(__oracle_jsp_text[44]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_34=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_34.setParent(__jsp_taghandler_1);\n __jsp_taghandler_34.setJspContext(pageContext);\n __jsp_taghandler_34.setBeanName(\"tcCapSubprograma-consultaCurso\");\n __jsp_taghandler_34.setPath(\"idSubprograma\");\n __jsp_taghandler_34.setStyle(\"width:200px;\");\n __jsp_taghandler_34.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_34, pageContext);\n }\n out.write(__oracle_jsp_text[45]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_35=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_35.setParent(__jsp_taghandler_1);\n __jsp_taghandler_35.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.ejeTematico\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_35.doStartTag();\n if (__jsp_taghandler_35.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_35.doCatch(th);\n } finally {\n __jsp_taghandler_35.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_35,2);\n }\n out.write(__oracle_jsp_text[46]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_36=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_36.setParent(__jsp_taghandler_1);\n __jsp_taghandler_36.setJspContext(pageContext);\n __jsp_taghandler_36.setKey(\"\");\n __jsp_taghandler_36.setValue(\"selectList.nonValue\");\n __jsp_taghandler_36.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_36, pageContext);\n }\n out.write(__oracle_jsp_text[47]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_37=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_37.setParent(__jsp_taghandler_1);\n __jsp_taghandler_37.setJspContext(pageContext);\n __jsp_taghandler_37.setBeanName(\"tcCapEjeTematico-consultaCurso\");\n __jsp_taghandler_37.setPath(\"idEjeTematico\");\n __jsp_taghandler_37.setStyle(\"width:200px;\");\n __jsp_taghandler_37.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_37, pageContext);\n }\n out.write(__oracle_jsp_text[48]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_38=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_38.setParent(__jsp_taghandler_1);\n __jsp_taghandler_38.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.modalidad\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_38.doStartTag();\n if (__jsp_taghandler_38.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_38.doCatch(th);\n } finally {\n __jsp_taghandler_38.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_38,2);\n }\n out.write(__oracle_jsp_text[49]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_39=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_39.setParent(__jsp_taghandler_1);\n __jsp_taghandler_39.setJspContext(pageContext);\n __jsp_taghandler_39.setKey(\"\");\n __jsp_taghandler_39.setValue(\"selectList.nonValue\");\n __jsp_taghandler_39.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_39, pageContext);\n }\n out.write(__oracle_jsp_text[50]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_40=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_40.setParent(__jsp_taghandler_1);\n __jsp_taghandler_40.setJspContext(pageContext);\n __jsp_taghandler_40.setBeanName(\"tcCapModalidad-consultaCurso\");\n __jsp_taghandler_40.setPath(\"idModalidad\");\n __jsp_taghandler_40.setStyle(\"width:200px;\");\n __jsp_taghandler_40.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_40, pageContext);\n }\n out.write(__oracle_jsp_text[51]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_41=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_41.setParent(__jsp_taghandler_1);\n __jsp_taghandler_41.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${(consultaCursoDTO.rolEjecutivoContratacion) and consultaCursoDTO.control ne 'ASIGNAR_CALENDARIO'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_41.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[52]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_42=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_42.setParent(__jsp_taghandler_41);\n __jsp_taghandler_42.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.finalidad\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_42.doStartTag();\n if (__jsp_taghandler_42.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_42.doCatch(th);\n } finally {\n __jsp_taghandler_42.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_42,3);\n }\n out.write(__oracle_jsp_text[53]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_43=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_43.setParent(__jsp_taghandler_41);\n __jsp_taghandler_43.setJspContext(pageContext);\n __jsp_taghandler_43.setKey(\"\");\n __jsp_taghandler_43.setValue(\"selectList.nonValue\");\n __jsp_taghandler_43.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_43, pageContext);\n }\n out.write(__oracle_jsp_text[54]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_44=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_44.setParent(__jsp_taghandler_41);\n __jsp_taghandler_44.setJspContext(pageContext);\n __jsp_taghandler_44.setBeanName(\"tcCapFinalidad-consultaCurso\");\n __jsp_taghandler_44.setPath(\"idFinalidad\");\n __jsp_taghandler_44.setStyle(\"width:200px;\");\n __jsp_taghandler_44.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_44, pageContext);\n }\n out.write(__oracle_jsp_text[55]);\n } while (__jsp_taghandler_41.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_41.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_41,2);\n }\n out.write(__oracle_jsp_text[56]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_45=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_45.setParent(__jsp_taghandler_1);\n __jsp_taghandler_45.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${(consultaCursoDTO.rolAdministradorCapacitacion || consultaCursoDTO.rolCoordinacionAdministrativa || consultaCursoDTO.rolOperadorCapacitacion) && (consultaCursoDTO.control == 'ASIGNAR_PARTICIPANTE' or consultaCursoDTO.control eq 'ASIGNAR_CALENDARIO' or consultaCursoDTO.control == 'ASIGNAR_INSTRUCTOR')}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_45.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[57]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_46=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_46.setParent(__jsp_taghandler_45);\n __jsp_taghandler_46.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.fechaInicio\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_46.doStartTag();\n if (__jsp_taghandler_46.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_46.doCatch(th);\n } finally {\n __jsp_taghandler_46.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_46,3);\n }\n out.write(__oracle_jsp_text[58]);\n {\n _oracle._jsp._tag._calendar_tag __jsp_taghandler_47=(_oracle._jsp._tag._calendar_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._calendar_tag.class, pageContext);\n __jsp_taghandler_47.setParent(__jsp_taghandler_45);\n __jsp_taghandler_47.setJspContext(pageContext);\n __jsp_taghandler_47.setPath(\"cursoFecIni\");\n __jsp_taghandler_47.setReadonly(\"true\");\n __jsp_taghandler_47.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_47, pageContext);\n }\n out.write(__oracle_jsp_text[59]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_48=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_48.setParent(__jsp_taghandler_45);\n __jsp_taghandler_48.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.fechaFin\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_48.doStartTag();\n if (__jsp_taghandler_48.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_48.doCatch(th);\n } finally {\n __jsp_taghandler_48.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_48,3);\n }\n out.write(__oracle_jsp_text[60]);\n {\n _oracle._jsp._tag._calendar_tag __jsp_taghandler_49=(_oracle._jsp._tag._calendar_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._calendar_tag.class, pageContext);\n __jsp_taghandler_49.setParent(__jsp_taghandler_45);\n __jsp_taghandler_49.setJspContext(pageContext);\n __jsp_taghandler_49.setPath(\"cursoFecFin\");\n __jsp_taghandler_49.setReadonly(\"true\");\n __jsp_taghandler_49.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_49, pageContext);\n }\n out.write(__oracle_jsp_text[61]);\n } while (__jsp_taghandler_45.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_45.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_45,2);\n }\n out.write(__oracle_jsp_text[62]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_50=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_50.setParent(__jsp_taghandler_1);\n __jsp_taghandler_50.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.claveCurso\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_50.doStartTag();\n if (__jsp_taghandler_50.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_50.doCatch(th);\n } finally {\n __jsp_taghandler_50.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_50,2);\n }\n out.write(__oracle_jsp_text[63]);\n {\n _oracle._jsp._tag._input_tag __jsp_taghandler_51=(_oracle._jsp._tag._input_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._input_tag.class, pageContext);\n __jsp_taghandler_51.setParent(__jsp_taghandler_1);\n __jsp_taghandler_51.setJspContext(pageContext);\n __jsp_taghandler_51.setPath(\"claveCurso\");\n __jsp_taghandler_51.setMaxlength(\"60\");\n __jsp_taghandler_51.setSize(\"60\");\n __jsp_taghandler_51.setCss(\"anchoInput claveCurso\");\n __jsp_taghandler_51.setUppercase(\"true\");\n __jsp_taghandler_51.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_51, pageContext);\n }\n out.write(__oracle_jsp_text[64]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_52=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_52.setParent(__jsp_taghandler_1);\n __jsp_taghandler_52.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.estatus\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_52.doStartTag();\n if (__jsp_taghandler_52.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_52.doCatch(th);\n } finally {\n __jsp_taghandler_52.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_52,2);\n }\n out.write(__oracle_jsp_text[65]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_53=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_53.setParent(__jsp_taghandler_1);\n __jsp_taghandler_53.setJspContext(pageContext);\n __jsp_taghandler_53.setProperty(\"ID_CONTROL_CURSO\");\n __jsp_taghandler_53.setCondition(\"IN\");\n __jsp_taghandler_53.setPath(\"estatusCursos\");\n __jsp_taghandler_53.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_53, pageContext);\n }\n out.write(__oracle_jsp_text[66]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_54=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_54.setParent(__jsp_taghandler_1);\n __jsp_taghandler_54.setJspContext(pageContext);\n __jsp_taghandler_54.setKey(\"\");\n __jsp_taghandler_54.setValue(\"selectList.nonValue\");\n __jsp_taghandler_54.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_54, pageContext);\n }\n out.write(__oracle_jsp_text[67]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_55=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_55.setParent(__jsp_taghandler_1);\n __jsp_taghandler_55.setJspContext(pageContext);\n __jsp_taghandler_55.setBeanName(\"tcCapControlCurso-consultaCurso\");\n __jsp_taghandler_55.setPath(\"idControlCurso\");\n __jsp_taghandler_55.setStyle(\"width:200px;\");\n __jsp_taghandler_55.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_55, pageContext);\n }\n out.write(__oracle_jsp_text[68]);\n {\n org.apache.taglibs.standard.tag.common.core.ChooseTag __jsp_taghandler_56=(org.apache.taglibs.standard.tag.common.core.ChooseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.ChooseTag.class,\"org.apache.taglibs.standard.tag.common.core.ChooseTag\");\n __jsp_taghandler_56.setParent(__jsp_taghandler_1);\n __jsp_tag_starteval=__jsp_taghandler_56.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[69]);\n {\n org.apache.taglibs.standard.tag.rt.core.WhenTag __jsp_taghandler_57=(org.apache.taglibs.standard.tag.rt.core.WhenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.WhenTag.class,\"org.apache.taglibs.standard.tag.rt.core.WhenTag test\");\n __jsp_taghandler_57.setParent(__jsp_taghandler_56);\n __jsp_taghandler_57.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.control eq 'ASIGNAR_CALENDARIO' || consultaCursoDTO.control eq 'ASIGNAR_PARTICIPANTE' || consultaCursoDTO.control eq 'ASIGNAR_INSTRUCTOR'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_57.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[70]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_58=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_58.setParent(__jsp_taghandler_57);\n __jsp_taghandler_58.setJspContext(pageContext);\n __jsp_taghandler_58.setPath(\"muestraRegistros\");\n __jsp_taghandler_58.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_58.setValue(\"submit.search\");\n __jsp_taghandler_58.setOnclick(\"cambioFechas()\");\n __jsp_taghandler_58.setProgressBar(\"true\");\n __jsp_taghandler_58.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_58, pageContext);\n }\n out.write(__oracle_jsp_text[71]);\n } while (__jsp_taghandler_57.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_57.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_57,3);\n }\n out.write(__oracle_jsp_text[72]);\n {\n org.apache.taglibs.standard.tag.common.core.OtherwiseTag __jsp_taghandler_59=(org.apache.taglibs.standard.tag.common.core.OtherwiseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.OtherwiseTag.class,\"org.apache.taglibs.standard.tag.common.core.OtherwiseTag\");\n __jsp_taghandler_59.setParent(__jsp_taghandler_56);\n __jsp_tag_starteval=__jsp_taghandler_59.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[73]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_60=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_60.setParent(__jsp_taghandler_59);\n __jsp_taghandler_60.setJspContext(pageContext);\n __jsp_taghandler_60.setPath(\"muestraRegistros\");\n __jsp_taghandler_60.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_60.setValue(\"submit.search\");\n __jsp_taghandler_60.setProgressBar(\"true\");\n __jsp_taghandler_60.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_60, pageContext);\n }\n out.write(__oracle_jsp_text[74]);\n } while (__jsp_taghandler_59.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_59.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_59,3);\n }\n out.write(__oracle_jsp_text[75]);\n } while (__jsp_taghandler_56.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_56.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_56,2);\n }\n out.write(__oracle_jsp_text[76]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_61=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_61.setParent(__jsp_taghandler_1);\n __jsp_taghandler_61.setJspContext(pageContext);\n __jsp_taghandler_61.setPath(\"cancel\");\n __jsp_taghandler_61.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_61.setValue(\"submit.clean\");\n __jsp_taghandler_61.setProgressBar(\"true\");\n __jsp_taghandler_61.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_61, pageContext);\n }\n out.write(__oracle_jsp_text[77]);\n {\n org.apache.taglibs.standard.tag.common.core.ChooseTag __jsp_taghandler_62=(org.apache.taglibs.standard.tag.common.core.ChooseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.ChooseTag.class,\"org.apache.taglibs.standard.tag.common.core.ChooseTag\");\n __jsp_taghandler_62.setParent(__jsp_taghandler_1);\n __jsp_tag_starteval=__jsp_taghandler_62.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[78]);\n {\n org.apache.taglibs.standard.tag.rt.core.WhenTag __jsp_taghandler_63=(org.apache.taglibs.standard.tag.rt.core.WhenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.WhenTag.class,\"org.apache.taglibs.standard.tag.rt.core.WhenTag test\");\n __jsp_taghandler_63.setParent(__jsp_taghandler_62);\n __jsp_taghandler_63.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.muestraRegistros}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_63.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[79]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_64=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_64.setParent(__jsp_taghandler_63);\n __jsp_taghandler_64.setJspContext(pageContext);\n __jsp_taghandler_64.setProperty(\"C.ID_COORDINACION\");\n __jsp_taghandler_64.setCondition(\"=\");\n __jsp_taghandler_64.setPath(\"idCoordinacion\");\n __jsp_taghandler_64.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_64, pageContext);\n }\n out.write(__oracle_jsp_text[80]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_65=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_65.setParent(__jsp_taghandler_63);\n __jsp_taghandler_65.setJspContext(pageContext);\n __jsp_taghandler_65.setProperty(\"C.ID_PROVEEDOR\");\n __jsp_taghandler_65.setCondition(\"=\");\n __jsp_taghandler_65.setPath(\"idProveedor\");\n __jsp_taghandler_65.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_65, pageContext);\n }\n out.write(__oracle_jsp_text[81]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_66=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_66.setParent(__jsp_taghandler_63);\n __jsp_taghandler_66.setJspContext(pageContext);\n __jsp_taghandler_66.setProperty(\"C.RFC_OPER_DGRH\");\n __jsp_taghandler_66.setCondition(\"=\");\n __jsp_taghandler_66.setPath(\"rfcOperDgrh\");\n __jsp_taghandler_66.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_66, pageContext);\n }\n out.write(__oracle_jsp_text[82]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_67=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_67.setParent(__jsp_taghandler_63);\n __jsp_taghandler_67.setJspContext(pageContext);\n __jsp_taghandler_67.setProperty(\"C.ID_SUBPROGRAMA\");\n __jsp_taghandler_67.setCondition(\"=\");\n __jsp_taghandler_67.setPath(\"idSubprograma\");\n __jsp_taghandler_67.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_67, pageContext);\n }\n out.write(__oracle_jsp_text[83]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_68=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_68.setParent(__jsp_taghandler_63);\n __jsp_taghandler_68.setJspContext(pageContext);\n __jsp_taghandler_68.setProperty(\"C.ID_EJE_TEMATICO\");\n __jsp_taghandler_68.setCondition(\"=\");\n __jsp_taghandler_68.setPath(\"idEjeTematico\");\n __jsp_taghandler_68.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_68, pageContext);\n }\n out.write(__oracle_jsp_text[84]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_69=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_69.setParent(__jsp_taghandler_63);\n __jsp_taghandler_69.setJspContext(pageContext);\n __jsp_taghandler_69.setProperty(\"CP.ID_MODALIDAD\");\n __jsp_taghandler_69.setCondition(\"=\");\n __jsp_taghandler_69.setPath(\"idModalidad\");\n __jsp_taghandler_69.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_69, pageContext);\n }\n out.write(__oracle_jsp_text[85]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_70=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_70.setParent(__jsp_taghandler_63);\n __jsp_taghandler_70.setJspContext(pageContext);\n __jsp_taghandler_70.setProperty(\"C.CURSO_CLAVE\");\n __jsp_taghandler_70.setCondition(\"contains\");\n __jsp_taghandler_70.setPath(\"claveCurso\");\n __jsp_taghandler_70.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_70, pageContext);\n }\n out.write(__oracle_jsp_text[86]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_71=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_71.setParent(__jsp_taghandler_63);\n __jsp_taghandler_71.setJspContext(pageContext);\n __jsp_taghandler_71.setProperty(\"C.ID_CONTROL_CURSO\");\n __jsp_taghandler_71.setCondition(\"=\");\n __jsp_taghandler_71.setPath(\"idControlCurso\");\n __jsp_taghandler_71.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_71, pageContext);\n }\n out.write(__oracle_jsp_text[87]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_72=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_72.setParent(__jsp_taghandler_63);\n __jsp_taghandler_72.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.control eq 'ASIGNAR_CALENDARIO' || consultaCursoDTO.control eq 'ASIGNAR_PARTICIPANTE' || consultaCursoDTO.control eq 'ASIGNAR_INSTRUCTOR'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_72.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[88]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_73=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_73.setParent(__jsp_taghandler_72);\n __jsp_taghandler_73.setJspContext(pageContext);\n __jsp_taghandler_73.setProperty(\"to_char(C.CURSO_FEC_INI, 'yyyy/mm/dd') >\");\n __jsp_taghandler_73.setCondition(\"=\");\n __jsp_taghandler_73.setPath(\"cursoFecIniTxt\");\n __jsp_taghandler_73.setType(\"string\");\n __jsp_taghandler_73.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_73, pageContext);\n }\n out.write(__oracle_jsp_text[89]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_74=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_74.setParent(__jsp_taghandler_72);\n __jsp_taghandler_74.setJspContext(pageContext);\n __jsp_taghandler_74.setProperty(\"to_char(C.CURSO_FEC_FIN, 'yyyy/mm/dd') <\");\n __jsp_taghandler_74.setCondition(\"=\");\n __jsp_taghandler_74.setPath(\"cursoFecFinTxt\");\n __jsp_taghandler_74.setType(\"string\");\n __jsp_taghandler_74.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_74, pageContext);\n }\n out.write(__oracle_jsp_text[90]);\n } while (__jsp_taghandler_72.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_72.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_72,4);\n }\n out.write(__oracle_jsp_text[91]);\n {\n _oracle._jsp._tag._pagedList_tag __jsp_taghandler_75=(_oracle._jsp._tag._pagedList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._pagedList_tag.class, pageContext);\n __jsp_taghandler_75.setParent(__jsp_taghandler_63);\n __jsp_taghandler_75.setJspContext(pageContext);\n __jsp_taghandler_75.setBeanName((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.beanName}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_taghandler_75.setBaseUrl((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_taghandler_75.setAppendFilters(\"false\");\n __jsp_taghandler_75.setCheckbox(\"true\");\n __jsp_taghandler_75.setChkProperty(\"idCursos\");\n __jsp_taghandler_75.setJspBody(new _consultaCurso_OjspFragmentSupport( 0, pageContext, __jsp_taghandler_75, __ojsp_varRes));\n __jsp_taghandler_75.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_75, pageContext);\n }\n out.write(__oracle_jsp_text[92]);\n } while (__jsp_taghandler_63.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_63.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_63,3);\n }\n out.write(__oracle_jsp_text[93]);\n {\n org.apache.taglibs.standard.tag.common.core.OtherwiseTag __jsp_taghandler_131=(org.apache.taglibs.standard.tag.common.core.OtherwiseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.OtherwiseTag.class,\"org.apache.taglibs.standard.tag.common.core.OtherwiseTag\");\n __jsp_taghandler_131.setParent(__jsp_taghandler_62);\n __jsp_tag_starteval=__jsp_taghandler_131.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[94]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_132=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_132.setParent(__jsp_taghandler_131);\n __jsp_taghandler_132.setCode(\"pagedList.empty.content\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_132.doStartTag();\n if (__jsp_taghandler_132.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_132.doCatch(th);\n } finally {\n __jsp_taghandler_132.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_132,4);\n }\n out.write(__oracle_jsp_text[95]);\n } while (__jsp_taghandler_131.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_131.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_131,3);\n }\n out.write(__oracle_jsp_text[96]);\n } while (__jsp_taghandler_62.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_62.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_62,2);\n }\n out.write(__oracle_jsp_text[97]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_133=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_133.setParent(__jsp_taghandler_1);\n __jsp_taghandler_133.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${(consultaCursoDTO.rolAdministradorCapacitacion || consultaCursoDTO.rolOperadorCapacitacion) && consultaCursoDTO.control eq 'REG_CURSO'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_133.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[98]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_134=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_134.setParent(__jsp_taghandler_133);\n __jsp_taghandler_134.setJspContext(pageContext);\n __jsp_taghandler_134.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlRegistroCurso}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_134.setValue(\"submit.registrar\");\n __jsp_taghandler_134.setProgressBar(\"true\");\n __jsp_taghandler_134.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_134, pageContext);\n }\n out.write(__oracle_jsp_text[99]);\n } while (__jsp_taghandler_133.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_133.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_133,2);\n }\n out.write(__oracle_jsp_text[100]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_135=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_135.setParent(__jsp_taghandler_1);\n __jsp_taghandler_135.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.rolAdministradorCapacitacion && consultaCursoDTO.control eq 'REG_CURSO'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_135.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[101]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_136=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_136.setParent(__jsp_taghandler_135);\n __jsp_taghandler_136.setJspContext(pageContext);\n __jsp_taghandler_136.setPath(\"eliminarCursos\");\n __jsp_taghandler_136.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlDeleteRegistroCurso}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_136.setValue(\"submit.delete\");\n __jsp_taghandler_136.setAlertCode(\"confirm.spc.capcer.registro.eliminarCurso\");\n __jsp_taghandler_136.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_136, pageContext);\n }\n out.write(__oracle_jsp_text[102]);\n } while (__jsp_taghandler_135.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_135.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_135,2);\n }\n out.write(__oracle_jsp_text[103]);\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_1.doCatch(th);\n } finally {\n __jsp_taghandler_1.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "public void cleanSalts() {\n this.id = this.id.replaceAll(\"\\n\",\"\");\n this.nick = this.nick.replaceAll(\"\\n\",\"\");\n this.role = this.role.replaceAll(\"\\n\",\"\");\n this.teamId = this.teamId.replaceAll(\"\\n\",\"\");\n }", "protected abstract boolean evalEscapeXml() throws JspException;", "private void cleanPharagraph() {\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?p[^>]*[>]\", \"\");\n\n // replace closing p tag with <br> to indicate paragraph\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?(/)(\\\\s+)?p[^>]*[>]\", \"<br>\");\n }", "public void removeAllPortlet()\r\n {\r\n _portletList.removeAllElements();\r\n }", "protected String replaceMacros(String sTemplate, Object source)\n {\n String sRet = sTemplate;\n Set setMacros = Reporter.getMacros(sTemplate);\n\n for (Iterator i = setMacros.iterator(); i.hasNext();)\n {\n String sId = (String) i.next();\n ReportColumnView columnView = (ReportColumnView) m_mapColumns.get(sId);\n Object oValue = columnView.getOutputString(source);\n if (columnView != null && oValue != null)\n {\n sRet = sRet.replaceAll(MACRO_START + sId + MACRO_STOP,\n oValue.toString());\n }\n }\n return sRet;\n }", "public int doStartTag( PrintWriter pw ) throws JspException\n\t{\n\t\treturn SKIP_BODY;\n\t}", "private String renderBody() {\n return \"\";\n }", "@RequestMapping(value = ViewNameConstants.TEMPLATEBS)\n\tpublic void ViewtemplateBS() {\n\t}", "public String getAssembledAndReplaced(Statement statement) {\n\t\treturn this.strat.getReplacer()\n\t\t\t\t\t.apply(statement, \n\t\t\t\t\t\t this.assemble(statement));\n\t}", "private void removeJavascript(ServletContext scontext)\r\n {\r\n String webApp = scontext.getContextPath();\r\n javascriptService.remove(scontext);\r\n }", "public static String removeWhiteSpace(String value) {\n return value.replaceAll(\"\\\\s\", \"\");\n }", "public int doEndTag() throws JspException {\n return EVAL_PAGE;\n }", "public int doEndTag( PrintWriter pw ) throws JspException\n\t{\n\t\treturn EVAL_PAGE;\n\t}", "public String getAsString() {\n return javaScript;\n }", "@Override\n public void verbatim_()\n {\n getListener().onVerbatim(this.accumulatedText.toString(), true, Collections.<String, String>emptyMap());\n this.accumulatedText.setLength(0);\n this.isInVerbatim = false;\n }", "void addSpaces() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"| \");\n\t\tSystem.out.println(\"|\");\n\t}", "private static String escapeWhitespace( final String input )\n {\n return input.replaceAll( \"\\\\ \", \"\\\\\\\\ \" );\n }", "public static void main(String[] args) {\n\t\tString str = \"Harmohan Is Mad Person\";\n\t\tString newString = str.replaceAll(\" \", \"\");\n\t\tSystem.out.println(newString);\n\t\t\n\n\t}", "public String wrapStatement(String statement);", "@Override\n public int doEndTag() throws JspException {\n // Bind 'outValue' to var in appropriate scope.\n if (scope == null || scope.equals(\"ontopia\") || scope.equals(\"oks\")) {\n ContextTag contextTag = FrameworkUtils.getContextTag(pageContext);\n ContextManagerIF ctxmgr = contextTag.getContextManager();\n setOntopia(clonedVar, outValue, ctxmgr);\n } else {\n setJstl(clonedVar, outValue, mapScope(scope));\n }\n\n return EVAL_PAGE;\n }", "private String Escapar(String valorAtributo) {\r\n\tString str = valorAtributo;\r\n\t\r\n\tstr = valorAtributo.replaceAll(\"&\", \"&amp;\");\r\n\tstr = str.replaceAll(\"'\", \"&apos;\");\r\n\tstr = str.replaceAll(\"\\\"\", \"&quot;\");\r\n\tstr = str.replaceAll(\"<\", \"&lt;\");\r\n\tstr = str.replaceAll(\">\", \"&gt;\");\r\n\t\r\n\treturn str;\r\n }", "public String escape(String source) {\r\n\t\treturn null;\r\n\t}", "public JavaScript join(JavaScript javaScriptToJoin) {\n return js(this.javaScript + '\\n' + javaScriptToJoin.javaScript);\n }", "@Override\n public int doStartTag() throws JspException {\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(type);\n JspWriter out = pageContext.getOut();\n\n LocalDateTime currentTime = LocalDateTime.now(Clock.systemDefaultZone());\n\n try {\n out.print(currentTime.format(formatter));\n } catch (IOException e) {\n throw new JspException(e);\n }\n\n return SKIP_BODY;\n }", "public void doTag()\n throws IOException, JspException, JspTagException {\n\n JspWriter out = context.getOut();\n\n if (!RDCUtils.isStringEmpty(namelist)) {\n // (1) Access/create the views map \n Map viewsMap = (Map) context.getSession().\n getAttribute(ATTR_VIEWS_MAP);\n if (viewsMap == null) {\n viewsMap = new HashMap();\n context.getSession().setAttribute(ATTR_VIEWS_MAP, viewsMap);\n }\n \n // (2) Populate form data \n Map formData = new HashMap();\n StringTokenizer nameToks = new StringTokenizer(namelist, \" \");\n while (nameToks.hasMoreTokens()) {\n String name = nameToks.nextToken();\n formData.put(name, context.getAttribute(name));\n }\n \n // (3) Store the form data according to the RDC-struts \n // interface contract\n String key = \"\" + context.hashCode();\n viewsMap.put(key, formData);\n context.getRequest().setAttribute(ATTR_VIEWS_MAP_KEY, key);\n }\n\n if (!RDCUtils.isStringEmpty(clearlist)) { \n // (4) Clear session state based on the clearlist\n if (dialogMap == null) {\n throw new IllegalArgumentException(ERR_NO_DIALOGMAP);\n }\n StringTokenizer clearToks = new StringTokenizer(clearlist, \" \");\n outer:\n while (clearToks.hasMoreTokens()) {\n String clearMe = clearToks.nextToken();\n String errMe = clearMe;\n boolean cleared = false;\n int dot = clearMe.indexOf('.');\n if (dot == -1) {\n if(dialogMap.containsKey(errMe)) {\n dialogMap.remove(errMe);\n cleared = true;\n }\n } else {\n // TODO - Nested data model re-initialization\n BaseModel target = null;\n String childId = null;\n while (dot != -1) {\n try {\n childId = clearMe.substring(0,dot);\n if (target == null) {\n target = (BaseModel) dialogMap.get(childId);\n } else {\n if ((target = RDCUtils.getChildDataModel(target,\n childId)) == null) {\n break;\n }\n }\n clearMe = clearMe.substring(dot+1);\n dot = clearMe.indexOf('.');\n } catch (Exception e) {\n MessageFormat msgFormat =\n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n continue outer;\n }\n }\n if (target != null) {\n cleared = RDCUtils.clearChildDataModel(target,\n clearMe);\n }\n }\n if (!cleared) {\n MessageFormat msgFormat = \n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n }\n }\n }\n\n // (5) Forward request\n try {\n context.forward(submit);\n } catch (ServletException e) {\n // Need to investigate whether refactoring this\n // try to provide blanket coverage makes sense\n MessageFormat msgFormat = new MessageFormat(ERR_FORWARD_FAILED);\n // Log error and send error message to JspWriter \n out.write(msgFormat.format(new Object[] {submit, namelist}));\n log.error(msgFormat.format(new Object[] {submit, namelist}));\n } // end of try-catch\n }", "public void createModuleJSPPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getWebModuleCompileJspPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleJSPPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "private void Spacing() {\n\n try {\n while (true) {\n try {\n Space();\n } catch (SyntaxError e) {\n Comment();\n }\n }\n } catch (SyntaxError e) {\n }\n }", "public static String toFreeMarkerVariable(String srcPath) {\n\t\t\t\t return \"${\" + srcPath + \"[0]!\\\"\\\"\" + \"}\";\n\t\t\n\t}", "String renderHTML();", "public static void writeInlineScript(final Response response, final CharSequence text, AttributeMap attributes)\n\t{\n\t\twriteOpenTag(response, attributes);\n\t\tresponse.write(Strings.replaceAll(text, \"</\", \"<\\\\/\"));\n\t\twriteCloseTag(response);\n\t}", "public String getJspURI()\n {\n return null;\n }", "private String replaceSingleQuotes(String toReplace) {\n if (!StringUtils.isBlank(toReplace)) {\n return toReplace.replaceAll(\"'\", \"\");\n } else {\n return toReplace;\n }\n\n }", "private String renderSpecific( String strHTML )\n {\n String strRender = strHTML;\n strRender = strRender.replaceAll( \"\\\\[lt;\", \"&lt;\" );\n strRender = strRender.replaceAll( \"\\\\[gt;\", \"&gt;\" );\n strRender = strRender.replaceAll( \"\\\\[nbsp;\", \"&nbsp;\" );\n strRender = strRender.replaceAll( \"\\\\[quot;\", \"&quot;\" );\n strRender = strRender.replaceAll( \"\\\\[amp;\", \"&amp;\" );\n strRender = strRender.replaceAll( \"\\\\[hashmark;\", \"#\" );\n\n if ( _strPageUrl != null )\n {\n strRender = strRender.replaceAll( \"#page_url\", _strPageUrl );\n }\n\n return strRender;\n }", "@Override\r\n\tpublic int doEndTag() throws JspException {\n\t\treturn EVAL_PAGE;\r\n\t}", "@Override\n\tpublic String getShinyStringUIScript() {\n\t\treturn null;\n\t}", "public int doStartTag() throws JspException {\r\n try {\r\n JspWriter out = pageContext.getOut();\r\n \r\n //out.println(\"<script language='javascript' type='text/javascript' src='com/js/solarcalendar.js'></script>\");\r\n out.println(\"<a class='CALENDRIER'>\" + title + \"</a>\");\r\n // I(Reza Ghaffaripour) moved the text field out of this component.user should have a layout:text for date. property of this layout:text should be the name of calendar:solar_dare tag.\r\n // out.println(\"<input type='text' id='\"+name+\"' class='clsDateBox' name='\"+name+\"' />\");\r\n out.println(\"<a href=javascript:NewCal('\" + name + \"')><img border=0 src='\" + srcKey + \"' alt='\" + altKey + \"'></a>\");\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return SKIP_BODY;\r\n }", "private static String trimWhiteSpace(String sentence) {\n\t\tsentence = sentence.replaceAll(\"[^a-zA-Z]\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\n\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\t\", \" \");\n// sentence = sentence.replaceAll(\"\\\\.\", \" \");\n// sentence = sentence.replaceAll(\",\", \" \");\n \n//\t\tint length;\n//\t\tdo {\n//\t\t\tlength = sentence.length();\n//\t\t\tsentence = sentence.replaceAll(\" \", \" \");\n//\n//\t\t} while (sentence.length() < length);\n\t\treturn sentence;\n\t}", "public static String sanitize(String input){\n\t\tinput.replaceAll(\"&\", \"&amp;\");\n\t\tinput.replaceAll(\"<\", \"&lt;\");\n\t\tinput.replaceAll(\">\", \"&gt;\");\n\t\tinput.replaceAll(\"/\", \"&frasl;\");\n\t\treturn input;\n\t}" ]
[ "0.5709579", "0.50377524", "0.5035857", "0.5001365", "0.49834922", "0.48800895", "0.48136213", "0.4743985", "0.47346827", "0.47296247", "0.47097018", "0.46745777", "0.46284994", "0.46116036", "0.45986083", "0.45887062", "0.45875168", "0.45498076", "0.4529526", "0.45264328", "0.45136943", "0.45056403", "0.4481501", "0.44696605", "0.44471925", "0.44116163", "0.44088313", "0.44017267", "0.43974313", "0.43922484", "0.43895745", "0.43865743", "0.43636626", "0.4340321", "0.43181604", "0.43104628", "0.43095535", "0.42968407", "0.4284633", "0.4282588", "0.42793342", "0.4271089", "0.42628315", "0.42509523", "0.42343113", "0.42325085", "0.42248502", "0.42237785", "0.42112237", "0.4207952", "0.42052817", "0.41948673", "0.41941705", "0.4190163", "0.41879115", "0.41778147", "0.41740856", "0.41642928", "0.41642928", "0.4145562", "0.41304675", "0.41139874", "0.41025433", "0.40995553", "0.40893608", "0.40892592", "0.4088668", "0.40855187", "0.4079354", "0.40713713", "0.40691733", "0.40651542", "0.40603873", "0.40566754", "0.40534708", "0.4050679", "0.40480283", "0.4033711", "0.40174526", "0.4016824", "0.39854366", "0.39849234", "0.39844584", "0.39831695", "0.39776272", "0.3975845", "0.39757985", "0.396777", "0.39640605", "0.39639413", "0.39562735", "0.39530054", "0.39516607", "0.39466885", "0.39428458", "0.39426947", "0.3939768", "0.39397404", "0.39394087", "0.39387053" ]
0.57653505
0
Escape XML string. If value is null, this method returns an empty string.
public static String escapeXML(String value){ return FuzzyXMLUtil.escape(value, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String escapeXML(String val)\n {\n if (val == null) {\n return \"\";\n } else {\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < val.length(); i++) {\n char ch = val.charAt(i);\n switch (ch) {\n // -- TODO: must also handle unicode escaping\n case '\\\"':\n sb.append(\"&quot;\");\n break;\n case '\\'':\n sb.append(\"&apos;\");\n break;\n case '<':\n sb.append(\"&lt;\");\n break;\n case '>':\n sb.append(\"&gt;\");\n break;\n case '&':\n sb.append(\"&amp;\");\n break;\n default:\n sb.append(ch);\n break;\n }\n }\n return sb.toString();\n }\n }", "private String escapeXML(String string) {\n if (string == null)\n return \"null\";\n StringBuffer sb = new StringBuffer();\n int length = string.length();\n for (int i = 0; i < length; ++i) {\n char c = string.charAt(i);\n switch (c) {\n case '&':\n sb.append(\"&amp;\");\n break;\n case '<':\n sb.append(\"&lt;\");\n break;\n case '>':\n sb.append(\"&gt;\");\n break;\n case '\\'':\n sb.append(\"&#039;\");\n break;\n case '\"':\n sb.append(\"&quot;\");\n break;\n default:\n sb.append(c);\n }\n }\n return sb.toString();\n }", "private String escapeXML(String string) {\n StringBuffer sb = new StringBuffer();\n int length = string.length();\n for (int i = 0; i < length; ++i) {\n char c = string.charAt(i);\n switch (c) {\n case '&':\n sb.append(\"&amp;\");\n break;\n case '<':\n sb.append(\"&lt;\");\n break;\n case '>':\n sb.append(\"&gt;\");\n break;\n case '\\'':\n sb.append(\"&#039;\");\n break;\n case '\"':\n sb.append(\"&quot;\");\n break;\n default:\n sb.append(c);\n }\n }\n return sb.toString();\n }", "public static String encodeXmlValue(String inString) {\n String retString = inString;\n\n retString = StringUtil.replaceString(retString, \"&\", \"&amp;\");\n retString = StringUtil.replaceString(retString, \"<\", \"&lt;\");\n retString = StringUtil.replaceString(retString, \">\", \"&gt;\");\n retString = StringUtil.replaceString(retString, \"\\\"\", \"&quot;\");\n retString = StringUtil.replaceString(retString, \"'\", \"&apos;\");\n return retString;\n }", "public String escape(String source) {\r\n\t\treturn null;\r\n\t}", "private String escapeValue(String value) {\n Matcher match = escapePattern.matcher(value);\n String ret = match.replaceAll(\"\\\\\\\\\\\\\\\\\");\n return ret.replace(\"\\\"\", \"\\\\\\\"\").replace(\"\\n\", \" \").replace(\"\\t\", \" \");\n }", "public String encodeValue(String value) {\r\n\t\treturn (null == value) ? \"\" : JSONUtil.encodeString(value);\r\n\t}", "private static String escape(String s) {\r\n\t\tif (s == null)\r\n\t\t\treturn null;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tescape(s, sb);\r\n\t\treturn sb.toString();\r\n\t}", "@Override\n\tpublic CharSequence toXML() {\n\t\treturn null;\n\t}", "private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\")\r\n\t\t\t\t.replaceAll(\">\", \"&gt;\");\r\n\t}", "private String escapeString(String value, String queryLanguage) {\n String escaped = null;\n if (value != null) {\n if (queryLanguage.equals(Query.XPATH) || queryLanguage.equals(Query.SQL)) {\n // See JSR-170 spec v1.0, Sec. 6.6.4.9 and 6.6.5.2\n escaped = value.replaceAll(\"\\\\\\\\(?![-\\\"])\", \"\\\\\\\\\\\\\\\\\").replaceAll(\"'\", \"\\\\\\\\'\")\n .replaceAll(\"'\", \"''\");\n }\n }\n return escaped;\n }", "private String escapeHtml(String html) {\n\t\tif (html == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\")\n\t\t\t\t.replaceAll(\">\", \"&gt;\");\n\t}", "private String escapeHtml(String html) {\n\t\tif (html == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\")\n\t\t\t\t.replaceAll(\">\", \"&gt;\");\n\t}", "protected abstract boolean evalEscapeXml() throws JspException;", "private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\">\", \"&gt;\");\r\n\t}", "private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n return html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\n \">\", \"&gt;\");\n }", "private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n return html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\n \">\", \"&gt;\");\n }", "public static String escape(String s) {\r\n if (s == null)\r\n return null;\r\n StringBuffer sb = new StringBuffer();\r\n escape(s, sb);\r\n return sb.toString();\r\n }", "default String escape(CharSequence input) {\n return Strings.escape(input, this);\n }", "public static String escape(CharSequence charSeq)\n\t{\n\t\treturn escape(charSeq, Apostrophe.XML_ENTITY);\n\t}", "public static void encodeXML(PrintWriter out, String str) {\n int n = str.length();\n for (int i = 0; i < n; i++) {\n char c = str.charAt(i);\n if (c == '<') {\n out.write(\"&lt;\");\n continue;\n }\n if (c == '>') {\n out.write(\"&gt;\");\n continue;\n }\n if (c == '&') {\n out.write(\"&amp;\");\n continue;\n }\n if (c == '\\'') {\n out.write(\"&apos;\");\n continue;\n }\n if (c == '\\\"') {\n out.write(\"&quot;\");\n continue;\n }\n if (c >= 32 && c <= 126) {\n out.write(c);\n continue;\n }\n out.write(\"&#x\");\n String v = Integer.toString(c, 16);\n for (int j = v.length(); j < 4; j++)\n out.write('0');\n out.write(v);\n out.write(';');\n }\n }", "public static void encodeXML(StringBuilder out, String str) {\n int n = str.length();\n for (int i = 0; i < n; i++) {\n char c = str.charAt(i);\n if (c == '<') {\n out.append(\"&lt;\");\n continue;\n }\n if (c == '>') {\n out.append(\"&gt;\");\n continue;\n }\n if (c == '&') {\n out.append(\"&amp;\");\n continue;\n }\n if (c == '\\'') {\n out.append(\"&apos;\");\n continue;\n }\n if (c == '\\\"') {\n out.append(\"&quot;\");\n continue;\n }\n if (c >= 32 && c <= 126) {\n out.append(c);\n continue;\n }\n out.append(\"&#x\");\n String v = Integer.toString(c, 16);\n for (int j = v.length(); j < 4; j++)\n out.append('0');\n out.append(v).append(';');\n }\n }", "default Escaper escapeSingleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }", "@Override\n\tpublic String toXMLString(Object arg0) {\n\t\treturn null;\n\t}", "private String encode(String s) {\n\t\tString t = \"\";\n\n\t\tif (s == null) {\n\t\t\treturn t;\n\t\t}\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\n\t\t\tif (c == '<') {\n\t\t\t\tt += \"&lt;\";\n\t\t\t} else if (c == '>') {\n\t\t\t\tt += \"&gt;\";\n\t\t\t} else if (c == '&') {\n\t\t\t\tt += \"&amp;\";\n\t\t\t} else if (c == '\"') {\n\t\t\t\tt += \"&quot;\";\n\t\t\t} else if (c == '\\'') {\n\t\t\t\tt += \"&apos;\";\n\t\t\t} else {\n\t\t\t\tt += c;\n\t\t\t}\n\t\t}\n\n\t\treturn t;\n\t}", "public static String escapeInvalidXMLCharacters(String str) {\n StringBuffer out = new StringBuffer();\n final int strlen = str.length();\n final String substitute = \"\\uFFFD\";\n int idx = 0;\n while (idx < strlen) {\n final int cpt = str.codePointAt(idx);\n idx += Character.isSupplementaryCodePoint(cpt) ? 2 : 1;\n if ((cpt == 0x9) ||\n (cpt == 0xA) ||\n (cpt == 0xD) ||\n ((cpt >= 0x20) && (cpt <= 0xD7FF)) ||\n ((cpt >= 0xE000) && (cpt <= 0xFFFD)) ||\n ((cpt >= 0x10000) && (cpt <= 0x10FFFF))) {\n out.append(Character.toChars(cpt));\n } else {\n out.append(substitute);\n }\n }\n return out.toString();\n }", "public String setValue(String eleValue) {\n return new String(\"A \" + XML_TAG + \" cannot have a text field.\");\n }", "@Override\n public String getSaveValue() {\n String saveValue = super.getSaveValue();\n // Replace &, <, >, ', and \"\n saveValue = saveValue.replace(\"&\", \"&amp;\");\n saveValue = saveValue.replace(\"<\", \"&lt;\");\n saveValue = saveValue.replace(\">\", \"&gt;\");\n saveValue = saveValue.replace(\"\\'\", \"&apos;\");\n saveValue = saveValue.replace(\"\\\"\", \"&quot;\");\n return saveValue;\n }", "@Override\r\n\tpublic String encode() {\n\t\treturn null;\r\n\t}", "default String escapeString(final String input) {\n return noQuestion(GedRenderer.escapeString(input)).trim();\n }", "String toXmlString() throws IOException;", "public static String escapeHTML(String str){\r\n\t\treturn FuzzyXMLUtil.escape(str, true);\r\n\t}", "void write(Writer out, boolean escapeXML) throws IOException;", "public static String encode(String str) {\n if (str.length() == 0)\n return str;\n StringBuilder sb = new StringBuilder();\n encodeXML(sb, str);\n return sb.toString();\n }", "public String toXML() {\n return null;\n }", "public String escape(final String input) {\n\t\tStringBuilder builder = new StringBuilder(input);\n\t\tescape(builder);\n\t\treturn builder.toString();\n\t}", "public String encode() {\n\t\tString encoded_string = ATTRIBUTE_FIELD;\n\t\tif (attribute != null)\n\t\t\tencoded_string += attribute.encode();\n\t\treturn encoded_string + Separators.NEWLINE;\n\t}", "@org.junit.Test\n public void encodeHTML()\n {\n assertEquals(\"apos\", \"I can&#39;t do &#34;this&#34;\",\n Encodings.encodeHTMLAttribute(\"I can't do \\\"this\\\"\"));\n assertEquals(\"no replace\", \"just a test\",\n Encodings.encodeHTMLAttribute(\"just a test\"));\n assertEquals(\"empty\", \"\", Encodings.encodeHTMLAttribute(\"\"));\n }", "private String encodeValue(String value) {\r\n try {\r\n return URLEncoder.encode(value, \"UTF8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // it should not occur since UTF8 should be supported universally\r\n throw new ExcelWrapperException(\"UTF8 encoding is not supported : \" + e.getMessage());\r\n }\r\n }", "public String escapeElementEntities(String str) {\r\n StringBuffer buffer;\r\n char ch;\r\n String entity;\r\n\r\n buffer = null;\r\n for (int i = 0; i < str.length(); i++) {\r\n ch = str.charAt(i);\r\n switch(ch) {\r\n case '<' :\r\n entity = \"&lt;\";\r\n break;\r\n case '>' :\r\n entity = \"&gt;\";\r\n break;\r\n case '&' :\r\n entity = \"&amp;\";\r\n break;\r\n default :\r\n entity = null;\r\n break;\r\n }\r\n if (buffer == null) {\r\n if (entity != null) {\r\n // An entity occurred, so we'll have to use StringBuffer\r\n // (allocate room for it plus a few more entities).\r\n buffer = new StringBuffer(str.length() + 20);\r\n // Copy previous skipped characters and fall through\r\n // to pickup current character\r\n buffer.append(str.substring(0, i));\r\n buffer.append(entity);\r\n }\r\n }\r\n else {\r\n if (entity == null) {\r\n buffer.append(ch);\r\n }\r\n else {\r\n buffer.append(entity);\r\n }\r\n }\r\n }\r\n\r\n // If there were any entities, return the escaped characters\r\n // that we put in the StringBuffer. Otherwise, just return\r\n // the unmodified input string.\r\n return (buffer == null) ? str : buffer.toString();\r\n }", "public static String htmlEscapeCharsToString(String source) {\n if (TextUtils.isEmpty(source)) {\n return source;\n } else {\n return source.replaceAll(\"&lt;\", \"<\").replaceAll(\"&gt;\", \">\").replaceAll(\"&amp;\", \"&\")\n .replaceAll(\"&quot;\", \"\\\"\");\n }\n }", "public interface Escaper {\n\n /**\n * Escape one character, returning an escaped version of it if one is\n * needed, and otherwise returning null.\n *\n * @param c A character\n * @return A character sequence to replace the character with, or null if no\n * escaping is needed\n */\n CharSequence escape(char c);\n\n /**\n * Returns an escaped version of the input character sequence using this\n * Escaper.\n *\n * @param input The input\n * @return The escaped version of it\n */\n default String escape(CharSequence input) {\n return Strings.escape(input, this);\n }\n\n /**\n * Escape a character with contextual information about the current position\n * and the preceding character (will be 0 on the first character); a few\n * escapers that respond to things like delimiters and camel casing make use\n * of this; the default is simply to call <code>escape(c)</code>\n *\n * @param c The character to escape\n * @param index The index of the character within the string\n * @param of The total number of characters in this string\n * @param prev The preceding character\n * @return A CharSequence if the character cannot be used as-is, or null if\n * it can\n */\n default CharSequence escape(char c, int index, int of, char prev) {\n return escape(c);\n }\n\n /**\n * For use when logging a badly encoded string. Converts unencodable\n * characters to hex and ISO control characters to hex or their standard\n * escaped Java string representation if there is one (e.g. 0x05 ->\n * \"&lt;0x05&gt;\" but \\n -> \"\\n\").\n *\n * @param cs The character set.\n * @return A string representation that does not include raw unencodable or\n * control characters.\n */\n static Escaper escapeUnencodableAndControlCharacters(Charset cs) {\n CharsetEncoder enc = cs.newEncoder();\n return c -> {\n switch (c) {\n case '\\t':\n return \"\\\\t\";\n case '\\r':\n return \"\\\\r\";\n case '\\n':\n return \"\\\\n\";\n }\n if (!enc.canEncode(c) || Character.isISOControl(c)) {\n return \"<0x\" + Strings.toHex(c) + \">\";\n }\n return null;\n };\n }\n\n /**\n * Returns an escaper which does not escape the specified character, but\n * otherwise behaves the same as its parent.\n *\n * @param c A character\n * @return a new escaper\n */\n default Escaper ignoring(char c) {\n return c1 -> {\n if (c1 == c) {\n return null;\n }\n return this.escape(c);\n };\n }\n\n /**\n * Combine this escaper with another, such that the passed escaper is used\n * only on characters this escaper did not escape.\n *\n * @param other Another escaper\n * @return A new escaper\n */\n default Escaper and(Escaper other) {\n return new Escaper() {\n @Override\n public CharSequence escape(char c) {\n CharSequence result = Escaper.this.escape(c);\n return result == null ? other.escape(c) : result;\n }\n\n @Override\n public CharSequence escape(char c, int index, int of, char prev) {\n CharSequence result = Escaper.this.escape(c, index, of, prev);\n return result == null ? other.escape(c, index, of, prev) : result;\n }\n };\n }\n\n /**\n * Returns a new escaper which will also escape the passed character by\n * prefixing it with \\ in output.\n *\n * @param c A character\n * @return A new escaper\n */\n default Escaper escaping(char c) {\n return and((char c1) -> {\n if (c1 == c) {\n return \"\\\\\" + c;\n }\n return null;\n });\n }\n\n /**\n * Adds the behavior of escaping \" characters.\n *\n * @return A new escaper\n */\n default Escaper escapeDoubleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }\n\n /**\n * Adds the behavior of escaping ' characters.\n *\n * @return A new escaper\n */\n default Escaper escapeSingleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }\n\n /**\n * Converts some text incorporating symbols into a legal Java identifier,\n * separating symbol names and spaces in unicode character names with\n * underscores. Uses programmer-friendly character names for commonly used\n * characters (e.g. \\ is \"Backslash\" instead of the unicode name \"reverse\n * solidus\" (!). Useful when you have some text that needs to be converted\n * into a variable name in generated code and be recognizable as what it\n * refers to.\n */\n public static Escaper JAVA_IDENTIFIER_DELIMITED = new SymbolEscaper(true);\n\n /**\n * Converts some text incorporating symbols into a legal Java identifier,\n * separating symbol names and spaces using casing. Uses programmer-friendly\n * character names for commonly used characters (e.g. \\ is \"Backslash\"\n * instead of the unicode name \"reverse solidus\" (!). Useful when you have\n * some text that needs to be converted into a variable name in generated\n * code and be recognizable as what it refers to.\n */\n public static Escaper JAVA_IDENTIFIER_CAMEL_CASE = new SymbolEscaper(false);\n\n /**\n * Escapes double quotes, ampersands, less-than and greater-than to their\n * SGML entities.\n */\n public static Escaper BASIC_HTML = c -> {\n switch (c) {\n case '\"':\n return \"&quot;\";\n case '\\'':\n return \"&apos;\";\n case '&':\n return \"&amp;\";\n case '<':\n return \"&lt;\";\n case '>':\n return \"&gt;\";\n case '©':\n return \"&copy;\";\n case '®':\n return \"&reg;\";\n case '\\u2122':\n return \"&trade;\";\n case '¢':\n return \"&cent;\";\n case '£':\n return \"&pound;\";\n case '¥':\n return \"&yen;\";\n case '€':\n return \"&euro;\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes the usual HTML to SGML entities, plus escaping @, { and }, which\n * can otherwise result in javadoc build failures if they appear in code\n * samples.\n */\n public static Escaper JAVADOC_CODE_SAMPLE = c -> {\n switch (c) {\n case '@':\n return \"&#064;\";\n case '{':\n return \"&#123;\";\n case '}':\n return \"&#125;\";\n case '\"':\n return \"&quot;\";\n case '\\'':\n return \"&apos;\";\n case '&':\n return \"&amp;\";\n case '<':\n return \"&lt;\";\n case '>':\n return \"&gt;\";\n case '©':\n return \"&copy;\";\n case '®':\n return \"&reg;\";\n case '\\u2122':\n return \"&trade;\";\n case '¢':\n return \"&cent;\";\n case '£':\n return \"&pound;\";\n case '¥':\n return \"&yen;\";\n case '€':\n return \"&euro;\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes double quotes, ampersands, less-than and greater-than to their\n * SGML entities, and replaces \\n with &lt;br&gt;.\n */\n public static Escaper HTML_WITH_LINE_BREAKS = c -> {\n CharSequence result = BASIC_HTML.escape(c);\n if (result == null) {\n switch (c) {\n case '\\r':\n result = \"\";\n break;\n case '\\n':\n result = \"<br>\";\n }\n }\n return result;\n };\n\n /**\n * Replaces \\n, \\r, \\t and \\b with literal strings starting with \\.\n */\n public static Escaper NEWLINES_AND_OTHER_WHITESPACE = c -> {\n switch (c) {\n case '\\n':\n return \"\\\\n\";\n case '\\t':\n return \"\\\\t\";\n case '\\r':\n return \"\\\\r\";\n case '\\b':\n return \"\\\\b\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes the standard characters which must be escaped for generating\n * valid lines of code in Java or Javascript - \\n, \\r, \\t, \\b, \\f and \\.\n * Does <i>not</i> escape quote characters (this may differ based on the\n * target language) - call escapeSingleQuotes() or escapeDoubleQuotes() to\n * create a wrapper around this escaper which does that.\n */\n public static Escaper CONTROL_CHARACTERS = c -> {\n switch (c) {\n case '\\n':\n return \"\\\\n\";\n case '\\r':\n return \"\\\\r\";\n case '\\t':\n return \"\\\\t\";\n case '\\b':\n return \"\\\\b\";\n case '\\f':\n return \"\\\\f\";\n case '\\\\':\n return \"\\\\\\\\\";\n default:\n return null;\n }\n };\n\n /**\n * Omits characters which are neither letters nor digits - useful for\n * hash-matching text that may have varying amounts of whitespace or other\n * non-semantic formatting differences.\n */\n public static Escaper OMIT_NON_WORD_CHARACTERS = c -> {\n return !Character.isDigit(c) && !Character.isLetter(c) ? \"\"\n : Character.toString(c);\n };\n}", "public static final String XML(final int level,\n final String tag, final String value)\n {\n final StringBuilder buffer = new StringBuilder();\n XML(buffer, level, tag, value);\n return buffer.toString();\n }", "public String toXML(String indent, String namespace) {\n // if ( m_content != null && m_content.length() > 0 ) {\n // StringBuffer result = new StringBuffer( m_content.length() + 16 );\n // result.append( \"<text>\"). append( quote(this.m_content,false) ).append(\"</text>\");\n // return result.toString();\n // } else {\n // return empty_element;\n // }\n if (this.m_content != null) {\n return new String(quote(this.m_content, false));\n } else {\n return new String();\n }\n }", "public String csvEscapeString(String value){\n\t\tif(value==null)\n\t\t\tvalue=\"\";\n\t\treturn value.replaceAll(\"\\\"\", \"'\");\n\t}", "public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}", "public String toXML() {\n return null;\n }", "private String escapedValue(String value) {\n \t\tStringBuffer buf = new StringBuffer(value.length() * 2); // assume expansion by less than factor of 2\n \t\tfor (int i = 0; i < value.length(); i++) {\n \t\t\tchar character = value.charAt(i);\n \t\t\tif (character == '\\\\' || character == '\\t' || character == '\\r' || character == '\\n' || character == '\\f') {\n \t\t\t\t// handle characters requiring leading \\\n \t\t\t\tbuf.append('\\\\');\n \t\t\t\tbuf.append(character);\n \t\t\t} else if ((character < 0x0020) || (character > 0x007e)) {\n \t\t\t\t// handle characters outside base range (encoded)\n \t\t\t\tbuf.append('\\\\');\n \t\t\t\tbuf.append('u');\n \t\t\t\tbuf.append(HEX[(character >> 12) & 0xF]); // first nibble\n \t\t\t\tbuf.append(HEX[(character >> 8) & 0xF]); // second nibble\n \t\t\t\tbuf.append(HEX[(character >> 4) & 0xF]); // third nibble\n \t\t\t\tbuf.append(HEX[character & 0xF]); // fourth nibble\n \t\t\t} else {\n \t\t\t\t// handle base characters\n \t\t\t\tbuf.append(character);\n \t\t\t}\n \t\t}\n \t\treturn buf.toString();\n \t}", "public String toString() {\n String text = xmlNode.getText();\n\n return (text != null) ? text.trim() : \"\";\n }", "private static String escape(String value, String chars) {\n\t\treturn escape(value, chars, \"\\\\\\\\\");\n\t}", "default Escaper escapeDoubleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }", "default HtmlFormatter escapeJava() {\n return andThen(StringEscapeUtils::escapeJava);\n }", "public JsonWriter valueUnescaped(CharSequence value) {\n startValue();\n\n if (value == null) {\n writer.write(kNull);\n } else {\n writer.write('\\\"');\n writer.write(value.toString());\n writer.write('\\\"');\n }\n return this;\n }", "private static String escapeTags(final String input) {\n if ((input == null) || (input.length() == 0)\n || (input.indexOf(\"<\") == -1 && input.indexOf(\">\") == -1)) {\n return input;\n }\n\n StringBuffer buf = new StringBuffer(input);\n return escapeTags(buf);\n }", "private static String escape(String value, String chars, String escapeSequence) {\n\t\tString escaped = value;\n\t\t\n\t\tif (escaped == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tfor (char ch : chars.toCharArray()) {\n\t\t\tescaped = escaped.replaceAll(String.valueOf(ch), escapeSequence + ch);\n\t\t}\n\t\n\t\treturn escaped;\n\t}", "private String base64Encode(String xmlAsString, String xmlEncoding) throws UnsupportedEncodingException {\r\n String xmlencodingDeclaration = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + xmlEncoding + \"\\\"?>\";\r\n byte[] xmlAsBytes = (xmlencodingDeclaration + xmlAsString).getBytes(xmlEncoding);\r\n\r\n byte[] xmlAsBase64 = Base64.encodeBase64(xmlAsBytes);\r\n\r\n // base64 is pure ascii\r\n String xmlAsBase64String = new String(xmlAsBase64, \"ascii\");\r\n\r\n return xmlAsBase64String;\r\n }", "@Override\n public String visitLiteralExpr(Expr.Literal expr) {\n if(expr.getValue() == null) return \"null\";\n if(expr.getValue() instanceof String) return String.format(\"\\\"%s\\\"\", expr.getValue());\n return expr.getValue().toString();\n }", "private static void addTag(StringBuilder xml, final String name,\n\t\t\tfinal String value) {\n\t\tString v = StringMethods.stripHTML(value, true);\n\t\t\n\t\tv = v.replace(\"&\", \"&amp;\");\n\t\tv = v.replace(\"<\", \"&lt;\").replace(\">\", \"&gt;\");\n\t\tv = v.replaceAll(\"\\\\s+\", \" \");\n\n\t\txml.append(\"\\t<\").append(name).append(\">\");\n\t\txml.append(v.trim());\n\t\txml.append(\"</\").append(name).append(\">\\n\");\n\t}", "private String notNull(String value) {\n return value != null ? value : \"\";\n }", "public static String escape(String source) {\n return escape(source, -1, true);\n }", "public String encodeJava()\n {\n return '\"' + val + '\"';\n }", "public static String escape(String string) throws UnsupportedEncodingException {\n\t\t\n fill();\n \n StringBuilder bufOutput = new StringBuilder(string);\n for (int i = 0; i < bufOutput.length(); i++) {\n //String replacement = (String) SPARQL_ESCAPE_SEARCH_REPLACEMENTS.get(\"\" + bufOutput.charAt(i));\n // if(replacement!=null) {\n if( SPARQL_ESCAPE_SEARCH_REPLACEMENTS.contains(bufOutput.charAt(i))) {\n String replacement = URLEncoder.encode( Character.toString(bufOutput.charAt(i)), \"UTF-8\");\n bufOutput.deleteCharAt(i);\n bufOutput.insert(i, replacement);\n // advance past the replacement\n i += (replacement.length() - 1);\n }\n }\n return bufOutput.toString();\n\t}", "public static String nullConv(String value){\r\n\t\tif(value==null){\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public static String unescapeXml(String str)\n\t{\n\t\tif (str == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn Entities.XML.unescape(str);\n\t}", "public String escapeAttributeEntities(String str) {\r\n StringBuffer buffer;\r\n char ch;\r\n String entity;\r\n\r\n buffer = null;\r\n for (int i = 0; i < str.length(); i++) {\r\n ch = str.charAt(i);\r\n switch(ch) {\r\n case '<' :\r\n entity = \"&lt;\";\r\n break;\r\n case '>' :\r\n entity = \"&gt;\";\r\n break;\r\n/*\r\n case '\\'' :\r\n entity = \"&apos;\";\r\n break;\r\n*/\r\n case '\\\"' :\r\n entity = \"&quot;\";\r\n break;\r\n case '&' :\r\n entity = \"&amp;\";\r\n break;\r\n default :\r\n entity = null;\r\n break;\r\n }\r\n if (buffer == null) {\r\n if (entity != null) {\r\n // An entity occurred, so we'll have to use StringBuffer\r\n // (allocate room for it plus a few more entities).\r\n buffer = new StringBuffer(str.length() + 20);\r\n // Copy previous skipped characters and fall through\r\n // to pickup current character\r\n buffer.append(str.substring(0, i));\r\n buffer.append(entity);\r\n }\r\n }\r\n else {\r\n if (entity == null) {\r\n buffer.append(ch);\r\n }\r\n else {\r\n buffer.append(entity);\r\n }\r\n }\r\n }\r\n\r\n // If there were any entities, return the escaped characters\r\n // that we put in the StringBuffer. Otherwise, just return\r\n // the unmodified input string.\r\n return (buffer == null) ? str : buffer.toString();\r\n }", "private String encodeValue(final String dirtyValue) {\n String cleanValue = \"\";\n\n try {\n cleanValue = URLEncoder.encode(dirtyValue, StandardCharsets.UTF_8.name())\n .replace(\"+\", \"%20\");\n } catch (final UnsupportedEncodingException e) {\n }\n\n return cleanValue;\n }", "public static void maybeQuote (int version, StringBuffer buf,\n String value)\n {\n // special case - a \\n or \\r shouldn't happen in any case\n if (isToken(value)) {\n buf.append(value);\n } else {\n buf.append('\"');\n buf.append(escapeDoubleQuotes(value));\n buf.append('\"');\n }\n }", "static public void emitNullableString(RowEmitter outputEmitter, String value) {\r\n\t\tif(value != null)\r\n\t\t\toutputEmitter.addString(value);\r\n\t\telse\r\n\t\t\toutputEmitter.addNull();\r\n\t}", "public static String escapeMarkup(final String s)\n\t{\n\t\treturn escapeMarkup(s, false);\n\t}", "public static String escapeSpecialChars(String value) {\r\n if (value != null) {\r\n for (int c = 0; c < SPECIAL_CHARS.length; c++) {\r\n value = value.replaceAll(\"\" + SPECIAL_CHARS[c], SPECIAL_CHAR_NAME[c]);\r\n }\r\n }\r\n return value;\r\n }", "default Escaper escaping(char c) {\n return and((char c1) -> {\n if (c1 == c) {\n return \"\\\\\" + c;\n }\n return null;\n });\n }", "private String Escapar(String valorAtributo) {\r\n\tString str = valorAtributo;\r\n\t\r\n\tstr = valorAtributo.replaceAll(\"&\", \"&amp;\");\r\n\tstr = str.replaceAll(\"'\", \"&apos;\");\r\n\tstr = str.replaceAll(\"\\\"\", \"&quot;\");\r\n\tstr = str.replaceAll(\"<\", \"&lt;\");\r\n\tstr = str.replaceAll(\">\", \"&gt;\");\r\n\t\r\n\treturn str;\r\n }", "String toXML() throws RemoteException;", "public static final String escapeHTMLTags(String input) { \r\n if (input == null || input.length() == 0) {\r\n return input;\r\n } \r\n StringBuffer buf = new StringBuffer(input.length());\r\n char ch = ' ';\r\n for (int i = 0; i < input.length(); i++) {\r\n ch = input.charAt(i);\r\n if (ch == '<') {\r\n buf.append(LT);\r\n } else if (ch == '>') {\r\n buf.append(GT);\r\n } else if (ch == '\\'') {\r\n buf.append(S_QUTO);\r\n } else if (ch == '\"') {\r\n buf.append(D_QUTO);\r\n } else {\r\n buf.append(ch);\r\n }\r\n }\r\n return buf.toString();\r\n }", "CharSequence escape(char c);", "public static String escape(String string) {\n\t\t\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tStringBuilder output = new StringBuilder(string.length());\n\t\t\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tchar ch = string.charAt(i);\n\t\t\tString hex = Integer.toHexString(ch).toUpperCase();\n\t\t\t\n\t\t\t// handle unicode\n\t\t\tif (ch > 0xfff) {\n\t\t\t\toutput.append(\"\\\\u\").append(hex);\n\t\t\t} else if (ch > 0xff) {\n\t\t\t\toutput.append(\"\\\\u0\").append(hex);\n\t\t\t} else if (ch > 0x7f) {\n\t\t\t\toutput.append(\"\\\\u00\").append(hex);\n\t\t\t} else if (ch < 32) {\n\t\t\t\tswitch (ch) {\n\t\t\t\tcase '\\b':\n\t\t\t\t\toutput.append(\"\\\\b\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\n':\n\t\t\t\t\toutput.append(\"\\\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\t':\n\t\t\t\t\toutput.append(\"\\\\t\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\f':\n\t\t\t\t\toutput.append(\"\\\\f\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\r':\n\t\t\t\t\toutput.append(\"\\\\r\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (ch > 0xf) {\n\t\t\t\t\t\toutput.append(\"\\\\u00\").append(hex);\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"\\\\u000\").append(hex);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tswitch (ch) {\n\t\t\t\tcase '\"':\n\t\t\t\t\toutput.append(\"\\\\\\\"\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\\\':\n\t\t\t\t\toutput.append(\"\\\\\\\\\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\toutput.append(ch);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn output.toString();\n\t}", "public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}", "@Override\n public Boolean tryToEscape() {\n return null;\n }", "@Override\r\n public String toString() {\r\n return (value == null) ? \"\" : value;\r\n }", "@Override\n public String stringify()\n {\n return StringUtils.format(\"\\\"%s\\\"\", StringEscapeUtils.escapeJava(binding));\n }", "private static String encodeStringForAuditField(String auditFieldValue) {\n\n\t\tString result = null;\n\n\t\tif (auditFieldValue != null) {\n\n\t\t\tStringBuilder sb = new StringBuilder(auditFieldValue);\n\t\t\tencodeStringForAuditFieldReplaceString(sb, UtilsStringChar.SPECIAL_LINE_BREAK_STRING, UtilsStringChar.SPECIAL_BLANK_SPACE_STRING);\n\t\t\tencodeStringForAuditFieldReplaceString(sb, UtilsStringChar.SYMBOL_SEMICOLON_STRING, UtilsStringChar.SYMBOL_PIPE_STRING);\n\t\t\tencodeStringForAuditFieldReplaceString(sb, UtilsStringChar.SYMBOL_OPEN_SQUARE_BRACKET_STRING, UtilsStringChar.SYMBOL_HYPHEN_STRING);\n\t\t\tencodeStringForAuditFieldReplaceString(sb, UtilsStringChar.SYMBOL_CLOSE_SQUARE_BRACKET_STRING, UtilsStringChar.SYMBOL_HYPHEN_STRING);\n\t\t\tencodeStringForAuditFieldReplaceString(sb, UtilsStringChar.SYMBOL_OPEN_BRACKET_STRING, UtilsStringChar.SYMBOL_HYPHEN_STRING);\n\t\t\tencodeStringForAuditFieldReplaceString(sb, UtilsStringChar.SYMBOL_CLOSE_BRACKET_STRING, UtilsStringChar.SYMBOL_HYPHEN_STRING);\n\t\t\tresult = sb.toString();\n\n\t\t}\n\n\t\treturn result;\n\n\t}", "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "protected String getEscapedUri(String uriToEscape) {\r\n\t\treturn UriComponent.encode(uriToEscape, UriComponent.Type.PATH_SEGMENT);\r\n\t}", "private void writeQuotedAndEscaped(CharSequence string) {\n if (string != null && string.length() != 0) {\n int len = string.length();\n writer.write('\\\"');\n\n for (int i = 0; i < len; ++i) {\n char cp = string.charAt(i);\n if ((cp < 0x7f &&\n cp >= 0x20 &&\n cp != '\\\"' &&\n cp != '\\\\') ||\n (cp > 0x7f &&\n isConsolePrintable(cp) &&\n !isSurrogate(cp))) {\n // quick bypass for direct printable chars.\n writer.write(cp);\n } else {\n switch (cp) {\n case '\\b':\n writer.write(\"\\\\b\");\n break;\n case '\\t':\n writer.write(\"\\\\t\");\n break;\n case '\\n':\n writer.write(\"\\\\n\");\n break;\n case '\\f':\n writer.write(\"\\\\f\");\n break;\n case '\\r':\n writer.write(\"\\\\r\");\n break;\n case '\\\"':\n case '\\\\':\n writer.write('\\\\');\n writer.write(cp);\n break;\n default:\n if (isSurrogate(cp) && (i + 1) < len) {\n char c2 = string.charAt(i + 1);\n writer.format(\"\\\\u%04x\", (int) cp);\n writer.format(\"\\\\u%04x\", (int) c2);\n ++i;\n } else {\n writer.format(\"\\\\u%04x\", (int) cp);\n }\n break;\n }\n }\n }\n\n writer.write('\\\"');\n } else {\n writer.write(\"\\\"\\\"\");\n }\n }", "public static String getUTF8XMLString(String xml) {\r\n\t\tString xmlUTF8 = \"\";\r\n\t\ttry {\r\n\t\t\txmlUTF8 = URLEncoder.encode(xml, \"utf-8\");\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn xmlUTF8;\r\n\t}", "@Override\r\n\tpublic DTextArea addRaw(final String value) throws DOMException {\r\n\t\tsuper.addRaw(value) ;\r\n\t\treturn this ;\r\n\t}", "static String wrap(Object value)\n/* */ {\n/* 156 */ if ((value == null) || (\"-\".equals(value))) {\n/* 157 */ return \"-\";\n/* */ }\n/* */ try\n/* */ {\n/* 161 */ svalue = value.toString();\n/* */ } catch (Throwable e) { String svalue;\n/* 163 */ ExceptionUtils.handleThrowable(e);\n/* */ \n/* 165 */ return \"-\";\n/* */ }\n/* */ \n/* */ String svalue;\n/* 169 */ StringBuilder buffer = new StringBuilder(svalue.length() + 2);\n/* 170 */ buffer.append('\"');\n/* 171 */ int i = 0;\n/* 172 */ while (i < svalue.length()) {\n/* 173 */ int j = svalue.indexOf('\"', i);\n/* 174 */ if (j == -1) {\n/* 175 */ buffer.append(svalue.substring(i));\n/* 176 */ i = svalue.length();\n/* */ } else {\n/* 178 */ buffer.append(svalue.substring(i, j + 1));\n/* 179 */ buffer.append('\"');\n/* 180 */ i = j + 1;\n/* */ }\n/* */ }\n/* */ \n/* 184 */ buffer.append('\"');\n/* 185 */ return buffer.toString();\n/* */ }", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String toXMLString() {\n\t\treturn toXMLString(XML_TAB, XML_NEW_LINE);\n\t}", "public String getEncodedValue() throws UnsupportedEncodingException {\n return URLEncoder.encode(this.value, \"UTF-8\");\n }", "public static String toStringValue(final Element element) throws XMLException{\n\t\ttry {\n\t\t\tfinal ByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\twrite(element, baos, null);\n\t\t\treturn baos.toString();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}", "protected static void writeQuotedStringValue(ByteArrayOutputStream out, byte[] buf) {\n int len = buf.length;\n byte ch;\n for (int i = 0; i < len; i++) {\n ch = buf[i];\n if (needEscape((char) ch)) {\n out.write('\\\\');\n }\n out.write(ch);\n }\n }", "private String encodeXSS(String s) { \n if (s == null || \"\".equals(s)) { \n return s; \n } \n StringBuilder sb = new StringBuilder(s.length() + 16); \n for (int i = 0; i < s.length(); i++) { \n char c = s.charAt(i); \n switch (c) { \n \n //handle the '<' and '>' which can be used for constructing <script> and </script> \n case '>': \n sb.append('>'); \n break; \n case '<': \n sb.append('<'); \n break; \n \n //since the html can support the characters using $#number format \n //so here also need to escape '#','&' and quote symbol \n case '\\'': \n sb.append('‘'); \n break; \n case '\\\"': \n sb.append('“'); \n break; \n case '&': \n sb.append('&'); \n break; \n case '\\\\': \n sb.append('\'); \n break; \n case '#': \n sb.append('#'); \n break; \n //if not the special characters ,then output it directly \n default: \n sb.append(c); \n break; \n } \n } \n return sb.toString(); \n }", "String escStr(String pSource) throws Exception;", "public static String escapeMarkup(final String s,\n\t\t\tfinal boolean escapeSpaces, final boolean convertToHtmlUnicodeEscapes)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal StringBuffer buffer = new StringBuffer();\n\n\t\t\tint len = s.length();\n\t\t\tfor (int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\tfinal char c = s.charAt(i);\n\n\t\t\t\tswitch (c)\n\t\t\t\t{\n\t\t\t\t\tcase '\\t' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Assumption is four space tabs (sorry, but that's\n\t\t\t\t\t\t\t// just\n\t\t\t\t\t\t\t// how it is!)\n\t\t\t\t\t\t\tbuffer.append(\"&nbsp;&nbsp;&nbsp;&nbsp;\");\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\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase ' ' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(\"&nbsp;\");\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\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '<' :\n\t\t\t\t\t\tbuffer.append(\"&lt;\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '>' :\n\t\t\t\t\t\tbuffer.append(\"&gt;\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '&':\n\n\t\t\t\t\t\t// if this is an entity (&#), then do not convert\n\t\t\t\t\t\tif ( (i < len - 1) && (s.charAt(i + 1) == '#') )\n\t\t\t\t\t {\n\t\t\t\t\t\t\tbuffer.append(c);\n\n\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\t// it is not an entity, so convert it to &amp;\n\t\t\t\t\t\t\tbuffer.append(\"&amp;\");\n\t\t\t\t\t\t}\n\t\t\t\t\t break;\n\n\t\t\t\t\tcase '\"':\n\t\t\t\t\t buffer.append(\"&quot;\");\n\t\t\t\t\t break;\n\n\t\t\t\t\tcase '\\'':\n\t\t\t\t\t buffer.append(\"&#039;\");\n\t\t\t\t\t break;\n\n\t\t\t\t\tdefault :\n\n\t\t\t\t\t\tif(convertToHtmlUnicodeEscapes)\n\t\t\t\t\t\t{\n\t\t\t int ci = 0xffff & c;\n\t\t\t if (ci < 160 )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// nothing special only 7 Bit\n\t\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\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 // Not 7 Bit use the unicode system\n\t\t\t\t\t\t\t\tbuffer.append(\"&#\");\n\t\t\t\t\t\t\t\tbuffer.append(new Integer(ci).toString());\n\t\t\t\t\t\t\t\tbuffer.append(';');\n\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\tbuffer.append(c);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn buffer.toString();\n\t\t}\n\t}", "public static String HTMLEncode(String str) {\n\t\tif(null == str)\n\t\t\treturn \"null\";\n\t\tStringBuffer strbuf = new StringBuffer(str.length());\n\t\tchar tmp;\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\ttmp = str.charAt(i);\n\t\t\tif('<' == tmp) {\n\t\t\t\tstrbuf.append(\"&lt;\");\n\t\t\t} else if('>' == tmp) {\n\t\t\t\tstrbuf.append(\"&gt;\");\n\t\t\t} else {\n\t\t\t\tstrbuf.append(tmp);\n\t\t\t}\n\t\t}\n\t\treturn strbuf.toString();\n\t}", "protected String escape( String text )\n {\n return text.replaceAll( \"([`\\\\|*_])\", \"\\\\\\\\$1\" );\n }" ]
[ "0.723797", "0.70593476", "0.6465881", "0.63053274", "0.57849246", "0.57564056", "0.5716876", "0.5669871", "0.5634869", "0.5606824", "0.5600112", "0.5587571", "0.5587571", "0.5568643", "0.55607796", "0.55173916", "0.55173916", "0.5512208", "0.54848653", "0.54721344", "0.54682636", "0.54571176", "0.54473555", "0.54458165", "0.54431796", "0.5420293", "0.5345071", "0.5341822", "0.53131586", "0.5281444", "0.5232346", "0.521404", "0.5207854", "0.5202336", "0.5174901", "0.5172912", "0.51576495", "0.51504326", "0.5147301", "0.51347667", "0.5115998", "0.51151514", "0.5077116", "0.5058217", "0.5041278", "0.5030087", "0.5021112", "0.49971402", "0.49950084", "0.49836713", "0.4958565", "0.4958302", "0.49445474", "0.49420875", "0.49263707", "0.4924528", "0.49130395", "0.49014664", "0.4886466", "0.48854926", "0.48714703", "0.48630968", "0.48558226", "0.48443347", "0.48420918", "0.484179", "0.4813319", "0.48085612", "0.4804897", "0.47916722", "0.47890282", "0.47878632", "0.47854933", "0.47828397", "0.4776243", "0.47751102", "0.47609246", "0.4757656", "0.47540134", "0.47494555", "0.47494024", "0.4738643", "0.4738643", "0.4738643", "0.47254786", "0.47191814", "0.47170725", "0.47108054", "0.47101706", "0.47072935", "0.47072935", "0.4707081", "0.47041604", "0.4699581", "0.4692303", "0.46858358", "0.46747655", "0.4656494", "0.4656196", "0.46525323" ]
0.780409
0
Wrapps XPathgetValue() of FuzzyXML. This method provides following additional features. returns null when exceptions are caused. trims a return value.
public static String getXPathValue(FuzzyXMLElement element,String xpath){ try { String value = (String)XPath.getValue(element,xpath); return value.trim(); } catch(Exception ex){ return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XPath getValue()\n {\n return m_valueExpr;\n }", "org.apache.xmlbeans.XmlString xgetValue();", "public Value getValue() {\n if (!dirty && !expressionUsesTime) {\n return cachedValue;\n }\n try {\n // System.out.print(\"/// {\" + number + \"} calculate \" + element.getTagName() + \"#\" + element.getAttributeNS(null, \"id\")\n // + \".\" + attributeLocalName + \" = \" + expression + \": \");\n // System.out.println(\"Executing XPath: \" + expression);\n // dumpDocument(element.getOwnerDocument(), 0);\n\n // System.out.println(\"[\" + st + \"] \" + expression);\n // long t1 = java.util.Calendar.getInstance().getTime().getTime();\n // for (int i = 0; i < 100; i++) {\n // xpath.execute(constraintEngine.xpathContext, element, prefixResolver);\n // }\n // long t2 = System.currentTimeMillis();\n st++;\n //constraintEngine.xpathContext = new XPathContext(constraintEngine);\n \n \n //xpath = new XPath(expression, prefixResolver);\n //System.out.println(\"Constraint.getValue() width context: \" + constraintEngine.xpathContext);\n //constraintEngine.xpathContext.reset(); // xgx\n XObject xo = xpath.execute(constraintEngine.xpathContext, element, prefixResolver);\n st--;\n // long t3 = System.currentTimeMillis();\n // if (st == 0) {\n // System.out.println(\"evaluation: \" + (t2 - t1) / 100.0);\n // }\n Value v = Value.createValue(/*constraintEngine,*/ xo);\n Value newValue;\n if (type == Value.TYPE_UNKNOWN) {\n newValue = v;\n } else {\n newValue = v.convertTo(type, element);\n }\n if (!newValue.equals(cachedValue)) {\n // System.out.println(newValue);\n cachedValue = newValue;\n // propagate changes\n // System.out.println(\"== propagating:\");\n // System.out.println(\"== getting constraints that depend on \" + element.getNodeName() + \"/@\" + attributeNamespaceURI + \":\" + attributeLocalName);\n propagateChanges(\n constraintEngine.getReverseDependencies(element,\n attributeNamespaceURI, \n attributeLocalName));\n propagateChanges(\n constraintEngine.getReverseDependencies(element,\n null, \n null));\n propagateChanges(\n constraintEngine.getReverseBboxDependencies(element));\n } else {\n // System.out.println(\"unnecessary\");\n }\n // System.out.println(\"Result: \" + cachedValue);\n dirty = false;\n return cachedValue;\n } catch (javax.xml.transform.TransformerException te) {\n constraintEngine.stopTimer();\n throw new ConstraintException(\"Error evaluating XPath expression: \"\n + te.getMessageAndLocation(), te);\n }\n }", "public org.apache.xmlbeans.XmlString xgetValue()\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(VALUE$12);\n return target;\n }\n }", "private String getValueFromXPath(HtmlPage appPage, String xPath) throws Exception {\n\t\treturn ((HtmlElement) appPage.getByXPath(xPath).get(0)).asText();\n\t}", "private String getValueFromXPathAndDescendants(HtmlPage appPage, String xPath) throws Exception {\n\t\treturn ((HtmlElement) appPage.getByXPath(xPath).get(0)).getTextContent();\n\t}", "@Override\r\n public Node getNodeFromValue(Object value_p, Document doc_p) throws Exception\r\n {\n return null;\r\n }", "@Override\n public Object xpathGet(String xpath, Object alternative) {\n if (xpath==null) {\n return alternative;\n }\n\n try {\n return fetchJXPathContext().getValue(XPath.xpath(xpath));\n } catch (Throwable e) {\n return alternative;\n }\n }", "public Object getValue()\n\t\t{\n\t\t\tif (m_evaluated)\n\t\t\t{\n\t\t\t\treturn m_value;\n\t\t\t}\n\t\t\tCollection<Pin<? extends Node>> pins = getInputLinks(m_index);\n\t\t\tif (getInputArity() == 0)\n\t\t\t{\n\t\t\t\t// Special case for functions with input arity of 0\n\t\t\t\tm_evaluated = true;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tfor (Pin<?> p : pins)\n\t\t\t{\n\t\t\t\tif (p instanceof FunctionPin)\n\t\t\t\t{\n\t\t\t\t\tm_value = ((FunctionPin<?>) p).getValue();\n\t\t\t\t\tm_evaluated = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!m_evaluated)\n\t\t\t{\n\t\t\t\tthrow new FunctionException(\"Cannot get value\");\n\t\t\t}\n\t\t\treturn m_value;\n\t\t}", "private static String getValue(XPath xpath, String defaultNamespacePrefix, String XMLPath, Node node) throws XPathExpressionException {\n String expression = \"\";\n if (StringUtils.isNotEmpty(defaultNamespacePrefix)) {\n expression += defaultNamespacePrefix + \":\";\n }\n expression += convertXMLPathToLowerCase(XMLPath);\n return xpath.evaluate(expression, node);\n }", "public org.apache.xmlbeans.XmlObject getValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(VALUE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "private Node handleValueDefinition(XPath xPath) throws XPathExpressionException {\n Node valueDef = (Node)xPath.evaluate(\"./*/cda:repeatNumber\", this.entry, XPathConstants.NODE);\n if (valueDef == null) {\n // TODO: HQMF needs better differentiation between SUM & COUNT...\n // currently using presence of repeatNumber...\n if (this.type.equals(\"COUNT\")) {\n this.type = \"SUM\";\n }\n valueDef = (Node)xPath.evaluate(\"./*/cda:value\", this.entry, XPathConstants.NODE);\n }\n\n // TODO: Resolve extracting values embedded in criteria within outboundRel's\n if (this.type.equals(\"SUM\")) {\n valueDef = (Node)xPath.evaluate(\"./*/*/*/cda:value\", this.entry, XPathConstants.NODE);\n }\n\n if (valueDef != null) {\n String valueType = XmlHelpers.getAttributeValue(valueDef, xPath, \"./@type\", \"\");\n if (valueType.equals(\"ANY\")) {\n this.value = new AnyValue();\n }\n }\n\n return valueDef;\n }", "@Override\n public NamespacedProperty getValueMessageElementXpath() {\n return valueMessageElementXpath;\n }", "private T bestValue(MatchTreeNode<T> node) {\n T value = null;\n if (node != null) {\n if (node.child(\"/\") != null) {\n value = node.child(\"/\").value();\n } else {\n value = bestValue(node.parent());\n }\n }\n return value;\n }", "public XPathExpr getXPathExpr()\n {try{__CLR4_0_68g8gl1l0dv4j.R.inc(311);\n __CLR4_0_68g8gl1l0dv4j.R.inc(312);return getXPathExpr( true );\n }finally{__CLR4_0_68g8gl1l0dv4j.R.flushNeeded();}}", "public String getXPath() {\n/* 114 */ return this.xPath;\n/* */ }", "protected Object evaluate(Expression xPathCondition, DynaBean contextBean, Object currentContextNode,\n String leafRefValue, QName leafQName) {\n logDebug(\"Evalute for xpath {} contextBean {} currentContextNode {} leafRefValue {} leafQName {}\", xPathCondition, contextBean,\n currentContextNode, leafRefValue, leafQName);\n Object value = null;\n Expression ex = xPathCondition;\n Expression xPathForValidation = null;\n Expression xPath = xPathCondition;\n \n DSExpressionValidator childValidator = m_validators.get(xPathCondition.getClass());\n if (childValidator != null) {\n logDebug(\"Found a validator {} for xpath {}\", childValidator, xPathCondition);\n Object result = childValidator.evaluate(xPathCondition, contextBean, currentContextNode, leafRefValue, leafQName);\n logDebug(\"--> XPath {} evaluates to {}\", xPathCondition, result);\n return result;\n }\n \n if (isLocationPathWithSteps(ex) && !hasParentSteps(ex)){\n xPathForValidation = removePrefixes(xPath);\n JXPathContext context = getContext(contextBean);\n\n if (currentContextNode == null && xPath.toString().contains(DataStoreValidationUtil.CURRENT_PATTERN)) {\n // indicates the node is not created yet.\n value = true;\n } else if (leafRefValue != null) {\n value = validateLeafRef(context, xPathForValidation.toString(), leafRefValue);\n } else {\n value = context.getValue(xPathForValidation.toString());\n }\n logDebug(\"evaluate value is {} for xpath {} contextBean {}\", value, xPathForValidation, contextBean);\n\n if ((value == null || (value instanceof Boolean && !((Boolean) value))) && isAbsolutePath(ex)) {\n if (leafRefValue == null) {\n value = validateAbsolutePath(xPathCondition, contextBean, currentContextNode, leafRefValue, leafQName);\n } else if (leafRefValue != null && ex instanceof LocationPath){\n LocationPath newPath = (LocationPath) ex;\n if (isContextBeanAtFirstStep(newPath, contextBean, leafRefValue)){\n newPath = DataStoreValidationUtil.excludeFirstStep(newPath);\n }\n ModelNode contextNode = DataStoreValidationUtil.isReadable(contextBean, ModelNodeWithAttributes.MODEL_NODE)?(ModelNode) contextBean.get(ModelNodeWithAttributes.MODEL_NODE):null;\n DataSchemaNode schemaNode = contextNode==null? null:SchemaRegistryUtil.getSchemaNodeForXpath(contextNode.getSchemaRegistry(), contextNode.getModelNodeSchemaPath(), (LocationPath) removePrefixes(newPath));\n if((schemaNode != null && !schemaNode.isConfiguration()) || (schemaNode == null && isXPathForStateValidation(contextBean, newPath))) {\n // if the path is for state validation\n if (isStateValidation(contextBean, newPath)) {\n value = evaluateStateData(newPath, contextBean, null, leafRefValue, leafQName);\n } else {\n // the next step is not state\n value = evaluateStateInPath(newPath, contextBean, currentContextNode, leafRefValue, leafQName);\n }\n }\n }\n }\n }\n\n if (value == null || (value instanceof Boolean && !((Boolean) value))) {\n if (DataStoreValidationUtil.isCoreOperation(ex)) {\n // xpath is an expression a/b/c = 'a'\n value = getExpressionValue(contextBean, currentContextNode, leafRefValue, leafQName, (CoreOperation) ex);\n } else if (isLocationPathWithSteps(ex)) {\n if (xPathForValidation != null && ((LocationPath) ex).getSteps()[0].getAxis() == Compiler.AXIS_PARENT) {\n // xpath is already processed and has a parent step\n String stepName = DataStoreValidationUtil.getLocalName(((LocationPath) ex).getSteps()[0]);\n if (xPathForValidation != null && stepName != null) {\n stepName = ModelNodeDynaBeanFactory.getDynaBeanAttributeName(stepName);\n String contextName = ModelNodeDynaBeanFactory.getDynaBeanAttributeName(contextBean.getDynaClass().getName());\n if (!(DataStoreValidationUtil.isReadable(contextBean, stepName) && !contextName.equals(stepName))) {\n // if contextBean already has the first step of the location step and\n // xPathForValidation is not null, indicating it is built\n // the dynaBean name and stepName are not same (meaning container/attribute do not share the same name)\n // then we are good to validate\n value = validateLocationPath(contextBean, (LocationPath) ex, currentContextNode, leafRefValue, leafQName);\n } else {\n logDebug(\"Path already evaluated at bean {} for {}\", contextBean, ex);\n }\n }\n } else if (isContextBeanAtFirstStep(ex, contextBean, leafRefValue)) {\n value = validatePathAtContextBean(xPathCondition, contextBean, currentContextNode, leafRefValue, leafQName);\n } else if (((LocationPath) ex).getSteps()[0].getAxis() != Compiler.AXIS_PARENT\n && !isfirstStepSameAsRootNode(ex, contextBean)) {\n /**\n * If this is an absolute path starting with one of the root Nodes and the current ContextBean is on a different tree\n * than the first step of this tree, well lets try and validate on a different Root Node that this xPath wants.\n */\n ModelNode modelNode = getRootNodeFor(ex);\n if (modelNode != null) {\n value = evaluate(xPathCondition, (DynaBean) modelNode.getValue(), currentContextNode, leafRefValue, leafQName);\n } else {\n logDebug(\"No config tree identified for expression {}\", ex);\n }\n } else {\n value = validateLocationPath(contextBean, (LocationPath) ex, currentContextNode, leafRefValue, leafQName);\n }\n } else {\n LOGGER.warn(null, \"ex {} not evaluated. Neither a locationPath/coreOperation or a coreFunction\", ex.toString());\n }\n\n } else {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(null,\n \"{} is neither at first step, is not a core operation and does not have a parent for contextBean or a locationPath {}\",\n ex, ModelNodeDynaClass.getContextBeanName(contextBean));\n }\n }\n logDebug(\"--> XPath {} evaluates to {}\", xPathCondition, value);\n return value;\n }", "public org.apache.xmlbeans.XmlFloat xgetReturn()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlFloat target = null;\r\n target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(RETURN$0, 0);\r\n return target;\r\n }\r\n }", "@Override\r\n\t\tpublic String getNodeValue() throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}", "private String getFieldUsingXPath(String xpathQuery) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"getFieldUsingXPath\");\n\t\t}\n\t\tString result = null;\n\t\ttry {\n\t\t\tresult = DOMUtil.value(this.data, xpathQuery, NamespacesConnections.nameSpaceCtx);\n\t\t} catch (XMLException e) {\n\t\t\tlogger.log(Level.SEVERE, Messages.MessageGenericError + \"getFieldUsingXPath\");\n\t\t}\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.exiting(sourceClass, \"getFieldUsingXPath\");\n\t\t}\n\t\treturn result;\n\t}", "public String getNodeValue ();", "String getXPath();", "@Override\r\n public Object getValueFromNode(Node node_p) throws Exception\r\n {\n return null;\r\n }", "public String getXPath();", "public synchronized String getValueOfNode(String path)\n throws ProcessingException {\n String value = null;\n\n path = this.createPath(path); // correct path\n value = DOMUtil.getValueOf(data, path, this.xpathProcessor);\n\n return value;\n }", "public final XmlTextInfo value ()\r\n {\r\n return _value;\r\n }", "@Override\n public Object xpathGet(String xpath) {\n if (xpath==null) {\n return null;\n }\n\n try {\n return fetchJXPathContext().getValue(XPath.xpath(xpath));\n } catch (JXPathException e) {\n throw new TypeXPathException(e);\n }\n }", "protected String value () throws HTMLParseException {\r\n while (nextToken == EQUALS) {\r\n match (EQUALS);\r\n if (nextToken == STRING ||\r\n nextToken == SQSTRING ||\r\n nextToken == DQSTRING) {\r\n String val = stringValue;\r\n match (nextToken);\r\n return val;\r\n }\r\n return \"\";\r\n }\r\n return null;\r\n }", "public String getNodeValue(Node node) throws Exception;", "public Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) {\n/* 67 */ if (value.getCssValueType() == 1 && value.getPrimitiveType() == 20)\n/* */ {\n/* */ \n/* 70 */ return new URIValue(value.getStringValue(), value.getStringValue());\n/* */ }\n/* */ \n/* 73 */ return value;\n/* */ }", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "public String getXPath(String xpath, String value) {\n\t\treturn String.format(xpath, value);\n\t}", "public float getReturn()\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(RETURN$0, 0);\r\n if (target == null)\r\n {\r\n return 0.0f;\r\n }\r\n return target.getFloatValue();\r\n }\r\n }", "public String getXPath() {\n return xPathStr;\n }", "private static String getValuesFromDom(Document doc, XPath xpath, String typeAttr) {\t\t\t\t// Function definition to get the value of POP12\n \n\t\tString attrValue = null;\n try {\n XPathExpression xpathExpression = xpath.compile(\"/dwml/data/parameters/\"+typeAttr+\"/value/text()\");\n attrValue = (String) xpathExpression.evaluate(doc, XPathConstants.STRING);\n \n } catch (XPathExpressionException e) {\n e.printStackTrace();\n }\n if(attrValue.equals(null)||attrValue.equals(\"\")){\n \treturn \"NA\";\n }\n return attrValue;\n }", "public String getValue(String uri, String localName) {\n/* 208 */ Node a = this.m_attrs.getNamedItemNS(uri, localName);\n/* 209 */ return (a == null) ? null : a.getNodeValue();\n/* */ }", "public java.lang.String getValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "org.apache.xmlbeans.XmlInt xgetValue();", "public Item evaluateItem(XPathContext xpathContext) throws XPathException\n \t{\n \t\tXPathFunctionContext functionContext = getFunctionContext(xpathContext);\n \n \t\tif (functionContext != null)\n \t\t{\n Item item = argument[0].evaluateItem(xpathContext);\n \n if (item != null) {\n Node node = (Node) ((NodeWrapper) item).getUnderlyingNode();\n \n NamedNodeMap namedNodeMap = node.getAttributes();\n StringBuffer props = new StringBuffer(\"{\");\n \n for (int i = 0;i <namedNodeMap.getLength(); i++) {\n Attr attributeNode = (Attr) namedNodeMap.item(i);\n props.append(\"\\\"\" + attributeNode.getName() + \"\\\"\");\n props.append(\":\");\n props.append(\"\\\"\" + attributeNode.getValue() + \"\\\"\");\n props.append(',');\n }\n \n props.deleteCharAt(props.length()-1);\n \n props.append(\"}\");\n \n \n return new StringValue(props.toString());\n \t\t\t}\n \t\t}\n \t\treturn new StringValue(\"{}\");\n \t}", "R getValue();", "public String getValue2();", "Expression getRValue();", "public XPathFactory getXPathFactory()\n {try{__CLR4_0_68g8gl1l0dv4j.R.inc(309);\n __CLR4_0_68g8gl1l0dv4j.R.inc(310);return this.xpathFactory;\n }finally{__CLR4_0_68g8gl1l0dv4j.R.flushNeeded();}}", "ReturnedValueEvaluationCondition getReturnedValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "public String getValue2(Element elem, String str) {\n if (elem != null) {\n Node child;\n if (elem.hasChildNodes()) {\n StringBuilder sb = new StringBuilder();\n\n for (child = elem.getFirstChild(); child != null; child = child\n .getNextSibling()) {\n// DOMImplementationLS lsImpl = (DOMImplementationLS)elem.getOwnerDocument().getImplementation().getFeature(\"LS\", \"3.0\");\n//\n// LSSerializer lsSerializer = lsImpl.createLSSerializer();\n// sb.append(lsSerializer.writeToString(child));\n// Log.e(TAG, \"getElementValue2: node item\"+child.getPrefix());\n// Element e= (Element) elem;\n//\n// Log.e(TAG, \"getElementValue2: node item\"+e.getAttributeNS(null,\"url\") );\n//\n// if (e.hasAttribute(\"url\")) {\n// String a=e.getAttribute(\"url\");\n// Log.e(TAG, \"getElementValue3: data:: \" + a);\n// return a;\n// }\n if (child.getNodeType() == Node.TEXT_NODE || (child.getNodeType() == Node.CDATA_SECTION_NODE)) {\n return child.getNodeValue();\n }\n if (child.getNodeType() == Node.ATTRIBUTE_NODE) {\n String key = child.getAttributes().getNamedItem(\"url\").getNodeValue();\n Log.e(TAG, \"getElementValuex: \"+key );\n return child.getNodeValue();\n }\n }\n }\n }\n return \"\";\n }", "public abstract XPathExpression getExpression();", "public abstract Object getValue(Context context) throws PropertyException;", "public abstract R getValue();", "@Override\n @SuppressWarnings(\"unchecked\")\n public <T extends Object> T xpathGet(String xpath, T alternative, Class<T> clazz) {\n if (xpath==null) {\n return alternative;\n }\n\n try {\n return (T)fetchJXPathContext().getValue(XPath.xpath(xpath), clazz);\n } catch (JXPathException e) {\n return alternative;\n }\n }", "public String getValue(String xmlName)\n {\n int index = getIndex(xmlName);\n \n if (index < 0)\n {\n return null;\n }\n return getValue(index);\n }", "public Item evaluateItem(XPathContext context) throws XPathException {\n CharSequence content;\n StringValue result;\n try {\n StringValue hrefVal = (StringValue)argument[0].evaluateItem(context);\n if (hrefVal == null) {\n return null;\n }\n String href = hrefVal.getStringValue();\n\n String encoding = null;\n if (getNumberOfArguments() == 2) {\n encoding = argument[1].evaluateItem(context).getStringValue();\n }\n content = readFile(href, expressionBaseURI, encoding, context);\n result = new StringValue(content);\n } catch (XPathException err) {\n if (operation == UNPARSED_TEXT_AVAILABLE) {\n return BooleanValue.FALSE;\n } else {\n err.maybeSetErrorCode(\"XTDE1170\");\n throw err;\n }\n }\n switch (operation) {\n case UNPARSED_TEXT_AVAILABLE:\n return BooleanValue.TRUE;\n case UNPARSED_TEXT:\n return result;\n case UNPARSED_TEXT_LINES:\n String contentString = content.toString();\n if (contentString.indexOf('\\n') >=0 || contentString.indexOf('\\r') >= 0) {\n throw new XPathException(\"unparsed-text-lines() returned a sequence of more than one string\", \"XPTY0004\");\n } else {\n return result;\n }\n default:\n throw new UnsupportedOperationException(operation+\"\");\n }\n }", "protected IExpressionValue function()throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\tIExpressionValue ret = this.possibleVal();\r\n\t\tskipWhite();\r\n\t\tif (this.look == '(') {\r\n\t\t\tif (this.value.equalsIgnoreCase(\"CARDINALITY\")) {\r\n\t\t\t\treturn cardinality();\r\n\t\t\t} else if (this.value.equalsIgnoreCase(\"MIN\") ) {\r\n\t\t\t\treturn min();\r\n\t\t\t} else if (this.value.equalsIgnoreCase(\"MAX\") ) {\r\n\t\t\t\treturn max();\r\n\t\t\t} else {\r\n\t\t\t\tfor (IUserDefinedFunctionBuilder functionBuilder : getUserFunctionPluginManager().getFunctionBuilders()) {\r\n\t\t\t\t\tif (this.value.equalsIgnoreCase(functionBuilder.getFunctionName())) {\r\n\t\t\t\t\t\treturn external_function(functionBuilder);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// if reached this point, we did not find function with specified name\r\n\t\t\t\t// Debug.println(\"UNKNOWN FUNCTION FOUND: \" + this.value);\r\n\t\t\t\tthrow new TableFunctionMalformedException(((getSSBNNode()!=null)?getSSBNNode():getNode()) + \" : \" + this.getResource().getString(\"UnexpectedTokenFound\")\r\n\t\t\t\t\t\t+ \": \" + value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"Function returning \" + ret);\r\n\t\treturn ret;\r\n\t}", "org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector.Xpath xgetXpath();", "protected abstract SoyValue compute();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "E getValue();", "public void test_fn_matches_2() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/fn-matches-2.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/fn-matches-2.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "org.apache.calcite.avatica.proto.Common.TypedValue getValue();", "protected abstract Value evaluate();", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract Value getValue();", "public void test_fn_matches_6() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/fn-matches-6.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/fn-matches-6.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "public void test_fn_matches_1() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/fn-matches-1.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/fn-matches-1.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Override\n public double getResult(Map<String, Double> values) {\n List<Node> nodes = getChildNodes();\n double result = nodes.get(0).getResult(values);\n if (nodes.size() > 1) {\n for (int i = 1; i < nodes.size(); i++) {\n result = result / nodes.get(i).getResult(values);\n }\n }\n return result;\n }", "@Override\n public Value<Void> evaluate(ValueReferenceResolver valueRefResolver) {\n return null;\n }", "Expression getValue();", "Expression getValue();", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value xgetValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "T getValue();", "T getValue();", "T getValue();", "T getValue();", "T getValue();" ]
[ "0.63106513", "0.5993896", "0.58984745", "0.58021474", "0.5756635", "0.575124", "0.5741155", "0.5695306", "0.5652864", "0.5652147", "0.5638094", "0.5602029", "0.5559012", "0.55542415", "0.55540395", "0.5542199", "0.5531485", "0.5494795", "0.5462532", "0.5452149", "0.5412901", "0.5400501", "0.53901535", "0.5386723", "0.532222", "0.5276708", "0.5271425", "0.5245808", "0.5242377", "0.5219631", "0.5178482", "0.5175135", "0.5175135", "0.5175135", "0.5175135", "0.5175135", "0.5175135", "0.5175135", "0.5160086", "0.5154892", "0.51388663", "0.51374066", "0.5106582", "0.50964403", "0.5092993", "0.50912", "0.5082815", "0.5075834", "0.50567347", "0.5047533", "0.5036946", "0.5035555", "0.5035555", "0.5035555", "0.5035555", "0.5035555", "0.5035555", "0.5035555", "0.5035555", "0.5035555", "0.5035555", "0.5033905", "0.5031403", "0.50254834", "0.50230736", "0.50050926", "0.5003556", "0.49956903", "0.4991334", "0.4989975", "0.49843943", "0.49761114", "0.49761114", "0.49761114", "0.49761114", "0.49761114", "0.49761114", "0.49748725", "0.49711102", "0.49682975", "0.49656528", "0.4944914", "0.49448615", "0.49448356", "0.4943434", "0.49388054", "0.4935135", "0.4930733", "0.4930733", "0.49286097", "0.49249592", "0.49249592", "0.49249592", "0.49249592", "0.49249592", "0.4924363", "0.4924363", "0.4924363", "0.4924363", "0.4924363" ]
0.63486636
0
Returns an empty string if an argument is null.
public static String nullConv(String value){ if(value==null){ return ""; } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArgumentString() {\n\t\treturn null;\n\t}", "public static String displayNull (String input)\r\n {\r\n //because of short circuiting, if it's null, it never checks the length.\r\n if (input == null || input.length() == 0)\r\n return \"N/A\";\r\n else\r\n return input;\r\n }", "public static String dispNull (String input) {\n //because of short circuiting, if it's null, it never checks the length.\n if (input == null || input.length() == 0)\n return \"N/A\";\n else\n return input;\n }", "public static String dispNull (String input) {\n //because of short circuiting, if it's null, it never checks the length.\n if (input == null || input.length() == 0)\n return \"N/A\";\n else\n return input;\n }", "public static String dispNull (String input) {\n //because of short circuiting, if it's null, it never checks the length.\n if (input == null || input.length() == 0)\n return \"N/A\";\n else\n return input;\n }", "public static String formatNull() {\n\t\treturn \"null\";\n\t}", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "public static void notNullOrEmpty(String value, String argName) {\n\t\tif( argName == null) {\n\t\t\tthrow new IllegalArgumentException (\"The argName of the received 'value' parameter cannot be null.\");\n\t\t}\n\t\t\n\t\tif( argName.trim().length() == 0) {\n\t\t\tthrow new IllegalArgumentException (\"The argName of the received 'value' parameter cannot be empty.\");\n\t\t}\n\t\t\n\t\tif( value == null) {\n\t\t\tthrow new IllegalArgumentException (\"The string '\" + argName + \"' is null.\");\n\t\t}\n\t\t\n\t\tif( value.trim().length() == 0) {\n\t\t\tthrow new IllegalArgumentException (\"The string '\" + argName + \"' is empty.\");\n\t\t}\n\t}", "public static String nullToEmpty ( final String n )\n {\n return null == n ? \"\" : n;\n }", "public static String notNull(String p_in) {\n\t\tString ret = p_in;\n\t\tif (ret==null) ret=\"\";\n\t\treturn ret;\n\n\t}", "public String notNull(String text)\n {\n return text == null ? \"\" : text;\n }", "private String notNull(String value) {\n return value != null ? value : \"\";\n }", "private String getStringOrNull (String value) {\n if (value == null || value.isEmpty()) value = null;\n return value;\n }", "public static void notNullOrEmpty(String parameter, String name)\n {\n if(parameter == null || parameter.isEmpty()) {\n throw new IllegalArgumentException(name + \" is null or empty.\");\n }\n }", "String getDefaultNull();", "AstroArg empty();", "public String cnf2String() { return parentheses around non-and arguments\n //\n System.out.println( \" should not call \" );\n System.exit( 1 );\n return null;\n }", "public static String convertNULLtoString(Object object) {\n return object == null ? EMPTY : object.toString();\n }", "public static String checkNotBlank(String argument) {\n return checkNotBlank(argument, ARG_NOT_BLANK_MSG);\n }", "private String setNullIfEmpty(String in) {\n if (in != null && in.trim().length() == 0) {\n return null;\n }\n return in;\n }", "@Override\n\tpublic String toXMLString(Object arg0) {\n\t\treturn null;\n\t}", "public static String requireNullOrNonEmpty(String str, String message) {\n if (str != null && str.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return str;\n }", "public static String checkNotBlank(String argument, String message, Object... args) {\n Preconditions.checkNotNull(argument, message, args);\n Preconditions.checkArgument(!StringUtils.isBlank(argument), message, args);\n return argument;\n }", "private String getNullValueText() {\n return getNull();\n }", "@Override\n public String visit(NullLiteralExpr n, Object arg) {\n return null;\n }", "public static String nullifyNullOrEmptyString(final String targetString) {\n\t\tString outputString = null;\n\n\t\tif (targetString != null) {\n\t\t\tString targetStringTrim = targetString.trim();\n\t\t\tif ((!\"null\".equalsIgnoreCase(targetStringTrim)) && (targetStringTrim.length() > 0)) {\n\t\t\t\toutputString = targetStringTrim;\n\t\t\t}\n\t\t}\n\n\t\treturn outputString;\n\t}", "@Override\n public String visit(ReceiverParameter n, Object arg) {\n return null;\n }", "@Override\r\n\tpublic String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {\n\t\tif (arg2 == null || arg2.equals(\"\")) {\r\n\t\t\treturn \"\";\r\n\t\t} else {\r\n\t\t\treturn String.valueOf(((Conteneur) arg2).getIdCont());\r\n\t\t}\r\n\t}", "public static String nullToBlank(Object texto) {\n try {\n if (texto == null) {\n return \"\";\n }\n if (texto.toString().trim().equals(\"null\")) {\n return \"\";\n }\n return texto.toString().trim();\n } catch (Exception e) {\n return \"\";\n }\n\n }", "public static String nullToEmpty(String string)\r\n {\r\n return (string == null)?\"\":string;\r\n }", "public static String requireNullOrNonEmpty(String str) {\n if (str != null && str.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return str;\n }", "public static String fromNullToEmtpyString(String a) {\r\n\t\tif (a == null) {\r\n\t\t\treturn \"\";\r\n\t\t} else {\r\n\t\t\treturn a;\r\n\t\t}\r\n\t}", "@NotNull\n private static String maybeName(@NotNull String parameterName) {\n return compiler.parametersOptionSupported() ? String.format(\" '%s'\", parameterName) : \"\";\n }", "@Override\n public String visit(EmptyStmt n, Object arg) {\n return null;\n }", "public static String check(String param, String src_default) {\n if (param == null || param.trim().equals(\"\")) {\n return src_default;\n } else {\n return param;\n }\n }", "@NotNull\n protected String format(@NotNull final Object value) {\n return value != null\n ? value.toString()\n : \"\";\n }", "java.lang.String getArg();", "@Override\n public Object call(Object thisValue, Object... args) {\n if (args.length == 0) {\n return \"\";\n }\n return ToString(realm(), args[0]);\n }", "@Contract(\"null -> true\")\n public static boolean isBlankOrNull(final String arg) {\n return (arg == null || arg.replaceAll(\"\\\\s\", \"\").length() == 0);\n }", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public String optarg() {\n\tif (arg_count >= args.size())\n\t return null;\n\treturn (String) args.elementAt(arg_count++);\n }", "@Override\r\n public String toString() {\r\n return (value == null) ? \"\" : value;\r\n }", "public static String null2String(Object obj) {\n\t\treturn obj == null ? \"\" : obj.toString();\n\t}", "@Override\n\t\t\tpublic String format(String key, Object... args) {\n\t\t\t\treturn null;\n\t\t\t}", "public java.lang.CharSequence getDefaultStringEmpty() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }", "java.lang.String getOptionalValue();", "@Override\n\tpublic String display() {\n\t\treturn \"null\";\n\t}", "public static boolean isNullOrEmpty(String param) {\n return param == null || param.trim().length() == 0;\n }", "@Override\n public String visit(Name n, Object arg) {\n return null;\n }", "@Test\n\tpublic void testNullString() {\n\t\tString s = null;\n\t\tassertTrue(\"Null string\", StringUtil.isEmpty(s));\n\t}", "public String checkNull(String result) {\r\n\t\tif (result == null || result.equals(\"null\")) {\r\n\t\t\treturn \"\";\r\n\t\t} else {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}", "protected String getNavArgStr(String key){\r\n if(mNavArgs != null && mNavArgs.containsKey(key)){\r\n return (String)mNavArgs.get(key);\r\n }\r\n return null;\r\n }", "@Override\npublic String toString(@Nullable Event arg0, boolean arg1) {\n\treturn null;\n}", "public static String checkNull(String string1) {\n if (string1 != null)\n return string1;\n else\n return \"\";\n }", "public java.lang.CharSequence getDefaultStringEmpty() {\n return defaultStringEmpty;\n }", "@Override\n public String visit(StringLiteralExpr n, Object arg) {\n return null;\n }", "protected String getRequiredLiteral(Node node, int idx, String argumentName)\n {\n if (!requireArgument(node, idx, argumentName)) {\n return null;\n }\n return node.jjtGetChild(idx).literal();\n }", "public static String toString(Object value) {\n if (value != null)\n return value.toString();\n else\n return null;\n }", "public java.lang.CharSequence getDefaultStringEmpty() {\n return defaultStringEmpty;\n }", "private static String getPropertyValueOrDefault(String value) {\n return value != null ? value : \"\";\n }", "public String getArgumentLine() {\n return \"\";\n }", "public static void nonBlank(String arg, String argName) {\r\n longerThan(arg, 0, argName);\r\n }", "public String visit(SpilledArg n, Object argu)\r\n\t {\r\n\t\t return null;\r\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}", "public static String getSingleStringFromParameter(RuntimeContract contract, String parameter, String def) throws IllegalUsageException {\r\n\t\t// If not given, return default\r\n\t\treturn contract.hasArgumentClause(parameter)? contract.useArgumentClause(parameter).getSingleValue():def;\r\n\t}", "public static void notNullOrEmpty(Object[] parameter, String name) throws IllegalArgumentException\n {\n if(parameter == null || parameter.length == 0) {\n throw new IllegalArgumentException(name + \" parameter is empty.\");\n }\n }", "public static String checkEmpty(String string1, String string2) {\n if (string1 != null && string1.length() > 0)\n return string1;\n else if (string2 != null && string2.length() > 0)\n return string2;\n else\n return \"\";\n }", "private void checkForNullOrEmptyParameter(String param, String paramName)\n\t\t\tthrows MissingParameterException, InvalidParameterException {\n\t\tif (param == null) {\n\t\t\tthrow new MissingParameterException(paramName + \" can not be null\");\n\t\t} else if (param.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(paramName + \" can not be empty\");\n\t\t}\n\t}", "public static String convertNullToBlank(String s) {\n \tif(s==null) return \"\";\n \treturn s;\n }", "@Override\n public String visit(LambdaExpr n, Object arg) {\n return null;\n }", "@Override\n public String visit(ExpressionStmt n, Object arg) {\n return null;\n }", "@Override\n public String visit(UnionType n, Object arg) {\n return null;\n }", "@Override\n public String visit(ThisExpr n, Object arg) {\n return null;\n }", "@Override\n public String visit(MemberValuePair n, Object arg) {\n return null;\n }", "public static String checkNullObject(Object val) {\n\n if (val != null) {\n if (\"\".equals(val.toString().trim())) {\n return \"\";\n }\n return val.toString();\n } else {\n return \"\";\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public String fullString();", "public String NullSave()\n {\n return \"null\";\n }", "private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }", "@Test\n public void getRequestParam_nullParameterName_returnEmpty() throws Exception {\n when(httpServletResponse.getWriter()).thenReturn(printWriter);\n\n Optional<String> parameter =\n ServletUtils.getRequestParam(httpServletRequest, httpServletResponse, /*inputName=*/ null);\n Assert.assertFalse(parameter.isPresent());\n verify(printWriter).println(\"No null in the query URL.\");\n }", "public static String defaultString(String value) {\n return value == null ? \"\" : value;\n }", "private static String printOptionalArgs() {\n String output = \"\";\n for (int i = 0; i < MAX_OPTIONAL_ARGS; i++)\n output += \" [-\" + VALID_OPTIONAL_ARGS[i] + \"]\";\n return output + \" \";\n }", "@Override\n public String visit(SimpleName n, Object arg) {\n return null;\n }", "public static String checkNull(String string1, String string2) {\n if (string1 != null)\n return string1;\n else if (string2 != null)\n return string2;\n else\n return \"\";\n }", "public static boolean nullity(String param) {\n return (param == null || param.trim().equals(\"\"));\n }", "static String emptyToNull(String value) {\n if (value == null || value.trim().isEmpty())\n return null;\n return value.trim();\n }", "@Override\n public String visit(BinaryExpr n, Object arg) {\n return null;\n }", "@Override\n public String visit(NameExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic String monHoc() {\n\t\treturn null;\n\t}", "@Override\n public String visit(VarType n, Object arg) {\n return null;\n }", "@Override\n public String visit(TypeParameter n, Object arg) {\n return null;\n }", "protected boolean isEmptyValue(final String parameter) {\n // String value = parameters.get(parameter);\n // return isEmptyString(value);\n return false;\n }", "public static String defaultString(String val) {\n\t\tif (val == null || val.isBlank()) return \"\";\n\t\telse return val.trim();\n\t}", "@Override\n\tpublic String objectToSQLString(Object arg0) {\n\t\treturn null;\n\t}", "public String getEnteredString() {\n try {\n return DateFormat.getDateInstance(DateFormat.SHORT).format(entered);\n } catch (NullPointerException e) {\n }\n return (\"\");\n }", "public static String requireNonEmpty(String str) {\n if (str.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return str;\n }", "public String getTitle() {\n/* 354 */ return getTitle((String)null);\n/* */ }", "public static String toString(Object obj, String nullStr) {\n return obj == null ? nullStr : obj.toString();\n }", "@Override\n public String visit(VoidType n, Object arg) {\n return null;\n }" ]
[ "0.6899492", "0.68341744", "0.6815006", "0.6758851", "0.6758851", "0.6541563", "0.652773", "0.64411557", "0.6440255", "0.62925845", "0.62124324", "0.618491", "0.6154401", "0.6102221", "0.60959333", "0.60485595", "0.60183513", "0.5985565", "0.5960935", "0.5932816", "0.5930778", "0.59255344", "0.5921297", "0.591293", "0.5834403", "0.58154917", "0.58121413", "0.58043706", "0.5801661", "0.5800455", "0.5792392", "0.5782257", "0.57543373", "0.5746281", "0.5746259", "0.57398826", "0.57366323", "0.57235396", "0.5702495", "0.56810784", "0.56785053", "0.56439537", "0.5642311", "0.5614885", "0.560434", "0.56019676", "0.5596005", "0.558992", "0.5574773", "0.5565114", "0.5564843", "0.5554919", "0.5547079", "0.5544855", "0.5526652", "0.5520516", "0.55183154", "0.5488553", "0.5487749", "0.54848933", "0.54841423", "0.5483803", "0.5473085", "0.54721606", "0.5464132", "0.5460485", "0.5453373", "0.5423434", "0.5418404", "0.54179925", "0.5415579", "0.54056823", "0.5405265", "0.5399777", "0.5396197", "0.5393237", "0.5393237", "0.53930444", "0.5383409", "0.5377285", "0.5376233", "0.5369017", "0.5362123", "0.5358817", "0.535514", "0.53472173", "0.5344698", "0.5339536", "0.5338784", "0.5338402", "0.53362244", "0.53235453", "0.53220874", "0.5317317", "0.53114206", "0.5309651", "0.5309558", "0.5306246", "0.5306141", "0.5299356" ]
0.541367
71
Sorts informations of code completion in alphabetical order.
public static void sortCompilationProposal(List<ICompletionProposal> prop){ Collections.sort(prop,new Comparator<ICompletionProposal>(){ public int compare(ICompletionProposal o1, ICompletionProposal o2){ return o1.getDisplayString().compareTo(o2.getDisplayString()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void sortCode() {\n for (int i = 1; i < codeCount; i++) {\n int who = i;\n for (int j = i + 1; j < codeCount; j++) {\n if (code[j].getFileName().compareTo(code[who].getFileName()) < 0) {\n who = j; // this guy is earlier in the alphabet\n }\n }\n if (who != i) { // swap with someone if changes made\n SketchCode temp = code[who];\n code[who] = code[i];\n code[i] = temp;\n }\n }\n }", "public void sortProposals() {\n\n\t}", "public void sortCompetitors(){\n\t\t}", "public void step1(){\n\n Collections.sort(names, new Comparator<String>() {\n @Override\n public int compare(String a, String b) {\n return b.compareTo(a);\n }\n });\n }", "public String sortBy();", "public String doSort();", "public void step4(){\n\n Collections.sort(names,(a,b)->b.compareTo(a));\n\n\n System.out.println(\"names sorted are :\"+names);\n }", "public void listSort() {\n\t\tCollections.sort(cd);\n\t}", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "private static void alphabetize() {\r\n Collections.sort(kwicIndex, String.CASE_INSENSITIVE_ORDER);\r\n }", "void sortName()\r\n\t{\r\n\t\tCollections.sort(this, this.ContactNameComparator);\r\n\t}", "public void step2(){\n\n Collections.sort(names,(String a,String b) -> {\n return a.compareTo(b);\n });\n }", "private void sortTravelContactsByName() {\n Collections.sort(this.contacts, new Comparator<User>(){\n public int compare(User obj1, User obj2) {\n // ## Ascending order\n return obj1.getSortingStringName().compareToIgnoreCase(obj2.getSortingStringName());\n }\n });\n }", "public void f4(List<Book> a) {\r\n Collections.sort(a, new Comparator<Book>() {\r\n @Override\r\n public int compare(Book o1, Book o2) {\r\n String txt1[] = o1.getName().split(\" \");\r\n String txt2[] = o2.getName().split(\" \");\r\n String lastName1 = txt1[txt1.length - 1];\r\n String lastName2 = txt2[txt2.length - 1];\r\n return lastName1.compareToIgnoreCase(lastName2);\r\n }\r\n });\r\n\r\n }", "public void sort() {\n }", "void sortUI();", "public void completeOrderByDirective_Ascending(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t}", "@Override\n public LinkedList<String> orderAlphabetically(){\n LinkedList<String> stringLL = super.orderAlphabetically();\n stringLL.add(\"Years Until Tenure: \" + m_yearsUntilTenure);\n Collections.sort(stringLL);\n return stringLL;\n }", "@Override\n\tpublic String sort() {\n\t\tString s=\"Insertionsort Function\";\n\t\treturn s;\n\t}", "private void sortCourses() {\n ctrl.sortCourses().forEach(System.out::println);\n }", "@Override\n public void execute() {\n itemList.sort_names();\n }", "public String name_of_sort()\r\n\t{\r\n\t\treturn \"Merge sort\";\r\n\t}", "public String getMessageSort();", "private List<AccessTypeInjector> getAccessTypeOrderByPriority(boolean ascending) {\n List<AccessTypeInjector> list = new ArrayList<AccessTypeInjector>();\n for (AccessTypeInjector injector : accessTypeInjectors) {\n list.add(injector);\n }\n Collections.sort(list);\n if (!ascending) {\n Collections.reverse(list);\n }\n return list;\n }", "public void sortDNAs() {\n DNAs = TLArrayList.sort(DNAs);\n }", "public static void main(String[] args) {\n\t\tList<String> alist = new ArrayList<>();\n\t\talist.add(\"Virat\");\n\t\talist.add(\"ganesh\");\n\t\talist.add(\"Amol\");\n\t\talist.add(\"Ritesh\");\n\t\talist.add(\"deva\");\n\t\talist.add(\"sachin\");\n\t\talist.add(\"Xavier\");\n\t\t\n\t\tSystem.out.println(\"Arraylist before sorting: \");\n\t\tSystem.out.println(alist);\n\t\t\n\t\t//Collections.sort(alist);\n\t\tCollections.sort(alist,String.CASE_INSENSITIVE_ORDER);\n\t\t\n\t\tSystem.out.println(\"Arraylist after sorting: \");\n\t\tSystem.out.println(alist);\n\t\t\n\t\t\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tString abd = \"The lines are here to sort.\";\n\t\tabd = abd.toLowerCase();\n\t\tabd = abd.substring(0, abd.length()-1);\n\t\tString[] abdArr = abd.split(\" \");\n\t\tList<String> list = Arrays.asList(abdArr);\n\t\tCollections.sort(list, new compare());\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tString fir = list.get(0);\n\t\t//list.remove(0);\n\t\tsb.append(fir.substring(0, 1).toUpperCase() + fir.substring(1) + \" \");\n\t\tfor(int i=1; i< list.size(); i++){\n\t\t\tsb.append(list.get(i) + \" \" );\n\t\t}\n\t\tString result = sb.toString();\n\t\tresult = result.substring(0, result.length()-1);\n\t\tresult = result+ \".\";\n\t\tSystem.out.println(result);\n\t\t\n\t}", "public static void userSort(ArrayList<FileData> fromFile, int primary_sort, int secondary_sort, int primary_order, int secondary_order)\n {\n \n // user wants to sort by primary = state code and secondary = county code\n if(primary_sort == 1 && secondary_sort == 2) \n {\n if(primary_order == 1 && secondary_order == 1){// user wants both primary and secondary in ascending order\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order == 2 && secondary_order == 2){ // user wants both primary and secondary in decending order\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){// primary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n // user wants to sort by primary = county code and secondary = state code\n if(primary_sort == 2 && secondary_sort == 1){\n if(primary_order == 1 && secondary_order == 1){\n //primary and seconary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2 && secondary_order == 2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){//primary is ascending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); // primary sort\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); // primary sort\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==1&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==1&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n } \n } \n }\n \n \n if(primary_sort==1&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n \n if(primary_sort==8&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==6&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==7&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==8&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==3&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==4&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==5&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n }", "public static void main(String[] args) {\n\t\tList<String> animal = new ArrayList<String>();\n\n\t\tanimal.add(\"Cat\");\n\t\tanimal.add(\"Mouse\");\n\t\tanimal.add(\"Lion\");\n\t\tanimal.add(\"Zeebra\");\n\t\tanimal.add(\"Bear\");\n\t\tanimal.add(\"Deer\");\n\n\t\t// Collections.sort(animal,new StringLengthComparator());\n\n\t\tCollections.sort(animal, new ReverseAlphabeticalComparator());\n\t\tfor (String animal1 : animal) {\n\n\t\t\tSystem.out.println(animal1);\n\t\t}\n\n\t\t/////////////////////////////// Sorting Numbers ////////////////////////////////\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tnumbers.add(5);\n\t\tnumbers.add(31);\n\t\tnumbers.add(16);\n\t\tnumbers.add(605);\n\t\tnumbers.add(15);\n\n\t\tCollections.sort(numbers, new Comparator<Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Integer num1, Integer num2) {\n\n\t\t\t\treturn -num1.compareTo(num2);\n\t\t\t}\n\n\t\t});\n\n\t\tfor (Integer num1 : numbers) {\n\n\t\t\tSystem.out.println(num1);\n\t\t}\n\t\t///////////////////////////// Sorting Arbitrary Objects ////////////////////////////\n\n\t\tList<Person> people = new ArrayList<Person>();\n\n\t\tpeople.add(new Person(3, \"Ajeer\"));\n\t\tpeople.add(new Person(1, \"Sudeer\"));\n\t\tpeople.add(new Person(2, \"Sureash\"));\n\t\tpeople.add(new Person(4, \"Sam\"));\n\t\t\n\t\t// Sort in Order of ID\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\tif (p1.getId() > p2.getId()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse if (p1.getId()< p2.getId()) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t// Sort In Order of NAME....\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\n\t\t\t\treturn p1.getName().compareTo(p2.getName());\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t}", "@Test (priority = 1)\n public void sortAlphabetical(){\n\n for (int i = 0; i < allDepartments.getOptions().size()-1; i++) {\n String current = allDepartments.getOptions().get(i).getText();\n String next = allDepartments.getOptions().get(i+1).getText();\n\n System.out.println(\"comparing: \" + current + \" with \"+ next);\n\n Assert.assertTrue(current.compareTo(next)<=0);\n\n }\n }", "public void sortTagNamesAsc(List tags) {\r\n\t\tCollections.sort(tags, new Comparator() {\r\n\t\t\tpublic int compare(Object o1, Object o2) {\r\n\t\t\t\tString s1 = ((Tag) o1).getName();\r\n\t\t\t\tString s2 = ((Tag) o2).getName();\r\n\t\t\t\treturn s1.compareToIgnoreCase(s2);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private static Comparator<String> getItemNameComparator()\n\t{\n\t\tComparator<String> c = new Comparator<String>() {\n\t\t\tpublic int compare(String a, String b)\n\t\t\t{\n\t\t\t\tString help = StandardOptions.HELP.toString();\n\t\t\t\tif (a.equalsIgnoreCase(help))\n\t\t\t\t{\n\t\t\t\t\treturn b.equalsIgnoreCase(help) ? 0 : 1;\n\t\t\t\t}\n\t\t\t\telse if (b.equalsIgnoreCase(help)) // Only b is help, so a < b\n\t\t\t\t{\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\telse // neither are help\n\t\t\t\t{\n\t\t\t\t\treturn a.compareToIgnoreCase(b);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\treturn c;\n\t}", "public void printAlphabetically() {\n if (getAnimals().size() > 0) {\n System.out.println(\"======== Animals sorted alphabetically ========\");\n getAnimals().stream()\n .sorted(Comparator.comparing(Animal::getName)).collect(Collectors.toList())\n .forEach(animal -> System.out.println(printDetails(animal)));\n System.out.println(\"================================== =-_-= ======\");\n } else {\n System.out.println(\"Nothing to print\");\n }\n }", "private void sortAlphabet()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }", "public void sortToDo(){\n\t\tCollections.sort(allToDoLists);\n\t}", "public void sortStringArray() {\n\t\tSystem.out.println(\"PROPERY BELONGS TO ONLY CHILD CLASS!!\");\n\t}", "public String sortOriginOrReturn();", "private void sort()\n {\n pd = new ProgressDialog(this);\n pd.setMessage(\"Sorting movies...\");\n pd.setCancelable(false);\n pd.show();\n\n movieList.clear();\n if(show.equals(\"notWatched\"))\n watched(false);\n else if(show.equals(\"watched\"))\n watched(true);\n else movieList.addAll(baseMovieList);\n\n if(orderBy.equals(\"alphabet\"))\n sortAlphabet();\n else if(orderBy.equals(\"date\"))\n sortDate();\n else sortRating();\n\n if(orderType)\n Collections.reverse(movieList);\n\n recyclerView.setAdapter(movieAdapter);\n pd.dismiss();\n }", "public void sortByName(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name whose contacts you want to see in sorted order by name\");\n\t\tString addressBookName = obj.next();\n\t\tList<PersonInfo> ContactList = addressBook.getContactList(addressBookName);\n\t\tif (ContactList.isEmpty()) {\n\t\t\tlog.info(\"Empty list\");\n\t\t}\n\t\tList<PersonInfo> sortedByName = new ArrayList<PersonInfo>();\n\t\tContactList.stream().sorted((con1, con2) -> (con1.getFirst_name() + con1.getLast_name())\n\t\t\t\t.compareTo(con2.getFirst_name() + con2.getLast_name())).forEach(con -> sortedByName.add(con));\n\t\tfor (PersonInfo p : sortedByName) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t}", "public void sort() {\r\n\t\tCollections.sort(parts);\r\n\t}", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "@Override\n public void sort() {\n\n List<Doctor> unsortedDocs = this.doctors;\n\n Collections.sort(unsortedDocs, new Comparator<Doctor>() {\n @Override\n public int compare(Doctor a, Doctor b) {\n //Compare first name for doctors and re-arrange list\n return a.getFirstName().compareTo(b.getFirstName());\n }\n });\n \n this.doctors = unsortedDocs;\n\n }", "public synchronized void sort()\n\t{\n\t\tCollections.sort(vars, tvComparator);\n\t}", "public void ordenarHabitantesAsc() {\r\n Collections.sort(ciudades, new HabitantesComparator());\r\n }", "public ArrayList<String> getSortedNames() throws Exception {\n FileReader fileReader = new FileReader();\n // Tell FileReader the file path\n fileReader.setFilePath(\"src/main/java/ex41/base/exercise41_input.txt\");\n // use FileReader to get an Arraylist and store it\n ArrayList<String> names = fileReader.getStrings();\n // call sort method to sort arraylist and return that\n return sort(names);\n }", "public String getSortOrder();", "private static void printSortMovieMenu() {\n\t\tprintln(\"Movie Sorting Options:\");\n\t\tprintln(\"\\tTA: Title Ascending (A-Z)\");\n\t\tprintln(\"\\tTD: Title Descending (Z-A)\");\n\t\tprintln(\"\\tYA: Year Ascending\");\n\t\tprintln(\"\\tYD: Year Descending\");\n\t}", "public AutoCompletionProposalsComparator(String nameStart, Language language) {\r\n\t\tthis.nameStart = nameStart;\r\n//\t\tthis.typePredicate = typePredicate;\r\n\t\tlabelProvider = new ChameleonLabelProvider(language, true, true, false);\r\n\t}", "public static void main(String[] args) {\n\n List<String> animals = new ArrayList <String>();\n\n animals.add(\"Elephatn\");\n animals.add(\"snake\");\n animals.add(\"Lion\");\n animals.add(\"Mongoose\");\n animals.add(\"Cat\");\n\n\n\n// Collections.sort(animals, new StringLengthComparator());\n// Collections.sort(animals, new AlphabeticalComparator());\n Collections.sort(animals, new ReverseAlphabeticalComparator());\n for(String animal:animals){\n System.out.println(animal);\n }\n\n//////////////Sorting Numbers ///////////\n List<Integer> numbers = new ArrayList <Integer>();\n\n numbers.add(54);\n numbers.add(1);\n numbers.add(36);\n numbers.add(73);\n numbers.add(9);\n\n Collections.sort(numbers, new Comparator <Integer>() {\n @Override\n public int compare(Integer num1, Integer num2) {\n return num1.compareTo(num2);\n }\n });\n\n for(Integer number: numbers){\n System.out.println(number);\n }\n\n\n///////////////Sorting Arbitrary objects////////\n\n\n List<Person> people = new ArrayList <Person>();\n\n people.add(new Person(1,\"Joe\"));\n people.add(new Person(5,\"Harry\"));\n people.add(new Person(2,\"Hermoine\"));\n people.add(new Person(4,\"Muffet\"));\n\n// Sort in order of ID\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n if(p1.getId()>p2.getId()){\n return 1;\n }else if(p1.getId()<p2.getId()){\n return -1;\n }\n return 0;\n\n }\n });\n\n\n // Sort in order of Name\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n return p1.getName().compareTo(p2.getName());\n\n\n }\n });\n\n for(Person person: people){\n System.out.println(person);\n\n }\n\n }", "public static void main(String[] args) {\n List<String> list = new ArrayList<String>();\n list.add(\"sss\");\n list.add(\"uuu\");\n list.add(\"ccc\");\n // Collections.sort(list);\n System.out.println(list);\n }", "public void stringSelectionSort() {\n int nextMin;\n\n for (int i = 0; i < StringList.length - 1; i++) {\n nextMin = i;\n for (int j = i + 1; j < StringList.length; j++) {\n if (StringList[j].compareTo(StringList[nextMin]) < 0)\n nextMin = j;\n }\n if (nextMin != i)\n swapSelectionStrings(StringList, i, nextMin);\n }\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tList<Student> students = new ArrayList<>();\r\n\t\t\r\n\t\tstudents.add(new Student(23, \"Aryan\"));\r\n\t\tstudents.add(new Student(23, \"Jeet\"));\r\n\t\tstudents.add(new Student(83, \"Dhruv\"));\r\n\t\tstudents.add(new Student(13, \"Amit\"));\r\n\t\tstudents.add(new Student(65, \"Aditya\"));\r\n\t\tstudents.add(new Student(57, \"Jeet\"));\r\n\t\t\r\n//\t\tCollections.sort(students);\r\n\t\t\r\n//\t\tCollections.sort(students, new SortByNameThenMarks());\t// We passed our own comparator object.\r\n\t\t\r\n\t\t// We can have our own anonymous comparator without making a class. We can do that so by doing the following:\r\n\t\t\r\n//\t\tCollections.sort(students, new Comparator<Student>() {\r\n//\r\n//\t\t\t@Override\r\n//\t\t\tpublic int compare(Student obj1, Student obj2) {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t});\r\n\t\t\r\n\t\t// With the help of Lambda we could cut short the lines but we have to mention the sign \"->\".\r\n//\t\tCollections.sort(students,(Student obj1, Student obj2) -> {\r\n\t\t\r\n//\t\tCollections.sort(students,(obj1, obj2) -> {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t});\r\n\t\t\r\n//\t\tCollections.sort(students, (obj1, obj2) -> obj1.name.compareTo(obj2.name));\r\n\t\t\r\n//\tThe comparator SortByNameThenMarks can be written in one line as follows. Also \".reversed()\" is used to reverse the order of comparison.\r\n\t\tCollections.sort(students, Comparator.comparing(Student::getName).thenComparing(Student::getMarks).reversed());\r\n\t\t\r\n\t\tstudents.forEach(System.out::println);\t// This is lambda expression to print \r\n\t}", "private static void printSortActorMenu() {\n\t\tprintln(\"Actor Sorting Options:\");\n\t\tprintln(\"\\tAA: Alphabetically Ascending\");\n\t\tprintln(\"\\tAD: Alphabetically Descending\");\n\t\tprintln(\"\\tNA: By Number of Movies They Are In Ascending\");\n\t\tprintln(\"\\tND: By Number of Movies They Are In\");\n\t}", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "private void sortResults(List<String> results) {\r\n\t\tif (comparator == null) {\r\n\t\t\tCollections.sort(results);\r\n\t\t} else {\r\n\t\t\tCollections.sort(results, comparator);\r\n\t\t}\r\n\t}", "java.lang.String getOrderBy();", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public static void main(String[] args) {\n\n\t\tArrayList<String> listOfCountries = new ArrayList<String>();\n\t\tlistOfCountries.add(\"India\");\n\t\tlistOfCountries.add(\"US\");\n\t\tlistOfCountries.add(\"China\");\n\t\tlistOfCountries.add(\"Denmark\");\n\t\t\n\t\t// unsorted list\n\t\tSystem.out.println(\"Before Sorting: \");\n\t\tfor(String counter: listOfCountries)\n\t\t\tSystem.out.println(counter);\n\t\t\n\t\t// sort statement\n\t\tCollections.sort(listOfCountries);\n\t\t\n\t\t// sorted list\n\t\tSystem.out.println(\"\\nAfter Sorting: \");\n\t\tfor(String counter: listOfCountries)\n\t\t\tSystem.out.println(counter);\n\t}", "public void sort() {\n Collections.sort(tasks);\n }", "public void sortManlist(){\r\n\t\tCollections.sort(Manlist, new MySort());\r\n\t}", "public void sortMatches();", "public static void main(String[] args) {\n String[] orgs={\"birlasoft\",\"ZOHO\",\"Cognizant\",\"infosys\",\"amazon\"};\n Selection.sort(orgs);\n for(String yet:orgs)\n {\n \t System.out.println(yet);\n }\n \t\t \n \n\t}", "private void sortTravelContactsByCitizenship() {\n Collections.sort(this.contacts, new Comparator<User>(){\n public int compare(User obj1, User obj2) {\n // ## Ascending order\n return obj1.getSortingStringName().compareToIgnoreCase(obj2.getSortingStringName());\n }\n });\n }", "public String sortOrder();", "public static void main(String[] args) {\n\r\n\t\tList<Library> list=new ArrayList<Library>();\r\n\t\tlist.add(new Library(100, \"bhagyesh\"));\r\n\t\tlist.add(new Library(4, \"patel\"));\r\n\t\tlist.add(new Library(5, \"sid\"));\r\n\t\tlist.add(new Library(78, \"naitik\"));\r\n\t\tlist.add(new Library(39, \"amit\"));\r\n\t\t\r\n \tlist.stream().forEach(p -> System.out.println(p.getName()));\r\n \tlist.sort(Comparator.comparing(Library::getName));\r\n \tlist.stream().forEach(p -> System.out.println(p.getName()));\r\n \r\n \t\r\n \t\r\n \t\r\n\t}", "private ArrayList<BoulderProblem> SortBps()\n {\n ArrayList<BoulderProblem> sortedBps = displayBps;\n if(sortOption.equals(\"name\"))\n {\n Collections.sort(sortedBps, bpNameComparator);\n }\n else if(sortOption.equals(\"grade\"))\n {\n Collections.sort(sortedBps, bpGradeComparator);\n }\n else\n {\n Collections.sort(sortedBps, bpSetterComparator);\n }\n return sortedBps;\n }", "void sort();", "void sort();", "public String getIdxSearchSort() {\n Preferences prefs = getPreferences();\n return prefs.get(PROP_SEARCH_SORT, \"A\"); // NOI18N\n }", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "public void sortKnowledgeBase()\n {\n int i;\n Random random;\n String aPredicate;\n StringTokenizer tokenizer;\n //------------\n random = new Random();\n i = 0;\n while (i < knowledgeBase.size())\n {\n aPredicate = knowledgeBase.get(i).commitments.get(0).predicate;\n tokenizer = new StringTokenizer(aPredicate,\"(), \");\n if(tokenizer.nextToken().equals(\"secuencia\"))\n knowledgeBase.get(i).priority = random.nextInt(100);\n //end if\n else\n knowledgeBase.get(i).priority = random.nextInt(10000);\n //end else\n i = i + 1;\n }//end while\n Collections.sort(knowledgeBase);\n }", "private void mergeHelp(WordList list, Comparator<String> comp, int start, int mid, int end) {\r\n\t \r\n\t \r\n\t int pos = 0;\r\n\t int a = start;\r\n\t int len = end - start + 1;\r\n\t int b = mid + 1;\r\n\t String[] sorted = new String[len];\r\n\t \r\n\t while(a <= mid && b <= end) {\r\n\t\t if(comp.compare(list.get(a), list.get(b)) == -1) { \r\n\t\t\t sorted[pos] = list.get(b);\r\n\t\t\t b++;\r\n\t\t }\r\n\t\t else {\r\n\t\t\t sorted[pos] = list.get(a);\r\n\t\t\t a++;\r\n\t\t }\r\n\t\t pos++;\r\n\t }\r\n\t \r\n\t while(a <= mid) {\r\n\t\t sorted[pos] = list.get(a);\r\n\t\t a++;\r\n\t\t pos++;\r\n\t }\r\n\t while(b <= end) {\r\n\t\t sorted[pos] = list.get(b);\r\n\t\t b++;\r\n\t\t pos++;\r\n\t }\r\n\t for(int i = 0; i < len; i++) {\r\n\t\t list.set(i + start, sorted[i]);\r\n\t }\r\n }", "public void sort()\n\t{\n\n\n\t\t// Sort the Product Inventory Array List (by Product Name)\n\t\tCollections.sort(myProductInventory);\n\n\n\n\n\t}", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}", "private String sortText(String text, int comp) {\r\n\t\tList<String> lines = Arrays.asList(text.split(\"\\\\r?\\\\n\"));\r\n\t\t\r\n\t\tLocale locale = new Locale(currentLang);\r\n\t\tCollator collator = Collator.getInstance(locale);\r\n\t\tif (comp < 0) {\t//compare ascending\r\n\t\t\tCollections.sort(lines, collator);\r\n\t\t} else if (comp > 0) {\t//compare descending\r\n\t\t\tCollections.sort(lines, collator.reversed());\r\n\t\t} else {\t//remove duplicate\r\n\t\t\tSet<String> copy = new LinkedHashSet<>(lines);\r\n\t\t\tlines = new ArrayList<>();\r\n\t\t\tlines.addAll(copy);\r\n\t\t\tcopy.clear();\r\n\t\t}\r\n\t\t\r\n\t\tString newLine = System.getProperty(\"line.separator\");\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tlines.forEach((s) -> { \r\n\t\t\tsb.append(s);\r\n\t\t\tsb.append(newLine);\r\n\t\t});\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}", "public static void sortByFitlvl() {\n Collections.sort(Population);\n if (debug) {\n debugLog(\"\\nSorted: \");\n printPopulation();\n }\n }", "protected abstract Comparator<UsageInfo> makeUsageInfoComparator();", "@Override\n protected Comparator<? super UsagesInFile> getRefactoringIterationComparator() {\n return new Comparator<UsagesInFile>() {\n @Override\n public int compare(UsagesInFile o1, UsagesInFile o2) {\n int result = comparePaths(o1.getFile(), o2.getFile());\n if (result != 0) {\n return result;\n }\n int imports1 = countImports(o1.getUsages());\n int imports2 = countImports(o2.getUsages());\n return imports1 > imports2 ? -1 : imports1 == imports2 ? 0 : 1;\n }\n\n private int comparePaths(PsiFile o1, PsiFile o2) {\n String path1 = o1.getVirtualFile().getCanonicalPath();\n String path2 = o2.getVirtualFile().getCanonicalPath();\n return path1 == null && path2 == null ? 0 : path1 == null ? -1 : path2 == null ? 1 : path1.compareTo(path2);\n }\n\n private int countImports(Collection<UsageInfo> usages) {\n int result = 0;\n for (UsageInfo usage : usages) {\n if (FlexMigrationUtil.isImport(usage)) {\n ++result;\n }\n }\n return result;\n }\n };\n }", "public static void main(String[] args) {\n Class student = Student.class;\n Method[] methods = student.getDeclaredMethods();\n ArrayList<String> methodList = new ArrayList<>();\n for (Method method : methods) {\n methodList.add(method.getName());\n }\n Collections.sort(methodList);\n for (String name : methodList) {\n System.out.println(name);\n }\n }", "@Override\n\tpublic String sort(String content) {\n\t\treturn null;\n\t}", "static void sort(String[] array, int count) { //method to sort and format the array by alphabetical order\n String temp;\n for (int i = 0; i < count; i++) { //iterates through and compares elements in the array to sort them\n for (int j = i + 1; j < count; j++) { \n if (array[i].compareTo(array[j]) > 0) {\n temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }\n }\n }\n if (bothSort && !firstDone)\n System.out.println(\"\\t\\tTESTER\\t\\t\\t\\t\\t\\t CODER\"); //If its printing both by Coder and Tester on the first run\n else if (bothSort && firstDone)\n System.out.println(\"\\t\\tCODER\\t\\t\\t\\t\\t\\t TESTER\"); //if printin by both coder and tester on the second run\n else if (testerSort)\n System.out.println(\"\\t\\tTESTER\\t\\t\\t\\t\\t\\t CODER\"); //if only printing by tester\n else\n System.out.println(\"\\t\\tCODER\\t\\t\\t\\t\\t\\t TESTER\"); //if only printing by coder\n if (arguments.length > 1 && arguments[1].equals(\"--last-name\"))\n System.out.format(\"%-50s %-50s\", (String.format(\"%-15s %-15s %-15s\", \"Last Name\", \"First Name\", \"Block\")), (String.format(\"%-15s %-15s %-15s\", \"Last Name\", \"First Name\",\"Block\")));\n else\n System.out.format(\"%-50s %-50s\", (String.format(\"%-15s %-15s %-15s\", \"First Name\", \"Last Name\", \"Block\")), (String.format(\"%-15s %-15s %-15s\", \"First Name\", \"Last Name\",\"Block\")));\n System.out.print(\"\\n----------------------------------------------------------------------------------------\");\n for (int i = 0; i < count; i++) { //print each non-null array element\n if (array[i] != null)\n System.out.print(array[i]);\n }\n System.out.print(\"\\n\");\n firstDone = true;\n }", "public void sort()\n {\n\tstrack.sort((Node n1, Node n2) ->\n\t{\n\t if (n1.getCost() < n2.getCost()) return -1;\n\t if (n1.getCost() > n2.getCost()) return 1;\n\t return 0;\n\t});\n }", "public void sortAlphabetically()\r\n {\r\n PrintWriter output;\r\n int i, x, t1;\r\n String t0;\r\n \r\n //insertion sort\r\n for (x = 1; x < countries.length; x++) //iterates through\r\n {\r\n t0 = countries[x]; //stores the temps\r\n t1 = population[x];\r\n i = x - 1; //sets i to the previous element\r\n while (i >= 0) {\r\n if (t0.compareTo(countries[i]) > 0) //if previous is already sorted(greater means it is higher on the alphabet(e.g. t0 could be 'c', countries[i] 'e'))\r\n break;\r\n countries[i + 1] = countries[i]; //if not, swap the positions\r\n population[i + 1] = population[i];\r\n i--;\r\n }\r\n countries[i + 1] = t0; //sets it back to temp\r\n population[i + 1] = t1;\r\n }\r\n try\r\n {\r\n output = new PrintWriter (new FileWriter (\"sortedByCountry.txt\")); //saves\r\n \r\n //prints to the file\r\n for (int a = 0 ; a < countries.length ; a++)\r\n output.printf(\"%-1s \\t\\t\\t\\t %,d %n\", countries[a], population[a]);\r\n output.close (); //closes stream\r\n }\r\n catch (IOException e)\r\n {\r\n JOptionPane.showMessageDialog (null, \"Something went wrong with the input or output operations!\"); //error message\r\n }\r\n }", "@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }", "private static void sortingMemo() {\n\t\t\n\t}", "public void insertionStringSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && AL.get(possibleIndex - 1).toString().compareTo(temp.toString())>0)\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }", "private static void sortHelperMSD(String[] asciis, int start, int end, int index) {\n // Optional MSD helper method for optional MSD radix sort\n return;\n }", "private Sort sortByLastNameAsc() {\n return new Sort(Sort.Direction.ASC, \"remName\");\n }", "@Override\r\n /**\r\n * *\r\n *Primero revisa si los apellidos con iguales, en el caso de que sean iguales\r\n *entra al if y compara por nombres, de lo contrario nunca entra al if y \r\n * compara normalmente por apellido\r\n * \r\n */ \r\n public void ordenarPersonas (){\r\n Comparator<Persona> comparacionPersona= (Persona persona1,Persona persona2)->{\r\n \r\n if(persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos())==0){\r\n return persona1.getNombres().compareToIgnoreCase(persona2.getNombres());}\r\n return persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos());\r\n }; \r\n\r\n listaPersona.sort(comparacionPersona);\r\n }", "public static void main(String[] args) \r\n {\n ArrayList<String> al = new ArrayList<String>(); \r\n al.add(\"Geeks For Geeks\"); \r\n al.add(\"Friends\"); \r\n al.add(\"Dear\"); \r\n al.add(\"Is\"); \r\n al.add(\"Superb\"); \r\n \r\n /* Collections.sort method is sorting the \r\n elements of ArrayList in ascending order. */\r\n Collections.sort(al); \r\n \r\n // Let us print the sorted list \r\n System.out.println(\"List after the use of\"\r\n + \" Collection.sort() :\\n\" + al); \r\n }", "@Override\r\n\tpublic int compare(Object o1, Object o2) \r\n\t{\n\t\tProblems s1=(Problems)o1; \r\n\t\tProblems s2=(Problems)o2; \r\n\t\treturn s1.name.compareTo(s2.name); \r\n\t}", "public static void main(String[] str) {\n\t\tList<Order> orderListByName = getOrderList();\n\t\tCollections.sort(orderListByName, (o1, o2)-> o1.getOrderName().compareTo(o2.getOrderName()) );\n\t\n\t\t// sort order by order name\n\t\tList<Order> orderListByOrderBill = getOrderList();\n\t\tCollections.sort(orderListByOrderBill, (o1, o2)-> o1.getOrderBillAmount().compareTo(o2.getOrderBillAmount()));\n\t\t}", "public Autocomplete(Term[] terms)\n {\n this.terms = terms;\n Arrays.sort(terms); //uses Term.compareTo(that) -- Comparable\n // for all other classes, the terms is already sorted lexicographically\n\n }", "public String sort() {\n this.foodEntries = FoodListManager.sortListByDate(foodEntries);\n return this.toString();\n }", "public void sort() {\n\t\t\tCollections.sort(population, new SolutionComparator());\n\t\t}", "@Override\n public int compare(FileNameExtensionFilter ext1, FileNameExtensionFilter ext2)\n {\n return ext1.getDescription().toLowerCase().compareTo(ext2.getDescription().toLowerCase());\n }", "public static void doSort ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t//get the ParameterParser from RunData\n\t\tParameterParser params = data.getParameters ();\n\n\t\t// save the current selections\n\t\tSet selectedSet = new TreeSet();\n\t\tString[] selectedItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif(selectedItems != null)\n\t\t{\n\t\t\tselectedSet.addAll(Arrays.asList(selectedItems));\n\t\t}\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedSet);\n\n\t\tString criteria = params.getString (\"criteria\");\n\n\t\tif (criteria.equals (\"title\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\t\telse if (criteria.equals (\"size\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_LENGTH;\n\t\t}\n\t\telse if (criteria.equals (\"created by\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CREATOR;\n\t\t}\n\t\telse if (criteria.equals (\"last modified\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_MODIFIED_DATE;\n\t\t}\n\t\telse if (criteria.equals(\"priority\") && ContentHostingService.isSortByPriorityEnabled())\n\t\t{\n\t\t\t// if error, use title sort\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_PRIORITY;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\n\t\tString sortBy_attribute = STATE_SORT_BY;\n\t\tString sortAsc_attribute = STATE_SORT_ASC;\n\t\tString comparator_attribute = STATE_LIST_VIEW_SORT;\n\t\t\n\t\tif(state.getAttribute(STATE_MODE).equals(MODE_REORDER))\n\t\t{\n\t\t\tsortBy_attribute = STATE_REORDER_SORT_BY;\n\t\t\tsortAsc_attribute = STATE_REORDER_SORT_ASC;\n\t\t\tcomparator_attribute = STATE_REORDER_SORT;\n\t\t}\n\t\t// current sorting sequence\n\t\tString asc = NULL_STRING;\n\t\tif (!criteria.equals (state.getAttribute (sortBy_attribute)))\n\t\t{\n\t\t\tstate.setAttribute (sortBy_attribute, criteria);\n\t\t\tasc = Boolean.TRUE.toString();\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// current sorting sequence\n\t\t\tasc = (String) state.getAttribute (sortAsc_attribute);\n\n\t\t\t//toggle between the ascending and descending sequence\n\t\t\tif (asc.equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tasc = Boolean.FALSE.toString();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tasc = Boolean.TRUE.toString();\n\t\t\t}\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tComparator comparator = ContentHostingService.newContentHostingComparator(criteria, Boolean.getBoolean(asc));\n\t\t\tstate.setAttribute(comparator_attribute, comparator);\n\t\t\t\n\t\t\t// sort sucessful\n\t\t\t// state.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t}\t// if-else\n\n\t}", "public static JwComparator<AcPost> getUpuShortNameComparator()\n {\n return AcPostTools.instance.getUpuShortNameComparator();\n }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }" ]
[ "0.6949712", "0.6856225", "0.66038036", "0.6506008", "0.6292799", "0.62395906", "0.62371933", "0.61810887", "0.61487484", "0.6128846", "0.61037284", "0.608848", "0.6042667", "0.6018947", "0.6005573", "0.60016096", "0.59732103", "0.59656954", "0.59307086", "0.5886933", "0.5869651", "0.5854476", "0.5852649", "0.5767581", "0.5752926", "0.57437414", "0.5714077", "0.57048047", "0.5696853", "0.5688341", "0.56854457", "0.5680917", "0.567518", "0.56720847", "0.56661046", "0.5664409", "0.56641376", "0.5659703", "0.5654234", "0.5637998", "0.5637502", "0.5609087", "0.56074715", "0.5600846", "0.5582498", "0.5581514", "0.5573172", "0.557161", "0.55708706", "0.5566142", "0.55627114", "0.5558798", "0.5552119", "0.55483305", "0.5542944", "0.554262", "0.5540667", "0.55006796", "0.5496984", "0.5496705", "0.54928446", "0.5490059", "0.5483297", "0.5480736", "0.5478929", "0.54780126", "0.5449211", "0.5449211", "0.54396164", "0.5437553", "0.54342407", "0.54297864", "0.542913", "0.54132533", "0.54095507", "0.5407017", "0.5394824", "0.53900456", "0.5382801", "0.5376382", "0.53713703", "0.5368942", "0.5367947", "0.53528", "0.53513587", "0.5343692", "0.53428483", "0.5341498", "0.53335786", "0.5313822", "0.53041345", "0.5300641", "0.5299901", "0.5298485", "0.5296718", "0.52966154", "0.5293886", "0.5278489", "0.52765167", "0.5275868" ]
0.6398059
4
Returns a project encoding.
public static String getProjectCharset(IProject project){ try { String charset = project.getDefaultCharset(); if(charset.equals("MS932")){ // charset = "Shift_JIS"; charset = "Windows-31J"; } return charset; } catch(Exception ex){ HTMLPlugin.logException(ex); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEncoding();", "public String getEncoding () {\n return encoding;\n }", "Charset getEncoding();", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\n return encoding;\n }", "public String getDeclaredEncoding();", "public String getEncoding() {\n return encoding;\n }", "public String getJavaEncoding();", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\n\t\treturn (encoding != null && !encoding.isEmpty()) ? encoding : System.getProperty(\"file.encoding\"); //NOI18N\n\t}", "public String getEncoding() {\n\t\treturn encoding;\n\t}", "public String getEncoding() {\r\n\t\treturn encoding;\r\n\t}", "public String getStringEncoding()\n\t{\n\t\treturn \"utf-8\";\n\t}", "EncodingEnum getEncoding();", "public String getEncoding() {\n \t return null;\n \t }", "public String getEncoding() {\n \t return null;\n \t }", "public String getEncoding()\n\t\t{\n\t\t\treturn m_encoding;\n\t\t}", "public String getEncoding() {\n\t\treturn this.encoding;\n\t}", "String getContentEncoding();", "public String getEncoding() {\n return null;\n }", "public String getFileEncoding() {\n return fileEncoding;\n }", "public String getXcprojectcode() {\n return xcprojectcode;\n }", "public String getFileEncoding() {\n return fileEncoding;\n }", "public EncodingOptions getEncodingOptions();", "public Codec getCodec();", "@DatabaseChangeProperty(exampleValue = \"utf8\")\n public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\r\n return \"B\";\r\n }", "public static final String getProject() { return project; }", "public static final String getProject() { return project; }", "String getCharset();", "public String getMediaFormatEncoding() {\r\n\t\treturn this.getMedia() + \" - \" + this.getFormat() + \" - \" + this.getEncoding();\r\n\r\n\t}", "String getCodec() {\n return codec;\n }", "@java.lang.Override\n public int getEncodingValue() {\n return encoding_;\n }", "@Accessor(qualifier = \"encoding\", type = Accessor.Type.GETTER)\n\tpublic EncodingEnum getEncoding()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ENCODING);\n\t}", "@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property String getXmlEncoding();", "protected String getDefaultEncoding() {\n return DEFAULT_ENCODING;\n }", "Project getProject();", "public String getCodebase() {\n return(translateCodebase());\n }", "private Encoding retrieveEncoding(Path file) {\n if (this.fileEncodings != null) {\n Encoding encoding = this.fileEncodings.get(file.toString());\n if (encoding != null) {\n return encoding;\n }\n }\n return this.encoding == null ? Encoding.DEFAULT_ENCODING : this.encoding;\n }", "@java.lang.Override\n public int getEncodingValue() {\n return encoding_;\n }", "com.appscode.api.auth.v1beta1.Project getProject();", "private static CharsetEncoder getCoder(String charset) throws UnsupportedEncodingException\n\t{\n\t\tcharset = charset.toLowerCase();\t\t\n\t\tif (charset.equals(\"iso-8859-1\") || charset.equals(\"latin1\"))\t\t\t\n\t\t\treturn new Latin1Encoder();\n\t\tif (charset.equals(\"utf-8\") || charset.equals(\"utf8\"))\t\t\t\n\t\t\treturn new UTF8Encoder();\n\t\t\n\t\tthrow new UnsupportedEncodingException(\"unsupported encoding \"+charset);\n\t}", "public String getProjectName() {\n\t\treturn project;\n\t}", "public IProject getProject();", "String getProjectName();", "public default String getCharset() {\n return Constants.CHARSET_UTF8;\n }", "public String[] getEncoding() throws PDFNetException {\n/* 771 */ return GetEncoding(this.a);\n/* */ }", "java.lang.String getProjectName();", "public ReactorResult<java.lang.String> getAllEncodingSettings_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ENCODINGSETTINGS, java.lang.String.class);\r\n\t}", "String getUseNativeEncoding();", "java.lang.String getEncoded();", "public String getProjectName(){\n return projectModel.getProjectName();\n }", "public String getCharacterEncoding() {\n\t\treturn null;\n\t}", "Codec getCurrentCodec();", "public jkt.hrms.masters.business.MstrProject getProject () {\n\t\treturn project;\n\t}", "public String getCoderegion() {\n return (String) getAttributeInternal(CODEREGION);\n }", "private String getEncodedString(String original, String encoding_in, String encoding_out) {\r\n\t\tString encoded_string;\r\n\t\tif (encoding_in.compareTo(encoding_out) != 0) {\r\n\t\t\tbyte[] encoded_bytes;\r\n\t\t\ttry {\r\n\t\t\t\tencoded_bytes = original.getBytes(encoding_in);\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_in);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tencoded_string = new String(encoded_bytes, encoding_out);\r\n\t\t\t\treturn encoded_string;\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\t//e.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_out);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn original;\r\n\t}", "public String getContentEncoding() {\n return contentEncoding;\n }", "private void computeEncoding()\n{\n source_encoding = IvyFile.digestString(current_node.getKeyText());\n}", "public static String getIANA2JavaMapping(String ianaEncoding) {\n return (String)fIANA2JavaMap.get(ianaEncoding);\n }", "@Deprecated\n/* */ public String getEncoding() {\n/* 371 */ return this.charset;\n/* */ }", "public String getUtf(){\n return utf;\n }", "@Override\n\t\tpublic String getCharacterEncoding() {\n\t\t\treturn null;\n\t\t}", "public String getContentEncoding() {\n return this.contentEncoding;\n }", "@Override\r\n\tString getProjectName();", "public ProjectFile getProject()\r\n {\r\n return m_project;\r\n }", "public Project getProject()\n {\n \treturn project;\n }", "public interface EncoderConstants\n{\n\t/**\n\t * The default charset string.\n\t */\n\tpublic static final String DEFAULT_CHARSET = \"ISO-8859-1\";\n}", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "private CharsetDecoder getJavaEncoding(String encoding) {\n Charset charset = Charset.forName(encoding);\n return charset.newDecoder();\n }", "public Project getProject() {\r\n return project;\r\n }", "public Project getProject() {\n\t\treturn project;\n\t}", "public Project getProject()\n {\n return project;\n }", "@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@Property String getInputEncoding();", "public String getProjectName() {\n return projectName;\n }", "com.google.protobuf.ByteString getProjectIdBytes();", "public static FontEncoding createFontSpecificEncoding() {\n FontEncoding encoding = new FontEncoding();\n encoding.fontSpecific = true;\n for (int ch = 0; ch < 256; ch++) {\n encoding.unicodeToCode.put(ch, ch);\n encoding.codeToUnicode[ch] = ch;\n encoding.unicodeDifferences.put(ch, ch);\n }\n return encoding;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCodigoBytes() {\n java.lang.Object ref = codigo_;\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 codigo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Project getProject() {\n return project;\n }", "public Project getProject() {\n return project;\n }", "@java.lang.Override\n public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() {\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result =\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_);\n return result == null\n ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED\n : result;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getProjectIdBytes() {\n java.lang.Object ref = projectId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n projectId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getEncoded()\n\t{\n\t\treturn this.encodedText;\n\t}", "public String getProjectName() { return DBCurrent.getInstance().projectName(); }", "public String getProjectName() { return DBCurrent.getInstance().projectName(); }", "Project findProjectByIdAndConvert(String projectId);", "public String getExcelEncoding() {\n\t\treturn props.getProperty(ARGUMENT_EXCEL_ENCODING, DEFAULT_EXCEL_ENCODING);\n\t}", "public String getContentEncoding() {\n\t\treturn header.getContentEncoding();\n\t}", "public String getProjectName() {\r\n return this.projectName;\r\n }", "public Project getProject(){\n\t\treturn this.project;\n\t}", "public String getEncoding() throws MessagingException {\n/* 80 */ return this.encoding;\n/* */ }", "public final Codec getCodec()\n\t{\n\t\treturn codec;\n\t}", "public String getCodingMode() {\n return this.codingMode;\n }", "String getStringCharset() {\n\t\treturn this.charset;\n\t}", "public String encode() {\n\t\tString coded = \"\";\n\t\tfor (Character c: this.input.toCharArray()) {\n\t\t\tcoded += this.mapping.get(c);\n\t\t}\n\t\treturn coded;\n\t}", "public static Coder getDefaultCoder()\n {\n\treturn createBERCoder(c_project);\n }", "public Project getProjectByName(String name);", "@Override\n\tpublic String getCharacterEncoding() {\n\t\treturn null;\n\t}", "public String getProjcontactor() {\n return projcontactor;\n }" ]
[ "0.6774387", "0.64758056", "0.6450394", "0.6366175", "0.6366175", "0.6366175", "0.63597476", "0.6356938", "0.63468325", "0.62715197", "0.6213546", "0.62049896", "0.6198991", "0.6122992", "0.61045444", "0.6096462", "0.6096462", "0.6039131", "0.60371053", "0.60358155", "0.5984043", "0.59658724", "0.5944426", "0.5941216", "0.5924554", "0.5880656", "0.58792496", "0.5868854", "0.58167386", "0.58167386", "0.57610226", "0.5737786", "0.5697209", "0.5678179", "0.5636823", "0.56335074", "0.5622879", "0.5587816", "0.55682385", "0.5563454", "0.5556219", "0.55208", "0.5497138", "0.5495027", "0.54795116", "0.5471209", "0.54668194", "0.5465419", "0.54417866", "0.54293096", "0.54276896", "0.53998554", "0.53997725", "0.53870183", "0.5377613", "0.5373303", "0.5358097", "0.5345548", "0.5345171", "0.53366876", "0.53176963", "0.5305926", "0.52879715", "0.528375", "0.52824193", "0.52788585", "0.5273461", "0.52586836", "0.52401984", "0.5238413", "0.5233407", "0.522638", "0.5218876", "0.5216639", "0.5215532", "0.52117825", "0.5210971", "0.52007955", "0.5200691", "0.51970565", "0.51970565", "0.5195396", "0.5194387", "0.51911217", "0.51882976", "0.51882976", "0.518252", "0.518105", "0.5175011", "0.51649964", "0.51646966", "0.5159748", "0.51503307", "0.51490855", "0.5146953", "0.5146087", "0.51459897", "0.5130197", "0.5125514", "0.51152676" ]
0.6609586
1
Adds marker to the specified line.
public static void addMarker(IResource resource, int type, int line, String message){ try { IMarker marker = resource.createMarker(IMarker.PROBLEM); Map<String, Object> map = new HashMap<String, Object>(); map.put(IMarker.SEVERITY, Integer.valueOf(type)); map.put(IMarker.MESSAGE, message); map.put(IMarker.LINE_NUMBER,Integer.valueOf(line)); marker.setAttributes(map); } catch(CoreException ex){ HTMLPlugin.logException(ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void markLine() {\n lineMark = cursor;\n }", "public void line(String line) {\n\t\t}", "public synchronized void addLine(Line line)\r\n\t{\r\n\t\tlines.add(line);\r\n\t}", "public void markLine(Line line, Player player) {\n // The logic preventing double marking of a side is handled\n // in the mark function of the Board type. CHECK THIS!\n //\n Side side = line.getSide();\n this.setSide(side, true);\n\n Color lineColor = player.getLineColor();\n BoardDisplay bd = controller.getDisplay().getBoardDisplay();\n bd.colorSelectedLine(line, lineColor);\n }", "private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}", "private void addLine (String line) {\n writer.write (line);\n writer.newLine();\n // blockOut.append (line);\n // blockOut.append (GlobalConstants.LINE_FEED);\n }", "public void addLine(String line) {\n if (methodMode) {\n methodCode.add(new AsmLine(line));\n } else {\n program.add(new AsmLine(line));\n }\n }", "private void addMarker( LatLng point ) {\n \t\tthis.markers.add( this.googleMap.addMarker( this.makeMarkerAt( point ) ) );\n \t}", "void annotate(String line);", "void addLine(int index, Coordinate start, Coordinate end);", "void storeline(String linebuffer, fileInfo pinfo) {\n\t\tint linenum = ++pinfo.maxLine; /* note, no line zero */\n\t\tif (linenum > fileInfo.MAXLINECOUNT) {\n\t\t\tSystem.err.println(\"MAXLINECOUNT exceeded, must stop.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tpinfo.symbol[linenum] = node.addSymbol(linebuffer, pinfo == oldinfo,\n\t\t\t\tlinenum);\n\t}", "public void setline(String line) {\n\t\t_line = line;\n\t}", "public void setLine ( String value )\n {\n line = value;\n }", "public void addLine(int lineno, String line)\n throws AbnormalTerminationException {\n this._lines.add(new MacroLineFactory().parseLine(line, lineno, this));\n }", "public void addLine(String line){\n if (line != null && line.trim().length() > 0){\n fileLines.add(line);\n parsed = false;\n }\n }", "public void addLine(String file, int line) {\r\n\t\tif (!_fileLines.containsKey(file))\r\n\t\t\t_fileLines.put(file, new ArrayList<Integer>());\r\n\t\t_fileLines.get(file).add(line);\r\n\t}", "public void addLine(Dialog line) {\n\t\tArrayList<Dialog> temp = new ArrayList<Dialog>();\n\t\ttemp.add(line);\n\t\tdecoupleGenericLines(temp);\n\t\tDialogueSystem.GLOBAL_DIALOG_LIST.add(line);\n\t}", "public void addDataLine(String line) {\n this.data.textProperty().set(\n String.format(\n \"%s\\n%s\",\n this.data.textProperty().get(),\n line\n )\n );\n }", "public void addPoint(Point p) {\r\n line.add(p);\r\n }", "public void line(String line, int lineNumber) {\n\t\t\tline(line);\n\t\t}", "public static void addLine(String string, int line) {\r\n\t\tif(string.length() > lineLength)\r\n\t\t\tstring = string.substring(0, lineLength);\r\n\t\telse if(string.length() < lineLength)\r\n\t\t\tstring = string + repeatString(\" \", lineLength - string.length());\r\n\t\tLCD.drawString(string, 0, line);\r\n\t}", "private void drawMarker(LatLng point){\n MarkerOptions markerOptions = new MarkerOptions();\n\n // Setting latitude and longitude for the marker\n markerOptions.position(point);\n\n // Adding marker on the Google Map\n mGoogleMap.addMarker(markerOptions);\n }", "private void addCurrentMarker(double lat, double lon) {\n mLatLng = new LatLng(lat, lon);\n marker_inter = map.addMarker(new MarkerViewOptions()\n .position(mLatLng)\n .title(\"Intervention\")\n .snippet(\"Desc inter\")\n .icon(iconUsr));\n run = 1;\n }", "private void drawMarker(LatLng point){\n \tMarkerOptions markerOptions = new MarkerOptions();\t\t\t\t\t\n \t\t\n \t// Setting latitude and longitude for the marker\n \tmarkerOptions.position(point);\n \tmarkerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker1));\n \t// Adding marker on the Google Map\n \tmap.addMarker(markerOptions); \t\t\n }", "public void addItem(LineItem lineItem){\n\t\t\n\t\tlineItems.add(lineItem);\n\t}", "public static void addMarker(IResource resource,int type, int line, int offset,int length,String message){\r\n\t\ttry {\r\n\t\t\tIMarker marker = resource.createMarker(IMarker.PROBLEM);\r\n\t\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\t\tmap.put(IMarker.SEVERITY, Integer.valueOf(type));\r\n\t\t\tmap.put(IMarker.MESSAGE, message);\r\n\t\t\tmap.put(IMarker.CHAR_START,Integer.valueOf(offset));\r\n\t\t\tmap.put(IMarker.CHAR_END,Integer.valueOf(offset + length));\r\n\t\t\tmap.put(IMarker.LINE_NUMBER,Integer.valueOf(line));\r\n\t\t\tmarker.setAttributes(map);\r\n\t\t} catch(CoreException ex){\r\n\t\t\tHTMLPlugin.logException(ex);\r\n\t\t}\r\n\t}", "public void addMark (Mark mark)\r\n {\r\n marks.add(mark);\r\n }", "public void mark(Marker m) {\n\t\tmark = m;\n\t}", "public void setLinePosition(int pos) {\n this.linePosition = pos;\n }", "public void addAssemblyLine(AssemblyLine line) {\n\t\tlines.add(line);\n\t}", "private void drawMarker1(LatLng point){\n MarkerOptions markerOptions=new MarkerOptions();\r\n\r\n // Setting latitude and longitude for the marker\r\n markerOptions.position(point);\r\n\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n\r\n // Adding marker on the Google Map\r\n mMap.addMarker(markerOptions);\r\n\r\n // marker.showInfoWindow();\r\n }", "public void setLine(int line);", "public void setLine(String line) {\n this.line = line;\n //System.out.println(this.line + \" \" + line);\n }", "private void addMarker(double lat, double lon) {\n mLatLng = new LatLng(lat,lon);\n mMarker = new MarkerOptions()\n .position(mLatLng)\n .title(\"Location\")\n .setIcon(icon)\n .snippet(\"Welcome to you\");\n map.addMarker(mMarker);\n }", "public void addLine(String codeLine) {\n checkNotNull(codeLine);\n CodeLine line = new CodeLine(codeLine, currentDepth);\n codeLines.add(line);\n }", "public void addMark(int row, int col, char mark) {\n\t\t\n\t\ttheBoard[row][col] = mark;\n\t\tmarkCount++;\n\t}", "public void addValueLine(String line) {\n\t\tvaluesBuilder.append(line);\n\t\tif (!line.endsWith(NEW_LINE)) {\n\t\t\tvaluesBuilder.append(NEW_LINE);\n\t\t}\n\t\tthis.dirtyAttributes.add(Constants.VALUES);\n\t}", "public void onOutputLineAdded(Window window, OutputLine line) {\n\t\t\t\n\t\t\tlinesLayout.addLine(line);\n\t\t}", "public void setMarker(String marker) {\n this.marker = marker;\n }", "public void setMarker(String marker) {\n this.marker = marker;\n }", "public void setMarker(String marker) {\n this.marker = marker;\n }", "public void addPoint(LatLng point, int color) {\n if (currentLine == null) {\n PolylineOptions options = new PolylineOptions()\n .add(point)\n .color(color);\n currentLine = mMap.addPolyline(options);\n } else {\n List<LatLng> allPoints = currentLine.getPoints();\n allPoints.add(point);\n currentLine.setPoints(allPoints);\n }\n }", "private void updatePolyLine(LatLng latLng) {\n List<LatLng> points = polyLine.getPoints();\n points.add(latLng);\n polyLine.setPoints(points);\n }", "public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }", "void putLine(String line);", "public Builder add(String line) {\n this.contentBuilder.append(line);\n return this;\n }", "private void updatePolyLine(LatLng latLng) {\n\t\tList<LatLng> points = polyLine.getPoints();\n\t\tpoints.add(latLng);\n\t\tpolyLine.setPoints(points);\n\t}", "public void newLogFileLine(String line) {\n System.out.println(line);\n }", "public static void writeLine(String string, int line) {\r\n\t\taddLine(string, line);\r\n\t\trefresh();\r\n\t}", "private void drawMarker(LatLng point) {\n\t\tMarkerOptions markerOptions = new MarkerOptions();\n\t\tmarkerOptions.position(point);\n\t\tmarkerOptions.title(\"Lat:\" + point.latitude + \",\" + \"Lng:\"\n\t\t\t\t+ point.longitude);\n\n\t\t// Adding marker on the Google Map\n\t\tmap.addMarker(markerOptions);\n\t}", "public Builder addLine(String line) {\n this.contentBuilder.append(line).append(\"\\n\");\n return this;\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 void add(String line, int lineNumber) {\n\t\t\tint splitIndex = line.indexOf('=');\n\t\t\tif (splitIndex < 0) {\n\t\t\t\terror(lineNumber, \"Missing required \\\"=\\\" for propery line: \\\"\" + line + \"\\\"\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tString key = line.substring(0, splitIndex).trim();\n\t\t\tString value = line.substring(splitIndex + 1, line.length()).trim();\n\t\t\tif (key.isBlank()) {\n\t\t\t\terror(lineNumber, \"Missing key for propery line: \\\"\" + line + \"\\\"\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (value.isBlank()) {\n\t\t\t\terror(lineNumber, \"Missing value for propery line: \\\"\" + line + \"\\\"\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (properties.containsKey(key)) {\n\t\t\t\terror(lineNumber, \"Duplicate key found in this file!: \\\"\" + key + \"\\\"\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproperties.put(key, value);\n\t\t\tlineNumbers.put(key, lineNumber);\n\n\t\t}", "public void addLine(LabelLine labelLine) {\n\n\t\tfloat fLineHeight = labelLine.getHeight();\n\t\tfloat fLineWidth = labelLine.getWidth();\n\n\t\tif ((fLineWidth + 2.0f * CONTAINER_BOUNDARY_SPACING) > fWidth) {\n\t\t\tfWidth = fLineWidth + 2.0f * CONTAINER_BOUNDARY_SPACING;\n\t\t}\n\n\t\tfloat fXLinePosition = fXContainerLeft + CONTAINER_BOUNDARY_SPACING;\n\t\tfloat fYLinePosition;\n\n\t\tif (alLabelLines.size() == 0) {\n\t\t\tfHeight += 2.0f * CONTAINER_BOUNDARY_SPACING + fLineHeight;\n\t\t\tfYLinePosition = fYContainerCenter + (fHeight / 2.0f)\n\t\t\t\t\t- CONTAINER_BOUNDARY_SPACING - fLineHeight;\n\t\t} else {\n\t\t\tfHeight += CONTAINER_LINE_SPACING + fLineHeight;\n\t\t\tupdateLinePositions();\n\t\t\tLabelLine lastLine = alLabelLines.get(alLabelLines.size() - 1);\n\t\t\tfYLinePosition = lastLine.getPosition().y() - CONTAINER_LINE_SPACING\n\t\t\t\t\t- fLineHeight;\n\t\t}\n\n\t\tlabelLine.setPosition(fXLinePosition, fYLinePosition);\n\t\talLabelLines.add(labelLine);\n\t}", "public void setLine (int Line);", "public void drawLine(float[] line) {\n\t\tparent.line(line[0], line[1], line[2], line[3]);\n\t}", "public void setMarker(final String marker) {\n\t\tthis.marker = marker;\n\t}", "public void addHelpLine(String line)\r\n\t{\r\n\t\thelpLines.add(line);\r\n\t}", "public void mark(int x, int y, int marker) {\n grid[x][y] = marker;\n }", "public void createMarker(DBMarker marker)\n\t{\n\t\t//Call get location function\n Location location = getLocation();\n \n //If location is not null, create a marker at the location and draw a line from that location to lat:0 long:0\n if (location != null)\n {\n \t//Get current location and create a LatLng object\n \tLatLng currentLocation = new LatLng(location.getLatitude(), location.getLongitude());\n \tMarker locationMarker = map.addMarker(new MarkerOptions().position(currentLocation));\n \t\n \t//Create a new GPS object to attach to the marker\n \tGPS gpsObject = new GPS();\n \tgpsObject.latitude = location.getLatitude();\n \tgpsObject.longitude = location.getLongitude();\n \tgpsObject.time = location.getTime();\n \tmarker.gps = gpsObject;\n \n \t//Add the marker to the list of markers and HashTable\n \tmarkerList.add(marker);\n \tmarkerHashTable.put(marker, locationMarker);\n }\n else\n {\n \t//Create alert when location fails\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Location not found.\");\n builder.setTitle(\"Error\");\n builder.setNeutralButton(\"Close\", null);\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n\t}", "public void setLinePos(int linePos) {\n this.linePos = linePos;\n }", "@Override\n public void onLineInserted(int y, String line) {\n if (cursor.getY() == file.getLineCount() - 1) {\n if (file.getLineCount() > 1) {\n throw new IllegalStateException();\n }\n return;\n }\n if (y <= cursor.getY()) {\n cursor.moveBy(1, 0);\n }\n fireSizeChanged();\n }", "private boolean MARK(Marker m) {\r\n if (look > 0) return true;\r\n if (marked > in) throw new Error(\"marked \" + marked + \" in \" + in);\r\n if (marked < in) {\r\n markers.clear();\r\n marked = in;\r\n }\r\n markers.add(m);\r\n return true;\r\n }", "protected void writeLine(String line) throws IOException {\n writer.write(line);\n writer.write(EOL);\n }", "@Override\n\tpublic Marker addMarker() {\n\t\treturn null;\n\t}", "public void drawLine(float[] line) {\n\t\tline(line[0], line[1], line[2], line[3]);\n\t}", "public void addLine(String sCode) {\n\t\tif (sCode != null) {\n\t\t\tvecLines.add(sCode);\n\t\t}\n\t}", "public void addMarkerToPref(Marker marker){\n parseClient.pushFavLoc(marker);\n latLngs.add(marker.getPosition());\n locationNames.add(marker.getTitle());\n saveMarkerPrefs();\n }", "public void markLine(int x1, int y1, int x2, int y2) {\n for (int row = y1 - 1; row <= y2 - 1 && row < height; row++) {\n for (int col = x1 - 1; col <= x2 - 1 && col < width; col++) {\n pixels[row][col] = DRAWING_CHAR;\n }\n }\n }", "private void addPoint( LatLng point ) {\n \t\tthis.addMarker( point );\n \t\tthis.commitPolygon();\n \t}", "private void drawMarker(LatLng point){\n\t\tgoogleMap.clear();\t\t\r\n\t\t\r\n // Creating an instance of MarkerOptions\r\n MarkerOptions markerOptions = new MarkerOptions();\r\n\r\n // Setting latitude and longitude for the marker\r\n markerOptions.position(point); \r\n \r\n // Setting title for the InfoWindow\r\n markerOptions.title(\"Position\");\r\n \r\n // Setting InfoWindow contents\r\n markerOptions.snippet(\"Latitude:\"+point.latitude+\",Longitude\"+point.longitude);\r\n // markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.));\r\n\r\n // Adding marker on the Google Map\r\n googleMap.addMarker(markerOptions);\r\n \r\n // Moving CameraPosition to the user input coordinates\r\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(point));\r\n\r\n // Setting the zoom level\r\n //googleMap.animateCamera(CameraUpdateFactory.zoomTo(10)); \r\n \r\n }", "public void setLineId(String line_id)\r\n {\r\n this.line_id = line_id;\r\n }", "public void matchLineMod(String line) {\n\t\tif(this.in_region && line.charAt(0) == '+') { // check that we are in a region\n\t\t\tthis.lineAdded++;\n\t\t}\n\n\t\t// Count number of line deleted\n\t\tif(this.in_region && line.charAt(0) == '-') { // check that we are in a region\n\t\t\tthis.lineDeleted++;\n\t\t}\n\t}", "private void drawTextMarker(Graphics g, String message, int yLine) {\n\t\tint xCenter = getGameWidthPixels() / 2;\n\t\tVector2DLong position0Inverted = new Vector2DLong(xCenter, yLine),\n\t\t\t\tposition1NonInverted = new Vector2DLong(xCenter, getGameHeightPhysics() - yLine);\n\t\tdrawScoreMarker(g, new ScoreMarker(message, position0Inverted, null, true));\n\t\tdrawScoreMarker(g, new ScoreMarker(message, position1NonInverted, null, false));\n\t}", "protected void append(String line) {\n\t\t\tout.append(line);\n\t\t}", "private void addNewLine(StringBuilder builder, String line){\r\n\t\tbuilder.append(line);\r\n\t\tbuilder.append(\"\\n\");\r\n\t}", "public void addActualExpenseLine(ActualExpense line) {\n line.setDocumentLineNumber(getActualExpenses().size() + 1);\n final String sequenceName = line.getSequenceName();\n final Long sequenceNumber = getSequenceAccessorService().getNextAvailableSequenceNumber(sequenceName, ActualExpense.class);\n line.setId(sequenceNumber);\n line.setDocumentNumber(this.documentNumber);\n notifyChangeListeners(new PropertyChangeEvent(this, TemPropertyConstants.ACTUAL_EXPENSES, null, line));\n getActualExpenses().add(line);\n logErrors();\n }", "public void addEmergencyContactLine(TravelerDetailEmergencyContact line) {\n if (!ObjectUtils.isNull(getTraveler())) {\n line.setFinancialDocumentLineNumber(getTraveler().getEmergencyContacts().size() + 1);\n line.setDocumentNumber(this.documentNumber);\n line.setTravelerDetailId(getTraveler().getId());\n getTraveler().getEmergencyContacts().add(line);\n }\n }", "public void appendLine() {\n\t\t\tmBuilder.append(NewLineChar);\n\t\t\tlastAppendNewLine = true;\n\t\t}", "private void setMarkersNotConcreteFeatures(String line, IFile res,\r\n\t\t\tint lineNumber) {\r\n\t\tString[] splitted = line.split(CPPModelBuilder.OPERATORS, 0);\r\n\r\n\t\tfor (int i = 0; i < splitted.length; ++i) {\r\n\t\t\tif (!splitted[i].equals(\"\") && !splitted[i].contains(\"#\")) {\r\n\t\t\t\tsetMarkersOnNotExistingOrAbstractFeature(splitted[i],\r\n\t\t\t\t\t\tlineNumber, res);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void map(String line, ImoocContext context);", "public void addLineNum(int lnNum)\n {\n //checks if this is the first instance of the word.\n if(lineNums.isEmpty())\n lineNums.append(lnNum);\n //checks if the word has already been seen on that line before adding it.\n //only works if the file is read in order.\n else if(lineNums.lastPos() != lnNum)\n lineNums.append(lnNum);\n }", "private void addGreenMarker(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\r\n markerOptions.position(latLng);\r\n //markerOptions.title(dt.format(newDate));\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n mMap.addMarker(markerOptions);\r\n }", "private void addUserMarker(LatLng loc){\n //remove existing marker from map\n if(marker!=null){\n map.removeMarker(marker);\n }\n // Creating marker style. We should use an object of type MarkerStyleCreator, set all features on it\n // and then call buildStyle method on it. This method returns an object of type MarkerStyle\n MarkerStyleBuilder markStCr = new MarkerStyleBuilder();\n markStCr.setSize(30f);\n markStCr.setBitmap(BitmapUtils.createBitmapFromAndroidBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.ic_marker)));\n MarkerStyle markSt = markStCr.buildStyle();\n\n // Creating user marker\n marker = new Marker(loc, markSt);\n\n // Adding user marker to map!\n map.addMarker(marker);\n }", "public MAJOR_JAVA_TYPE addLine(MAJOR_JAVA_TYPE v) {\n\t\tlines++;\n\t\tlog.trace(\"Registering `{}` in line {}\", v, lines);\n\n\t\tif (v == null) {\n\t\t\tnullLines++;\n\t\t}\n\t\telse {\n\t\t\tregisterValue(v);\n\t\t}\n\t\treturn v;\n\t}", "public void addLineItem (LineItem lineItem){\n if (this.orderStatus != OrderStatus.Closed && !lineItem.isOrdered() && !lineItems.contains(lineItem)){\n lineItems.add(lineItem);\n total += lineItem.getPrice();\n lineItem.setOrdered(true);\n this.getAccount().setBalance(this.getAccount().getBalance() - lineItem.getPrice());\n }\n }", "public final void changeModified(int line, int column) {\n\t\tmodified=true;\n\t\tArrayList<Integer> coordinates = new ArrayList<Integer>(); \n\t\tcoordinates.add(line);\n\t\tcoordinates.add(column);\n\t\tsetChanged();\n\t\tnotifyObservers(coordinates);\n\t}", "public abstract void visit(Line line);", "private void addToLineItem(LineItem newLineItem) {\r\n LineItem[] tempItems = new LineItem[lineItems.length + 1];\r\n System.arraycopy(lineItems, 0, tempItems, 0, lineItems.length);\r\n tempItems[lineItems.length] = newLineItem;\r\n lineItems = tempItems;\r\n }", "public void computeLine ()\r\n {\r\n line = new BasicLine();\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n StickSection ss = (StickSection) section;\r\n line.includeLine(ss.getLine());\r\n }\r\n\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\r\n line + \" pointNb=\" + line.getNumberOfPoints() +\r\n \" meanDistance=\" + (float) line.getMeanDistance());\r\n }\r\n }", "private void drawMarker(Location location){\n LatLng currentPosition = new LatLng(location.getLatitude(),location.getLongitude());\r\n runlist.add(currentPosition);\r\n\r\n\r\n for(int i = 0; i<runlist.size();i++){\r\n\r\n\r\n\r\n Marker marker = mGoogleMap.addMarker(new MarkerOptions()\r\n .position(runlist.get(i))\r\n .title(\"TRACKING\")\r\n .snippet(\"Real Time Locations\"));\r\n\r\n\r\n\r\n }\r\n\r\n AddLines();\r\n //mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0),13));\r\n mGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0), 13.9f));\r\n\r\n\r\n }", "public void addLineaGasto(long pk, long lineaGastoPK)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "void onLine(Terminal terminal, String line);", "private boolean handleSeekAdded(String line){\n if (!(line.startsWith(\"<s> \") || line.startsWith(\"<sn> \")))\n return false;\n \n SeekInfoStruct seekInfo = SeekInfoStruct.parseSeekInfoLine(line);\n\n if (!processSeekAdded(seekInfo))\n processLine(line);\n\n return true;\n }", "public void newChatLine(String line) {\n\t\tSystem.out.println(line);\n\t}", "@Override\n public void logLine(String line, long offset, boolean stderr, String context) {\n validate();\n\n sendSynchronously(restApiClient::logOutputLine,\n createLogLineRequest(line, offset, stderr, context));\n }", "public JasminBytecode add( String line ) {\n jasminCode.add(line);\n return this;\n }", "private void drawUserMarker(Location location) {\n LatLng current_position = new LatLng(location.getLatitude(), location.getLongitude());\n if(mUserMarker == null) {\n mUserMarker = mMap.addMarker(\n new MarkerOptions()\n .position(current_position)\n .snippet(\"Lat:\" + location.getLatitude() + \" Lng:\" + location.getLongitude())\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE))\n .title(\"My Position\")\n );\n }\n else {\n mUserMarker.setPosition(current_position);\n mUserMarker.setSnippet(\"Lat:\" + location.getLatitude() + \" Lng:\" + location.getLongitude());\n }\n }", "public void addLineaGasto(long pk,\n\t\tes.davinciti.liferay.model.LineaGasto lineaGasto)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void createLine(long id, SupplierSettlementLine line) throws CoreException {\n try (Response response = clientApi.post(SUPPLIER_SETTLEMENTS + id + \"/lines\", line)) {\n readResponse(response, String.class);\n // extract id from return location\n String locationUri = response.getHeaderString(\"Location\");\n Long lineId = Long.parseLong(locationUri.substring(locationUri.lastIndexOf(\"/\") + 1));\n line.setId(lineId);\n }\n }" ]
[ "0.7038162", "0.6759363", "0.66498053", "0.6571961", "0.6484949", "0.6420322", "0.6354171", "0.6265856", "0.6192956", "0.6183888", "0.6073078", "0.60327035", "0.60118484", "0.5991645", "0.5991153", "0.5963649", "0.5916835", "0.5913406", "0.59045434", "0.5881981", "0.5858567", "0.58560926", "0.58372605", "0.5834125", "0.58330137", "0.58251727", "0.58235043", "0.5803851", "0.57616436", "0.5738935", "0.57131433", "0.57016903", "0.5695179", "0.56919754", "0.5687568", "0.5672701", "0.5671417", "0.56711715", "0.5660949", "0.5660949", "0.5660949", "0.5659731", "0.56486976", "0.56461054", "0.56400466", "0.56276137", "0.5627508", "0.5617718", "0.5616764", "0.56145287", "0.56076056", "0.56008583", "0.5578463", "0.5574905", "0.55617625", "0.55566955", "0.5555524", "0.55477744", "0.5540507", "0.55371416", "0.5533768", "0.55257416", "0.55162203", "0.54705185", "0.5468047", "0.5457085", "0.5452617", "0.54427016", "0.542976", "0.5414106", "0.54058063", "0.5405271", "0.5401651", "0.53860086", "0.53814024", "0.5372241", "0.5363021", "0.5360744", "0.5353002", "0.53481406", "0.5336949", "0.5331425", "0.53286374", "0.5322806", "0.5309462", "0.530321", "0.52921104", "0.5288152", "0.5282162", "0.5267908", "0.5261963", "0.5245694", "0.5245326", "0.52447104", "0.5237342", "0.52292943", "0.5220208", "0.5217408", "0.5214338", "0.5204516" ]
0.6069016
11
Adds task marker to the specified range.
public static void addTaskMarker(IResource resource,int priority, int line, String message){ try { IMarker marker = resource.createMarker(IMarker.TASK); Map<String, Object> map = new HashMap<String, Object>(); map.put(IMarker.PRIORITY, Integer.valueOf(priority)); map.put(IMarker.MESSAGE, message); map.put(IMarker.LINE_NUMBER,Integer.valueOf(line)); marker.setAttributes(map); } catch(CoreException ex){ HTMLPlugin.logException(ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "public void add(final Task task) {\n }", "public synchronized void addTask(AnimatorTask task) {\r\n\r\n\t\tif (!running) {\r\n\t\t\ttasks.add(task);\r\n\t\t}\r\n\t}", "void addTask(Task task);", "void add(final Task task);", "void addTask(Task person) throws UniqueTaskList.DuplicateTaskException;", "@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}", "void addToList(Task task) throws InvalidCommandException;", "public void addDataRange(long beginning, long ending, Line line){\n }", "String addTask(Task task);", "public void add(Task task){ this.tasks.add(task);}", "public void addElement(DemoTask task) {\n\t\tdata.add(task);\n\t}", "public void add(Task task)\n {\n this.tasks.add(task);\n }", "@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void addRange(int range) {\n this.range += range;\n if(this.range <= 0)\n this.range = 1;\n }", "public void add_Range(Range range_to_add){\n this.range_vector.add(range_to_add);\n }", "void addDoneTask(Task task);", "@Insert\n long insert(Task task);", "public void addTask(Task task)\n {\n tasks.add(task);\n }", "@Override\n\t\tpublic void beginTask(String arg0, int arg1) {\n\n\t\t}", "public void addTask(Task task) {\n\t\tSystem.out.println(\"Inside createTask()\");\n\t\t\n\t\ttoDoList.add(task);\n\t\tdisplay();\n\t}", "public void setRange(AddressInfo range) {\r\n this.range = range;\r\n }", "public void addTask(Task task) {\n list.add(task);\n }", "void addTask(Task<?> task) {\n tasks.addFirst(task);\n }", "public void addTask(Task task) {\n this.tasks.add(task);\n }", "public void addTask(final BTask t) {\n\t\tbloc.addLast(t);\n\t}", "public void add(Task task) {\r\n tasks.add(task);\r\n }", "public void beginTask(String tr, int i) {\n\t\t\n\t}", "public void addTaskdef(Taskdef taskdef)\n {\n if (!localTaskdefs.contains(taskdef))\n {\n localTaskdefs.add(taskdef);\n }\n }", "boolean addTask(Task newTask);", "public void addTask(Task task){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID, task.getId());\n values.put(KEY_LABEL, task.getLabel());\n values.put(KEY_TIME, task.getTime());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }", "public void addTask(Task task) {\n tasks.add(task);\n }", "public void addTask(Task task) {\n tasks.add(task);\n }", "public void addTask(Task task) {\n tasks.add(task);\n }", "public CopyingRangeMarker(int offset, int length) {\n super(offset, length);\n }", "public static void addTask(Task taskToAdd)\n\t{\n\t\tStatement statement = dbConnect.createStatement();\n\t\t\n\t\tCalendar cal = taskToAdd.getCal();\n\t\tint year = cal.get(YEAR);\n\t\tint month = cal.get(MONTH);\n\t\tint day = cal.get(DAY_OF_MONTH);\n\t\tint hour = cal.get(HOUR_OF_DAY);\n\t\tint minute = cal.get(MINUTE);\n\t\t\n\t\tString descrip = taskToAdd.getDescription();\n\t\tboolean recur = taskToAdd.getRecurs();\n\t\tint recurI;\n\t\tif(recur) recurI = 1;\n\t\telse recurI = 0;\n\t\tint recursDays = taskToAdd.getRecurIntervalDays();\n\t\t\n\t\tstatement.executeUpdate(\"INSERT INTO tasks (Year, Month, Date, Hour, Minute, Description, Recursion, RecursionDays) VALUES(\" +year+\", \"+month+\", \"+day+\", \"+hour+\", \"+minute+\", '\"+descrip+\"', \"+recurI+\", \"+recursDays+\")\");\n\t\tstatement.close();\n\t\treturn;\n\t}", "org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskAbstract insertNewTaskAbstract(int i);", "int insertTask(TaskInfo taskInfo);", "org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskAbstract addNewTaskAbstract();", "public void add(Task t)\n {\n\ttoDo.add(t);\n }", "public void addTask(Task newTask) {\n recordedTask.add(newTask);\n updateTaskToFile();\n }", "public static org.jfree.data.gantt.Task createTask(String name, int start, int end) {\r\n\t\treturn new org.jfree.data.gantt.Task(name, SchedulerUtils.dateTime(start), SchedulerUtils.dateTime(end));\r\n\t}", "public void addTask(Task t){\n\t\ttry {\n\t\t\taction.put(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void setPositionOfTasks() {\n for (int i = 0; i < list.getListSize(); i++) {\n list.get(i).setPosition(i + 1);\n }\n }", "public void addTask(String task, String... args) {\r\n\t\ttasks.add(new String[][]{new String[]{task}, args});\r\n\t}", "public void setRange(Range range) { setRange(range, true, true); }", "private static boolean checkTaskBounds(int task) {\r\n\t\t\tboolean isInBound;\r\n\t\t\t\r\n\t\t\tif ((task < 0) || (task > 7)) {\r\n\t\t\t\t//isInBound = false;\r\n\t\t\t\tif (task == -1) {\r\n\t\t\t\t\tisInBound = true;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tisInBound = false;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tisInBound = true;\r\n\t\t\t}\r\n\t\t\treturn isInBound;\r\n\t\t}", "public void start(int range) {\n start(mRangeStart, range, mIsPositive);\n }", "public void add(Task var) {\n\t\tif (tasks.size() < numOfTasks) {\n\t\t\ttasks.add(var);\n\t\t}\n\t}", "public void inputTask(Task task) {\n \tif (task != null) {\n if (task.aboveThreshold()) { // set a threshold?\n report(task.getSentence(), true); // report input\n newTasks.add(task); // wait to be processed in the next cycle\n }\n }\n }", "public boolean addTask(Integer i){\n\n return toget.add(i);\n }", "public void add(Task newTask) {\n tasks.add(newTask);\n }", "void addEel(int t_start, int t_end) {\n\t\t\tEelsRepository.put(t_start, t_end);\n\t\t}", "public void add(MiningTask mt) {\n miningTasks.add(mt);\n }", "public void beginTask(String tr) {\n\t\t\n\t}", "void arrangeTask(Task task) {\n if (task.isReverseScheduled())\n\t\t\tnumberOfReverseScheduledTasks++;\n \ttask.setMarkerStatus(markerStatus);\n TaskReference previousTaskReference;\n \tTask previousTask;\n // go thru in reverse order inserting after first predecessor or parent encountered\n ListIterator i = list.listIterator();\n TaskReference taskReference = new TaskReference(task);\n while (i.hasNext()) {\n \tpreviousTaskReference = (TaskReference)i.next();\n \tpreviousTask = previousTaskReference.getTask();\n if (task.getWbsParentTask() == previousTask) {\n \ti.add(taskReference);\n return;\n }\n }\n i.previous(); // add before end sentinel\n i.add(taskReference);\n }", "public void startTask() {\n\t}", "public void setTask(Task inTask){\n punchTask = inTask;\n }", "boolean setTask(UUID uuid, IAnimeTask task);", "private void arrangeSingleTask(final Task task) {\n\t\ttask.arrangeTask(list,markerStatus,0);\n \tif (task.isReverseScheduled())\n\t\t\tnumberOfReverseScheduledTasks++;\n\t}", "@Override\n\t\t\tpublic void beginTask(String name, int totalWork) {\n\t\t\t\t\n\t\t\t}", "public void add(NetworkTarget nt, Point pos, int angle, int range) {\t\r\n\t\t\tmap.put(nt, new Missile(gc, nt, pos, angle,range));\r\n\t}", "private synchronized void startTask(Task task) {\n if (_scheduledTasks.get(task.table) == task) {\n _scheduledTasks.remove(task.table);\n }\n _runningTask = task;\n }", "void addDoneTasks(List<Task> task);", "public void setTaskTimeRange(String taskTimeRange) {\n this.taskTimeRange = taskTimeRange == null ? null : taskTimeRange.trim();\n }", "@Override\n public void taskStarting() {\n\n }", "void editTask(ReadOnlyTask taskToEdit, Name taskName, Date startDate, Date endDate, Priority priority,\n\t\t\tRecurrenceRate recurrenceRate);", "public void populateTaskList(String _task){\n\t\ttaskList.getItems().add(_task);\n\t}", "public void addCommandMutable(ListItem task) {\n this.listItems.add(task);\n }", "@Override\n public <T> void onCreate(Task<T> task) {\n\n final String taskId = task.getTaskId();\n\n if (!StringUtils.isEmpty(taskId)) {\n if (inProgressQueue.containsKey(taskId)) {\n// task.setSkipExecution(true);\n } else {\n inProgressQueue.put(taskId, task);\n// task.setSkipExecution(false);\n }\n } else {\n logger.warn(\"Task Id can not be null for qnqueing task\");\n }\n }", "void updateTaskOffsets(ArrayList<Task> tasks) {\n mTaskOffsetMap.clear();\n int offset = 0;\n int taskCount = tasks.size();\n for (int i = 0; i < taskCount; i++) {\n Task t = tasks.get(i);\n mTaskOffsetMap.put(t.key, offset);\n if (t.group.isFrontMostTask(t)) {\n offset += getTaskOverlapHeight();\n } else {\n offset += mConfig.taskBarHeight;\n }\n }\n }", "@Override\r\n\tpublic Task addTask(Task task) {\n\t\treturn taskRepository.save(task);\r\n\t}", "public void addRangeValue(final T newValue) {\n\t\tvalues.add(newValue);\n\t}", "public void insert_task(int[] _row, int[] _col, int _row_num, int _col_num){\n ArrayList<Object> temp = new ArrayList<>();\n temp.add(_row);\n temp.add(_col);\n temp.add(_row_num);\n temp.add(_col_num);\n task_queue.add(temp);\n }", "public void addTaskListRecNum(int recnum) { taskListRecNums.add(recnum); }", "public void editTask(String newTask) {\n task = newTask;\n }", "public void setRange(String new_range) {\n\t\t_range = new_range;\n\t}", "public void addTask(Task task) {\n\t\tMessage msg=new Message(null, null, task);\n\t\ttry {\n\t\t\tchannel.send(msg);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t//Runtime exception with info for use in debugging\n\t\t\tthrow new RuntimeException(ex.getMessage());\n\t\t}\n\t}", "TaskDetail add() {\n taskDetails.put(task, this);\n return this;\n }", "public void addToTaskList(Task task) {\n taskList.add(task);\n }", "public Builder addTaskId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureTaskIdIsMutable();\n taskId_.add(value);\n onChanged();\n return this;\n }", "public void addTaskListener(TaskListener task){\n initListener();\n listeners.add(task);\n }", "protected void setupTask(Task task) {\n }", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "public void createTask(Task task) {\n ContentValues values = new ContentValues();\n values.put(SQLiteHelper.COLUMN_NAME, task.getName());\n database.insert(SQLiteHelper.TABLE_TASKS, null, values);\n }", "public void insert(int s, int t, ArrayList<Integer> start, ArrayList<Integer> end, ArrayList<Integer> process, int pid){\r\n\t\tif(start.isEmpty() && end.isEmpty()){\r\n\t\t\tstart.add(s);\r\n\t\t\tend.add(t);\r\n\t\t\tprocess.add(pid);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tfor(int i = 0; i < start.size(); i++){\r\n\t\t\t\tif(start.get(i) < s){\r\n\t\t\t\t\tif(i == (start.size()-1)){\r\n\t\t\t\t\t\tstart.add(s);\r\n\t\t\t\t\t\tend.add(t);\r\n\t\t\t\t\t\tprocess.add(pid);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(start.get(i) == s){\r\n\t\t\t\t\tif(end.get(i) < t){\r\n\t\t\t\t\t\tif(i == (start.size()-1)){\r\n\t\t\t\t\t\t\tstart.add(s);\r\n\t\t\t\t\t\t\tend.add(t);\r\n\t\t\t\t\t\t\tprocess.add(pid);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(end.get(i) >= t){\r\n\t\t\t\t\t\tstart.add(i,s);\r\n\t\t\t\t\t\tend.add(i,t);\r\n\t\t\t\t\t\tprocess.add(i,pid);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tstart.add(i,s);\r\n\t\t\t\t\tend.add(i,t);\r\n\t\t\t\t\tprocess.add(i,pid);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addTask(Task task) {\n tasks.add(task);\n notifyObservers();\n }", "public TimeEntry taskId(UUID taskId) {\n this.taskId = taskId;\n return this;\n }", "public interface MapTask extends Task {\n\t\n\tpublic void map(MapRunner mapRunner, String toDo);\n}", "private void m1562a(Task task) {\n m1559a();\n for (ListenerRecord listenerRecord : this.f1843d.values()) {\n listenerRecord.f1848d.add(task);\n m1567d(listenerRecord);\n }\n }", "public void addTileOnBeginning(Tile tile);", "private void setTagTimesForTask(Task task) {\n for (Tag tag: task.getTags()) {\n if (!tagTimeMap.containsKey(tag.getName())) tagTimeMap.put(tag.getName(), new TagTime(tag, Duration.ofNanos(0)));\n if (task.isRunning()) {\n activeTask = task;\n tagTimeMap.get(tag.getName()).setActiveDuration(task.getDuration());\n for (TagTimeAdapter adapter: tagTimeAdapters)\n {\n adapter.notifyItemTick(cachedTagTimes.indexOf(tagTimeMap.get(tag.getName())));\n }\n }\n else {\n tagTimeMap.get(tag.getName()).addDuration(task.getDuration());\n }\n }\n cachedTagTimes.clear();\n cachedTagTimes.addAll(tagTimeMap.values());\n }", "void setBeginRange( String beginRange );", "int insertDptTask(DptTaskInfo dptTaskInfo);", "public void setTimeRange(int itmin, int itmax) {\n _itmin = itmin;\n _itmax = itmax;\n }", "public void setTask(PickingRequest task) {\n this.task = task;\n }", "private void addGreenMarker(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\r\n markerOptions.position(latLng);\r\n //markerOptions.title(dt.format(newDate));\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n mMap.addMarker(markerOptions);\r\n }", "public synchronized void registerScheduledTask(ParallelTask<?> task) throws QueryEvaluationException {\r\n\t\tif (done) {\r\n\t\t\tthrow new QueryEvaluationException(\"Query is aborted or closed, cannot accept new tasks\");\r\n\t\t}\r\n\t\tscheduledSubtasks.add(task);\r\n\t}", "public ChunkRange(final long from, final Long to) {\n rangeRequested = true;\n if (from < 0) {\n throw new IllegalArgumentException(\"from < 0\");\n }\n this.from = from;\n if (to != null && to >= 0) {\n if (from > to) {\n throw new IllegalArgumentException(\"from > to\");\n } else if (to < from) {\n throw new IllegalArgumentException(\"to < from\");\n }\n }\n this.to = to;\n }", "@Override\n public boolean add(Task task) {\n return tasks.add(task);\n }" ]
[ "0.5867431", "0.56962216", "0.56523573", "0.56465816", "0.55422604", "0.55109334", "0.5498104", "0.54022765", "0.53954417", "0.5364213", "0.5268662", "0.5243014", "0.5201138", "0.5158036", "0.5156604", "0.5126477", "0.51251614", "0.5119903", "0.50985026", "0.5086713", "0.50865805", "0.50749296", "0.50734353", "0.50697017", "0.5045275", "0.5045119", "0.5035041", "0.50297105", "0.50265104", "0.50181574", "0.501671", "0.5002764", "0.5002764", "0.5002764", "0.4994222", "0.49924618", "0.49887073", "0.49874356", "0.4978006", "0.49759418", "0.49551448", "0.49405015", "0.49378824", "0.49292505", "0.49173784", "0.48949584", "0.48919475", "0.48778594", "0.48639342", "0.48639297", "0.48333985", "0.48308802", "0.48279992", "0.48225972", "0.47998685", "0.47825673", "0.4781872", "0.47746405", "0.47657093", "0.4753654", "0.4737332", "0.47372174", "0.47287327", "0.4714285", "0.47118634", "0.47066063", "0.47009265", "0.4699915", "0.46950942", "0.46949646", "0.46942857", "0.4691823", "0.46855935", "0.46770966", "0.4672447", "0.46693534", "0.46674845", "0.4661025", "0.46602696", "0.4653291", "0.46467245", "0.4645688", "0.46280083", "0.4626744", "0.46176708", "0.461014", "0.4604486", "0.4604135", "0.45971283", "0.45964816", "0.4596266", "0.45951322", "0.45914617", "0.45742893", "0.45727006", "0.4570775", "0.45589375", "0.4548568", "0.45411026", "0.45386726" ]
0.550807
6
Adds marker to the specified range.
public static void addMarker(IResource resource,int type, int line, int offset,int length,String message){ try { IMarker marker = resource.createMarker(IMarker.PROBLEM); Map<String, Object> map = new HashMap<String, Object>(); map.put(IMarker.SEVERITY, Integer.valueOf(type)); map.put(IMarker.MESSAGE, message); map.put(IMarker.CHAR_START,Integer.valueOf(offset)); map.put(IMarker.CHAR_END,Integer.valueOf(offset + length)); map.put(IMarker.LINE_NUMBER,Integer.valueOf(line)); marker.setAttributes(map); } catch(CoreException ex){ HTMLPlugin.logException(ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDataRange(long beginning, long ending, Line line){\n }", "public void addRange(int range) {\n this.range += range;\n if(this.range <= 0)\n this.range = 1;\n }", "public void add_Range(Range range_to_add){\n this.range_vector.add(range_to_add);\n }", "public CopyingRangeMarker(int offset, int length) {\n super(offset, length);\n }", "org.hl7.fhir.ObservationReferenceRange addNewReferenceRange();", "public void addRangeValue(final T newValue) {\n\t\tvalues.add(newValue);\n\t}", "org.hl7.fhir.ObservationReferenceRange insertNewReferenceRange(int i);", "@Override\n\tpublic Marker addMarker() {\n\t\treturn null;\n\t}", "public void setRange(AddressInfo range) {\r\n this.range = range;\r\n }", "void set_marker_position (double p_position) {\n //\n // Ensure the specific value is legal.\n //\n double l_position = Range.clip\n (p_position , SERVO_MARKER_MIN\n , SERVO_MARKER_MAX); // Servo position is restricted to protect from mechanical damage\n\n\n\n //\n // Set the right value.\n //\n if (marker!= null)\n {\n marker.setPosition (l_position);\n }\n\n }", "private boolean MARK(Marker m) {\r\n if (look > 0) return true;\r\n if (marked > in) throw new Error(\"marked \" + marked + \" in \" + in);\r\n if (marked < in) {\r\n markers.clear();\r\n marked = in;\r\n }\r\n markers.add(m);\r\n return true;\r\n }", "public abstract void insertRange(int start, double value, int count,\r\n int validSize);", "public void AddRange(char first, char last)\n\t{\n\t\t_rangelist.add(new SingleRange(first, last));\n\t\tif (_canonical && _rangelist.size() > 0 && first <= _rangelist.get(_rangelist.size() - 1)._last)\n\t\t{\n\t\t\t_canonical = false;\n\t\t}\n\t}", "@Override\r\n public void addRangeClass(AgeClass rgCls)\r\n {\n \r\n range.add(rgCls);\r\n }", "public void setRange(Range range) { setRange(range, true, true); }", "public void addMark (Mark mark)\r\n {\r\n marks.add(mark);\r\n }", "public void start(int range) {\n start(mRangeStart, range, mIsPositive);\n }", "@VTID(16)\n void setLocation(\n excel.Range rhs);", "public void addReportMarker(MarkupSymbol symbol) {\n symbol.addToMap();\n mReportMarker = symbol;\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(symbol.getPoint(), 12));\n }", "public void setOffset(int startOffset, int endOffset);", "private void addGreenMarker(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\r\n markerOptions.position(latLng);\r\n //markerOptions.title(dt.format(newDate));\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n mMap.addMarker(markerOptions);\r\n }", "public void setRange(String new_range) {\n\t\t_range = new_range;\n\t}", "void addLine(int index, Coordinate start, Coordinate end);", "@Override\n public void onMarkerDragStart(Marker marker){\n int indexOf = locationNames.indexOf(marker.getTitle());\n marker.setPosition(latLngs.get(indexOf));\n }", "public double generateLatitude(double latitude, Double plusMinusRange);", "private void addMarker() {\n /** Make sure that the map has been initialised **/\n LatLng lt = new LatLng(58.722599, -103.798828);\n float focus = 1f;\n if (null != mMap) {\n ArrayList<EarthQuake> earthQuakes = (ArrayList<EarthQuake>) getIntent().getSerializableExtra(\"quakeArrayList\");\n getIntent().removeExtra(\"quakeArrayList\");\n int position = getIntent().getIntExtra(\"position\", 0);\n if (earthQuakes != null) {\n if(position==0) {\n for (int i = 0; i < earthQuakes.size(); i++) {\n mMap.addMarker(\n new MarkerOptions()\n .visible(true)\n .title(\"Earthquake\")\n .snippet(earthQuakes.get(i).getDateTime() + \"\\n\" + earthQuakes.get(i).getMagnitude() + \"\\n\")\n .position(new LatLng(earthQuakes.get(i).getLat(), earthQuakes.get(i).getLon()))\n );\n }\n }else if(position>0){\n lt=new LatLng(earthQuakes.get(position).getLat(),earthQuakes.get(position).getLon());\n mMap.addMarker( new MarkerOptions()\n .visible(true)\n .title(\"Earthquake\")\n .snippet(earthQuakes.get(position).getDateTime() + \"\\n\" + earthQuakes.get(position).getMagnitude() + \"\\n\")\n .position(new LatLng(earthQuakes.get(position).getLat(), earthQuakes.get(position).getLon())));\n focus=4f;\n\n }\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(lt, focus));\n\n }\n }", "@Override\n public void onRangeStart(String s, int i, int i1) {\n }", "protected abstract E put(R range, V value);", "public void mark(Marker m) {\n\t\tmark = m;\n\t}", "private void addRangeIntegers() {\r\n ent_2_i.put(\"< 0\", -1); ent_2_i.put(\"== 0\", 0); ent_2_i.put(\"== 1\", 1); ent_2_i.put(\"< 10\", 10);\r\n ent_2_i.put(\"< 100\", 100); ent_2_i.put(\"< 1K\", 1000); ent_2_i.put(\"< 10K\", 10000); ent_2_i.put(\"< 100K\", 100000);\r\n ent_2_i.put(\"> 100K\", 1000000);\r\n }", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "public void addMarkers(View view) {\n if (null == hMap) {\n return;\n }\n if (isAdded) {\n Toast.makeText(this, \"Markers has already added.\", Toast.LENGTH_LONG).show();\n return;\n }\n InputStream inputStream = getResources().openRawResource(R.raw.marker_200);\n List<MarkerOptions> markerOptionsList = null;\n try {\n markerOptionsList = new MyItemReader().read(inputStream);\n } catch (JSONException e) {\n Log.e(TAG, \"JSONException.\");\n }\n if (markerOptionsList == null) {\n return;\n }\n for (MarkerOptions item : markerOptionsList) {\n hMap.addMarker(item);\n }\n isAdded = true;\n }", "private static void fillWithFlag(\n MyFlagManager flagManager,\n int indexFrom,\n int indexTo,\n byte flag) {\n final int offsetFlag = flagManager.flagOffset + flag;\n for (int index = indexFrom; index <= indexTo; index++) {\n flagManager.setOffsetFlagAt(index, offsetFlag);\n }\n }", "public void addNextLandMark(double val, Color c) {\n\tthis.landmarkValues.add(val);\n\tthis.landmarkColors.add(c);\n }", "void setBeginRange( String beginRange );", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Loc addNewLoc();", "public void addMapMarker() {\n if (iLat != null && !iLat.equals(\"\") && iLon != null && !iLon.equals(\"\") && iLatRef != null && !iLatRef.equals(\"\") && iLonRef != null && !iLonRef.equals(\"\")) {\n\n if (iLatRef.equals(\"N\")) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n }\n\n if (iLonRef.equals(\"E\")) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n }\n }\n\n final MapView gMap = (MapView) findViewById(R.id.map);\n\n if (addedMarker == false) {\n posMarker = gMap.getMap().addMarker(posMarkerOptions);\n posMarker.setTitle(getString(R.string.map_position));\n addedMarker = true;\n }\n\n posMarker.setVisible(true);\n posMarker.setPosition(new LatLng(iLatFloat, iLonFloat));\n\n GoogleMap gMapObj = gMap.getMap();\n\n gMapObj.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n posMarker.setPosition(latLng);\n displayCoordsInDegrees();\n\n //Use text view values instead of posMarker values\n iLat = toDMS(posMarker.getPosition().latitude);\n iLon = toDMS(posMarker.getPosition().longitude);\n\n if (posMarker.getPosition().latitude > 0) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n iLatRef = \"N\";\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n iLatRef = \"S\";\n }\n\n if (posMarker.getPosition().longitude > 0) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n iLonRef = \"E\";\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n iLonRef = \"W\";\n }\n }\n });\n }", "private int addMarkerToMap(Double lat, Double lng, int id, float hue, String title,\n String snippet, boolean draggable) {\n // what if there are too many markers on Google Map ?\n // TODO: https://code.google.com/p/android-maps-extensions/\n Log.i(TAG, \"@addMarkerToMap\");\n LatLng latlng = new LatLng(lat, lng);\n Marker marker = mMap.addMarker(new MarkerOptions()\n .position(latlng)\n .icon(BitmapDescriptorFactory.defaultMarker(hue)));\n\n if (!title.isEmpty()){\n marker.setTitle(title);\n }\n if (!snippet.isEmpty()){\n marker.setSnippet(snippet);\n }\n marker.setDraggable(draggable);\n\n markers.put(marker, id);\n return id;\n }", "Range createRange();", "public void zoomRange(double lowerPercent, double upperPercent) {\n/* */ long adjEnd, adjStart;\n/* 1891 */ double start = this.timeline.toTimelineValue(\n/* 1892 */ (long)getRange().getLowerBound());\n/* 1893 */ double end = this.timeline.toTimelineValue(\n/* 1894 */ (long)getRange().getUpperBound());\n/* 1895 */ double length = end - start;\n/* */ \n/* */ \n/* 1898 */ if (isInverted()) {\n/* 1899 */ adjStart = (long)(start + length * (1.0D - upperPercent));\n/* 1900 */ adjEnd = (long)(start + length * (1.0D - lowerPercent));\n/* */ } else {\n/* */ \n/* 1903 */ adjStart = (long)(start + length * lowerPercent);\n/* 1904 */ adjEnd = (long)(start + length * upperPercent);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1909 */ if (adjEnd <= adjStart) {\n/* 1910 */ adjEnd = adjStart + 1L;\n/* */ }\n/* */ \n/* 1913 */ DateRange dateRange = new DateRange(this.timeline.toMillisecond(adjStart), this.timeline.toMillisecond(adjEnd));\n/* 1914 */ setRange(dateRange);\n/* */ }", "private void addMarker( LatLng point ) {\n \t\tthis.markers.add( this.googleMap.addMarker( this.makeMarkerAt( point ) ) );\n \t}", "public FaithMarker(int position) {\r\n this.position = position;\r\n }", "private void addMarker(MapboxMap mapboxMap) {\n MarkerOptions markerOptions = new MarkerOptions();\n\n IconFactory iconFactory = IconFactory.getInstance(LocateDoctorActivity.this);\n Icon icon = iconFactory.fromResource(R.drawable.mapquest_icon);\n\n markerOptions.position(new com.mapbox.mapboxsdk.geometry.LatLng(Double.parseDouble(selectedLat), Double.parseDouble(selectedLong)));\n markerOptions.snippet(\"Selected Location\");\n markerOptions.setIcon(icon);\n mapboxMap.addMarker(markerOptions);\n }", "public void addOffsetListener(IOffsetListener listener) {\r\n\t\toffsetListeners.add(listener);\r\n\t}", "public MarkedRegion(AbstractInsnNode start, AbstractInsnNode end) {\n this.start = start;\n this.ends = new LinkedList<AbstractInsnNode>();\n this.ends.add(end);\n }", "public void set(int start, int end, ReadableStringMap<V> annotations,\n ReadableStringMap<V> diffFromPrevious) {\n Preconditions.checkPositionIndexes(start, end, Integer.MAX_VALUE);\n Preconditions.checkNotNull(annotations, \"annotations must not be null\");\n Preconditions.checkNotNull(diffFromPrevious, \"diffFromPrevious must not be null\");\n if (start >= end) {\n throw new IllegalArgumentException(\"Attempt to set AnnotationInterval to zero length\");\n }\n this.start = start;\n this.end = end;\n this.annotations = annotations;\n this.diffFromLeft = diffFromPrevious;\n }", "Builder addTypicalAgeRange(String value);", "public void setRange(@IntRange(from = MIN_RANGE) int range) {\n setRange(mRangeStart, range, mIsPositive);\n }", "public void mark(int x, int y, int marker) {\n grid[x][y] = marker;\n }", "public void shiftRangeFarLeft() {\n Range r = new Range(1, getRange().getLength());\n setLocation(r);\n }", "private void eatRangeStart() {\n\n Token token = tokens.get(currentTokenPointer++);\n\n if (token.kind == TokenKind.STARTINCLUSIVE) {\n\n startInclusive = true;\n\n } else if (token.kind == TokenKind.STARTEXCLUSIVE) {\n\n startInclusive = false;\n\n } else {\n\n raiseParseProblem(\"expected a version start character '[' or '(' but found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n }\n\n }", "public void setLow(String low){\n range.setLow(low);\n }", "public abstract void setRange(double value, int start, int count);", "@Override\n public void add(T lowerBound, T upperBound, long frequency) {\n addBound(upperBound, frequency);\n }", "public void setRangeBottomLeft(Location location) {\n\t\tthis.rangeBottomLeft = location;\n\t}", "private void addMarker(double lat, double lon) {\n mLatLng = new LatLng(lat,lon);\n mMarker = new MarkerOptions()\n .position(mLatLng)\n .title(\"Location\")\n .setIcon(icon)\n .snippet(\"Welcome to you\");\n map.addMarker(mMarker);\n }", "public void add(NetworkTarget nt, Point pos, int angle, int range) {\t\r\n\t\t\tmap.put(nt, new Missile(gc, nt, pos, angle,range));\r\n\t}", "private void addCurrentMarker(double lat, double lon) {\n mLatLng = new LatLng(lat, lon);\n marker_inter = map.addMarker(new MarkerViewOptions()\n .position(mLatLng)\n .title(\"Intervention\")\n .snippet(\"Desc inter\")\n .icon(iconUsr));\n run = 1;\n }", "public abstract void addRange(AttributeStreamBase src, int srcStart,\r\n int count, boolean bForward, int stride);", "private void createMarker(LatLng position) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(position);\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.note_position));\n // set up marker\n locationMarker = googleMap.addMarker(markerOptions);\n locationMarker.setDraggable(true);\n locationMarker.showInfoWindow();\n }", "public void includeDomainInRangeCalculator(IntegerRangeCalculator i)\r\n\t{\r\n\t\ti.include(start);\r\n\t\tif(data.length>0) i.include(start+data.length-1);\r\n\t}", "Builder addPosition(Integer value);", "public final Marking setX( Range xRange )\n {\n return setX( xRange, 1 );\n }", "public void addMinedLineSegment(final int start, final int end) {\n // fill me in!\n }", "private void showMarker() {\n\n if (myMarker == null) {\n MarkerOptions options = new MarkerOptions();//1 option co 2 thu k thieu vi tri ,hinh anh\n options.position(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));//vi tri kinh do vi do,no tra ve vi tri cuoi cung gps nhan dc ,neu\n options.title(\"dung123\");\n options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n //newu chua co thif sedc sinh ra bang cach add\n googleMap.addMarker(options);\n// myMarker.setTag(\"Hello\");//co the truyen doi tuig vao duoi window marker getTag\n } else {\n myMarker.setPosition(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));\n }\n }", "public abstract void insertRange(int start, AttributeStreamBase src,\r\n int srcStart, int count, boolean bForward, int stride, int validSize);", "public void setMarker(String marker) {\n this.marker = marker;\n }", "public void setMarker(String marker) {\n this.marker = marker;\n }", "public void setMarker(String marker) {\n this.marker = marker;\n }", "private void createMarker()\n {\n LocationMarker layoutLocationMarker = new LocationMarker(\n fLon.get(fLon.size()-1),\n fLat.get(fLat.size()-1),\n getExampleView()\n\n );\n\n finalLon = fLon.get(fLon.size()-1);\n finalLat = fLat.get(fLat.size()-1);\n\n View eView = exampleLayoutRenderable.getView();\n TextView finalDistance = findViewById(R.id.textView4);\n\n\n // An example \"onRender\" event, called every frame\n // Updates the layout with the markers distance\n layoutLocationMarker.setRenderEvent(new LocationNodeRender() {\n @Override\n public void render(LocationNode node) {\n View eView = exampleLayoutRenderable.getView();\n\n TextView distanceTextView = eView.findViewById(R.id.textView2);\n distanceTextView.setText(node.getDistance() + \"m\");\n }\n });\n // Adding the marker\n locationScene.mLocationMarkers.add(layoutLocationMarker);\n\n }", "public void setRangeStart(@IntRange(from = MIN_NUMBER) long start) {\n setRange(start, mRange, mIsPositive);\n }", "public void addRangeOpt(String str, String str2, int i, int i2, int i3) {\n this.mOptionIds.add(str);\n this.mRangeOptions.add(new RangeOpt(str, str2, i, i2, i3));\n }", "private void addUserMarker(LatLng loc){\n //remove existing marker from map\n if(marker!=null){\n map.removeMarker(marker);\n }\n // Creating marker style. We should use an object of type MarkerStyleCreator, set all features on it\n // and then call buildStyle method on it. This method returns an object of type MarkerStyle\n MarkerStyleBuilder markStCr = new MarkerStyleBuilder();\n markStCr.setSize(30f);\n markStCr.setBitmap(BitmapUtils.createBitmapFromAndroidBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.ic_marker)));\n MarkerStyle markSt = markStCr.buildStyle();\n\n // Creating user marker\n marker = new Marker(loc, markSt);\n\n // Adding user marker to map!\n map.addMarker(marker);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n MarkerOptions marker = new MarkerOptions().position(\n new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());\n mMap.addMarker(marker);\n }", "private void addMarkerByAddress(String addr, DialogInterface dialog)\n {\n try {\n Geocoder selected_place_geocoder = new Geocoder(MarkerActivity.this);\n List<Address> address;\n\n address = selected_place_geocoder.getFromLocationName(addr, 5);\n\n if (address != null && address.size() > 0)\n {\n Address found = address.get(0);\n\n // add marker\n map.addMarker(new MarkerOptions().position(new LatLng(found.getLatitude(), found.getLongitude())));\n\n // close dialog\n dialog.dismiss();\n }\n else {\n Toast.makeText(this, \"Your address is not found, please try another keyword.\", Toast.LENGTH_SHORT).show();\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n Toast.makeText(this, \"Error when trying to find your address location, please try again.\", Toast.LENGTH_SHORT).show();\n }\n }", "protected abstract void setMarkers();", "public void add(Mention mention, int sentenceOffset);", "Builder addPosition(String value);", "public ChunkRange(final long from, final Long to) {\n rangeRequested = true;\n if (from < 0) {\n throw new IllegalArgumentException(\"from < 0\");\n }\n this.from = from;\n if (to != null && to >= 0) {\n if (from > to) {\n throw new IllegalArgumentException(\"from > to\");\n } else if (to < from) {\n throw new IllegalArgumentException(\"to < from\");\n }\n }\n this.to = to;\n }", "public void mark() {\n\t\tmarker = elementCount;\n\t\tsetSize(marker);\n\t}", "public static void pinAddressesInRange(HashMap<String, Object> argVals,HashMap<String, Object> retVals) \n\t\tthrows IOException, ParserConfigurationException, SAXException{\n\t\t\n\t\tString origin = (String)argVals.get(\"startAddress\");\n\t\tlong range = (java.lang.Long)argVals.get(\"range\");\n\t\tLinkedList<String> addresses = (LinkedList<String>)argVals.get(\"address\");\n\t\tLinkedList<String> comments = (LinkedList<String>)argVals.get(\"addressInfo\");\n\t\tLinkedList<String> survivedComments = new LinkedList<String>();\n\t\tLinkedList<String> survivedAddr = new LinkedList<String>();\n\t\t\n\t\tfor(int i=0;i<addresses.size();i++){\n\t\t\tString addr = addresses.get(i);\n\t\t\tif(getShortestDistance(origin, addr) < range){\n\t\t\t\tsurvivedAddr.add(addr);\n\t\t\t\tif(comments.size()>i)\n\t\t\t\t\tsurvivedComments.add(comments.get(i));\n\t\t\t}\n\t\t}\n\t\tsurvivedAddr.add(origin);\n\t\t\n\t\tString url = \"\";\n\t\t\n\t\tfor(int i=0;i<survivedAddr.size();i++){\n\t\t\tif(survivedAddr.get(i)!=null){\n\t\t\t\tif(i==0){\n\t\t\t\t\turl = ((String)survivedAddr.get(i)).replace(\" \", \"+\")+'&';\n\t\t\t\t}\n\t\t\t\turl += ((String)survivedAddr.get(i)).replace(\" \", \"+\")+'&';\n\t\t\t}\n\t\t}\n\t\tshowMap(survivedAddr,survivedComments,true);\n\t\t\n\t}", "void addRegion(Region region);", "public void increaseStartPos(int num) {\r\n this.startPos += num;\r\n }", "net.opengis.gml.x32.TimePositionType addNewBeginPosition();", "public void setRangeInfo(RangeInfo rangeInfo) {\n/* 1147 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override public void incrementAddress( int offset )\n {\n super.incrementAddress( offset );\n if ( getPointer() > m_size )\n throw new RuntimeException( \"address out of range: \" + getPointer() );\n }", "abstract public Range createRange();", "public void addMarkerToPref(Marker marker){\n parseClient.pushFavLoc(marker);\n latLngs.add(marker.getPosition());\n locationNames.add(marker.getTitle());\n saveMarkerPrefs();\n }", "private void drawMarker(Location location){\n LatLng currentPosition = new LatLng(location.getLatitude(),location.getLongitude());\r\n runlist.add(currentPosition);\r\n\r\n\r\n for(int i = 0; i<runlist.size();i++){\r\n\r\n\r\n\r\n Marker marker = mGoogleMap.addMarker(new MarkerOptions()\r\n .position(runlist.get(i))\r\n .title(\"TRACKING\")\r\n .snippet(\"Real Time Locations\"));\r\n\r\n\r\n\r\n }\r\n\r\n AddLines();\r\n //mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0),13));\r\n mGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0), 13.9f));\r\n\r\n\r\n }", "public void addConstraint(final int startOfSpan, final int spanLength) {\n constraints.add(new int[] {startOfSpan, spanLength});\n }", "void addHasLongitude(Object newHasLongitude);", "public void setRange(int start, int end) {\n\t\tmStart = start;\n\t\tmEnd = end;\n\t\tmCurrent = start;\n\t\tupdateView();\n\t}", "Builder addTypicalAgeRange(Text value);", "private void markSquadronRange(final Airfield airfield, final Squadron squadron) {\n // Temporarily assign the available squadron to the selected airfield so that the range\n // marker is properly displayed.\n boolean isAvailable = squadron.isAvailable();\n if (isAvailable) {\n squadron.setHome(airfield);\n }\n\n AssetMarkerDTO dto = new AssetMarkerDTO(squadron);\n dto.setNation(squadron.getNation());\n view.markSquadronRangeOnMap(dto);\n\n // Un-assign the available squadron now that the range has been marked.\n // This is needed to keep from prematurely assigning the squadron.\n // Squadron's are only assigned via the deployment button.\n if (isAvailable) {\n squadron.setHome(null);\n }\n }", "private void addMarkers() {\n\n for (MarkerPropio m : listMarkers) {\n LatLng posicion = new LatLng(m.getLatitud(), m.getLogitud());\n final MarkerOptions marker = new MarkerOptions()\n .position(posicion)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.marker1))\n .title(m.getTitulo())\n .snippet(m.getDescripcion());\n switch (m.getNumImages()){\n case 1:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker1));\n break;\n case 2:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker2));\n break;\n case 3:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker3));\n break;\n case 4:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker4));\n break;\n case 5:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker5));\n break;\n case 6:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker6));\n break;\n\n }\n mMap.addMarker(marker);\n hashMarker.put(posicion, m.getId());\n mMap.setOnInfoWindowClickListener(this);\n }\n }", "@Override\n public TextRegion createLineRange(int startLineInclusive, int endLineInclusive) {\n return base.createLineRange(startLineInclusive, endLineInclusive);\n }", "public void setRange(boolean range) {\r\n this.range = range;\r\n }", "public void add(int el) {\n\t\tif (readonly)\n\t\t\tthrow new IllegalStateException(\"can't alter readonly IntervalSet\");\n\t\tadd(el, el);\n\t}", "public void addMark(int row, int col, char mark) {\n\t\t\n\t\ttheBoard[row][col] = mark;\n\t\tmarkCount++;\n\t}", "public void setMarker(final String marker) {\n\t\tthis.marker = marker;\n\t}" ]
[ "0.6286257", "0.6155122", "0.61377186", "0.60147136", "0.57413226", "0.5412404", "0.52966386", "0.5286184", "0.5246874", "0.5233371", "0.5223414", "0.5204459", "0.518858", "0.51651216", "0.5158154", "0.51540333", "0.515263", "0.51429886", "0.51153874", "0.51146847", "0.5094223", "0.50804657", "0.50541914", "0.50074095", "0.5004577", "0.49914086", "0.49859864", "0.49621838", "0.4929869", "0.4928117", "0.48877797", "0.4875429", "0.48715883", "0.48709276", "0.4867453", "0.48629642", "0.48456556", "0.48440737", "0.48439804", "0.48382506", "0.48297495", "0.48080707", "0.4807556", "0.48030457", "0.48021445", "0.47971737", "0.47946963", "0.47900534", "0.47840324", "0.47745344", "0.4770398", "0.47613555", "0.47579655", "0.4747067", "0.47457868", "0.47403014", "0.4739231", "0.4739043", "0.47293174", "0.4727109", "0.47205716", "0.4716702", "0.47149524", "0.4714501", "0.47137958", "0.47009066", "0.46916744", "0.46916744", "0.46916744", "0.468878", "0.4683295", "0.46752727", "0.4669577", "0.46679074", "0.46595007", "0.4653493", "0.46445012", "0.46438143", "0.46418917", "0.46371314", "0.46352488", "0.46323115", "0.46284717", "0.46221712", "0.46209502", "0.46176568", "0.46160176", "0.4603836", "0.45938903", "0.45908263", "0.45843297", "0.45748064", "0.45682603", "0.45664546", "0.45635048", "0.45609516", "0.45573276", "0.45535257", "0.45503938", "0.45502004" ]
0.46765396
71
Trim all elements in the array.
public static void trim(String[] array){ for(int i=0;i<array.length;i++){ array[i] = array[i].trim(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String[] trim(String[] in) {\n if (notNull(\"in\", in).length == 0) {\n return in;\n }\n String[] result = new String[in.length];\n System.arraycopy(in, 0, result, 0, result.length);\n// String[] result = ArrayUtils.copyOf(in);\n int last = 0;\n for (int i = 0; i < result.length; i++) {\n String trimmed = result[i].trim();\n if (!trimmed.isEmpty()) {\n result[last++] = trimmed;\n }\n }\n if (last == 0) {\n return new String[0];\n }\n if (last != in.length) {\n result = Arrays.copyOf(result, last);\n }\n return result;\n }", "public static String[] trimStringArray(String[] array) {\n String[] newArray = new String[array.length];\n for (int i = 0; i < array.length; i++) {\n newArray[i] = array[i].trim();\n }\n return newArray;\n }", "static byte[] trim(byte[] bytes) {\n\t\t\tint i = bytes.length - 1;\n\t\t\twhile (i >= 0 && bytes[i] == 0) {\n\t\t\t\t--i;\n\t\t}\n\n\t\t\treturn Arrays.copyOf(bytes, i + 1);\n\t\t}", "public String[] removeEmptySpacesInArray(String[] arrayToClean){\n\t\t\n\t\tArrayList<String> stringList = new ArrayList<String>();\n\t\tfor(String theString : arrayToClean){\n\t\t\t\n\t\t\tif(theString != \"-1\" && theString != \"\")\n\t\t\t\tstringList.add(theString);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn stringList.toArray(new String[stringList.size()]);\n\t\t\n\t}", "public void trimTransitionsArray() {\n if (numTransitions < transitionsArray.length) {\n final Transition[] newArray = new Transition[numTransitions];\n System.arraycopy(transitionsArray, 0, newArray, 0, numTransitions);\n transitionsArray = newArray;\n }\n }", "public static CharSequence[] trim(CharSequence[] seqs) {\n if (notNull(\"seqs\", seqs).length == 0) {\n return seqs;\n }\n CharSequence[] result = new CharSequence[seqs.length];\n System.arraycopy(seqs, 0, result, 0, seqs.length);\n int last = 0;\n for (int i = 0; i < result.length; i++) {\n CharSequence trimmed = trim(result[i]);\n if (trimmed.length() != 0) {\n result[last++] = trimmed;\n }\n }\n if (last == 0) {\n return new CharSequence[0];\n }\n if (last != seqs.length) {\n result = Arrays.copyOf(result, last);\n }\n return result;\n }", "public static String[] trim(String[] ss)\r\n {\r\n if (ss == null)\r\n return ss;\r\n \r\n for (int i = 0; i < ss.length; i++)\r\n {\r\n ss[i] = TextUtil.trim(ss[i]);\r\n }\r\n return ss;\r\n }", "public void compact()\n {\n array = toArray();\n }", "public static byte[] trimBytes(byte[] bytes)\n {\n int i = bytes.length - 1;\n while (i >= 0 && bytes[i] == 0) {\n --i;\n }\n return Arrays.copyOf(bytes, i + 1);\n }", "private void trimArray()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"[INFO] <RADIOBUTTON_PANEL_BUILDER> Running trimArray\");\r\n\t\t\t\r\n\t\t\tJRadioButton[] newArray = new JRadioButton[nextRadioButtonLocation]; // Create a new array of the correct size\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < nextRadioButtonLocation; i++) // For each object in the array\r\n\t\t\t{\r\n\t\t\t\tnewArray[i] = radioButtons[i]; // Copy the object\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tradioButtons = newArray; // Store the new trimmed array in components\r\n\t\t}", "static public Object trimArray(Object[] list,int newSize) {\n Class type = list.getClass().getComponentType();\n Object temp = Array.newInstance(type, newSize);\n System.arraycopy(list, 0, temp, 0,\tnewSize); \n return temp;\n\t}", "private void trimWhitespaces() {\n \n while(currentIndex < dataLength && Character.isWhitespace( data[currentIndex] )) {\n ++currentIndex;\n }\n }", "@Override\n public void Clear() {\n for (int i = 0; i < array.size(); i++) {\n array.remove(i);\n\n }//Fin del for\n }", "public T[] getClonedTrimmed(T[] ar) {\r\n for (int i = offset; i < offset + count; i++) {\r\n @SuppressWarnings(\"unchecked\")\r\n T v = (T)objects[i];\r\n ar[i] = v;\r\n }\r\n return ar;\r\n }", "public DATATYPE trim() {\n\t\tif (size() > 0) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\t\n\t\t\tfor (int i=0; i < mLines.length; i++) {\n\t\t\t\tif (mLines[i].trim().length() > 0) {\n\t\t\t\t\tlist.add(mLines[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tmLines = list.toArray( new String[list.size()] );\n\t\t}\n\t\t\n\t\treturn (DATATYPE) this;\n\t}", "@Nonnull private static byte[] trimZeroes(@Nonnull final byte[] b) {\n Constraint.isNotNull(b, \"byte[] data was null\");\n \n int i = 0;\n while (i < b.length - 1 && b[i] == 0) {\n i++;\n }\n if (i == 0) {\n return b;\n }\n return Arrays.copyOfRange(b, i, b.length);\n }", "public void trimToSize() {\r\n for (int i=size(); i-->0;)\r\n if (get(i)==null)\r\n remove(i);\r\n }", "Integer[] removeNullElements(Integer[] array);", "public boolean trim() {\n\t\tif ( bits.length == numWords( length ) ) return false;\n\t\tbits = LongArrays.setLength( bits, numWords( length ) );\n\t\treturn true;\n\t}", "public void trimToSize() {\n if (size() != this.buffer.length) {\n this.buffer = toArray();\n }\n }", "private void shrink() {\n int shrinkSize = array.length>>1;\n array = Arrays.copyOf(array, shrinkSize);\n }", "private String[] trimFirstArg(String[] args) {\n return Arrays.copyOfRange(args, 1, args.length);\n }", "@Override\n\tpublic void clear() \n\t{\n\t\twhile (size!=0)\n\t\t{\n\t\t\t//to check if need to resize\n\t\t\tif(size==myArray.length/4)\n\t\t\t\tresizeDown();\n\t\t\tmyArray[size-1] = null;\n\t\t\tsize--;\n\t\t}\n\t\tsize=0;\n\t}", "public static String[] removeSpaces(String[] strings) {\r\n for (int i = 0; i < strings.length; i++) {\r\n strings[i] = strings[i].trim();\r\n }\r\n return strings;\r\n }", "public void clear() {\n\t \toccupied = 0;\n\t for (int i = 0; i < array.length; i++) {\n\t array[i] = null;\n\t }\n\t }", "static void trim() {\n if (a.size() == 0)\n return;\n Object o = a.get(a.size() - 1);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && sb.charAt(sb.length() - 1) == ' ')\n sb.deleteCharAt(sb.length() - 1);\n a.set(a.size() - 1, sb.toString() );\n }", "@Override\n public void clear() {\n array.reset();\n }", "public static String[] removeEmpty(String[] strings) {\n String[] result = new String[strings.length];\n int copied = 0;\n for (String s : strings) {\n if (s != null && !s.isEmpty()) {\n result[copied++] = s;\n }\n }\n return copied == result.length ? result : Arrays.copyOf(result, copied);\n }", "public void trimToSize();", "private static void cleanArray() {\n\t\tfor(int i = 0 ; i < n ;i++){\r\n\t\t\tcolTemp[i] = 0;\r\n\t\t\trowTemp[i] = 0;\r\n\t\t}\r\n\t}", "public static String[] setStringArrayToEmpty(String[] arr) {\n for (int i = 0; i < arr.length; i++) {\n arr[i] = \"empty\";\n }\n return arr;\n }", "private void trim() {\n read(0);\n }", "public void removeAllElements() {\n for (int i = 0; i < OLast; i++) O[i] = null;\n ON = OLast = 0;\n Gap = -1;\n }", "void deleteMedian () {\n if (fillLength > 0) {\n for (int i = fillLength / 2; i < fillLength - 1; i++) {\n array[i] = array[i + 1];\n }\n array[fillLength - 1] = 0;\n fillLength--;\n }\n }", "public static String[] removeNullStrArrItems(String[] arr) {\n return Arrays.stream(arr).filter(Objects::nonNull).toArray(String[]::new);\n }", "public static void main(String[] args) {\n\t\t\n\t\tchar[] just = {'a','b','c','d',' ',' ',' ','e'};\n\t\t\n\t\tSystem.out.println(Arrays.toString(just));\n\t\t\n\t\tremoveWhiteSpace(just);\n\t\t\n\t\tSystem.out.println(Arrays.toString(just));\n\t}", "public void compact()\n\t{\n\t\tif (addIndex == size())\n\t\t\treturn;\n\t\t\n\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), addIndex );\n\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\tarray = narray;\n\t}", "@Override\n public void clear() {\n wordsArray = new String[0];\n }", "public void clear()\n\t{\n\t\tarraySize = 0;\n\t}", "private void removeEmptyElements(final Collection<String> collection) {\n collection.removeAll(Arrays.asList(null, \"\"));\n collection.removeAll(Arrays.asList(null, \" \"));\n }", "@Override\n\tpublic void clear() {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\telements[i] = null;\n\t\t}\n\n\t\tsize = 0;\n\t}", "public boolean trim() {\n final int l = arraySize(size, f);\n if (l >= n || size > maxFill(l, f)) return true;\n try {\n rehash(l);\n } catch (Error cantDoIt) {\n return false;\n }\n return true;\n }", "private void doClear( )\n {\n occupied = 0;\n for( int i = 0; i < array.length; i++ )\n array[ i ] = null;\n }", "private void removeSpaces(String[] lines) {\r\n for (int i = 0; i<lines.length; i++) {\r\n lines[i] = lines[i].strip();\r\n lines[i] = lines[i].replaceAll(\"\\\"\", \"\");\r\n }\r\n }", "public void trimToSize() {\n }", "@Override\n public void clear() {\n array = null;\n }", "public void removeAll() \r\n\t{\t\r\n\t\tbookArray = new String[MAXSIZE];\r\n\t\tnumItems = 0;\r\n\t}", "public void removeAllElements();", "private static int[] stripLeadingZeroInts(int val[]) {\n int vlen = val.length;\n int keep;\n\n // Find first nonzero byte\n for (keep = 0; keep < vlen && val[keep] == 0; keep++)\n ;\n return java.util.Arrays.copyOfRange(val, keep, vlen);\n }", "private String[] shrinkArray(String[] largeArray)\n\t{\n\t\tint counter = 0;\n\t\t\n\t\twhile(largeArray[counter] != null)\n\t\t{\n\t\t\t++counter;\n\t\t}\n\t\t\n\t\tString[] tempArray = new String[counter];\n\t\t\n\t\tfor(int i = 0; i < tempArray.length; ++i)\n\t\t{\n\t\t\ttempArray[i] = largeArray[i];\n\t\t}\n\n\t\treturn tempArray;\n\t}", "private int[] compact(int[] arr, int len) {\n assert arr != null;\n assert U.isNonDecreasingArray(arr, len);\n\n if (arr.length <= 1)\n return U.copyIfExceeded(arr, len);\n\n int newLen = 1;\n\n for (int i = 1; i < len; i++) {\n if (arr[i] != arr[newLen - 1])\n arr[newLen++] = arr[i];\n }\n\n return U.copyIfExceeded(arr, len);\n }", "private static int[] trustedStripLeadingZeroInts(int val[]) {\n int vlen = val.length;\n int keep;\n\n // Find first nonzero byte\n for (keep = 0; keep < vlen && val[keep] == 0; keep++)\n ;\n return keep == 0 ? val : java.util.Arrays.copyOfRange(val, keep, vlen);\n }", "public void cleanup(){\n for(int i = 0; i < 3 && Array != null; ++i){\n if( Array[i] != null ) {\n Array[i].cleanup();\n Array[i] = null;\n }\n Array = null;\n }\n }", "public void reset_array() {\r\n\t\tfor(int i=0;i<9;i++) {\r\n\t\t\ts[i]=\"\";\r\n\t\t}\r\n\t}", "public U removeFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls remove on first\r\n\t \treturn remove(0);\r\n\t }", "public static boolean emptyArray(String[] x) {\n for (String entry : x) {\n if (entry.trim().length() > 0) {\n return false;\n }\n }\n\n return true;\n }", "public static int[] removeFirstElement(int[] myArray) {\n\t\tint[] rst = new int[myArray.length - 1];\n\n\t\tfor (int i = 1; i < myArray.length; i++) {\n\t\t\trst[i - 1] = myArray[i];\n\t\t}\n\n\t\treturn rst;\n\t}", "private static void trimLines( List lines ) {\n \n /* Strip any blank lines from the top. */\n for ( ListIterator it = lines.listIterator( 0 ); it.hasNext(); ) {\n String line = (String) it.next();\n if ( line.trim().length() == 0 ) {\n it.remove();\n }\n else {\n break;\n }\n }\n \n /* Strip any blank lines from the bottom. */\n for ( ListIterator it = lines.listIterator( lines.size() );\n it.hasPrevious(); ) {\n String line = (String) it.previous();\n if ( line.trim().length() == 0 ) {\n it.remove();\n }\n else {\n break;\n }\n }\n }", "public void trim() {\n boolean[] visited = new boolean[states.length];\r\n Queue<Integer> visitQueue = new LinkedList<Integer>();\r\n\r\n // init with q0\r\n visitQueue.add(0);\r\n visited[0] = true;\r\n while (!visitQueue.isEmpty()) {\r\n int toVisit = visitQueue.remove();\r\n DFAState visitingState = states[toVisit];\r\n for (int otherState : visitingState.transitions) {\r\n if (!visited[otherState]) {\r\n visitQueue.add(otherState);\r\n }\r\n }\r\n visited[toVisit] = true;\r\n }\r\n\r\n // null out unreachable states\r\n for (int i = 0; i < visited.length; i++) {\r\n if (!visited[i]) {\r\n states[i] = null;\r\n }\r\n }\r\n }", "public static String[] stripNullStrings(String[] str) {\n\t\tif (str==null) return null;\n\n\t\t// propagate null strings to the end\n\t\tfor (int i=str.length-1; i>0; i--) {\n\t\t\tif (str[i]!=null&&str[i-1]==null) {\n\t\t\t\tstr[i-1]=str[i];\n\t\t\t\tstr[i]=null;\n\t\t\t}\n\t\t}\n\n\t\tint numvalid=0;\n\t\tfor (int i=0; i<str.length; i++)\n\t\t\tif (str[i]!=null) numvalid=i+1;\n\n\t\tif (numvalid==0) return null;\n\n\t\tString tmp[]=new String[numvalid];\n\t\tSystem.arraycopy(str, 0, tmp, 0, numvalid);\n\t\treturn tmp;\n\t}", "public static int[] removeZeros(int[] input)\n {\n int targetIndex = 0;\n for(int sourceIndex = 0; sourceIndex < input.length; sourceIndex++ )\n {\n if( input[sourceIndex] != 0 )\n input[targetIndex++] = input[sourceIndex];\n }\n\n int[] newArray = new int[targetIndex];\n System.arraycopy( input, 0, newArray, 0, targetIndex );\n\n return newArray;\n }", "private T[] modifyArray(T[] array) {\n array[index] = null;\n return array;\n }", "private static StackTraceElement[] trimStackTrace(StackTraceElement[] stackTrace) {\n StackTraceElement targetElement = Vect.of(new Throwable().getStackTrace()).get(2);\n return Vect.of(stackTrace)\n .dropWhile(s -> !s.getClassName().equals(targetElement.getClassName()))\n .rangeFrom(1)\n .toArray(StackTraceElement[]::new);\n }", "private void trim() {\n while (size > maxSize) {\n if (major.isEmpty() && minor.isEmpty()) {\n break;\n }\n K key;\n V value;\n Map.Entry<K, V> next;\n synchronized (this) {\n if (minor.entrySet().iterator().hasNext()) {\n next = minor.entrySet().iterator().next();\n key = next.getKey();\n value = next.getValue();\n minor.remove(key);\n } else {\n next = major.entrySet().iterator().next();\n key = next.getKey();\n value = next.getValue();\n major.remove(key);\n majorSize -= safeSizeOf(key, value);\n }\n size -= safeSizeOf(key, value);\n }\n }\n }", "public static <T> T[] notEmpty(T[] array){\n if(ArrayUtils.isEmpty(array)) return array;\n List<T> items = new ArrayList<>();\n for(int i=0;i<array.length; i++){\n if(array[i] != null) items.add(array[i]);\n }\n return items.toArray((T[])Array.newInstance(\n array.getClass().getComponentType(),\n items.size()));\n }", "public static <T> T[] notEmpty(T[] array){\n if(ArrayUtils.isEmpty(array)) return array;\n List<T> items = new ArrayList<>();\n for(int i=0;i<array.length; i++){\n if(array[i] != null) items.add(array[i]);\n }\n return items.toArray((T[])Array.newInstance(\n array.getClass().getComponentType(),\n items.size()));\n }", "public static List<String> filter_empty(String[] arr){\n\t\tboolean contient_added = false;\n\t\tList<String> out = new ArrayList<String>();\n\t\tfor(String s : arr) {\n\t\t\tif(s.trim().length() > 0){\n\t\t\t\tif(s.equals(\"CONTIENT\")){\n\t\t\t\t\tif(contient_added){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tcontient_added = true;\n\t\t\t\t}\n\t\t\t\tout.add(s);\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "public void clear()\n\t{\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t{\n\t\t\tdata[i] = 0;\n\t\t}\n\t}", "public void clear() {\n this.first = null;\n this.last = null;\n this.nrOfElements = 0;\n }", "private static void fromUnsortedArray()\n\t{\n Integer[] origArray = new Integer[] { 1, 1, 2, 3, 3, 3, 4, 5, 6, 6, 6, 7, 8 };\n \n // This array has duplicate elements\n System.out.println(Arrays.toString(origArray));\n \n Integer[] tempArray = removeDuplicates2(origArray);\n \n // Verify the array content\n System.out.println(Arrays.toString(tempArray));\n\t}", "public static void clear (int []n) {\n\t\tfor (int i = 0; i < n.length; i++) {\n\t\t\tn[i] = 0;\n\t\t}\n\t}", "@Override\n public String trim(final String toTrim) {\n return replaceAll(toTrim, \"\\u00A0\", \" \").trim();\n }", "@Override\n public boolean clear() {\n this.array = (T[]) new Object[10];\n this.length = 10;\n this.size = 0;\n return true;\n }", "public static List<String> removeAllEmpties(final String ...originalStrings) {\n\t\tfinal List<String> cleanedStrings = new ArrayList<String>(Arrays.asList(originalStrings));\n\t\tcleanedStrings.removeAll(Arrays.asList(null,\"\", Collections.singleton(null)));\n\n\t\tfinal Iterator<String> it = cleanedStrings.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal String s2 = it.next();\n\t\t\tif (StringUtils.trimToEmpty(s2).length() == 0) {\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\n\t\treturn cleanedStrings;\n\t}", "public void compact() {\n Entry<K,V> e;\n Entry<K,V> possibleDup;\n for (final Iterator<Entry<K,V>> itr = entries.iterator(); itr.hasNext(); ) {\n e = itr.next();\n possibleDup = getEntry(e.getKey()); // Returns the newest entry\n if (possibleDup != null && e != possibleDup) {\n itr.remove();\n }\n }\n\n size = entries.size(); // We now know the size\n\n // Compact the underlying array\n entries.trimToSize();\n }", "public native MagickImage trimImage() throws MagickException;", "void remove(int index) {\n\t\tfor (int i = index; i < array.length - 1; i++) {\n\t\t\tarray[i] = array[i + 1];\n\t\t}\n\t\tint[] temp = new int[array.length - 1];\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\ttemp[i] = array[i];\n\t\t}\n\t\tint lastValue = array[array.length - 1];// index starts @ 0, so its the\n\t\t\t\t\t\t\t\t\t\t\t\t// array.length - 1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t// for the 0\n\t\tarray = temp;\n\n\t}", "private static void removeElementsFromArray(JSONObject root, String arrName, Predicate<JSONObject> toRemove)\n\t{\n\t\tJSONArray arr = root.optJSONArray(arrName);\n\t\tif (arr != null)\n\t\t\tfor (Iterator<Object> vals = arr.iterator(); vals.hasNext();) {\n\t\t\t\tif (toRemove.test((JSONObject)vals.next())) {\n\t\t\t\t\tvals.remove();\n\t\t\t\t}\n\t\t\t}\n\t}", "protected void trimToSize() {\n\tnodeList.trimToSize();\n\tedgeList.trimToSize();\n }", "public void trim(long position);", "private static void trim( List<?> list, int n ) {\n \twhile (list.size() > n) {\n \t\tlist.remove(list.size() - 1);\n \t}\n }", "public void clearTagArray(){\n\t\t\n\t\ttagArray.clear();\n\t\t\n\t}", "public XMLString trim() {\n/* 780 */ return new XMLStringDefault(this.m_str.trim());\n/* */ }", "public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}", "private void trimEntities() {\n \t\tList<String> chainIds = getActiveEntities();\n \t\tif (chainIds.size() > 0) {\n \t\t\tfor (Iterator<Atom> iter = atomVector.iterator();iter.hasNext();) {\n \t\t\t\tAtom atom = iter.next();\n \t\t\t\tif (!chainIds.contains(atom.chain_id)) {\n \t\t\t\t\titer.remove();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "private static Image[] removeSameElements(Image[] original, Image toRemove) {\n ArrayList<Image> toReturn = new ArrayList<>();\n for(Image i: original) {\n if (!areImagesSame(i, toRemove)) {\n toReturn.add(i);\n }\n }\n toReturn.add(toRemove); // ensure the last Image in the Image[] is the original toRemove\n toReturn.trimToSize(); // ensure size is reduced all the way\n Image[] newArray = new Image[toReturn.size()];\n return toReturn.toArray(newArray);\n }", "@Override\n public void clear() {\n for (int i = 0; i < size; i++) {\n data[i] = null;\n }\n size = 0;\n }", "public void makeEmpty(){\n for(int element = set.length - 1; element >= 0; element--){\n remove(set[element]);\n }\n }", "private void reset(){\n int j=0;\n for(int i=0; i<array.length; i++){\n if(j == itemCount) {return;}\n if(array[i]!=null){\n temp[j] = array[i];\n j++;\n }\n }\n }", "public Array<T> compactClone()\n {\n Array<T> out = Array.fromUnsafe(new Object[next], next);\n System.arraycopy(array, 0, out.array, 0, next);\n return out;\n }", "public void setTrimAllWhite(boolean trimAllWhite) {\r\n defaultFormat.trimAllWhite = trimAllWhite;\r\n }", "@Test\n void trim_null() {\n assertNull(stringUtil.trim(null));\n }", "protected static String[][] shrinkArray(String[][] base) {\n int length = base.length;\n if (length == 1) {\n return null;\n } else {\n String[][] shrink = new String[length-1][];\n System.arraycopy(base, 0, shrink, 0, length-1);\n return shrink;\n }\n }", "@SuppressWarnings(\"unchecked\")\n /* #end */\n public void trimToSize()\n {\n\t\tthrow new UnsupportedOperationException(lengthChangeError);\n }", "public final void clear() {\n for (int i = 0; i < _length; i++) {\n _data[i * SIZE + VALUE_OFFSET] = null;\n _algorithmData[i] = null;\n }\n _length = 0;\n }", "public static int[] removeElement ( int[] array , int x){\n\n if(x< 0 ||x >= array.length){\n System.err.println(\"Invalid Index\");\n System.exit(0);\n }\n\n int[] newArray = new int[array.length- 1];\n\n for (int i = 0, j= 0; i < array.length ; i++) {\n if(i== x){\n continue;\n }else{\n newArray [j++] = array[i];\n }\n }\n\n\n return newArray ;\n }", "public void clear() {\r\n items = Arrays.copyOf(new int[items.length], items.length);\r\n NumItems = 0;\r\n }", "private static String trim(String s) {\n return s.replace(\" \", \"\");\n }", "public static byte[] removeNullsFromEnd(byte[] data, int offset) {\r\n \tint new_length = 0;\r\n for (int i = data.length - 1; i >= offset; i--) {\r\n if (data[i] != 0x00) { // null\r\n \tnew_length = i + 1;\r\n break;\r\n }\r\n }\r\n\r\n byte[] out = new byte[new_length];\r\n\r\n for (int x = offset; x < new_length; x++) {\r\n out[x - offset] = data[x];\r\n }\r\n\r\n return out;\r\n }", "public void removeAll() {\n this.arrayList = null;\n this.arrayList = new ArrayList<>();\n }" ]
[ "0.70845056", "0.7004695", "0.69574726", "0.68901646", "0.6757977", "0.67128104", "0.6657465", "0.6605278", "0.65649927", "0.6536606", "0.63920015", "0.63336974", "0.62912303", "0.6268096", "0.6259544", "0.6239185", "0.6219793", "0.6094195", "0.6035476", "0.5994358", "0.5950749", "0.5916178", "0.5902103", "0.5889571", "0.5884709", "0.58692425", "0.5791753", "0.5747312", "0.5733964", "0.57043475", "0.5702274", "0.5695129", "0.56841105", "0.5648801", "0.56328195", "0.5620383", "0.561277", "0.55629915", "0.55401003", "0.5534176", "0.55051744", "0.550164", "0.5499154", "0.5463491", "0.54626745", "0.5459605", "0.54473203", "0.5442648", "0.5438814", "0.5437029", "0.5435621", "0.54165167", "0.54099786", "0.5401456", "0.53720254", "0.5359266", "0.5351372", "0.5317647", "0.52905333", "0.5270602", "0.5258606", "0.5246203", "0.5232624", "0.5220049", "0.5192224", "0.5192224", "0.51896125", "0.51884854", "0.51861304", "0.51655114", "0.5151058", "0.51499677", "0.5134338", "0.5125825", "0.5124297", "0.511711", "0.51166457", "0.51057863", "0.5095709", "0.5095033", "0.5092549", "0.5086138", "0.5084304", "0.506046", "0.5058374", "0.50555104", "0.5054726", "0.5053039", "0.5048598", "0.5042807", "0.50352883", "0.5023532", "0.5019644", "0.50171083", "0.5015021", "0.5009886", "0.50084233", "0.5003908", "0.50016695", "0.4998902" ]
0.7814686
0
Returns the first child element of the specified element.
public static FuzzyXMLElement getFirstElement(FuzzyXMLElement element){ FuzzyXMLNode[] nodes = element.getChildren(); for(int i=0;i<nodes.length;i++){ if(nodes[i] instanceof FuzzyXMLElement){ return (FuzzyXMLElement)nodes[i]; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static Element firstChild(Element element, String name) {\n NodeList nodes = element.getChildNodes();\n if (nodes != null) {\n for (int i = 0, size = nodes.getLength(); i < size; i++) {\n Node item = nodes.item(i);\n if (item instanceof Element) {\n Element childElement = (Element) item;\n\n if (name.equals(childElement.getTagName())) {\n return childElement;\n }\n }\n }\n }\n return null;\n }", "public Object firstElement();", "public Element getFirstChild(Element element, String localName) {\n return DocumentHelper.getFirstChild(element, getNamespaceURI(), localName);\n }", "public Element first() {\n if(isEmpty()) return null;\n else return header.getNextNode().getContent();\n }", "Object element();", "Object element();", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "public Jode first() {\n return children().first();\n }", "public Element getChild(String name) {\n return getChild(name, null, null);\n }", "public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "public Jode first(String nodeName) {\n return children().first(nodeName);\n }", "public E element() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t}\r\n\t\treturn (E) data.get(0);\r\n\t}", "public E getFirst()// you finish (part of HW#4)\n\t{\n\t\tif (root == null)\n\t\t\treturn null;\n\t\tBinaryNode<E> iteratorNode = root;\n\t\twhile (iteratorNode.hasLeftChild())\n\t\t\titeratorNode = iteratorNode.getLeftChild();\n\t\treturn iteratorNode.getData();\n\t}", "public E first() {\n if (isEmpty()) return null;\n return first.item;\n }", "@Override\r\n\t\tpublic Node getFirstChild()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "Element getElement();", "public E element();", "@Override\r\n public Element findElement()\r\n {\n return null;\r\n }", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public PlanNode getFirstChild() {\n return this.children.isEmpty() ? null : this.children.getFirst();\n }", "@Override\n public E element() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return (E) array[0];\n }", "@Override\n\t@TimeComplexity(\"O(1)\")\n\tpublic E element()\n\t{\n\t\treturn element;\n\t}", "public Node getFirst() {\r\n\t\treturn getNode(1);\r\n\t}", "public E element () throws NoSuchElementException;", "public E first() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 ) {\n position = 0;\n E element = entries[position]; \n position++;\n return element;\n } else {\n throw new NoSuchElementException();\n }\n }", "HNode getFirstChild();", "Element asElement();", "private static Element findSingleChildElementByTag(Element parent, String tag)\n throws MissionParseException {\n Node node = null;\n NodeList nodes = parent.getElementsByTagName(tag);\n for (int i = 0; i < nodes.getLength(); i++) {\n node = nodes.item(i);\n if (isElementNode(node)) {\n break;\n }\n node = null;\n }\n // All attributes are required except the 'next_moment' attribute. The lack of a\n // 'next_moment' attribute signifies that the moment is the last moment in the mission.\n if (!tag.equals(ELEMENT_NEXT_MOMENT) && node == null) {\n throw new MissionParseException(tag + \" could not be found.\");\n }\n return (Element) node;\n }", "public SaveGameNode getFirstChild() {\r\n SaveGameNode node;\r\n node = this.children.get(0);\r\n return node;\r\n }", "public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }", "public T first() throws NoSuchElementException {\n\t\tif (root == null) throw new NoSuchElementException();\n\n\t\tBinaryTreeNode current = root;\n\t\twhile (current.left != null) {\n\t\t\tcurrent = current.left;\n\t\t}\n\t\treturn current.data;\n\t}", "private <T extends Element> T getNearestElement(Element element, Class<T> klass) {\n List elements = element.nearestDescendants(klass);\n if (elements == null || elements.isEmpty()) {\n return null;\n }\n\n return (T) elements.get(0);\n }", "public T element() throws NoSuchElementException {\n if (size() == 0) {\n // throws NoSuchElementException if the heap is empty\n throw new NoSuchElementException();\n }\n\n // Root of the heap exists at the 0th index\n return heap[0];\n }", "public SeleniumQueryObject first() {\n\t\treturn FirstFunction.first(this, this.elements);\n\t}", "public WebElement expandRootElement(WebElement element) {\r\n\t\tObject result = executeScript(\"return arguments[0].shadowRoot\", element);\r\n\t\tlog.info(\"result: \", result);\r\n\t\treturn (WebElement) result;\r\n\t}", "@Override\n public E element() {\n if (size == 0){\n throw new NoSuchElementException();\n }\n return heap[0];\n }", "@Override\r\n\tpublic E element() {\n\t\treturn null;\r\n\t}", "public Element getElement()\n {\n return m_Element;\n }", "public Object getElement()\r\n\t\t{ return element; }", "public int getFirst() {\n if (size > 0)\n return 0;\n else\n return NO_ELEMENT;\n }", "@Override\r\n\tpublic T find(T element) {\n\t\treturn null;\r\n\t}", "public T getElement(T equalElement) {\n\t\tIterator<T> iter = iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tT element = iter.next();\n\t\t\tif (element.equals(equalElement))\n\t\t\t\treturn element;\n\t\t}\n\t\treturn null;\n\t}", "public T getElement() {\r\n\t\t\r\n\t\treturn element;\r\n\t\r\n\t}", "Element getElement(String id);", "private int firstChild(int index) {\n // Formula to calculate the index of the first child of parent node\n return d * index + 1;\n }", "public Node getChild();", "<T extends IElement> T findChildElement(IElement parentElement, By childLoc, IElementSupplier<T> supplier);", "public SaveGameNode getFirstChild(String name) {\r\n SaveGameNode node;\r\n node = this.children.stream().filter(child -> child.equals(name)).findFirst().get();\r\n return node;\r\n }", "private Element getElement(int index) {\n if (index < this._size / 2) {\n return this.getElementForwards(index);\n } else {\n return this.getElementBackwards(index);\n }\n }", "public XMLElement getChild(int index)\n/* */ {\n/* 545 */ return (XMLElement)this.children.elementAt(index);\n/* */ }", "public Element element() {\n\t\treturn _element;\n\t}", "Optional<X> elem();", "public T getElement() {\n\t\treturn element;\n\t}", "public E peek() {\n E item;\n try {\n item = element();\n } catch (NoSuchElementException e) {\n return null;\n }\n return item;\n }", "private Node getFirstChild(Node node){\n\t\tNode firstChild=node.getFirstChild();\n\t\tif(firstChild!=null &&firstChild.getNodeType()==Node.TEXT_NODE){\n\t\t\tString value=firstChild.getTextContent();\n\t\t\tif(value!=null){\n\t\t\t\tvalue=value.replaceAll(\"\\t\", \"\");\n\t\t\t\tvalue=value.replaceAll(\"\\n\", \"\");\n\t\t\t\tvalue=value.replaceAll(\" \", \"\");\n\t\t\t\tif(Utils.isEmpty(value)){\n\t\t\t\t\tfirstChild=getNextSibling(firstChild);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.log(Level.FINEST, \"First Child of the Node\",firstChild);\n\t\treturn firstChild;\n\t}", "<T extends IElement> T findChildElement(IElement parentElement, By childLoc, ElementType type);", "public Element getElement(String subExpression) {\n Element result = null;\n String expression = contextNode + \"/\" + subExpression;\n try {\n Node n = (Node)xp.evaluate(expression, source, XPathConstants.NODE);\n if (n.getNodeType() == Node.ELEMENT_NODE) result = (Element) n;\n } catch(Exception e) {\n Util.log(\"XML error: can't read node \" + expression + \".\");\n Util.logException(e);\n }\n return result;\n }", "public E getElement() { return element; }", "public E element() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn mHead.next.data;\n\t}", "public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }", "public T getElement() {\n return element;\n }", "public static Element getChildElement(Node root, String name)\n {\n //print(\"Looking for \" + name);\n NodeList list = root.getChildNodes();\n for (int i = 0; i < list.getLength(); i++) {\n Node n = list.item(i);\n //print(\", checking \" + n.getNodeName());\n if (n.getNodeType() == Node.ELEMENT_NODE) {\n if ((name == null) || n.getNodeName().equalsIgnoreCase(name)) {\n //println(\", found!\");\n return (Element)n;\n }\n }\n }\n //println(\", not found\");\n return null;\n }", "public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }", "public Element getElement() {\r\n\t\treturn element;\r\n\t}", "public String getElement() { return element; }", "public T getElement()\n {\n\n return element;\n }", "public Element getElement() {\n return element;\n }", "public Element getElement() {\n return element;\n }", "public static Node getFirstChildByName(Node parent, String name) {\n\t\t// Goes through all the child nodes.\n\t\tNodeList children = parent.getChildNodes();\n\t\tfor (int idx = 0; idx < children.getLength(); idx++) {\n\t\t\tNode child = children.item(idx);\n\t\t\t\n\t\t\t// If a node with the name we're looking for is found, returns it.\n\t\t\tif (child.getNodeName().equalsIgnoreCase(name)) return child;\n\t\t}\n\t\t\n\t\t// If no node with the name we're looking for was found, returns null.\n\t\treturn null;\n\t}", "public static <T> T getFirstElement(final Iterable<T> elements) {\n\t\treturn elements.iterator().next();\n\t}", "public Jode first(Predicate<Jode> filter) {\n return children().first(filter);\n }", "public Object getFirst()\n {\n if (first == null)\n {\n throw new NoSuchElementException();\n }\n else\n return first.getValue();\n }", "@Override\r\n\t\tpublic final E getFirst() {\n\t\t\treturn null;\r\n\t\t}", "public Element getElement() {\n return super.getElement();\n }", "public WebElement getElement() {\n\t\treturn null;\r\n\t}", "Elem getElem();", "public XMLPath getChild(String localName) {\r\n return this.childs.get(localName);\r\n }", "public final native Element node()/*-{\n\t\treturn this.node();\n\t}-*/;", "public T getFirst( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//first node\r\n\t\tArrayNode<T> first = beginMarker.next;\r\n\t\ttry{\r\n\t\t\t//first elem\r\n\t\t\treturn first.getFirst();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t\t\r\n\t}", "public E element() {\n if (size == 0){\n return null;\n }\n return (E)queue[0];\n }", "@Override\n\tpublic Element getElement() {\n\t\treturn null;\n\t}", "public E find(Comparable<E> element){\n comparisons = 0;\n AvlNode<E> node = find(element, root);\n return (node != null) ? (E)node.value : null;\n }", "final public Element getElement() {\n return element;\n }", "public Unit first()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn iterator().next();\n\t}", "String getElem();", "public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "@Override\n\tpublic Element getElement() {\n\t\treturn elem;\n\t}", "public T find(T element) {\n\t\tassert (_parents.containsKey(element));\n\n\t\tT parent = _parents.get(element);\n\n\t\tif (parent != element) {\n\t\t\tparent = find(parent);\n\t\t\t_parents.put(element, parent);\n\t\t}\n\n\t\treturn parent;\n\t}", "public org.w3c.dom.Element getElement() {\n return element;\n }", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "public T getFirst()\n\t{\n\t\treturn getFirstNode().getData();\n\t}", "public E getElement() {\r\n return element;\r\n }", "<T extends IElement> T findChildElement(IElement parentElement, By childLoc, Class<? extends IElement> clazz);", "public Object getElement() {\n return element;\n }", "static ArrayList<Element> getChildElements(Element element) {\n ArrayList<Element> result = new ArrayList<Element>();\n for (Node child = element.getFirstChild();\n child != null;\n child = child.getNextSibling())\n if (child.getNodeType() == Node.ELEMENT_NODE)\n result.add((Element)child);\n return result;\n }", "@JsProperty\n Node getFirstChild();", "public XMLElement getChild(String path)\n/* */ {\n/* 563 */ if (path.indexOf('/') != -1) {\n/* 564 */ return getChildRecursive(PApplet.split(path, '/'), 0);\n/* */ }\n/* 566 */ int childCount = getChildCount();\n/* 567 */ for (int i = 0; i < childCount; i++) {\n/* 568 */ XMLElement kid = getChild(i);\n/* 569 */ String kidName = kid.getName();\n/* 570 */ if ((kidName != null) && (kidName.equals(path))) {\n/* 571 */ return kid;\n/* */ }\n/* */ }\n/* 574 */ return null;\n/* */ }", "public Object firstElement() {\n return _queue.firstElement();\n }", "public T getFirst() {\n return this.getHelper(this.indexCorrespondingToTheFirstElement).data;\n }" ]
[ "0.7839312", "0.6737542", "0.67194396", "0.6382165", "0.63049465", "0.63049465", "0.62508994", "0.620916", "0.618056", "0.6139361", "0.6104324", "0.6088591", "0.60696876", "0.60439", "0.59643036", "0.59510344", "0.5943367", "0.5942831", "0.59061944", "0.5903195", "0.5892981", "0.58896035", "0.58767223", "0.58725965", "0.5869293", "0.5864846", "0.5864598", "0.58330536", "0.5818953", "0.58140284", "0.58125037", "0.5800846", "0.57947874", "0.57728565", "0.5736869", "0.5719554", "0.57143897", "0.57131207", "0.5710549", "0.5703103", "0.5692211", "0.5628637", "0.5626594", "0.56097645", "0.56090015", "0.55750245", "0.55716723", "0.5561608", "0.55513096", "0.5550561", "0.55495876", "0.5545823", "0.55381453", "0.55330205", "0.55318886", "0.5529203", "0.55261636", "0.55098397", "0.5505792", "0.5498192", "0.5497229", "0.54884964", "0.5487313", "0.5471497", "0.54660565", "0.54611814", "0.54543453", "0.54517186", "0.54517186", "0.5441115", "0.54370856", "0.54344547", "0.54339087", "0.54297554", "0.54283303", "0.54207677", "0.54189485", "0.5415795", "0.5414708", "0.5412151", "0.5406027", "0.54019535", "0.53990227", "0.5392041", "0.5389062", "0.53884465", "0.5384492", "0.53837043", "0.5373122", "0.53721666", "0.5369858", "0.53657395", "0.53626204", "0.5360925", "0.53577274", "0.5352983", "0.5350121", "0.53489125", "0.53377295", "0.53354394" ]
0.7002211
1
Returns the getter method name from the property name.
public static String getGetterName(String propertyName, boolean isBool){ if(isBool){ return "is" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1); } else { return "get" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getPropertyAccessMethodName(String property) {\r\n if (\"this\".equals(property))\r\n return \"this\";\r\n return \"get\" + property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1);\r\n }", "String getPropertyName();", "public String getPropertyName();", "PropertyName getName();", "public String get(String propertyName);", "private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }", "public String getStringProperty(String propertyName) ;", "public static String getterName(String name, boolean isBoolean) {\n return genMethodName(name, isBoolean ? \"is\" : \"get\", null);\n }", "public String getGetter() {\n return \"get\" + getCapName();\n }", "private String propertyToMethodName(final String property, final String modifier) {\n \n String charToUpper = property.substring(0,1);\n String methodName = property.replaceFirst(charToUpper, charToUpper.toUpperCase());\n methodName = modifier + methodName;\n return methodName;\n }", "public String getPropertyName() {\n return this.propertyName;\n }", "String attributeToGetter(String name);", "public String getPropertyName()\n {\n return propertyName;\n }", "protected String getPropertyName(){\n return propertyName;\n }", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "public String getter() {\n\t\treturn name;\n\t}", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public SimpleName getName() {\n if (this.methodName == null) {\n // lazy init must be thread-safe for readers\n synchronized (this) {\n if (this.methodName == null) {\n preLazyInit();\n this.methodName = new SimpleName(this.ast);\n postLazyInit(this.methodName, NAME_PROPERTY);\n }\n }\n }\n return this.methodName;\n }", "public void setGetMethodName(String name) {\n m_getMethodName = name;\n }", "public String getProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getProperty(null, propertyName);\n }", "default String lambdaFieldName(T bean) {\n SerializedLambda serializedLambda = serialized();\n if (MethodHandleInfo.REF_invokeVirtual != serializedLambda.getImplMethodKind()) {\n throw new RuntimeException(\"unsupported lambda impl method kind \" + serializedLambda.getImplMethodKind()\n + \". Only work for [Class::Method] struct's lambda\");\n }\n String getter = serializedLambda.getImplMethodName();\n String fieldName = getter;\n if (getter.startsWith(\"get\")) {\n fieldName = Introspector.decapitalize(getter.substring(3));\n } else if (getter.startsWith(\"is\")) {\n String guessFieldName = Introspector.decapitalize(getter.substring(2));\n if (null == bean) {\n fieldName = guessFieldName;\n } else {\n try {\n bean.getClass().getDeclaredField(getter);\n fieldName = getter;\n } catch (NoSuchFieldException e) {\n // ignore substring when the field name is \"isXxx\"\n fieldName = guessFieldName;\n }\n }\n }\n return fieldName;\n }", "String getFieldName();", "public String getPropertyNameMapped(String aName) { return aName; }", "public static String getSetterName(String propertyName){\r\n\t\treturn \"set\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\tpropertyName.substring(1);\r\n\t}", "public Method getGetter() {\n return this.getter;\n }", "public static String getPropertyName(String propertyPath) {\n\t\tint separatorIndex = propertyPath.indexOf(PropertyAccessor.PROPERTY_KEY_PREFIX_CHAR);\n\t\treturn (separatorIndex != -1 ? propertyPath.substring(0, separatorIndex) : propertyPath);\n\t}", "String get(String kind, String name, String property);", "String getMethodName();", "String getMethodName();", "String getProperty(String property);", "public String getProperty(String name);", "String getProperty(String name);", "public String getGetMethodName() {\n return m_getMethodName;\n }", "@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }", "DavPropertyName getName();", "@BeanTagAttribute\r\n public String getPropertyName() {\r\n return propertyName;\r\n }", "public String getMethodName(String name) {\n return methodResources.getString(name);\n }", "Property getProperty();", "Property getProperty();", "public Method findMatchingGetMethod(Object bean, String propertyName) {\n\t\tfor (Method method : bean.getClass().getMethods()) {\n\t\t\t// find all the set methods\n\t\t\tif (method.getName().startsWith(\"get\") && method.getName().length() > \"get\".length()) {\n\t\t\t\tString methodName = method.getName().substring(\"get\".length());\n\t\t\t\tmethodName = methodName.replace(methodName.substring(0,1), methodName.substring(0,1).toLowerCase());\n\t\t\t\tif (methodNameMatches(methodName, propertyName)) {\n\t\t\t\t\tif (method.getReturnType() == null) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Unable to find matching getter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]. Found [\" + method.getName() + \"] but this does not have a return type.\");\n\t\t\t\t\t}\n\t\t\t\t\treturn method;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalArgumentException(\"Unable to find matching getter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]\");\n\t}", "public String getName() {\n return nameRule.getMethodName();\n }", "Object getProperty(String name);", "public String getPropName() {\n return m_propName;\n }", "public String getProperty(String propertyName) throws CoreException;", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\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 methodName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\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 methodName_ = s;\n }\n return s;\n }\n }", "public String getPropertyName(String column) {\r\n\t\trefineMetaData();\r\n\t\tcolumn = column.toLowerCase();\r\n\t\t// Log.debug(\"%s->%s\", column, col2prop.get(column));\r\n\t\treturn col2prop.get(column);\r\n\t}", "public String cmdToGetter(String cmd) {\n if (cmd.length() == 0) {\n return \"\";\n }\n \n return \"get\" + cmd.substring(0,1).toUpperCase() + cmd.substring(1);\n }", "public String name() {\n return getString(FhirPropertyNames.PROPERTY_NAME);\n }", "public static String getProperty(String name) {\n return propertyMap.getProperty(name);\n }", "private String getName() {\n return method.getName();\n }", "public String getFieldName();", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getMethodName() {\r\n return _methodName;\r\n }", "public String getProperty(String name) {\n return this.getProperty(name, null);\n }", "public String getProperty( String name )\n {\n return getProperty( name, false );\n }", "public String prop(String name);", "public java.lang.String getMethodName() {\r\n\t\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\r\n\t\t\t\t\tjava.lang.String s = ((com.google.protobuf.ByteString) ref)\r\n\t\t\t\t\t\t\t.toStringUtf8();\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t\treturn s;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t\t}\r\n\t\t\t}", "public String getName() {\n return getProperty(Property.NAME);\n }", "java.lang.String getProperty();", "public String getterToCmd(String getter) {\n if ((getter.length() == 0) \n \t|| !getter.matches(getterPattern)) {\n return \"\";\n }\n\n String firstLetter = getter.replaceAll(getterPattern, \"$1\")\n .toLowerCase();\n \n return getter.replaceAll(getterPattern, firstLetter + \"$2\");\n }", "public java.lang.String getMethodName() {\r\n\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\tif (ref instanceof java.lang.String) {\r\n\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t} else {\r\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\r\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\r\n\t\t\t\tif (bs.isValidUtf8()) {\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t}\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}", "String getProperty(String key);", "String getProperty(String key);", "String getProperty(String key);", "@Override\n public Object getMappedProperty(final Object bean,\n final String name, final String key)\n throws IllegalAccessException, InvocationTargetException,\n NoSuchMethodException {\n\n if (bean == null) {\n throw new IllegalArgumentException(\"No bean specified\");\n }\n if (name == null) {\n throw new IllegalArgumentException(\"No name specified for bean class '\" +\n bean.getClass() + \"'\");\n }\n if (key == null) {\n throw new IllegalArgumentException(\"No key specified for property '\" +\n name + \"' on bean class \" + bean.getClass() + \"'\");\n }\n\n Object result = null;\n\n final PropertyDescriptor descriptor = getPropertyDescriptor(bean, name);\n if (descriptor == null) {\n throw new NoSuchMethodException(\"Unknown property '\" +\n name + \"'+ on bean class '\" + bean.getClass() + \"'\");\n }\n\n if (descriptor instanceof MappedPropertyDescriptor) {\n // Call the keyed getter method if there is one\n Method readMethod = ((MappedPropertyDescriptor) descriptor).\n getMappedReadMethod();\n readMethod = MethodUtils.getAccessibleMethod(bean.getClass(), readMethod);\n if (readMethod != null) {\n final Object[] keyArray = new Object[1];\n keyArray[0] = key;\n result = readMethod.invoke(bean, keyArray);\n } else {\n throw new NoSuchMethodException(\"Property '\" + name +\n \"' has no mapped getter method on bean class '\" +\n bean.getClass() + \"'\");\n }\n } else {\n final Method readMethod = MethodUtils.getAccessibleMethod(bean.getClass(), descriptor.getReadMethod());\n if (readMethod != null) {\n final Object invokeResult = readMethod.invoke(bean, EMPTY_OBJECT_ARRAY);\n if (invokeResult instanceof Map) {\n result = ((Map<?, ?>)invokeResult).get(key);\n } else if (invokeResult instanceof Collection) {\n result = findByNameProperty(key, (Collection) invokeResult);\n }\n } else {\n throw new NoSuchMethodException(\"Property '\" + name +\n \"' has no mapped getter method on bean class '\" +\n bean.getClass() + \"'\");\n }\n }\n return result;\n }", "public java.lang.String getProperty(java.lang.String propertyName) {\n return properties.getProperty(propertyName);\n }", "String getProperty();", "String getProperty();", "String getProperty();", "public String getIndexFieldName(String propertyName) {\n return commonIndexFieldNameCache.get(propertyName);\n }", "public static String getProperty(String name) {\r\n return properties.getProperty(name);\r\n }", "public String getProperty(String name){\r\n\t\treturn properties.getProperty(name);\r\n\t}", "public String getProperty(final String iName) {\n return getProperty(iName, null);\n }", "public String getMethodName() {\n\t\treturn this.methodName;\n\t}", "public String getMethodName() {\n\t\treturn this.methodName;\n\t}", "public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }", "public String getProperty();", "public String get(final String name) {\r\n return (String) properties.get(name);\r\n }", "public String getMethodName() {\n return methodName;\n }", "public String getMethodName() {\n return methodName;\n }", "String getValueOfCssProperty(String propertyName);", "public String getProperty(Object obj, String key);", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "public abstract boolean getProperty(String propertyName);", "public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }", "Object getProperty(String key);", "public String getProperty(final String propertyName) {\n\t\treturn properties.getProperty(propertyName);\n\t}", "@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}", "static String getAntPropertyName( final String property ) {\n if ( property != null &&\n property.startsWith( \"${\" ) && // NOI18N\n property.endsWith( \"}\" ) ) { // NOI18N\n return property.substring( 2, property.length() - 1 );\n } \n return property;\n }", "public static String getMethodName(Method _method) {\n Objects.requireNonNull(_method, \"method must not be null\");\n\n if (_method.isAnnotationPresent(DBusMemberName.class)) {\n return _method.getAnnotation(DBusMemberName.class).value();\n }\n return _method.getName();\n }", "public String getProperty(int property) {\n\t\treturn activity.getString(R.string.input);\n\t}", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString getMethodNameBytes() {\r\n\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\tif (ref instanceof java.lang.String) {\r\n\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\r\n\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\r\n\t\t\t\tmethodName_ = b;\r\n\t\t\t\treturn b;\r\n\t\t\t} else {\r\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\r\n\t\t\t}\r\n\t\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }" ]
[ "0.74562943", "0.7341109", "0.7061584", "0.69941664", "0.6973811", "0.6928111", "0.66328627", "0.6590788", "0.652756", "0.6512639", "0.64085144", "0.6366373", "0.63516074", "0.6348134", "0.6210665", "0.6210665", "0.6210665", "0.6210665", "0.61455005", "0.6141832", "0.61334896", "0.60804164", "0.6075676", "0.60633755", "0.6062792", "0.6056268", "0.6047945", "0.6038293", "0.6034446", "0.60340995", "0.5992009", "0.5992009", "0.5983015", "0.5966485", "0.59639484", "0.5958202", "0.59446687", "0.59413785", "0.585514", "0.58427554", "0.5831286", "0.5831286", "0.58057004", "0.57876796", "0.5775101", "0.5763425", "0.57498825", "0.5741637", "0.5741637", "0.57268614", "0.57152927", "0.57152444", "0.5710293", "0.5699351", "0.569506", "0.56871283", "0.56871283", "0.5683583", "0.5672684", "0.56700593", "0.5668974", "0.56676656", "0.56668055", "0.56649345", "0.56436884", "0.56367546", "0.56342554", "0.56342554", "0.56342554", "0.5622506", "0.55929184", "0.559279", "0.559279", "0.559279", "0.5576892", "0.55745685", "0.5568539", "0.5548812", "0.55458564", "0.55458564", "0.55315876", "0.5520782", "0.55110747", "0.55061007", "0.55061007", "0.55028623", "0.54934305", "0.5491445", "0.54884326", "0.54733956", "0.5472622", "0.5468525", "0.54541785", "0.544456", "0.54438895", "0.54410094", "0.5417187", "0.5417187", "0.5415977", "0.54053766" ]
0.7041141
3
Returns the setter method name from the property name.
public static String getSetterName(String propertyName){ return "set" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String setterName(String name) {\n return genMethodName(name, \"set\", null);\n }", "private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }", "public String getSetMethodName() {\n return m_setMethodName;\n }", "public void setSetMethodName(String name) {\n m_setMethodName = name;\n }", "public String getSetter() {\n return \"set\" + getCapName();\n }", "String attributeToSetter(String name);", "private String propertyToMethodName(final String property, final String modifier) {\n \n String charToUpper = property.substring(0,1);\n String methodName = property.replaceFirst(charToUpper, charToUpper.toUpperCase());\n methodName = modifier + methodName;\n return methodName;\n }", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "public static String getPropertyAccessMethodName(String property) {\r\n if (\"this\".equals(property))\r\n return \"this\";\r\n return \"get\" + property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1);\r\n }", "public static synchronized String getG_SetterName(String p, String type) {\r\n\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(type);//'get' or 'set'\r\n sb.append(Character.toUpperCase(p.charAt(0)));\r\n sb.append(p.substring(1));\r\n\r\n return sb.toString();\r\n }", "String getPropertyName();", "public Method getSetterMethod(String property, Class<?> paramType) {\n String methodName = getSetterMethodName(property);\n Method method;\n\n try {\n method = this.type.getMethod(methodName, paramType);\n } catch (NoSuchMethodException e) {\n method = null;\n } catch (SecurityException e) {\n method = null;\n }\n\n return method;\n }", "PropertyName getName();", "protected String isSetter(final Method<?> method)\r\n {\r\n String methodName = method.getName();\r\n \r\n if (!methodName.startsWith(ClassUtils.JAVABEAN_SET_PREFIX))\r\n {\r\n return null;\r\n }\r\n \r\n String propertyName = methodName.substring(ClassUtils.JAVABEAN_SET_PREFIX.length());\r\n \r\n if (!StringUtils.isCapitalized(propertyName))\r\n {\r\n return null;\r\n }\r\n \r\n return StringUtils.decapitalize(propertyName);\r\n }", "protected String getPropertyName(){\n return propertyName;\n }", "public Method findMatchingSetMethod(Object bean, String propertyName) {\n\t\tfor (Method method : bean.getClass().getMethods()) {\n\t\t\t// find all the set methods\n\t\t\tif (method.getName().startsWith(\"set\") && method.getName().length() > \"set\".length()) {\n\t\t\t\tString methodName = method.getName().substring(\"set\".length());\n\t\t\t\tmethodName = methodName.replace(methodName.substring(0,1), methodName.substring(0,1).toLowerCase());\n\t\t\t\tif (methodNameMatches(methodName, propertyName)) {\n\t\t\t\t\tClass<?>[] paramTypes = method.getParameterTypes();\n\t\t\t\t\tif (paramTypes.length != 1) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Unable to find matching setter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]. Found [\" + method.getName() + \"] but this expects [\" + paramTypes.length + \"] parameters when it shoud be expecting [1] parameter\");\n\t\t\t\t\t}\n\t\t\t\t\treturn method;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalArgumentException(\"Unable to find matching setter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]\");\n\t}", "public String getPropertyName();", "public String getPropertyName()\n {\n return propertyName;\n }", "public void setGetMethodName(String name) {\n m_getMethodName = name;\n }", "@XmlAttribute(name=\"method\")\n public void setMethodName(String name)\n {\n this.methodName = name;\n flushJBossObjectCache();\n }", "public void setPropertyName (String propertyName) {\n\t\tthis.propertyName=propertyName;\n\t}", "public final void setNameProperty(String nameProperty) {\n\t\tif(nameProperty == null) throw new IllegalArgumentException(\"A field name must be specified\");\n\t\tthis.nameProperty = nameProperty;\n\t}", "public static String getGetterName(String propertyName, boolean isBool){\r\n\t\tif(isBool){\r\n\t\t\treturn \"is\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\t\tpropertyName.substring(1);\r\n\t\t} else {\r\n\t\t\treturn \"get\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\t\tpropertyName.substring(1);\r\n\t\t}\r\n\t}", "public Builder setMethodName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n methodName_ = value;\n onChanged();\n return this;\n }", "public Builder setMethodName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n methodName_ = value;\n onChanged();\n return this;\n }", "public String get(String propertyName);", "public void setMethodName(@NotNull String newMethodName) {\n myMethodName = newMethodName;\n }", "public static String setName()\n {\n read_if_needed_();\n \n return _set_name;\n }", "public String getPropertyName() {\n return this.propertyName;\n }", "public void setStringProperty(String propertyName, String value);", "public Builder setMethodName(java.lang.String value) {\r\n\t\t\t\tif (value == null) {\r\n\t\t\t\t\tthrow new NullPointerException();\r\n\t\t\t\t}\r\n\t\t\t\tbitField0_ |= 0x00000001;\r\n\t\t\t\tmethodName_ = value;\r\n\t\t\t\tonChanged();\r\n\t\t\t\treturn this;\r\n\t\t\t}", "public MethodBuilder set(String name) {\n\t\treturn name(\"set \" + name);\n\t}", "public String getStringProperty(String propertyName) ;", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }", "public List<Method> getSetterMethods(String property) {\n String methodName = getSetterMethodName(property);\n List<Method> result = new ArrayList<Method>(2);\n\n for (Method method : this.type.getMethods()) {\n if (method.getName().equals(methodName) && method.getParameterTypes().length == 1) {\n result.add(method);\n }\n }\n\n return result;\n }", "public void setProperty(String property) {\n }", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "@JsonSetter(\"name\")\n public void setName (String value) { \n this.name = value;\n }", "@JsonSetter(\"name\")\r\n public void setName (String value) { \r\n this.name = value;\r\n }", "public String getMethodName() {\r\n return _methodName;\r\n }", "@BeanTagAttribute\r\n public String getPropertyName() {\r\n return propertyName;\r\n }", "public void setName(SimpleName name) {\n if (name == null) {\n throw new IllegalArgumentException();\n }\n ASTNode oldChild = this.methodName;\n preReplaceChild(oldChild, name, NAME_PROPERTY);\n this.methodName = name;\n postReplaceChild(oldChild, name, NAME_PROPERTY);\n }", "public QueryMethodType<T> setMethodName(String methodName)\n {\n childNode.getOrCreate(\"method-name\").text(methodName);\n return this;\n }", "public java.lang.String getMethodName() {\r\n\t\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\r\n\t\t\t\t\tjava.lang.String s = ((com.google.protobuf.ByteString) ref)\r\n\t\t\t\t\t\t\t.toStringUtf8();\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t\treturn s;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t\t}\r\n\t\t\t}", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\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 methodName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\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 methodName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }", "public String getMethodName() {\n\t\treturn this.methodName;\n\t}", "public String getMethodName() {\n\t\treturn this.methodName;\n\t}", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "public java.lang.String getMethodName() {\r\n\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\tif (ref instanceof java.lang.String) {\r\n\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t} else {\r\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\r\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\r\n\t\t\t\tif (bs.isValidUtf8()) {\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t}\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}", "@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}", "public void setPropName(String name) {\n m_propName = name;\n }", "public String getMethodName() {\n return methodName;\n }", "public String getMethodName() {\n return methodName;\n }", "public void setMethod(String newValue);", "public void setName(String newValue);", "public void setName(String newValue);", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public void setName(String name) {\r\n String oldValue = this.name;\r\n this.name = name;\r\n propertyChangeSupport.firePropertyChange(PROPERTY_NAME, oldValue, name);\r\n }", "public String propertyName() {\n\t\t\treturn target != null ? target : name;\n\t\t}", "@JSProperty(\"name\")\n void setName(@Nullable String value);", "private String getName() {\n return method.getName();\n }", "public com.google.protobuf.ByteString getMethodNameBytes() {\r\n\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\tif (ref instanceof java.lang.String) {\r\n\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\r\n\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\r\n\t\t\t\tmethodName_ = b;\r\n\t\t\t\treturn b;\r\n\t\t\t} else {\r\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\r\n\t\t\t}\r\n\t\t}", "String getMethodName();", "String getMethodName();", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getMethodName() {\n\t\treturn methodName;\n\t}", "String attributeToGetter(String name);", "public String getName() {\n return nameRule.getMethodName();\n }", "public String getSetPropertyTarget() {\n \n return this.setPropertyTarget;\n }", "public com.google.protobuf.ByteString getMethodNameBytes() {\r\n\t\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\t\tif (ref instanceof String) {\r\n\t\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\r\n\t\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\r\n\t\t\t\t\tmethodName_ = b;\r\n\t\t\t\t\treturn b;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\r\n\t\t\t\t}\r\n\t\t\t}", "public SimpleName getName() {\n if (this.methodName == null) {\n // lazy init must be thread-safe for readers\n synchronized (this) {\n if (this.methodName == null) {\n preLazyInit();\n this.methodName = new SimpleName(this.ast);\n postLazyInit(this.methodName, NAME_PROPERTY);\n }\n }\n }\n return this.methodName;\n }", "void setName(String name_);", "public void setMethodName(String methodName) {\n this.methodName = methodName;\n }", "public void setMethodName(String methodName) {\n this.methodName = methodName;\n }", "public String getMethodName() {\n\t\t\treturn methodName;\n\t\t}", "static String getAntPropertyName( final String property ) {\n if ( property != null &&\n property.startsWith( \"${\" ) && // NOI18N\n property.endsWith( \"}\" ) ) { // NOI18N\n return property.substring( 2, property.length() - 1 );\n } \n return property;\n }", "void setName(String s);", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\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 methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\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 methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}", "private static String getCamelCasedPropertyName(String propertyName) {\n return propertyName.substring(0, 1).toUpperCase() +\n propertyName.substring(1);\n }", "protected void setName(String name) {\n \t\tString oldName = this.name;\n \t\tthis.name = name;\n \t\tfirePropertyChange(PROPERTY_NAME, oldName, name);\n \t}", "public String prop(String name);", "public void setStringProperty(String propertyName,String propertyValue) throws UtilsException;", "public void setSetPropertyTarget(String setPropertyTarget) {\n \n this.setPropertyTarget = setPropertyTarget;\n }", "DavPropertyName getName();", "public void setName(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(NAME_PROP.get(), value);\n }", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);" ]
[ "0.7656542", "0.7560479", "0.6730496", "0.6604631", "0.65877086", "0.6524201", "0.6512973", "0.63909096", "0.63304615", "0.6311671", "0.6240986", "0.62365353", "0.6073471", "0.60558325", "0.60544026", "0.60426337", "0.5989614", "0.5854489", "0.58514565", "0.5801201", "0.58002543", "0.5790548", "0.5751089", "0.57491374", "0.57491374", "0.5737616", "0.5737314", "0.5704936", "0.56977266", "0.56893384", "0.56419235", "0.5627487", "0.5608336", "0.5578064", "0.55722594", "0.5571354", "0.5538788", "0.5521417", "0.5521417", "0.5521417", "0.5521417", "0.5511272", "0.54921114", "0.5419431", "0.54110545", "0.5387245", "0.53872275", "0.53688633", "0.5367495", "0.5367495", "0.5360021", "0.5360021", "0.5339057", "0.5333888", "0.5333888", "0.5318899", "0.5318899", "0.52998203", "0.52960676", "0.52910936", "0.52713966", "0.52713966", "0.5269585", "0.52495307", "0.52495307", "0.5234186", "0.5230916", "0.52304137", "0.5227316", "0.5202288", "0.5194794", "0.5189182", "0.5189182", "0.51869357", "0.51869357", "0.5186686", "0.5169311", "0.51676995", "0.5147241", "0.5146043", "0.5145147", "0.51440793", "0.5106941", "0.5106941", "0.5100495", "0.50972414", "0.50955945", "0.50950676", "0.50950676", "0.50779253", "0.5075983", "0.5060523", "0.50601596", "0.5046067", "0.5028494", "0.5027823", "0.5027017", "0.5025402", "0.5025402", "0.5025402" ]
0.80024
0
Returns an active editor part in the workbench.
public static IEditorPart getActiveEditor(){ IWorkbench workbench = PlatformUI.getWorkbench(); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); IWorkbenchPage page = window.getActivePage(); IEditorPart editorPart = page.getActiveEditor(); return editorPart; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized IEditorPart getActiveEditor() {\n return activeEditorMap.get(currentWindow);\n }", "public IWorkbenchPart getWorkbenchPart() {\n\t\treturn part;\n\t}", "protected MigrationEditorOperation getEditor() {\n IEditorPart editorPart = PluginUtil.getActiveEditor();\n if (editorPart instanceof MigrationEditorOperation) {\n return (MigrationEditorOperation) editorPart;\n }\n return null;\n }", "@Override\r\n\tpublic IWorkbenchPart getPart() {\n\t\treturn super.getPart();\r\n\t}", "public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }", "public JawbComponent getEditorComponent () {\n if (editorComponent == null)\n initEditorComponent ();\n return editorComponent;\n }", "public Editor getEditor() {\n if (currentEditor == null) {\n getTopEditor(); // this will trigger creation of a new top editor if it doesn't exist and currentEditor will be assigned with that one as well\n }\n return currentEditor;\n }", "public synchronized IEditorPart getActiveEditor(IWorkbenchWindow window) {\n return activeEditorMap.get(window);\n }", "public Editor getEditor() { return editor; }", "public BaseEditorPanel getEditorPanel ()\n {\n return _epanel;\n }", "private VdbEditor findEditorPart(final IWorkbenchPage page, IFile vdbFile) {\n \t\tfinal IEditorReference[] editors = page.getEditorReferences();\n \t\tfor (int i = 0; i < editors.length; ++i) {\n \n \t\t\tfinal IEditorPart editor = editors[i].getEditor(false);\n \t\t\tif (editor instanceof VdbEditor) {\n \t\t\t\tfinal VdbEditor vdbEditor = (VdbEditor) editor;\n \t\t\t\tfinal IPath editorVdbPath = vdbEditor.getVdb().getName();\n \t\t\t\tif (vdbFile.getFullPath().equals(editorVdbPath)) \n \t\t\t\t\treturn vdbEditor;\n \n \t\t\t}\n \t\t}\n \n \t\treturn null;\n \t}", "public Part getPartToModify()\n {\n if (partTable.getSelectionModel().getSelectedItem() != null)\n {\n return ((Part) partTable.getSelectionModel().getSelectedItem());\n }\n return null;\n }", "public IWorkbench getWorkbench() {\n \t\treturn workbench;\n \t}", "public Component getCustomEditor() {\n\t\treturn mEditor;\n\t}", "public MultiViewDescription getActiveDescription() {\n \treturn currentEditor;\n }", "public WaveformViewer getActiveWaveformViewerPart() {\n\t\treturn waveformViewerPart;\n\t}", "public MyTextPane getEditor() {\n\t\treturn editor;\n\t}", "@Nullable\n public JComponent getPreferredFocusedComponent() {\n return myEditor;\n }", "protected IDescriptor getActiveDescriptor() {\n if (editor != null) {\n return editor.getActiveDisplayPane().getDescriptor();\n }\n return null;\n }", "protected String getCurrentCode() {\n IDocument doc = EditorUtilities.getDocument(editor);\n if (doc != null) {\n return doc.get();\n }\n return null;\n }", "public java.awt.Component getInPlaceCustomEditor () {\n if (modifiedEditor instanceof EnhancedPropertyEditor) {\n return ((EnhancedPropertyEditor)modifiedEditor).getInPlaceCustomEditor ();\n } else {\n return null;\n }\n }", "org.parosproxy.paros.view.WorkbenchPanel getWorkbench() {\r\n\t\tif (paneStandard == null) {\r\n\t\t\tpaneStandard = new org.parosproxy.paros.view.WorkbenchPanel();\r\n\t\t\tpaneStandard.setLayout(new java.awt.CardLayout());\r\n\t\t\tpaneStandard.setName(\"paneStandard\");\r\n\t\t}\r\n\t\treturn paneStandard;\r\n\t}", "public WorkPart getWorkPart () {\n\t\tif(workPart==null && annotates!=null) {workPart = WorkUtils.getWorkPartByTag(annotates);}\n\t\treturn workPart;\n\t}", "public Container getContainer() {\n return editor;\n }", "protected ITextEditor getEditor() {\n return editor;\n }", "public EditorView getEditorView() {\n\t\treturn this.editorView;\n\t}", "public Part getPart() {\n if ( isZombie( part ) ) {\n Part part = segment.getDefaultPart();\n getCommander().requestLockOn( part );\n return part;\n } else {\n return part;\n }\n }", "public static IWorkbenchPage getActivePage() {\n\t\tIWorkbench wb = PlatformUI.getWorkbench();\t\t\n\t\tif(wb != null) {\n\t\t\tIWorkbenchWindow win = wb.getActiveWorkbenchWindow();\t\t\t\n\t\t\tif(win != null) {\n\t\t\t\tIWorkbenchPage page = win.getActivePage();\t\t\t\t\n\t\t\t\tif(page != null) {\n\t\t\t\t\treturn page;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private TaskEditor getTaskEditor(EditableTask editable) {\n \t\tif (editable.getEditor() == null) {\n // Create a new editor using the extension point data\n \t\t\tTaskEditor editor = TaskEditorManager.getInstance().getEditor(editable.getKind());\n \t\t\tif (editor != null) {\n \t\t\t\tComposite editorPanel = new Composite(taskEditorContainer, SWT.NULL);\n \t\t\t\tGridLayout layout = new GridLayout();\n \t\t\t\tlayout.marginWidth = 0;\n \t\t\t\tlayout.marginHeight = 0;\n \t\t\t\teditorPanel.setLayout(layout);\n \t\t\t\tmform.getToolkit().adapt(editorPanel);\n \t\t\t\teditor.createControl(editorPanel, mform.getToolkit());\n \t\t\t\teditable.setEditor(editor);\n \t\t\t\tGridData gridData = new GridData(GridData.FILL_BOTH);\n \t\t\t\teditor.getControl().setLayoutData(gridData);\n \t\t\t} \n \t\t}\n \t\treturn editable.getEditor();\t\n \t}", "protected final JTextComponent getComponent() {\n return editor;\n }", "protected MPart getHelpPart() {\r\n\t\treturn partService.findPart(HelpPart.ID);\r\n\t}", "public Object getComponentEditPart() {\n\t\treturn componentEditPart;\n\t}", "public static IProject getCurrentProject() {\n\t\tIProject activeProject = null;\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tIEditorPart editorPart = window.getActivePage().getActiveEditor();\n\t\tif (editorPart != null) {\n\t\t\tIEditorInput input = editorPart.getEditorInput();\n\t\t\tif (input instanceof IFileEditorInput) {\n\t\t\t\tIFile file = ((IFileEditorInput) input).getFile();\n\t\t\t\tactiveProject = file.getProject();\n\t\t\t}\n\t\t}\n\t\treturn activeProject;\n\t}", "public void setActivePage(IEditorPart activeEditor) {\n\r\n\t}", "public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }", "public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }", "private ch.softenvironment.view.SimpleEditorPanel getPnlEditor() {\n\tif (ivjPnlEditor == null) {\n\t\ttry {\n\t\t\tivjPnlEditor = new ch.softenvironment.view.SimpleEditorPanel();\n\t\t\tivjPnlEditor.setName(\"PnlEditor\");\n\t\t\tivjPnlEditor.setLayout(new javax.swing.BoxLayout(getPnlEditor(), javax.swing.BoxLayout.X_AXIS));\n\t\t\tivjPnlEditor.setEnabled(true);\n\t\t\t// user code begin {1}\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 ivjPnlEditor;\n}", "public VdbEditor getVdbEditor(final IFile vdb) {\n \t\tfinal IWorkbenchWindow window = UiPlugin.getDefault()\n \t\t\t\t.getCurrentWorkbenchWindow();\n \n \t\tif (window != null) {\n \t\t\tfinal IWorkbenchPage page = window.getActivePage();\n \n \t\t\tif (page != null) {\n \t\t\t\tVdbEditor editor = findEditorPart(page, vdb);\n \t\t\t\tif( editor != null ) {\n \t\t\t\t\treturn editor;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn null;\n \t}", "public PetalEditor getEditor() {\n return petal_editor;\n }", "public CellEditor getEditor(String bookmark, Object fieldId) {\n\t\t\treturn null;\n\t\t}", "public boolean hasEditor()\n\t{\n\t\treturn true;\n\t}", "public EditPanel getEditPanel() { return ep; }", "protected InteractionDrawingEditor getViewEditor()\n {\n return view.getEditor();\n }", "protected Rectangle getVisibleEditorRect() {\n Rectangle alloc = editor.getBounds();\n if ((alloc.width > 0) && (alloc.height > 0)) {\n alloc.x = alloc.y = 0;\n Insets insets = editor.getInsets();\n alloc.x += insets.left;\n alloc.y += insets.top;\n alloc.width -= insets.left + insets.right + caretMargin;\n alloc.height -= insets.top + insets.bottom;\n return alloc;\n }\n return null;\n }", "public Document getDocument() {\n return editor.getDocument();\n }", "public Object \n getCellEditorValue() \n {\n BaseEditor editor = null;\n if(pField.getPluginName() != null) {\n try {\n\tPluginMgrClient pclient = PluginMgrClient.getInstance();\n\teditor = pclient.newEditor(pField.getPluginName(), \n\t\t\t\t pField.getPluginVersionID(), \n\t\t\t\t pField.getPluginVendor());\n }\n catch(PipelineException ex) {\n }\n }\n \n return editor; \n }", "public static IWorkbenchPage getActivePage() {\n IWorkbenchWindow window = getActiveWorkbenchWindow();\n if (window != null) {\n return window.getActivePage();\n }\n return null;\n }", "private IJavaElement getContext() {\n\t\tIWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tif (activeWorkbenchWindow == null) {\n\t\t\treturn null;\n\t\t}\n\t\tIWorkbenchPage page = activeWorkbenchWindow.getActivePage();\n\t\tif (page != null) {\n\t\t\tISelection selection = page.getSelection();\n\t\t\tif (selection instanceof IStructuredSelection) {\n\t\t\t\tIStructuredSelection ss = (IStructuredSelection) selection;\n\t\t\t\tif (!ss.isEmpty()) {\n\t\t\t\t\tObject obj = ss.getFirstElement();\n\t\t\t\t\tif (obj instanceof IJavaElement) {\n\t\t\t\t\t\treturn (IJavaElement) obj;\n\t\t\t\t\t}\n\t\t\t\t\tif (obj instanceof IResource) {\n\t\t\t\t\t\tIJavaElement je = JavaCore.create((IResource) obj);\n\t\t\t\t\t\tif (je == null) {\n\t\t\t\t\t\t\tIProject pro = ((IResource) obj).getProject();\n\t\t\t\t\t\t\tje = JavaCore.create(pro);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (je != null) {\n\t\t\t\t\t\t\treturn je;\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\tIEditorPart part = page.getActiveEditor();\n\t\t\tif (part != null) {\n\t\t\t\tIEditorInput input = part.getEditorInput();\n\t\t\t\treturn (IJavaElement) input.getAdapter(IJavaElement.class);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Object getItem ()\r\n {\r\n return editor.getText ();\r\n }", "private JTextArea getSelectedTextArea() {\r\n\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\tif (index == -1) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tJScrollPane sp = (JScrollPane) tabbedPane.getComponent(index);\r\n\t\tJTextArea editor = (JTextArea) sp.getViewport().getView();\r\n\t\t\r\n\t\treturn editor;\r\n\t}", "public void partActivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public static IWorkbenchWindow getActiveWorkbenchWindow() {\n if (getDefault() == null) {\n return null;\n }\n IWorkbench workBench = getDefault().getWorkbench();\n if (workBench == null) {\n return null;\n }\n return workBench.getActiveWorkbenchWindow();\n }", "public String getQuery() {\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tif (null == window) {\n\t\t\treturn null;\n\t\t}\n\n\t\tIEditorPart editor = window.getActivePage().getActiveEditor();\n\t\tif (editor == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!(editor instanceof QueryEditorPart)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tQueryEditorPart queryEditorPart = (QueryEditorPart) editor;\n\t\tStyledText stext = queryEditorPart.getSqlEditorWidget();\n\t\treturn stext.getSelectionText();\n\t}", "@Override\r\n\tpublic void setActiveEditor(IEditorPart editor) {\n\t\tsuper.setActiveEditor(editor);\r\n\r\n\t\tif (editor instanceof DiagramEditor) {\r\n\t\t\tgetActionBars().getStatusLineManager().setMessage(\r\n\t\t\t\t\t((DiagramEditor) editor).getPartName());\r\n\t\t}\r\n\t}", "public void setActivePart(IAction action, IWorkbenchPart targetPart) {}", "public JPanel getCurrentPanel(){\n JPanel card = null;\n for (Component comp : contentPane.getComponents()) {\n if (comp.isVisible() == true) {\n return card;\n }\n }\n return null;\n }", "@Override\n\tpublic java.lang.String getEditorType() {\n\t\treturn _scienceApp.getEditorType();\n\t}", "private static String getSelectedExpr(JEditorPane ep, int offset) {\n //see bz#248407, looks like editorpane is not displayable and no caret is set which will lead to NPE here\n if ((ep.getCaret() != null) && (ep.getSelectionStart() <= offset) && (offset <= ep.getSelectionEnd())) {\n return ep.getSelectedText();\n }\n\treturn null;\n }", "public String getThePanel() {\r\n\t\treturn secretIt.currentS().puzzle();\r\n\t}", "public synchronized IWorkbenchWindow getCurrentWindow() {\n return currentWindow;\n }", "public String getOwningPart() {\n return this.owningPart;\n }", "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 }", "public static IWorkbenchPage getActivePage() {\n\t IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow();\n\t if (window == null) {\n\t return null;\n\t }\n\t return window.getActivePage();\n\t}", "private JPanel getEkitCoreEditorHTMLPanel() {\r\n\r\n\t\tString toolbar = EkitCore.TOOLBAR_DEFAULT_SINGLE;\r\n\t\tif (ekitCoreEditorHTMLPanel == null) {\r\n\t\t\tekitCoreEditorHTMLPanel =\r\n\t\t\t\tnew EkitCore(null, null, updateComment, null, null, true,\r\n\t\t\t\t\tfalse, true, true, null, null, false, false, true, false,\r\n\t\t\t\t\ttoolbar);\r\n\t\t\tekitCoreEditorHTMLPanel.setBounds(new Rectangle(2, 34, 619, 189));\r\n\t\t\tekitCoreEditorHTMLPanel.setVisible(true);\r\n\t\t}\r\n\t\treturn ekitCoreEditorHTMLPanel;\r\n\t}", "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 }", "@Api(1.0)\n public HaloPreferencesStorageEditor edit() {\n if (mCurrentEditor == null) {\n mCurrentEditor = new HaloPreferencesStorageEditor(getSharedPreferences());\n }\n return mCurrentEditor;\n }", "private TestUnitPanel getSelectedPanel(){\n\t\t\n\t\tTestUnitPanel selectedPanel = (TestUnitPanel)tabbedPane.getComponentAt(tabbedPane.getSelectedIndex());\n\t\tConsoleLog.Print(\"[TestMonitor] returned Unit: \" + getUnitKey());\n\t\treturn selectedPanel;\n\t}", "public String getChiefEditor() {\n return (String)getAttributeInternal(CHIEFEDITOR);\n }", "boolean mo117961a(Editor editor);", "@Override\n public FormFieldComponent getEditorComponent() {\n return (FormFieldComponent)editor;\n }", "public Part getPart(String name) throws IOException {\n if(form == null) {\n form = builder.getInstance();\n }\n return form.getPart(name);\n }", "public MWC.GUI.Editable.EditorType getInfo()\n\t{\n\t\tif (_myEditor == null)\n\t\t\t_myEditor = new InvestigateInfo(this);\n\n\t\treturn _myEditor;\n\t}", "protected abstract IEditorPreferences getPreferences();", "public final MWC.GUI.Editable.EditorType getInfo()\r\n\t{\r\n\t\tif (_myEditor == null)\r\n\t\t\t_myEditor = new FieldInfo(this, this.getName());\r\n\r\n\t\treturn _myEditor;\r\n\t}", "public PsiElement findPsiElement() {\n final String filePath = myLocation == null ? null : FileUtil.toSystemIndependentName(myLocation.getFile());\n final VirtualFile vFile = filePath == null ? null : LocalFileSystem.getInstance().findFileByPath(filePath);\n final PsiFile psiFile = vFile == null ? null : PsiManager.getInstance(myProject).findFile(vFile);\n if (psiFile != null) {\n final int offset = DartAnalysisServerService.getInstance(myProject).getConvertedOffset(vFile, myLocation.getOffset());\n final PsiElement elementAtOffset = psiFile.findElementAt(offset);\n if (elementAtOffset != null) {\n final DartComponentName componentName = PsiTreeUtil.getParentOfType(elementAtOffset, DartComponentName.class);\n if (componentName != null) {\n return componentName;\n }\n if (elementAtOffset.getParent() instanceof DartId && elementAtOffset.getTextRange().getStartOffset() == offset) {\n return elementAtOffset; // example in WEB-25478 (https://github.com/flutter/flutter-intellij/issues/385#issuecomment-278826063)\n }\n }\n }\n return null;\n }", "protected ActivityPart getActivityPart() {\n\t\treturn (ActivityPart) getHost();\n\t}", "public static Shell getActiveWorkbenchShell() {\n IWorkbenchWindow workBenchWindow = getActiveWorkbenchWindow();\n if (workBenchWindow == null) {\n return null;\n }\n return workBenchWindow.getShell();\n }", "private static JEditorPane editorPane()\n {\n try\n {\n JEditorPane editor = new JEditorPane(); //this will be the editor returned\n editor.setPage(Resources.getResource(filename)); //gives the editor the URL of the HTML file\n editor.setEditable(false); //prevents the about page from being edited\n return editor; //return the editor which is now displaying the HTML file\n } catch(Exception e){\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, \"ERROR: could not access about.HTML file\");\n return null; //if the editor could not be built\n }\n }", "public void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public static SlideshowEditor getInstance()\n {\n if (instance == null) {\n instance = new SlideshowEditor();\n }\n return instance;\n }", "public WizardPanelDescriptor getCurrentPanelDesc(){\n return currentPanel;\n }", "public IPage getPageForPart(IWorkbenchPart part) {\n\t\tPageRec pageRec = getPageRec(part);\n\t\tif (pageRec != null) {\n\t\t\treturn pageRec.page;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Tool getActiveTool()\n {\n return GametableFrame.getGametableFrame().getGametableCanvas().getActiveTool();\n }", "public FrameEditorInteraction getInteraction()\n {\n return interaction;\n }", "private String getCurrentElement(final ElementKind kind, final Element[] elementPtr)\n throws java.awt.IllegalComponentStateException {\n Node[] nodes = TopComponent.getRegistry ().getCurrentNodes ();\n if (nodes == null) return null;\n if (nodes.length != 1) return null;\n DataObject dataObject = nodes[0].getCookie(DataObject.class);\n if (dataObject == null) return null;\n JavaFXSource js = JavaFXSource.forFileObject(dataObject.getPrimaryFile());\n if (js == null) return null;\n // TODO: Can be called outside of AWT? Probably need invokeAndWait()\n EditorCookie ec = nodes[0].getCookie(EditorCookie.class);\n final int currentOffset;\n \n JEditorPane[] op = ec.getOpenedPanes ();\n JEditorPane ep = (op != null && op.length >= 1) ? op[0] : null;\n final String selectedIdentifier;\n if (ep != null) {\n String s = ep.getSelectedText ();\n currentOffset = ep.getCaretPosition();\n if (ep.getSelectionStart() > currentOffset || ep.getSelectionEnd() < currentOffset) {\n s = null; // caret outside of the selection\n }\n if (s != null && Utilities.isJavaIdentifier (s)) {\n selectedIdentifier = s;\n } else {\n selectedIdentifier = null;\n }\n } else {\n selectedIdentifier = null;\n currentOffset = 0;\n }\n \n //final int currentOffset = org.netbeans.editor.Registry.getMostActiveComponent().getCaretPosition();\n final String[] currentElementPtr = new String[] { null };\n final Future<Void> scanFinished;\n try {\n scanFinished = js.runWhenScanFinished(new CancellableTask<CompilationController>() {\n public void cancel() {\n }\n public void run(CompilationController ci) throws Exception {\n if (ci.toPhase(Phase.ANALYZED).lessThan(Phase.ANALYZED)) {\n ErrorManager.getDefault().log(ErrorManager.WARNING,\n \"Unable to resolve \"+ci.getCompilationUnit().getSourceFile()+\" to phase \"+Phase.ANALYZED+\", current phase = \"+ci.getPhase()+\n \"\\nDiagnostics = \"/*+ci.getDiagnostics()*/+\n \"\\nFree memory = \"+Runtime.getRuntime().freeMemory());\n return;\n }\n Element el = null;\n if (kind == ElementKind.CLASS) {\n boolean isMemberClass = false;\n if (selectedIdentifier != null) {\n Tree tree = ci.getTreeUtilities().pathFor(currentOffset).getLeaf();\n if (tree.getJavaFXKind() == Tree.JavaFXKind.MEMBER_SELECT) {\n MemberSelectTree mst = (MemberSelectTree) tree;\n el = ci.getTrees().getElement(ci.getTrees().getPath(ci.getCompilationUnit(), mst.getExpression()));\n TypeMirror tm = el.asType();\n if (tm.getKind().equals(TypeKind.DECLARED)) {\n currentElementPtr[0] = tm.toString();\n isMemberClass = true;\n }\n }\n } \n if (!isMemberClass) {\n JavaFXTreePath currentPath = ci.getTreeUtilities().pathFor(currentOffset);\n Tree tree = currentPath.getLeaf();\n TypeElement te;\n if (tree.getJavaFXKind() == Tree.JavaFXKind.CLASS_DECLARATION) {\n te = (TypeElement) ci.getTrees().getElement(currentPath);\n } else if (tree.getJavaFXKind() == Tree.JavaFXKind.COMPILATION_UNIT){\n //It is mean tyhat we have global variable and need to set name of the file as classname\n //TODO XXX Durty Hack\n String packageName = ci.getTrees().getElement(currentPath).getSimpleName().toString();\n String className = ci.getFileObject().getName();\n currentElementPtr[0] = packageName+\".\"+className;\n te = null;\n } else {\n Scope scope = ci.getTreeUtilities().scopeFor(currentOffset);\n // JavafxcScope scope = ci.getTreeUtilities().javafxcScopeFor(currentOffset);\n te = scope.getEnclosingClass();\n }\n if (te != null) {\n currentElementPtr[0] = getBinaryName(te);\n }\n el = te;\n }\n } else if (kind == ElementKind.METHOD) {\n Scope scope = ci.getTreeUtilities().scopeFor(currentOffset);\n // JavafxcScope scope = ci.getTreeUtilities().javafxcScopeFor(currentOffset);\n el = scope.getEnclosingMethod();\n if (el != null) {\n currentElementPtr[0] = el.getSimpleName().toString();\n if (currentElementPtr[0].equals(\"<init>\")) {\n // The constructor name is the class name:\n currentElementPtr[0] = el.getEnclosingElement().getSimpleName().toString();\n }\n }\n } else if (kind == ElementKind.FIELD) {\n int offset = currentOffset;\n \n if (selectedIdentifier == null) {\n String text = ci.getText();\n int l = text.length();\n char c = 0; // Search for the end of the field declaration\n while (offset < l && (c = text.charAt(offset)) != ';' && c != ',' && c != '\\n' && c != '\\r') offset++;\n if (offset < l && c == ';' || c == ',') { // we have it, but there might be '=' sign somewhere before\n int endOffset = --offset;\n int setOffset = -1;\n while(offset >= 0 && (c = text.charAt(offset)) != ';' && c != ',' && c != '\\n' && c != '\\r') {\n if (c == '=') setOffset = offset;\n offset--;\n }\n if (setOffset > -1) {\n offset = setOffset;\n } else {\n offset = endOffset;\n }\n while (offset >= 0 && Character.isWhitespace(text.charAt(offset))) offset--;\n }\n if (offset < 0) offset = 0;\n }\n Tree tree = ci.getTreeUtilities().pathFor(offset).getLeaf();\n if (tree.getJavaFXKind() == Tree.JavaFXKind.VARIABLE) {\n el = ci.getTrees().getElement(ci.getTrees().getPath(ci.getCompilationUnit(), tree));\n if (el.getKind() == ElementKind.FIELD || el.getKind() == ElementKind.ENUM_CONSTANT) {\n currentElementPtr[0] = ((VariableTree) tree).getName().toString();\n }\n } else if (tree.getJavaFXKind() == Tree.JavaFXKind.IDENTIFIER && selectedIdentifier != null) {\n IdentifierTree it = (IdentifierTree) tree;\n String fieldName = it.getName().toString();\n Scope scope = ci.getTreeUtilities().scopeFor(offset);\n // JavafxcScope scope = ci.getTreeUtilities().javafxcScopeFor(offset);\n TypeElement te = scope.getEnclosingClass();\n List<? extends Element> enclosedElms = te.getEnclosedElements();\n for (Element elm : enclosedElms) {\n if (elm.getKind().equals(ElementKind.FIELD) && elm.getSimpleName().contentEquals(fieldName)) {\n currentElementPtr[0] = fieldName;\n break;\n }\n }\n \n } else if (tree.getJavaFXKind() == Tree.JavaFXKind.MEMBER_SELECT && selectedIdentifier != null) {\n MemberSelectTree mst = (MemberSelectTree) tree;\n String fieldName = mst.getIdentifier().toString();\n el = ci.getTrees().getElement(ci.getTrees().getPath(ci.getCompilationUnit(), mst.getExpression()));\n if (el.asType().getKind().equals(TypeKind.DECLARED)) {\n List<? extends Element> enclosedElms = ((DeclaredType) el.asType()).asElement().getEnclosedElements();\n for (Element elm : enclosedElms) {\n if (elm.getKind().equals(ElementKind.FIELD) && elm.getSimpleName().contentEquals(fieldName)) {\n currentElementPtr[0] = fieldName;\n break;\n }\n }\n }\n } \n }\n if (elementPtr != null) {\n elementPtr[0] = el;\n }\n }\n }, true);\n if (!scanFinished.isDone()) {\n if (java.awt.EventQueue.isDispatchThread()) {\n // Hack: We should not wait for the scan in AWT!\n // Thus we throw IllegalComponentStateException,\n // which returns the data upon call to getMessage()\n throw new java.awt.IllegalComponentStateException() {\n \n private void waitScanFinished() {\n try {\n scanFinished.get();\n } catch (InterruptedException iex) {\n } catch (java.util.concurrent.ExecutionException eex) {\n ErrorManager.getDefault().notify(eex);\n }\n }\n \n public String getMessage() {\n waitScanFinished();\n return currentElementPtr[0];\n }\n \n };\n } else {\n try {\n scanFinished.get();\n } catch (InterruptedException iex) {\n return null;\n } catch (java.util.concurrent.ExecutionException eex) {\n ErrorManager.getDefault().notify(eex);\n return null;\n }\n }\n }\n } catch (IOException ioex) {\n ErrorManager.getDefault().notify(ioex);\n return null;\n }\n return currentElementPtr[0];\n }", "public String getCurrentPanel() {\n return this.currentPanel;\n }", "public Board getBoard(){\n return undoBoards.peek();\n }", "public MapEditor getMapEditor() {\n\t\treturn mapEditor;\n\t}", "public Part getOtherPart() {\n Node other = getOther();\n if ( other.isConnector() ) {\n return ( (Connector) other ).getInnerFlow().getLocalPart();\n } else {\n return (Part) other;\n }\n }", "protected TransactionalEditingDomain getEditingDomain() {\n // try adapting the workbench part\n IWorkbenchPart part = getWorkbenchPart();\n\n if (part != null) {\n IEditingDomainProvider edProvider = (IEditingDomainProvider) part.getAdapter(IEditingDomainProvider.class);\n\n if (edProvider != null) {\n EditingDomain domain = edProvider.getEditingDomain();\n\n if (domain instanceof TransactionalEditingDomain) {\n return (TransactionalEditingDomain) domain;\n }\n }\n }\n\n return null;\n }", "public EditableBoard getBoard() {\n\treturn board;\n }", "public synchronized boolean isVisibleEditor(IWorkbenchWindow currentWindow,\n Object object) {\n Set<IEditorPart> parts = visibleParts.get(currentWindow);\n if (parts != null) {\n return parts.contains(object);\n }\n return false;\n }", "protected HelpPart getHelpPartObject() {\r\n\t\tMPart helpPart = getHelpPart();\r\n\t\tif (helpPart != null) {\r\n\t\t\treturn (HelpPart)helpPart.getObject();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public interface ComboPropertiesEditionPart {\n\n\t/**\n\t * @return the combo\n\t */\n\tpublic Object getCombo();\n\n\t/**\n\t * Init the combo\n\t * @param eClass the eClass to manage\n\t * @param current the current value\n\t */\n\tpublic void initCombo(ResourceSet allResources, EObject current);\n\n\t/**\n\t * Defines a new combo\n\t * @param newValue the new combo to set\n\t */\n\tpublic void setCombo(Object newValue);\n\n\t/**\n\t * Adds the given filter to the combo edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t */\n\tpublic void addFilterToCombo(ViewerFilter filter);\n\n\n\n\n\n\n\t/**\n\t * @return the comboRO\n\t */\n\tpublic Object getComboRO();\n\n\t/**\n\t * Init the comboRO\n\t * @param eClass the eClass to manage\n\t * @param current the current value\n\t */\n\tpublic void initComboRO(ResourceSet allResources, EObject current);\n\n\t/**\n\t * Defines a new comboRO\n\t * @param newValue the new comboRO to set\n\t */\n\tpublic void setComboRO(Object newValue);\n\n\t/**\n\t * Adds the given filter to the comboRO edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t */\n\tpublic void addFilterToComboRO(ViewerFilter filter);\n\n\n\n\n\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public NetworkEditor getNetworkEditor() {\n return panel.getNetworkEditor();\n }", "public UserFunctionEditor getUserFunctionEditor() {\n return (UserFunctionEditor) functionEditor;\n }", "protected Trigger getContentAssistTrigger() {\n IBindingService service = (IBindingService) PlatformUI.getWorkbench()\n .getService(IBindingService.class);\n Trigger trigger = null;\n TriggerSequence[] sequences = service\n .getActiveBindingsFor(ContentAssistCommandAdapter.CONTENT_PROPOSAL_COMMAND);\n if (sequences.length > 0) {\n Trigger[] triggers = sequences[0].getTriggers();\n if (triggers.length > 0) {\n trigger = triggers[0];\n }\n }\n return trigger;\n }", "public final EditorSelectionEnum getSelectionMode() {\n \t\treturn selectionMode;\n \t}", "public BoardView getActiveBoard() {\n if (activePlayer == Piece.COLOR.RED)\n return getRedBoard();\n else\n return getWhiteBoard();\n }", "private Shell getShell() {\n\t\treturn PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\n\t}" ]
[ "0.77457374", "0.7484834", "0.7321617", "0.7178864", "0.7167527", "0.69659543", "0.6889656", "0.6861414", "0.67543054", "0.66732216", "0.662137", "0.6600914", "0.65722525", "0.6557639", "0.65203506", "0.64714015", "0.643936", "0.64110947", "0.63251877", "0.6301279", "0.625881", "0.620737", "0.61648095", "0.61624867", "0.61586016", "0.6158146", "0.6141767", "0.6046578", "0.6032018", "0.60245156", "0.600804", "0.5989315", "0.59530056", "0.5950314", "0.5948015", "0.5948015", "0.59436256", "0.5922288", "0.58916384", "0.58080727", "0.57770175", "0.5738829", "0.57113755", "0.5708495", "0.5706475", "0.56908077", "0.56775725", "0.5671511", "0.5653686", "0.56447405", "0.56281215", "0.5615929", "0.5615285", "0.55952173", "0.5557727", "0.5545956", "0.55455655", "0.5537294", "0.5531736", "0.55255383", "0.55084366", "0.5494333", "0.5473791", "0.5472739", "0.5466364", "0.54606134", "0.54588306", "0.54298556", "0.5429535", "0.5426149", "0.5424071", "0.5410454", "0.540786", "0.5406482", "0.53956836", "0.53937066", "0.5393547", "0.5368815", "0.5358937", "0.5351976", "0.53483933", "0.5314644", "0.5310053", "0.53007483", "0.5300553", "0.52951884", "0.52833134", "0.5279438", "0.5277015", "0.5271397", "0.5269572", "0.5265816", "0.52597296", "0.52361465", "0.52303004", "0.5227416", "0.52216583", "0.52144235", "0.52135015", "0.5210713" ]
0.8431323
0
Creates the ICompilationUnit to use temporary.
public synchronized static ICompilationUnit getTemporaryCompilationUnit( IJavaProject project) throws JavaModelException { if(unitMap.get(project) != null){ return unitMap.get(project); } IPackageFragment root = project.getPackageFragments()[0]; ICompilationUnit unit = root.getCompilationUnit("_xxx.java").getWorkingCopy( new NullProgressMonitor()); unitMap.put(project, unit); return unit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CompilationUnit parse(ICompilationUnit unit) {\n\t\t// create a AST of the source code\n\t\tASTParser parser = ASTParser.newParser(AST.JLS4);\n\t\tparser.setKind(ASTParser.K_COMPILATION_UNIT);\n\t\tparser.setSource(unit);\n\t\tparser.setResolveBindings(true);\n\t\tparser.setBindingsRecovery(true);\n\t\tparser.setStatementsRecovery(true);\n\t\treturn (CompilationUnit) parser.createAST(null);\n\t}", "protected Compiler() {\r\n\t\ttempTable = new TempTable();\r\n\t\toriginalTextLength = 0;\r\n\t\tthis.cpt = null;\r\n\t}", "public Rule compilationUnit()\n \t{\n \t\treturn sequence(\n \t\t\t\tOPT_SP,\n \t\t\t\tzeroOrMore(firstOf(using(), incUsing())),\n \t\t\t\tzeroOrMore(typeDef()),\n \t\t\t\tOPT_SP,\n \t\t\t\tzeroOrMore(doc()), // allow for extra docs at end of file (if last type commented out)\n \t\t\t\tOPT_SP,\n \t\t\t\teoi());\n \t}", "public static ITextUnit buildTU (ITextUnit textUnit,\r\n \t\tString name,\r\n \t\tTextContainer source,\r\n \t\tTextContainer target,\r\n \t\tLocaleId locId,\r\n \t\tString comment)\r\n \t{\r\n \t\tif (textUnit == null) {\r\n \t\t\ttextUnit = new TextUnit(\"\");\r\n \t\t}\r\n \r\n \t\tif (textUnit.getSkeleton() == null) {\r\n \t\t\tGenericSkeleton skel = new GenericSkeleton();\r\n \t\t\ttextUnit.setSkeleton(skel);\r\n \t\t}\r\n \r\n \t\tif (!Util.isEmpty(name))\r\n \t\t\ttextUnit.setName(name);\r\n \r\n \t\tif (source != null)\r\n \t\t\ttextUnit.setSource(source);\r\n \r\n \t\tif (target != null && !Util.isNullOrEmpty(locId))\r\n \t\t\ttextUnit.setTarget(locId, target);\r\n \r\n \t\tif (!Util.isEmpty(comment))\r\n \t\t\ttextUnit.setProperty(new Property(Property.NOTE, comment));\r\n \r\n \t\treturn textUnit;\r\n \t}", "public static ITextUnit buildTU (TextContainer source) {\r\n \t\treturn buildTU(null, \"\", source, null, LocaleId.EMPTY, \"\");\r\n \t}", "public static ITextUnit buildTU (String source) {\r\n \t\treturn buildTU(new TextContainer(source));\r\n \t}", "public void setCompilationUnit(Document cu) {\r\n \t\t_doc = cu;\r\n \t}", "@SuppressWarnings(\"deprecation\")\n\tprotected CompilationUnit internal_parseCompilationUnit(final ITypeRoot source) {\n\t\t// Code parsing : here is indicated the version of JDK (~JLS) to\n\t\t// consider, see Class comments\n\t\tASTParser parser = ASTParser.newParser(AST.JLS3);\n\t\tparser.setResolveBindings(true);\n\t\tparser.setSource(source);\n\t\t\n\t\t// >>> optimization: already ignore method bodies on parsing\n\t\tparser.setIgnoreMethodBodies(isIgnoreMethodBodies());\n\t\t// <<<\n\t\t\n\t\tCompilationUnit parsedCompilationUnit = (CompilationUnit) parser.createAST(null);\n\t\treturn parsedCompilationUnit;\n\t}", "SUT createSUT();", "public BuildTree createBuildTree() {\n BuildTree buildTree = new BuildTree();\n createBuildTree(0, buildTree);\n return buildTree;\n }", "static public Tour makeTour() {\r\n Tour t = new Tour();\r\n t.index = null;\r\n return t;\r\n }", "public ST createStringTemplateInternally(CompiledST impl) {\n\t\tST st = createStringTemplate(impl);\n\t\tif (trackCreationEvents && st.debugState != null) {\n\t\t\tst.debugState.newSTEvent = null; // toss it out\n\t\t}\n\t\treturn st;\n\t}", "public void createTemp(String TemplateType){\r\n ts.create(TemplateType);\r\n }", "TT createTT();", "private UnitFactory() {\n\t}", "private TempTable createTempTable() throws Exception{\n\t\treturn new TempTableFile();\n\t}", "private Project compileProject() {\n\t\t\tProject p = null;\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new OngoingProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pDeadline.getText()), Double.parseDouble(pBudget.getText()), Integer.parseInt(pCompletion.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new FinishedProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pEndDate.getText()), Double.parseDouble(pTotalCost.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\n\t\t\treturn p;\n\t\t}", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateUnitResult() {\n }", "CompilationUnitDeclaration getJdtCud() {\n return cud;\n }", "@Override\n\tpublic TestUnit create(long testUnitId) {\n\t\tTestUnit testUnit = new TestUnitImpl();\n\n\t\ttestUnit.setNew(true);\n\t\ttestUnit.setPrimaryKey(testUnitId);\n\n\t\treturn testUnit;\n\t}", "protected void createTemporaryModel(Compound compound) {\n Project tmpModel = new Project(\"tmp\");\n for (int e = 0; e < compound.getElementCount(); e++) {\n DecisionVariableDeclaration elt = compound.getElement(e);\n DecisionVariableDeclaration tmpDecl = new DecisionVariableDeclaration(\n elt.getName(), elt.getType(), tmpModel);\n tmpDecl.setComment(elt.getComment()); // take over .text information\n tmpModel.add(tmpDecl);\n }\n augmentTemporaryModel(tmpModel);\n tmpConfig = new net.ssehub.easy.varModel.confModel.Configuration(tmpModel);\n uiCfg = ConfigurationTableEditorFactory.createConfiguration(tmpConfig, \n new DelegatingEasyEditorPage(tableViewer.getTable()), parentParameters);\n }", "public Name createTemporaryName() {\n return Name.makeFresh(\"t\");\n }", "void genAst();", "protected static final Transformer newTransformer(final Templates tmp) {\r\n try {\r\n return getOutTransformer(tmp.newTransformer());\r\n } catch (final TransformerConfigurationException tce) {\r\n logB.error(\"XmlFactory.newTransformer : failure on creating new Transformer for template : \" + tmp, tce);\r\n }\r\n\r\n return null;\r\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, false);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \">\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n simpleNode0.setIdentifier(\"<<\");\n simpleNode0.setIdentifier(\"y\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"<<\");\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n simpleNode0.dump(\"}\", stringWriter0);\n assertEquals(\"<CompilationUnit>\\n <identifier>*lshft</identifier>\\n <identifier>y</identifier>\\n</CompilationUnit>\\n\", stringWriter0.toString());\n }", "private TempExpressionHelper() {\r\n\t}", "private static File prepareTempFolder() {\n File result;\n try {\n result = java.nio.file.Files.createTempDirectory(\n DCOSService.class.getSimpleName()).toFile();\n System.out.println(result.toString());\n\n return result;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "void genMutants() {\n\tif (comp_unit == null) {\n\t System.err.println(original_file + \" is skipped.\");\n\t}\n\tClassDeclarationList cdecls = comp_unit.getClassDeclarations();\n\n\tif (cdecls == null || cdecls.size() == 0)\n\t return;\n\n\tif (classOp != null && classOp.length > 0) {\n\t Debug.println(\"* Generating class mutants\");\n\t MutationSystem.clearPreviousClassMutants();\n\t MutationSystem.MUTANT_PATH = MutationSystem.CLASS_MUTANT_PATH;\n\t CodeChangeLog.openLogFile();\n\t genClassMutants(cdecls);\n\t CodeChangeLog.closeLogFile();\n\t}\n }", "public native void compile() /*-{\r\n\t\tvar template = [email protected]::getJsObj()();\r\n\t\ttemplate.compile();\r\n\t}-*/;", "public void _testWrongCompilationUnitLocation() throws JavaModelException {\n //----------------------------\n // Step 1\n //----------------------------\n //$NON-NLS-1$\n IPath projectPath = env.addProject(\"Project\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n //$NON-NLS-1$\n env.removePackageFragmentRoot(projectPath, \"\");\n //$NON-NLS-1$\n IPath root = env.addPackageFragmentRoot(projectPath, \"src\");\n //$NON-NLS-1$\n IPath bin = env.setOutputFolder(projectPath, \"bin\");\n IPath x = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n root, //$NON-NLS-1$ //$NON-NLS-2$\n \"\", //$NON-NLS-1$ //$NON-NLS-2$\n \"X\", //$NON-NLS-1$\n \"public class X {\\n\" + //$NON-NLS-1$\n \"}\\n\");\n fullBuild();\n expectingNoProblems();\n //$NON-NLS-1$\n expectingPresenceOf(bin.append(\"X.class\"));\n //----------------------------\n // Step 2\n //----------------------------\n //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n root, //$NON-NLS-1$ //$NON-NLS-2$\n \"\", //$NON-NLS-1$ //$NON-NLS-2$\n \"X\", //$NON-NLS-1$\n \"package p1;\\n\" + //$NON-NLS-1$\n \"public class X {\\n\" + //$NON-NLS-1$\n \"}\\n\");\n incrementalBuild();\n expectingProblemsFor(x, \"???\");\n //$NON-NLS-1$\n expectingNoPresenceOf(bin.append(\"X.class\"));\n env.removeProject(projectPath);\n }", "public Creator_4_tables() {\n// this.sourceUnits = sourceUnits;\n sourceUnits = new HashMap<String, PojoSourceCreatorUnit>();\n sourceTemplatePool.logEnvOnSrcCreate = app.cfg.getCfgBean().logEnvOnSrcCreate;\n env.setLogLeading(\"--cfenv--\");\n }", "public TempTable() {\r\n\t\t\tsuper();\r\n\t\t\tthis.clauses = new ArrayList<TempTableHeaderCell>();\r\n\t\t}", "private static String compilationUnitPath(ICompilationUnit cu)\n {\n\treturn cu.getPath().toFile().getAbsolutePath();\n }", "private SegmentTmTu createTu(Element p_root)\n throws Exception\n {\n SegmentTmTu result = new SegmentTmTu();\n\n // Optional TU attributes:\n\n // Original TU id, if known\n String id = p_root.attributeValue(Tmx.TUID);\n if (id != null && id.length() > 0)\n {\n try\n {\n long lid = Long.parseLong(id);\n result.setId(lid);\n }\n catch (Throwable ignore)\n {\n // <TU tuid> can be an alphanumeric token.\n // If it is not a simple number, we ignore it.\n }\n }\n\n // Datatype of the TU (html, javascript etc)\n String format = p_root.attributeValue(Tmx.DATATYPE);\n if (format == null || format.length() == 0)\n {\n format = m_tmx.getDatatype();\n }\n result.setFormat(format);\n\n // Locale of Source TUV (use default from header)\n String lang = p_root.attributeValue(Tmx.SRCLANG);\n\n if (lang == null || lang.length() == 0)\n {\n lang = m_defaultSrcLang;\n }\n\n try\n {\n String locale = ImportUtil.normalizeLocale(lang);\n result.setSourceLocale(ImportUtil.getLocaleByName(locale));\n }\n catch (Throwable ex)\n {\n CATEGORY.warn(\"invalid locale \" + lang);\n\n throw new Exception(\"cannot handle locale \" + lang);\n }\n\n // TODO: other optional attributes\n String usageCount = p_root.attributeValue(Tmx.USAGECOUNT);\n String usageDate = p_root.attributeValue(Tmx.LASTUSAGEDATE);\n //String tool = p_root.attributeValue(Tmx.CREATIONTOOL);\n //String toolversion = p_root.attributeValue(Tmx.CREATIONTOOLVERSION);\n // used in createTuv()\n //String creationDate = p_root.attributeValue(Tmx.CREATIONDATE);\n //String creationUser = p_root.attributeValue(Tmx.CREATIONID);\n //String changeDate = p_root.attributeValue(Tmx.CHANGEDATE);\n //String changeUser = p_root.attributeValue(Tmx.CHANGEID);\n\n // GlobalSight-defined properties:\n\n // Segment type (text, css-color, etc)\n String segmentType = \"text\";\n\n Node node = p_root.selectSingleNode(\n \".//prop[@type = '\" + Tmx.PROP_SEGMENTTYPE + \"']\");\n\n if (node != null)\n {\n segmentType = node.getText();\n }\n result.setType(segmentType);\n\n //Read SID\n node = p_root.selectSingleNode(\n \".//prop[@type= '\" + Tmx.PROP_TM_UDA_SID + \"']\");\n if (node != null) {\n result.setSID(node.getText());\n }\n \n // TU type (T or L)\n boolean isTranslatable = true;\n node = p_root.selectSingleNode(\n \".//prop[@type = '\" + Tmx.PROP_TUTYPE + \"']\");\n\n if (node != null)\n {\n isTranslatable = node.getText().equals(Tmx.VAL_TU_TRANSLATABLE);\n }\n\n if (isTranslatable)\n {\n result.setTranslatable();\n }\n else\n {\n result.setLocalizable();\n }\n \n // prop with Att::\n List propNodes = p_root.elements(\"prop\");\n for (int i = 0; i < propNodes.size(); i++)\n {\n Element elem = (Element) propNodes.get(i);\n ProjectTmTuTProp prop = createProp(result, elem);\n\n if (prop != null)\n result.addProp(prop);\n }\n\n // TUVs\n List nodes = p_root.elements(\"tuv\");\n for (int i = 0; i < nodes.size(); i++)\n {\n Element elem = (Element)nodes.get(i);\n\n SegmentTmTuv tuv = createTuv(result, elem);\n\n result.addTuv(tuv);\n }\n\n\t\tif (com.globalsight.everest.tm.importer.ImportOptions.TYPE_TMX_WORLD_SERVER\n\t\t\t\t.equals(m_options.getFileType()))\n\t\t{\n\t\t\tresult.setFromWorldServer(true);\n\t\t}\n \n return result;\n }", "protected GenTreeOperation() {}", "private static File createTempDir() {\n\t\tFile baseDir = new File(\"/opt/tomcat7/temp\");\r\n\t\tString baseName = \"omicseq-TempStorage\" + \"-\";\r\n\r\n\t\tfor (int counter = 0; counter < 10000; counter++) {\r\n\t\t\tFile tempDir = new File(baseDir, baseName + counter);\r\n\t\t\tif (!tempDir.exists()) {\r\n\t\t\t\tif (tempDir.mkdir())\r\n\t\t\t\t\treturn tempDir;\r\n\t\t\t} else\r\n\t\t\t\treturn tempDir;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "IUnit copy();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tblockEClass = createEClass(BLOCK);\n\t\tcreateEReference(blockEClass, BLOCK__STMTS);\n\n\t\tstmtEClass = createEClass(STMT);\n\n\t\tarithEClass = createEClass(ARITH);\n\n\t\talVarRefEClass = createEClass(AL_VAR_REF);\n\t\tcreateEAttribute(alVarRefEClass, AL_VAR_REF__NAME);\n\n\t\tarithLitEClass = createEClass(ARITH_LIT);\n\t\tcreateEAttribute(arithLitEClass, ARITH_LIT__VAL);\n\n\t\tarithOpEClass = createEClass(ARITH_OP);\n\t\tcreateEReference(arithOpEClass, ARITH_OP__LHS);\n\t\tcreateEReference(arithOpEClass, ARITH_OP__RHS);\n\n\t\tarithPlusEClass = createEClass(ARITH_PLUS);\n\n\t\tarithMinusEClass = createEClass(ARITH_MINUS);\n\n\t\tprintEClass = createEClass(PRINT);\n\t\tcreateEAttribute(printEClass, PRINT__NAME);\n\n\t\tassignEClass = createEClass(ASSIGN);\n\t\tcreateEAttribute(assignEClass, ASSIGN__NAME);\n\t\tcreateEReference(assignEClass, ASSIGN__VAL);\n\n\t\tifStmtEClass = createEClass(IF_STMT);\n\t\tcreateEReference(ifStmtEClass, IF_STMT__IF_BRANCH);\n\t\tcreateEReference(ifStmtEClass, IF_STMT__ELSE_BRANCH);\n\t\tcreateEReference(ifStmtEClass, IF_STMT__TEST);\n\n\t\trandRangeEClass = createEClass(RAND_RANGE);\n\t\tcreateEAttribute(randRangeEClass, RAND_RANGE__MIN);\n\t\tcreateEAttribute(randRangeEClass, RAND_RANGE__MAX);\n\n\t\tequalityTestEClass = createEClass(EQUALITY_TEST);\n\t\tcreateEReference(equalityTestEClass, EQUALITY_TEST__LHS);\n\t\tcreateEReference(equalityTestEClass, EQUALITY_TEST__RHS);\n\t}", "@Test\n public void ctor(){\n assertNotNull(CuT.templateEngine, \"The Template Engine is Null and should not be\");\n }", "public void create(int temp) {\n\n directory newFile = new directory();\n newFile.a = temp;\n\n directory FilePtr;\n\n\n if (root == null) {\n root = newFile;\n root.forward = null;\n root.back = null;\n return;\n }\n\n FilePtr = root;\n\n while (FilePtr.forward != null) {\n FilePtr = FilePtr.forward;\n }\n FilePtr.forward = newFile;\n FilePtr = FilePtr.forward;\n FilePtr.forward = null;\n\n return;\n\n }", "public static org.opencps.usermgt.model.WorkingUnit createWorkingUnit(\n\t\tlong workingunitId) {\n\t\treturn getService().createWorkingUnit(workingunitId);\n\t}", "private SegmentTmTuv createTuv(SegmentTmTu p_tu, Element p_root)\n throws Exception\n {\n SegmentTmTuv result = new SegmentTmTuv();\n result.setOrgSegment(p_root.asXML());\n \n // need to set backpointer to tuv, or SegmentTmTuv.equals() fails.\n result.setTu(p_tu);\n\n // language of the TUV \"EN-US\", case insensitive\n String lang = p_root.attributeValue(Tmx.LANG);\n\n try\n {\n String locale = ImportUtil.normalizeLocale(lang);\n result.setLocale(ImportUtil.getLocaleByName(locale));\n }\n catch (Throwable ex)\n {\n throw new Exception(\"unknown locale \" + lang + \",you can create it in system then retry.\");\n }\n\n // Creation user - always set to a known value\n String user = p_root.attributeValue(Tmx.CREATIONID);\n if (user == null)\n {\n user = p_root.getParent().attributeValue(Tmx.CREATIONID);\n }\n\n result.setCreationUser(user != null ? user : Tmx.DEFAULT_USER);\n\n // Modification user - only set if known\n user = p_root.attributeValue(Tmx.CHANGEID);\n if (user == null)\n {\n user = p_root.getParent().attributeValue(Tmx.CHANGEID);\n }\n\n if (user != null)\n {\n result.setModifyUser(user);\n }\n\n // Timestamps (should be expressed using java.util.Date).\n // In TMX, timestamps use the short form: yyyymmddThhmmssZ,\n // so prepare for both short and long form.\n Date now = new Date();\n Date date;\n\n // Creation date - always set to a known value\n String ts = p_root.attributeValue(Tmx.CREATIONDATE);\n if (ts == null)\n {\n ts = p_root.getParent().attributeValue(Tmx.CREATIONDATE);\n }\n\n if (ts != null)\n {\n date = UTC.parseNoSeparators(ts);\n if (date == null)\n {\n date = UTC.parse(ts);\n }\n result.setCreationDate(new Timestamp(date.getTime()));\n }\n else\n {\n result.setCreationDate(new Timestamp(now.getTime()));\n }\n\n // Modification date - only set if known (note: currently\n // AbstractTmTuv sets the modification date to NOW)\n ts = p_root.attributeValue(Tmx.CHANGEDATE);\n if (ts == null)\n {\n ts = p_root.getParent().attributeValue(Tmx.CHANGEDATE);\n }\n\n if (ts != null)\n {\n date = UTC.parseNoSeparators(ts);\n if (date == null)\n {\n date = UTC.parse(ts);\n }\n result.setModifyDate(new Timestamp(date.getTime()));\n }\n else\n {\n // If no \"changedate\", set it same as \"creationdate\".\n result.setModifyDate(result.getCreationDate());\n }\n\n\t\tts = p_root.attributeValue(Tmx.LASTUSAGEDATE);\n\t\tif (ts == null)\n\t\t{\n\t\t\tts = p_root.getParent().attributeValue(Tmx.LASTUSAGEDATE);\n\t\t}\n\t\tif (ts != null)\n\t\t{\n\t\t\tdate = UTC.parseNoSeparators(ts);\n\t\t\tif (date == null)\n\t\t\t{\n\t\t\t\tdate = UTC.parse(ts);\n\t\t\t}\n\t\t\tresult.setLastUsageDate(new Timestamp(date.getTime()));\n\t\t}\n\n\t\tList tuvPropNodes = p_root.elements(\"prop\");\n\t\tfor (int i = 0; i < tuvPropNodes.size(); i++)\n\t\t{\n\t\t\tElement elem = (Element) tuvPropNodes.get(i);\n\t\t\tString type = elem.attributeValue(\"type\");\n\t\t\tString value = elem.getText();\n\t\t\tif (Tmx.PROP_PREVIOUS_HASH.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setPreviousHash(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_NEXT_HASH.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setNextHash(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_JOB_ID.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setJobId(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_JOB_NAME.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setJobName(value);\n\t\t\t}\n\t\t\telse if (Tmx.PROP_CREATION_PROJECT.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setUpdatedProject(value);\n\t\t\t}\n\t\t}\n // Segment text: need to produce root elements <translatable>\n // and <localizable> depending on TU type.\n StringBuffer segment = new StringBuffer();\n\n if (p_tu.isTranslatable())\n {\n segment.append(\"<segment>\");\n }\n else\n {\n segment.append(\"<localizable>\");\n }\n\n segment.append(getSegmentValue(p_root));\n\n if (p_tu.isTranslatable())\n {\n segment.append(\"</segment>\");\n }\n else\n {\n segment.append(\"</localizable>\");\n }\n\n result.setSid(p_tu.getSID());\n //End of Added\n result.setSegment(segment.toString());\n\n return result;\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttoUseSolverCpFolderEClass = createEClass(TO_USE_SOLVER_CP_FOLDER);\n\t\tcreateEReference(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__SUB_FOLDERS);\n\t\tcreateEAttribute(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__NAME);\n\t\tcreateEReference(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__TO_USE_GENERATORS);\n\n\t\ttoUseSolverCpGeneratorEClass = createEClass(TO_USE_SOLVER_CP_GENERATOR);\n\t\tcreateEReference(toUseSolverCpGeneratorEClass, TO_USE_SOLVER_CP_GENERATOR__SOLVER);\n\t\tcreateEReference(toUseSolverCpGeneratorEClass, TO_USE_SOLVER_CP_GENERATOR__TO_USE_TUPLES);\n\n\t\ttoUseSolverCpTupleEClass = createEClass(TO_USE_SOLVER_CP_TUPLE);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_LINEARS);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_VARS);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_LOGICALS);\n\t}", "private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }", "public interface TempFileManagerFactory {\n\n\t\tpublic TempFileManager create();\n\t}", "protected ASTNode buildAST(String newContents, ICompilationUnit cu, boolean reportErrors) throws JavaModelException {\n return buildAST(newContents, cu, reportErrors, /*no statement recovery*/\n false, false);\n }", "TNode createTNode();", "public Header [] compilationUnit(Header [] loaded, final int depth)\r\n {\r\n\ttry\r\n\t{\r\n this.depth = depth;\r\n String trunc = sources.getPath();\r\n list = loaded == null?new Header[0]:loaded;\r\n countToken = 0;\r\n \r\n Find.notePass(null);\r\n \r\n lookAhead();\r\n\r\n // read package name\r\n String myPackage = null;\r\n if (nextSymbol == Keyword.PACKAGESY)\r\n {\r\n lookAhead();\r\n myPackage = qualident();\r\n matchKeyword(Keyword.SEMICOLONSY);\r\n }\r\n\r\n Header header = new Header(new File(Parser.jdkSource).getPath(), trunc, myPackage, depth);\r\n\r\n Vector imported = new Vector();\r\n imported.add(\"java.lang.\");\r\n\r\n // read import statements\r\n while (nextSymbol == Keyword.IMPORTSY)\r\n imported.add(importDeclaration());\r\n\r\n header.imports = new String[imported.size()];\r\n for(int l = 0; l < imported.size(); l++)\r\n header.imports[l] = (String)imported.get(l);\r\n\r\n trunc = trunc.substring(0, sources.getPath().lastIndexOf(\".java\"));\r\n String basename = trunc.substring(trunc.lastIndexOf('\\\\') + 1);\r\n\r\n scopeStack = header.scopes;\r\n\r\n while(nextSymbol != Keyword.EOFSY)\r\n typeDeclaration(header.base, basename);\r\n\r\n matchKeyword(Keyword.EOFSY);\r\n\r\n if (Errors.count() != 0)\r\n return null;\r\n\r\n // write valid header\r\n header.write(trunc + \".h\");\r\n\r\n // append compiled file to list\r\n Header [] newList = new Header[(list != null?list.length:0) + 1];\r\n\r\n for(int i = 0; i < newList.length - 1; i++)\r\n newList[i] = list[i];\r\n\r\n newList[newList.length - 1] = header;\r\n list = newList;\r\n connectClasses(list);\r\n\r\n // resolve superclasses and interfaces\r\n for(int i = 0; i < header.scopes.size() && list != null; i++)\r\n {\r\n Vector v = new Vector();\r\n Scope scope = (Scope)header.scopes.get(i);\r\n\r\n for(Iterator iter = scope.iterator(); iter.hasNext();)\r\n {\r\n Basic b = (Basic)iter.next();\r\n if (b instanceof ClassType)\r\n v = getExtendImplement((ClassType)b);\r\n }\r\n\r\n while(v.size() > 0 && list != null)\r\n {\r\n connectClasses(list);\r\n list = loadSource((String)v.get(0), list, header, force);\r\n v.remove(0);\r\n }\r\n }\r\n\r\n if (Errors.count() != 0 || header.depth > 0 || list == null)\r\n return list;\r\n\r\n // process imports\r\n for(int i = 0; i < imported.size() && list != null; i++)\r\n {\r\n String st = (String)imported.get(i);\r\n if (!st.endsWith(\".\"))\r\n {\r\n connectClasses(list);\r\n list = loadSource(st.substring(st.lastIndexOf('.') + 1), list, header, force);\r\n }\r\n }\r\n\r\n if (Errors.count() != 0 || header.depth > 0 || list == null)\r\n return list;\r\n\r\n connectClasses(list);\r\n // process unresolved references\r\n for(int i = 0; i < header.scopes.size() && list != null; i++)\r\n {\r\n Scope scope = (Scope)header.scopes.get(i);\r\n Iterator step = scope.iterator();\r\n while(step.hasNext() && list != null)\r\n {\r\n Basic x = (Basic)step.next();\r\n\r\n if (x instanceof ClassType)\r\n {\r\n boolean inner = false;\r\n ClassType y = (ClassType)x;\r\n\r\n while(y.unresolved.size() > 0 && list != null)\r\n {\r\n Iterator it = y.unresolved.iterator();\r\n if (!it.hasNext())\r\n break;\r\n String name = (String)it.next();\r\n it = null;\r\n y.unresolved.remove(name);\r\n String [] s = name.split(\"\\\\.\");\r\n Scope [] z = null;\r\n\r\n z = Find.find(s[0], scope, true);\r\n\r\n if (z.length == 0)\r\n {\r\n list = loadSource(s[0], list, header, force);\r\n connectClasses(list);\r\n }\r\n try {\r\n if (s.length > 1)\r\n {\r\n ClassType [] classes = null;\r\n \r\n classes = Find.findClass(s[0], 0, scope);\r\n \r\n if (classes.length == 0)\r\n {\r\n classes = new ClassType[1];\r\n classes[0] = y;\r\n }\r\n for(int k = 1; k < s.length && classes.length > 0; k++)\r\n {\r\n Basic[] b = classes[0].scope.get(s[k]);\r\n for (int j = 0; j < b.length; j++)\r\n if (b[j] instanceof VariableType)\r\n {\r\n VariableType v = (VariableType) b[j];\r\n if (v.type.type == Keyword.NONESY)\r\n {\r\n classes = Find.findClass(v.type.ident.string, 0, scope);\r\n \r\n if (classes.length == 0)\r\n {\r\n y.unresolved.add(v.type.ident.string);\r\n //y.unresolved.add(name);\r\n }\r\n }\r\n else\r\n classes = new ClassType[0];\r\n break;\r\n }\r\n else if (b[j] instanceof MethodType)\r\n {\r\n MethodType v = (MethodType) b[j];\r\n if (v.type.type == Keyword.NONESY)\r\n {\r\n classes = Find.findClass(v.type.ident.string, 0, scope);\r\n \r\n if (classes.length == 0)\r\n {\r\n y.unresolved.add(v.type.ident.string);\r\n //y.unresolved.add(name);\r\n }\r\n }\r\n else\r\n classes = new ClassType[0];\r\n break;\r\n }\r\n else if (b[j] instanceof ClassType)\r\n {\r\n classes = new ClassType[1];\r\n classes[0] = (ClassType) b[j];\r\n break;\r\n }\r\n }\r\n }\r\n } catch(Exception ee){error(\"nullpointer \" + s[0] + '.' + s[1]);}\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (depth > 0)\r\n return list;\r\n\r\n if (Errors.count() != 0 || list == null)\r\n return null;\r\n\r\n connectClasses(list);\r\n \r\n Find.notePass(this);\r\n\r\n // resolve operator tree to Forth-code\r\n FileOutputStream file = null, starter = null;\r\n try\r\n {\r\n file = new FileOutputStream(header.name.substring(0, header.name.lastIndexOf('.')) + \".fs\");\r\n starter = new FileOutputStream(header.name.substring(0, header.name.lastIndexOf('.')) + \".start.fs\");\r\n System.out.println(\"translate \" + header.name);\r\n\r\n for(int k = 0; k < header.scopes.size(); k++)\r\n {\r\n Scope scope = (Scope)header.scopes.get(k);\r\n boolean module = (k == 0);\r\n for(Iterator iter = scope.iterator(); iter.hasNext();)\r\n {\r\n Basic b = (Basic)iter.next();\r\n if (b instanceof ClassType && (b.modify & Keyword.INTERFACESY.value) == 0)\r\n {\r\n if (gc.startsWith(\"m\"))\r\n CodeRCmodified.codeClass( (ClassType) b, file, starter, module);\r\n else\r\n Code3color.codeClass( (ClassType) b, file, starter, module);\r\n module = false;\r\n }\r\n }\r\n }\r\n\r\n file.close();\r\n starter.close();\r\n }\r\n catch(IOException ex1) { ex1.printStackTrace(); }\r\n \r\n Find.notePass(this);\r\n\t}\r\n\tcatch(Exception failed)\r\n\t{ error(failed.getMessage() + \" aborted\"); }\r\n \r\n return (Errors.count() != 0)?null:list;\r\n }", "public void createPackageContents()\n {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tclarityAbstractObjectEClass = createEClass(CLARITY_ABSTRACT_OBJECT);\n\t\tcreateEAttribute(clarityAbstractObjectEClass, CLARITY_ABSTRACT_OBJECT__CLARITY_CONNECTION);\n\n\t\tclarityAddFilesEClass = createEClass(CLARITY_ADD_FILES);\n\n\t\tclarityGetBatchResultEClass = createEClass(CLARITY_GET_BATCH_RESULT);\n\n\t\tclarityGetKeyEClass = createEClass(CLARITY_GET_KEY);\n\n\t\tclarityQueryBatchEClass = createEClass(CLARITY_QUERY_BATCH);\n\n\t\tclarityReloadFileEClass = createEClass(CLARITY_RELOAD_FILE);\n\n\t\tclarityRemoveFilesEClass = createEClass(CLARITY_REMOVE_FILES);\n\n\t\tstartBatchEClass = createEClass(START_BATCH);\n\t}", "TD createTD();", "public TTau() {}", "private void createRootNode()\r\n {\r\n root = new Node(\"root\", null);\r\n Node.clear();\r\n }", "@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object);\n\n\t\t// Setters\n\t\taddSetters(object);\n\n\t\t// Build!\n\t\taddBuild(object);\n\n\t\t// Done!\n\t\twrite(object);\n\t}", "public static void newProject() {\n\n //create the arena representation\n //populateBlocks();\n //populateSensors();\n }", "protected ASTParser createASTParser() {\n ASTParser parser = ASTParser.newParser(this.testLevel);\n return parser;\n }", "VariableDeclaration createVariableDeclaration();", "public void testNewJavaProject() {\n NewProjectWizardOperator.invoke().cancel();\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n // \"Standard\"\n String standardLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.wizards.Bundle\", \"Templates/Project/Standard\");\n npwo.selectCategory(standardLabel);\n // \"Java Application\"\n String javaApplicationLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.wizards.Bundle\", \"template_app\");\n npwo.selectProject(javaApplicationLabel);\n npwo.next();\n NewJavaProjectNameLocationStepOperator npnlso = new NewJavaProjectNameLocationStepOperator();\n npnlso.txtProjectName().setText(SAMPLE_PROJECT_NAME);\n npnlso.txtProjectLocation().setText(System.getProperty(\"netbeans.user\")); // NOI18N\n npnlso.btFinish().pushNoBlock();\n npnlso.getTimeouts().setTimeout(\"ComponentOperator.WaitStateTimeout\", 120000);\n npnlso.waitClosed();\n // wait project appear in projects view\n new ProjectsTabOperator().getProjectRootNode(SAMPLE_PROJECT_NAME);\n\n //disable the compile on save:\n ProjectsTabOperator.invoke().getProjectRootNode(SAMPLE_PROJECT_NAME).properties();\n // \"Project Properties\"\n String projectPropertiesTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Customizer_Title\");\n NbDialogOperator propertiesDialogOper = new NbDialogOperator(projectPropertiesTitle);\n // select \"Compile\" category\n String buildCategoryTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Config_BuildCategory\");\n String compileCategoryTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Config_Build\");\n new Node(new Node(new JTreeOperator(propertiesDialogOper), buildCategoryTitle), compileCategoryTitle).select();\n // actually disable the quick run:\n String compileOnSaveLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"CustomizerCompile.CompileOnSave\");\n JCheckBox cb = JCheckBoxOperator.waitJCheckBox((Container) propertiesDialogOper.getSource(), compileOnSaveLabel, true, true);\n if (cb.isSelected()) {\n cb.doClick();\n }\n // confirm properties dialog\n propertiesDialogOper.ok();\n\n // wait classpath scanning finished\n PerfWatchProjects.waitScanFinished();\n }", "private Template() {\r\n\r\n }", "protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }", "public static void createTempMapsetName() {\r\n UUID id;\r\n String tmpPrefix;\r\n String tmpSuffix;\r\n String tmpBase;\r\n String tmpFolder;\r\n\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n tmpBase = new String(System.getProperty(\"java.io.tmpdir\"));\r\n if (tmpBase.endsWith(File.separator)) {\r\n tmpFolder = new String(tmpBase + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n else {\r\n tmpFolder = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n m_sGrassTempMapsetFolder = tmpFolder;\r\n\r\n }", "private String generateSqlServerTemporaryTableName() {\n return \"temp\" + temporaryTableCounter.getAndIncrement();\n }", "public void compileScript( TemplateCompilerContext context )\r\n\t{\r\n\t\t// Compile to bytes\r\n\t\tCompilationUnit unit = new CompilationUnit();\r\n\t\tunit.addSource( context.getPath(), context.getScript().toString() );\r\n\t\tunit.compile( Phases.CLASS_GENERATION );\r\n\r\n\t\t// Results\r\n\t\t@SuppressWarnings( \"unchecked\" )\r\n\t\tList< GroovyClass > classes = unit.getClasses();\r\n\t\tAssert.isTrue( classes.size() > 0, \"Expecting 1 or more classes\" );\r\n\r\n\t\tClassLoader parent = Thread.currentThread().getContextClassLoader();\r\n\t\tif( parent == null )\r\n\t\t\tparent = GroovyTemplateCompiler.class.getClassLoader();\r\n\r\n\t\t// Define the class\r\n\t\t// TODO Configurable class loader\r\n\t\tDefiningClassLoader classLoader = new DefiningClassLoader( parent );\r\n\t\tClass< ? > first = null;\r\n\t\tfor( GroovyClass cls : classes )\r\n\t\t{\r\n\t\t\tClass< ? > clas = classLoader.defineClass( cls.getName(), cls.getBytes() );\r\n\t\t\tif( first == null )\r\n\t\t\t\tfirst = clas; // TODO Are we sure that the first one is always the right one?\r\n\t\t}\r\n\r\n\t\t// Instantiate the first\r\n\t\tGroovyObject object = (GroovyObject)Util.newInstance( first );\r\n\t\tClosure closure = (Closure)object.invokeMethod( \"getClosure\", null );\r\n\r\n\t\t// The old way:\r\n//\t\tClass< GroovyObject > groovyClass = new GroovyClassLoader().parseClass( new GroovyCodeSource( getSource(), getName(), \"x\" ) );\r\n\r\n\t\tcontext.setTemplate( new GroovyTemplate( closure ) );\r\n\t}", "protected void createProject(IProgressMonitor monitor)\n {\n monitor.beginTask(\"Creating the Totori project\", 50);\n try\n {\n IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n monitor.subTask(\"Defining the nature of the project\");\n IProject project = root.getProject(page.getProjectName());\n IProjectDescription description = ResourcesPlugin.getWorkspace().newProjectDescription(project.getName());\n if(!Platform.getLocation().equals(page.getLocationPath()))\n description.setLocation(page.getLocationPath());\n project.create(description,monitor);\n monitor.worked(10);\n project.open(monitor);\n description = project.getDescription();\n description.setNatureIds(new String[] { TotoriNature.NATURE_ID });\n project.setDescription(description,new SubProgressMonitor(monitor,10));\n monitor.subTask(\"Creating subdirectories\");\n createFolderHelper(root.getFolder(project.getFullPath().append(\"config\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"ext\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"ext\").append(\"nircmd\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\").append(\"plugins\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\").append(\"steps\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\").append(\"support\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"reports\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"reports\").append(\"assets\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"reports\").append(\"screens\")), monitor);\n project.setDescription(description,new SubProgressMonitor(monitor,10));\n monitor.subTask(\"Creating files\");\n Vector<String> assets = new Vector<String>();\n assets.add(\"config/myconfig.yml\");\n assets.add(\"ext/nircmd/nircmd.chm\");\n assets.add(\"ext/nircmd/nircmd.exe\");\n assets.add(\"ext/nircmd/nircmdc.exe\");\n assets.add(\"features/support/env.rb\");\n assets.add(\"features/support/functions.rb\");\n assets.add(\"features/support/screenshots.rb\");\n assets.add(\"features/support/totori_formatter.rb\");\n assets.add(\"reports/assets/jquery-1.4.1.min.js\");\n assets.add(\"reports/assets/jquery.lightbox-0.5.css\");\n assets.add(\"reports/assets/jquery.lightbox-0.5.min.js\");\n assets.add(\"reports/assets/jquery.thumbs.js\");\n assets.add(\"reports/assets/lightbox-blank.gif\");\n assets.add(\"reports/assets/lightbox-btn-close.gif\");\n assets.add(\"reports/assets/lightbox-btn-next.gif\");\n assets.add(\"reports/assets/lightbox-btn-prev.gif\");\n assets.add(\"reports/assets/lightbox-ico-loading.gif\");\n assets.add(\"reports/assets/search.png\");\n assets.add(\"reports/assets/thumbs.css\");\n assets.add(\"reports/assets/totori.css\");\n for(String asset : assets) {\n \t String resource = \"/assets/\"+asset;\n \t InputStream stream = this.getClass().getResourceAsStream(resource);\n \t System.out.println(resource + \" : \" + stream);\n IPath path = project.getFullPath();\n for(String dir : asset.split(\"/\")) {\n \t path = path.append(dir);\n }\n IFile file = root.getFile(path);\n //file.getFullPath().toFile().mkdirs();\n //file.setCharset(\"utf-8\", monitor);\n file.create(stream, false, monitor);\n }\n monitor.worked(20);\n }\n catch(CoreException x)\n {\n reportError(x);\n }\n finally\n {\n monitor.done();\n }\n }", "private Template makeTemplate() {\n return new Template(\"spamHardGenerated\", \"SPAM HARD\\n$$template_EOO\\n\" + sendedWorld.getText() + \"\\n$$template_EOF\\n$$var_name osef\\n$$var_surname osef\");\n }", "OBJECT createOBJECT();", "public String createNamespace(IProject p, String ns) throws ThinklabException {\r\n \t\t\t\t\r\n \t\tFile ret = new File(getSourceDirectory() + File.separator + \r\n \t\t\t\t\t\t\tns.replace('.', File.separatorChar) + \".tql\");\r\n \t\tFile dir = new File(MiscUtilities.getFilePath(ret.toString()));\r\n \t\t\r\n \t\ttry {\r\n \t\t\tdir.mkdirs();\r\n \t\t\tPrintWriter out = new PrintWriter(ret);\r\n \t\t\tout.println(\"namespace \" + ns + \";\\n\");\r\n \t\t\tout.close();\r\n \t\t} catch (Exception e) {\r\n \t\t\tthrow new ThinklabClientException(e);\r\n \t\t}\r\n \t\t\r\n \t\treturn getSourceFolderNames().iterator().next() + File.separator + \r\n \t\t\t\tns.replace('.', File.separatorChar) + \".tql\";\r\n \t}", "protected Object compileAndLoad() throws IOException {\n String generatedSource = printJCodeModel();\n return compileAndLoadSource(generatedSource, TEST_CLASS_NAME);\n }", "public GraphQLObjectType createType(HibProject project) {\n\t\tBuilder root = newObject();\n\t\troot.name(PROJECT_TYPE_NAME);\n\t\tinterfaceTypeProvider.addCommonFields(root);\n\n\t\t// .name\n\t\troot.field(newFieldDefinition().name(\"name\").description(\"The name of the project\").type(GraphQLString));\n\n\t\t// .rootNode\n\t\troot.field(\n\t\t\tnewFieldDefinition()\n\t\t\t\t.name(\"rootNode\")\n\t\t\t\t.description(\"The root node of the project\")\n\t\t\t\t.type(new GraphQLTypeReference(NODE_TYPE_NAME))\n\t\t\t\t.argument(createLanguageTagArg(true))\n\t\t\t\t.argument(createNodeVersionArg())\n\t\t\t\t.dataFetcher(this::baseNodeFetcher));\n\n\t\treturn root.build();\n\t}", "public ASCompilationUnit newClass(String qualifiedClassName) {\n\t\treturn ASTBuilder.synthesizeClass(qualifiedClassName);\n\t}", "protected ASTNode[] buildASTs(String newContents, ICompilationUnit cu, boolean reportErrors) throws JavaModelException {\n return buildASTs(newContents, cu, reportErrors, false, false);\n }", "OutputDecl createOutputDecl();", "void createLocalClass()\n\t{\n\t\tfinal int localVar = 10;\n\t\t\n\t\t//this is to create local class\n\t\tclass LocalClass{\n\t\t\tpublic void print(){\n\t\t\t\tSystem.out.println(\"THis is local class with Id:\");\n\t\t\t\tSystem.out.println(\"THis is local class with num:\"+nums);\n\t\t\t\tSystem.out.println(\"THis is local class with num:\"+localVar); // localVar must be final. scope is different. the value might change inside local method.\n\t\t\t}\n\t\t}\n\t\t\n\t\tLocalClass l = new LocalClass();\n\t\tl.print();\n\t}", "public C2BoogieRegressionTestSuite() {\r\n\t\tsuper();\r\n\t\tmTimeout = DEFAULT_TIMEOUT_MILLIS;\r\n\t\tmRootFolder = ROOT_FOLDER;\r\n\t\tmFiletypesToConsider = new String[] { \".c\" };\r\n\t}", "private void parse() {\n try {\n SimpleNode rootNode = jmm.parseClass(sourcefile);\n assert rootNode.is(JJTPROGRAM);\n\n SimpleNode classNode = rootNode.jjtGetChild(0);\n assert classNode.is(JJTCLASSDECLARATION);\n\n data.classNode = classNode;\n } catch (FileNotFoundException e) {\n throw new CompilationException(e);\n } catch (ParseException e) {\n throw new CompilationException(\"Parsing Error: \" + e.getMessage(), e);\n }\n }", "private JavaCompiler.CompilationTask getCompilationTask(File file)\n\t{\n\t\tDiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>();\n JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();\n StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null);\n\n Iterable<? extends JavaFileObject> compilationUnit\n = fileManager.getJavaFileObjectsFromFiles(Arrays.asList(file));\n return compiler.getTask(null, fileManager, diagnostics, null, null, compilationUnit);\n\t}", "TR createTR();", "public void compile(Template t, TemplateModel model, XmlResult out) throws TemplateCompileException;", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbaseElementEClass = createEClass(BASE_ELEMENT);\n\t\tcreateEReference(baseElementEClass, BASE_ELEMENT__KEY_VALUE_MAPS);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__ID);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__NAME);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__DESCRIPTION);\n\n\t\tkeyValueMapEClass = createEClass(KEY_VALUE_MAP);\n\t\tcreateEAttribute(keyValueMapEClass, KEY_VALUE_MAP__KEY);\n\t\tcreateEReference(keyValueMapEClass, KEY_VALUE_MAP__VALUES);\n\n\t\tvalueEClass = createEClass(VALUE);\n\t\tcreateEAttribute(valueEClass, VALUE__TAG);\n\t\tcreateEAttribute(valueEClass, VALUE__VALUE);\n\n\t\t// Create enums\n\t\ttimeUnitEEnum = createEEnum(TIME_UNIT);\n\t}", "public ASTQuery subCreate(){\r\n\t\tASTQuery ast = create();\r\n\t\tast.setGlobalAST(this);\r\n\t\tast.setNSM(getNSM());\r\n\t\treturn ast;\r\n\t}", "public Document compileClass() throws ParserConfigurationException, DOMException, CloneNotSupportedException {\n\t\tElement ele = null;\n\t\tString token;\n\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = null;\n\t\tbuilder = factory.newDocumentBuilder();\n\t\tdocument = builder.newDocument();\n\n\t\t// Root level XML\n\t\troot = document.createElement(\"class\");\n\t\tdocument.appendChild(root);\n\n\t\t// First token is \"class\"\n\t\tjTokenizer.advance();\n\t\tele = createXMLnode(\"keyword\");\n\t\troot.appendChild(ele);\n\n\t\t// Second token is the class name\n\t\tjTokenizer.advance();\n\t\tclassName = jTokenizer.returnTokenVal();\n\t\tele = createXMLnode(\"identifier\");\n\t\troot.appendChild(ele);\n\n\t\t// Third token is '{'\n\t\tjTokenizer.advance();\n\t\tele = createXMLnode(\"symbol\");\n\t\troot.appendChild(ele);\n\n\t\t// Fourth token is the datatype of the class var declaration\n\t\tjTokenizer.advance();\n\t\tString tokenType;\n\t\ttoken = jTokenizer.returnTokenVal(\"keyword\");\n\n\t\tdo {\n\t\t\t// Declare the class variables\n\t\t\tif (token.matches(\"field|static\")) {\n\t\t\t\tcompileClassVarDec();\n\n\t\t\t}\n\t\t\t// Subroutine Declaration\n\t\t\tif (token.matches(\"constructor|function|method\")) {\n\t\t\t\tcompileSubroutine();\n\t\t\t}\n\t\t\tif (jTokenizer.hasNext()) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\ttoken = jTokenizer.returnTokenVal(tokenType);\n\t\t\t}\n\n\t\t} while (!token.equals(\"}\"));\n\n\t\t// Token \"}\"\n\t\tele = createXMLnode(\"symbol\");\n\t\troot.appendChild(ele);\n\n\t\twriter.close();\n\t\treturn document;\n\t}", "public static Test suite() {\n\treturn TestAll.makeTestSuite(CompilerInterface.NONE);\n }", "public void createPackageContents() {\n if (this.isCreated) {\n return;\n }\n this.isCreated = true;\n\n // Create classes and their features\n this.systemSpecifiedExecutionTimeEClass = this.createEClass(SYSTEM_SPECIFIED_EXECUTION_TIME);\n\n this.specifiedExecutionTimeEClass = this.createEClass(SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.specifiedExecutionTimeEClass,\n SPECIFIED_EXECUTION_TIME__SPECIFICATION_SPECIFIED_EXECUTION_TIME);\n\n this.componentSpecifiedExecutionTimeEClass = this.createEClass(COMPONENT_SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.componentSpecifiedExecutionTimeEClass,\n COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME);\n }", "public iCimpilir(iCimpilirTokenManager tm) {\n if (jj_initialized_once) {\n System.out.println(\"ERROR: Second call to constructor of static parser. \");\n System.out.println(\" You must either use ReInit() or set the JavaCC option STATIC to false\");\n System.out.println(\" during parser generation.\");\n throw new Error();\n }\n jj_initialized_once = true;\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 18; i++) {\n jj_la1[i] = -1;\n }\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttaskModelEClass = createEClass(TASK_MODEL);\n\t\tcreateEReference(taskModelEClass, TASK_MODEL__ROOT);\n\t\tcreateEReference(taskModelEClass, TASK_MODEL__TASKS);\n\t\tcreateEAttribute(taskModelEClass, TASK_MODEL__NAME);\n\n\t\ttaskEClass = createEClass(TASK);\n\t\tcreateEAttribute(taskEClass, TASK__ID);\n\t\tcreateEAttribute(taskEClass, TASK__NAME);\n\t\tcreateEReference(taskEClass, TASK__OPERATOR);\n\t\tcreateEReference(taskEClass, TASK__SUBTASKS);\n\t\tcreateEReference(taskEClass, TASK__PARENT);\n\t\tcreateEAttribute(taskEClass, TASK__MIN);\n\t\tcreateEAttribute(taskEClass, TASK__MAX);\n\t\tcreateEAttribute(taskEClass, TASK__ITERATIVE);\n\n\t\tuserTaskEClass = createEClass(USER_TASK);\n\n\t\tapplicationTaskEClass = createEClass(APPLICATION_TASK);\n\n\t\tinteractionTaskEClass = createEClass(INTERACTION_TASK);\n\n\t\tabstractionTaskEClass = createEClass(ABSTRACTION_TASK);\n\n\t\tnullTaskEClass = createEClass(NULL_TASK);\n\n\t\ttemporalOperatorEClass = createEClass(TEMPORAL_OPERATOR);\n\n\t\tchoiceOperatorEClass = createEClass(CHOICE_OPERATOR);\n\n\t\torderIndependenceOperatorEClass = createEClass(ORDER_INDEPENDENCE_OPERATOR);\n\n\t\tinterleavingOperatorEClass = createEClass(INTERLEAVING_OPERATOR);\n\n\t\tsynchronizationOperatorEClass = createEClass(SYNCHRONIZATION_OPERATOR);\n\n\t\tparallelOperatorEClass = createEClass(PARALLEL_OPERATOR);\n\n\t\tdisablingOperatorEClass = createEClass(DISABLING_OPERATOR);\n\n\t\tsequentialEnablingInfoOperatorEClass = createEClass(SEQUENTIAL_ENABLING_INFO_OPERATOR);\n\n\t\tsequentialEnablingOperatorEClass = createEClass(SEQUENTIAL_ENABLING_OPERATOR);\n\n\t\tsuspendResumeOperatorEClass = createEClass(SUSPEND_RESUME_OPERATOR);\n\t}", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n suite.addTest(FunctionalTests.suite());\n // functional tests\n suite.addTest(GUITests.suite());\n\n TestSetup wrapper = new TestSetup(suite) {\n protected void setUp() {\n Runnable r = new Runnable() {\n public void run() {\n com.topcoder.umltool.deploy.UMLToolDeploy.main(new String[0]);\n }\n };\n\n try {\n SwingUtilities.invokeAndWait(r);\n } catch (Exception e) {\n }\n }\n\n protected void tearDown() throws Exception {\n File generateCode = new File(TestHelper.getCodeGenBase() + \"/c\");\n if (generateCode.exists()) {\n //deleteFolder(generateCode);\n }\n generateCode = new File(TestHelper.getCodeGenBase() + \"/java\");\n if (generateCode.exists()) {\n //deleteFolder(generateCode);\n }\n }\n\n private void deleteFolder(File dir) {\n File filelist[] = dir.listFiles();\n int listlen = filelist.length;\n for (int i = 0; i < listlen; i++) {\n if (filelist[i].isDirectory()) {\n deleteFolder(filelist[i]);\n } else {\n filelist[i].delete();\n }\n }\n dir.delete();\n }\n };\n\n return wrapper;\n }", "public void run() throws Exception {\n\t\tJavaCompiler compiler = ToolProvider.getSystemJavaCompiler();\n\t\tStandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);\n\t\tPath tempFolder = Files.createTempDirectory(\"gwt-jackson-apt-tmp\", new FileAttribute[0]);\n\t\tfileManager.setLocation(StandardLocation.CLASS_OUTPUT, Arrays.asList(tempFolder.toFile()));\n\t\tfileManager.setLocation(StandardLocation.SOURCE_OUTPUT, Arrays.asList(tempFolder.toFile()));\n\t\tCompilationTask task = compiler.getTask(\n\t\t\t\tnew PrintWriter(System.out), \n\t\t\t\tfileManager, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\tfileManager.getJavaFileObjects(\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicTest.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicBaseInterface.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicBaseClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicChildClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicChildClass2.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SecondPolymorphicBaseClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SecondPolymorphicChildClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SimpleGenericBeanObject.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicGenericClass.java\")));\n\n\n\t\ttask.setProcessors(Arrays.asList(new ObjectMapperProcessor()));\n\t\ttask.call();\n\t}", "DT createDT();", "private JavaRuleContext buildTestJavaRuleContext() {\n Map<String, Object> ruleParameters = new HashMap<>();\n ruleParameters.put(SAMLCorrelationRule.ARG_ASSERTION_ATTRIBUTES,\n Collections.singletonMap(UUID.randomUUID().toString(), UUID.randomUUID()));\n return new JavaRuleContext(this.sailPointContext, ruleParameters);\n }", "@Test\n\tpublic void testUsingTempFolder1() throws IOException {\n\t\tFile createdFile= temp.newFile(\"mytestfile.html\");\n\t\t\n\t\t// construct temp(test) html file\n\t\tString content = \"<title>This is title</title>\";\n\t\t\n\t\tPrintStream ps = new PrintStream(new FileOutputStream(createdFile));\n\t\tps.println(content); \n\t\t// what I think it should be\n\t\tString res = \"This is title\"; \n\n\t\t// what actually it is\n\t\tString result = extractTitleModule.WebPageExtraction(createdFile);\n\t\tassertEquals(res,result); \n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tinstructionEClass = createEClass(INSTRUCTION);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n\t\tgoForwardEClass = createEClass(GO_FORWARD);\n\t\tcreateEAttribute(goForwardEClass, GO_FORWARD__CM);\n\t\tcreateEAttribute(goForwardEClass, GO_FORWARD__INFINITE);\n\n\t\tgoBackwardEClass = createEClass(GO_BACKWARD);\n\t\tcreateEAttribute(goBackwardEClass, GO_BACKWARD__CM);\n\t\tcreateEAttribute(goBackwardEClass, GO_BACKWARD__INFINITE);\n\n\t\tbeginEClass = createEClass(BEGIN);\n\n\t\trotateEClass = createEClass(ROTATE);\n\t\tcreateEAttribute(rotateEClass, ROTATE__DEGREES);\n\t\tcreateEAttribute(rotateEClass, ROTATE__RANDOM);\n\n\t\treleaseEClass = createEClass(RELEASE);\n\n\t\tactionEClass = createEClass(ACTION);\n\n\t\tblockEClass = createEClass(BLOCK);\n\n\t\tendEClass = createEClass(END);\n\n\t\tchoreographyEClass = createEClass(CHOREOGRAPHY);\n\t\tcreateEReference(choreographyEClass, CHOREOGRAPHY__INSTRUCTIONS);\n\t\tcreateEReference(choreographyEClass, CHOREOGRAPHY__EDGE_INSTRUCTIONS);\n\n\t\tedgeInstructionEClass = createEClass(EDGE_INSTRUCTION);\n\t\tcreateEReference(edgeInstructionEClass, EDGE_INSTRUCTION__SOURCE);\n\t\tcreateEReference(edgeInstructionEClass, EDGE_INSTRUCTION__TARGET);\n\n\t\tgrabEClass = createEClass(GRAB);\n\t}", "public ASCompilationUnit newInterface(String qualifiedInterfaceName) {\n\t\treturn ASTBuilder.synthesizeInterface(qualifiedInterfaceName);\n\t}", "private void createTemporaryTable(Session session, final Dialect dialect, final String tempTable) {\n\t\tsession.doWork(connection -> {\n\t\t\t// check if table exists\n if (!getConfiguration().isUsingPostgreSQL()) {\n try {\n Statement s = connection.createStatement();\n s.execute(\"select id from \" + tempTable + \" where id = 1\");\n\n s.close();\n // table already exists\n return;\n } catch (Exception ex) {\n // we expect this on the first time\n }\n }\n\n TemporaryTableDialect ttDialect = TemporaryTableDialect.getTempTableDialect(dialect);\n\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(ttDialect.getCreateTemporaryTableString());\n\t\t\tsb.append(' ').append(tempTable).append(\" (id \");\n\t\t\tsb.append(dialect.getTypeName(Types.BIGINT));\n\t\t\tsb.append(\" not null)\");\n\t\t\tsb.append(ttDialect.getCreateTemporaryTablePostfix());\n\n Statement s = connection.createStatement();\n s.execute(sb.toString());\n s.close();\n\t\t});\n\t}", "private UnitManager() {\r\n\t\tUM = new UnitMap(); // create an object\r\n\t}", "private QVCSAntTask initQVCSAntTask() throws InterruptedException {\n Thread.sleep(1000);\n QVCSAntTask qvcsAntTask = new QVCSAntTask();\n qvcsAntTask.setUserName(TestHelper.USER_NAME);\n qvcsAntTask.setPassword(TestHelper.PASSWORD);\n qvcsAntTask.setUserDirectory(System.getProperty(\"user.dir\"));\n qvcsAntTask.setProjectName(TestHelper.getTestProjectName());\n qvcsAntTask.setServerName(TestHelper.SERVER_NAME);\n qvcsAntTask.setAppendedPath(\"\");\n qvcsAntTask.setWorkfileLocation(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY));\n qvcsAntTask.setProject(new Project());\n qvcsAntTask.setRecurseFlag(false);\n qvcsAntTask.init();\n return qvcsAntTask;\n }", "private void generate_test_code()\n {\n int I;\n DataType[] ParamTypes = m_Problem.getParamTypes();\n DataType ReturnType = m_Problem.getReturnType();\n TestCase[] Cases = m_Problem.getTestCases();\n StringBuffer Code = new StringBuffer();\n\n Code.append(\"private:\\n\");\n\n // Generate the vector output function\n Code.append(\"\\ttemplate <typename T> string print_array(const vector<T> &V) { ostringstream os; os << \\\"{ \\\"; for (typename vector<T>::const_iterator iter = V.begin(); iter != V.end(); ++iter) os << \\'\\\\\\\"\\' << *iter << \\\"\\\\\\\",\\\"; os << \\\" }\\\"; return os.str(); }\\n\\n\");\n\n // Generate the verification function\n generate_verification_code(Code, ReturnType);\n\n // Generate the individual test cases\n Code.append(\"\\n\");\n\n /*\n * Generate the test wrapper function that can call\n * either all or individual test cases. (-1 for all)\n */\n Code.append(\"public:\\n\");\n Code.append(\"\\tvoid run_test(int Case) { \\n\");\n Code.append(\"\\t\\tint n = 0;\\n\\n\");\n for (I = 0; I < Cases.length; ++I)\n generate_test_case(I, Code, ParamTypes, ReturnType, Cases[I]);\n // next\n Code.append(\"\\t}\\n\");\n\n // Insert the cut tags\n Code.insert(0, k_BEGINCUT);\n Code.append(k_ENDCUT);\n\n m_Tags.put(k_TESTCODE, Code.toString());\n }", "TopLevel createTopLevel();", "@Override public debug_compile_units_iterator clone() { return new debug_compile_units_iterator(this); }", "public final EObject ruleUnitConstructionOperator() throws RecognitionException {\n EObject current = null;\n\n EObject lv_unit_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5992:6: ( ( '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')' ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5993:1: ( '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5993:1: ( '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5993:3: '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')'\n {\n match(input,55,FOLLOW_55_in_ruleUnitConstructionOperator10420); \n\n createLeafNode(grammarAccess.getUnitConstructionOperatorAccess().getDollarSignKeyword_0(), null); \n \n match(input,25,FOLLOW_25_in_ruleUnitConstructionOperator10430); \n\n createLeafNode(grammarAccess.getUnitConstructionOperatorAccess().getLeftParenthesisKeyword_1(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6001:1: ( (lv_unit_2_0= ruleUnitExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6002:1: (lv_unit_2_0= ruleUnitExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6002:1: (lv_unit_2_0= ruleUnitExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6003:3: lv_unit_2_0= ruleUnitExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnitConstructionOperatorAccess().getUnitUnitExpressionParserRuleCall_2_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnitExpression_in_ruleUnitConstructionOperator10451);\n lv_unit_2_0=ruleUnitExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitConstructionOperatorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"unit\",\n \t \t\tlv_unit_2_0, \n \t \t\t\"UnitExpression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n match(input,26,FOLLOW_26_in_ruleUnitConstructionOperator10461); \n\n createLeafNode(grammarAccess.getUnitConstructionOperatorAccess().getRightParenthesisKeyword_3(), null); \n \n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public TemplateHelper() {\r\t\tsuper();\r\t}", "@Override\n public CompilationSource createCompilationSource(String name) {\n File sourceFile = getSourceFile(name);\n if (sourceFile == null || !sourceFile.exists()) {\n return null;\n }\n\n return new FileSource(name, sourceFile);\n }" ]
[ "0.5729563", "0.5653754", "0.557655", "0.54829246", "0.5470887", "0.54441744", "0.53619164", "0.5293256", "0.521401", "0.51691246", "0.5162859", "0.5085274", "0.49798346", "0.49582064", "0.49536806", "0.4951178", "0.49313906", "0.4878823", "0.48777795", "0.48378262", "0.4818374", "0.47926798", "0.4772015", "0.47657245", "0.47520354", "0.47137794", "0.47083408", "0.4691471", "0.46882018", "0.4676944", "0.46647042", "0.4652104", "0.4649315", "0.4643161", "0.4623811", "0.46225542", "0.4612607", "0.46080774", "0.4608005", "0.45995337", "0.45936203", "0.4571521", "0.45644456", "0.45510635", "0.45348522", "0.45342243", "0.45223242", "0.45182282", "0.45090264", "0.45062095", "0.45034766", "0.44919747", "0.4484235", "0.4481468", "0.4478986", "0.4476703", "0.4474727", "0.4470341", "0.44575825", "0.44476327", "0.4438956", "0.44386405", "0.44376785", "0.4436436", "0.44298652", "0.44267818", "0.4424002", "0.4413571", "0.4413307", "0.44112426", "0.44110164", "0.44053283", "0.44051135", "0.4399438", "0.43921033", "0.43913415", "0.43907696", "0.43902814", "0.4388653", "0.4383181", "0.43772224", "0.4374353", "0.43715546", "0.43626112", "0.43606856", "0.43605897", "0.4358592", "0.43567073", "0.43558708", "0.43557146", "0.4351214", "0.4345844", "0.43363118", "0.4334435", "0.4334022", "0.43311462", "0.432845", "0.4322336", "0.43128437", "0.43065152" ]
0.63715863
0
Set contents of the compilation unit to the translated jsp text.
public static void setContentsToCU(ICompilationUnit unit, String value){ if (unit == null) return; synchronized (unit) { IBuffer buffer; try { buffer = unit.getBuffer(); } catch (JavaModelException e) { e.printStackTrace(); buffer = null; } if (buffer != null) buffer.setContents(value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setTranslation(String translation) {\n }", "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}", "public void setContent(String content)\n/* */ {\n/* 1340 */ this.content = content;\n/* */ }", "public void setText (String page) {\r\n setText (page.getBytes ());\r\n }", "public void run()\n {\n mkdStack = translateMacroStack(mkdStack);\n //translate mkd to html\n translateMkdToHtml();\n //send html string to global variable\n Compiler.htmlString = htmlStackToString();\n }", "public static void set_SourceContent(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSourceContentCmd, v);\n UmlCom.check();\n \n _src_content = v;\n \n }", "@Override\n public void setText(String englishText) {\n\n }", "public void setText(String text) {\r\n this.text = text;\r\n }", "public void setText(String text){\n String _text = dcode.enCode(new String[] { encodeType, title, passWd, text });\n if(statusKey == ALRIGHT){\n setFileText(/*ccode == null ? */_text/* : ccode.enCrype(_text)*/);\n } else{\n System.err.println(\"You can't writes this file.\");\n System.err.println(\"This file contains unknown encode or is encrypted.\");\n }\n }", "public void setText(String text) {\r\n\t\tthis.text= text;\r\n\t}", "public void setText(String s) {\n text = s;\n }", "public static void setSourceText (ITextUnit textUnit,\r\n \t\tString text)\r\n \t{\r\n \t\t// fail fast if ( textUnit == null ) return;\r\n \t\tTextFragment source = textUnit.getSource().getFirstContent();\r\n \t\t// fail fast if ( source == null ) return;\r\n \t\tsource.setCodedText(text);\r\n \t}", "@Override\r\n\t\tpublic void setTextContent(String textContent) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setText(String text)\n {\n this.text = text;\n }", "private void setText(Text text) {\n \t\tthis.text = text;\n \t}", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\r\n\t\tthis.text = text;\r\n\t}", "public void setTextDivConsulta(String text) { doSetText(this.$element_DivConsulta, text); }", "public void setTextDivConsulta(String text) { doSetText(this.$element_DivConsulta, text); }", "public void renderText(TextRenderInfo renderInfo) {\n \tsuper.renderText(renderInfo);\n\t\tpage.setText(getResultantText());\n \twriteText();\n }", "private void setText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n text_ = value;\n }", "public void setText(String t) {\n\t\t\ttext.set(t);\n\t\t}", "public native Template set(String html, boolean compile) /*-{\r\n\t\tvar template = [email protected]::getJsObj()();\r\n\t\ttemplate.set(html, compile);\r\n\t\treturn this;\r\n\t}-*/;", "public void setText(String text) {\n\t\tthis.text = text;\n\t}", "public void setText(String text) {\n\t\tthis.text = text;\n\t}", "public void setText(String text) {\n\t\tthis.text = text;\n\t}", "void setContent(java.lang.String content);", "public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}", "public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}", "private void showUI(HttpServletRequest req, HttpServletResponse resp, String pageName) throws ServletException, IOException{\n\t\tGetPageByName pagecontroller = new GetPageByName();\n\t\tPage page = pagecontroller.getPageByName(pageName,currentProject.getProjectID());\n\t\treq.setAttribute(\"Page\", page);\n\t\t/*\n\t\t * Translation Code???\n\t\t * \n\t\t */\n\t\t\n\t\t// Display UI\n\t\treq.getRequestDispatcher(\"/_view/pages.jsp\").forward(req,resp);\t\t\t\n\t}", "public void setLanguageEnglishButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_languageEnglishButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setLanguageEnglishButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void setText(String text) {\n\t\t\n\t}", "public void setTextEn(String textEn) {\n this.textEn = textEn;\n }", "@Override\r\n public void setText(String string) {\r\n super.setText(\"<HTML><U>Ayuda</U></HTML>\");\r\n \r\n }", "public void setText(String text) {\n\t\tthis.text = text;\n\t\thandleConfig(\"text\", text);\n\t}", "public void setText(String text) {\r\n\r\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 }", "void setCompiled(CompilationUnitDeclaration cud,\n Map<String, String> binaryTypeToSourceFileMap) {\n assert (state == State.FRESH || state == State.ERROR);\n this.cud = cud;\n fileNameRefs = computeFileNameRefs(cud, binaryTypeToSourceFileMap);\n state = State.COMPILED;\n }", "public void setReportText(java.lang.String param){\n \n this.localReportText=param;\n \n\n }", "public void setContent(String newValue);", "private void setJstl(String var, Object val, int scope) {\n pageContext.setAttribute(var, val, scope);\n }", "public void setTexto(String t)\r\n {\r\n texto = t;\r\n }", "private void dispatchJSP(WebPageDescriptor p_thePageDescriptor,\n HttpServletRequest p_theRequest, HttpServletResponse p_theResponse,\n ServletContext p_context)\n throws ServletException,\n IOException,\n EnvoyServletException\n {\n HttpSession session = p_theRequest.getSession();\n\n SessionManager sessionMgr = (SessionManager)session.getAttribute(\n WebAppConstants.SESSION_MANAGER);\n EditorState state = (EditorState)sessionMgr.getAttribute(\n WebAppConstants.EDITORSTATE);\n\n long tuId = state.getTuId();\n long tuvId = state.getTuvId();\n long subId = state.getSubId();\n long sourceLocaleId = state.getSourceLocale().getId();\n long targetLocaleId = state.getTargetLocale().getId();\n\n // this file has to be deleted\n SegmentView segmentView = new SegmentView();\n\n sessionMgr.setAttribute(WebAppConstants.SEGMENTVIEW, segmentView); \n }", "public abstract void setTemplDesc(String templDesc);", "public void setTranslate (String File,String Close, String German, String English, String Settings, String Language)\n\t{\n\t\t fileMenu.setText(File);\n\t\t settingsMenu.setText(Settings);\n\t\t menuItem.setText(Close);\n\t\t menuItemEnglish.setText(English);\n\t\t menuItemGerman.setText(German);\n\t\t settingsSubMenu.setText(Language);\n\t\t \n\t}", "private void setWebContent() {\r\n\t\tsetDataContent();\r\n\t\twebContent.addComponent(new Label(\"Concesionario\"));\r\n\t\twebContent.addComponent(dataContent);\r\n\t}", "public void setLanguageGermanButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_languageGermanButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_languageGermanButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_languageGermanButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setLanguageGermanButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "void localizationChaneged();", "public void setCompilationUnit(Document cu) {\r\n \t\t_doc = cu;\r\n \t}", "public static void setTargetText (ITextUnit textUnit,\r\n \t\tLocaleId locId,\r\n \t\tString text)\r\n \t{\r\n \t\t// fail fast if ( textUnit == null ) return;\r\n \t\t// fail fast if ( Util.isNullOrEmpty(locId) ) return;\r\n \t\tTextFragment target = textUnit.getTarget(locId).getFirstContent();\r\n \t\t// fail fast if ( target == null ) return;\r\n \t\ttarget.setCodedText(text);\r\n \t}", "public void setText(String text) {\n mText = text;\n }", "protected void content(String text) {\n // small hack due to DOXIA-314\n String txt = escapeHTML(text);\n txt = StringUtils.replace(txt, \"&amp;#\", \"&#\");\n write(txt);\n }", "public void setText(String text) {\n this.textData = text;\n }", "public void setText( String text );", "public void setText(String text);", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "void setText(String text);", "public void setText(java.lang.String text)\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(TEXT$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEXT$18);\n }\n target.setStringValue(text);\n }\n }", "public void setText(String t) {\n\t\ttext = t;\n\t\tb.setText(t);\n\t}", "private void setContent(String content) {\n this.content = content;\n }", "public void setTextValorEd(String text) { doSetText(this.$element_ValorEd, text); }", "public clTranslation(String resource) {\n this.resource = resource;\n locale = Locale.getDefault();\n loadResource();\n }", "public void setText(String s) throws UnsupportedEncodingException {\n\t\tthis.text = s.getBytes(\"Cp437\");\n\t}", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "@Override\n protected void service(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n HttpSession session = request.getSession();\n String fname = request.getParameter(\"languagename\"); \n FileReader fr = new FileReader(\"D:\\\\my project codehub\\\\abc\\\\web\\\\data_languageebook.txt\");\n BufferedReader br = new BufferedReader(fr);\n FileWriter fw = new FileWriter(\"D:\\\\my project codehub\\\\abc\\\\web\\\\E_\"+fname+\".jsp\");\n String s;\n while((s = br.readLine())!= null)\n {\n fw.write(s);\n fw.flush();\n }\n br.close();\n fw.close();\n RequestDispatcher rs = request.getRequestDispatcher(\"Copy_Content_For_User_Language?languagename=\"+fname);\n rs.forward(request, response);\n }", "public void setText(java.lang.String text)\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(TEXT$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEXT$0);\n }\n target.setStringValue(text);\n }\n }", "public void setTextLabelNombre(String text) { doSetText(this.$element_LabelNombre, text); }", "public void setTextLabelNombre(String text) { doSetText(this.$element_LabelNombre, text); }", "protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }", "public void text( String text )\n {\n markup( escape( text ) );\n }", "public void setInfoText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_info_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_info_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_info_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setInfoText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "void setText (String text);", "private void changeLanguage(Language lang) {\n this.resources = ResourceBundle.getBundle(UIController.RESOURCE_PATH + lang);\n uiController.setLanguage(lang);\n fileLoadButton.setText(resources.getString(\"LoadSimulationXML\"));\n uiController.setTitle(resources.getString(\"Launch\"));\n }", "@Override\n\tpublic void setComponentText(String text) {\n\t\t\n\t}", "public void setContents(String contents) throws VlException\n {\n setContents(contents, getCharSet());\n return;\n }", "public abstract void setTemplCd(String templCd);", "public void setText(String text) {\n this.text.setText(text);\n }", "public void setText(java.lang.String newText) {\n \t\ttext = newText;\n \t}", "public final native void setContent(String content) /*-{\n this.setContent(content);\n }-*/;", "public Content(String text) {\n setContent(text);\n }", "private void setLanguage() {\n ResourceBundle labels = ResourceBundle.getBundle\n (\"contactmanager.Contactmanager\", Locale.getDefault()); \n this.setTitle(labels.getString(\"title\"));\n }", "public void setText ( String text ) {\r\n\t\tgetStateHelper().put(PropertyKeys.text, text);\r\n\t\thandleAttribute(\"text\", text);\r\n\t}", "public void setValue(String value) {\n\t\tthis.text = value;\n\t}", "public native Template set(String html) /*-{\r\n\t\tvar template = [email protected]::getJsObj()();\r\n\t\ttemplate.set(html);\r\n\t\treturn this;\r\n\t}-*/;", "static private void setLanguage(String strL) {\r\n\r\n\t\tstrLanguage = strL;\r\n\r\n\t\t// need to reload it again!\r\n\t\tloadBundle();\r\n\t}", "public void language(String system) {\n String language=\"c语言\";\n this.output.output(system, language);\n //System.out.println(\"C语言编程!\\n\");\n }", "public void setText(String text, String mediaType) {\n\t\tgetRoot().setText(text.getBytes(), mediaType);\n\t}", "public void setTextDivResultados(String text) { doSetText(this.$element_DivResultados, text); }", "@Override\n protected void translateFields(View view, String languageString) {\n Context context = view.getContext();\n ((TextView) view.findViewById(R.id.first_page_text_title))\n .setText(LanguageManager.Intro.getTextTitle(context, languageString));\n ((TextView) view.findViewById(R.id.first_page_text))\n .setText(LanguageManager.Intro.getText(context, languageString));\n ((Button) view.findViewById(R.id.first_page_test_button))\n .setText(LanguageManager.Intro.getButtonText(context, languageString));\n }", "public void setTextCodigoPoaEd(String text) { doSetText(this.$element_CodigoPoaEd, text); }", "String translate(String text, String fromLanguage, String toLanguage) throws TranslationException;", "public static void localize(String text) {\n }" ]
[ "0.5839208", "0.5556881", "0.5352131", "0.53085953", "0.5296291", "0.52887326", "0.526505", "0.5193927", "0.51713973", "0.51622146", "0.5153482", "0.514664", "0.51398134", "0.5137426", "0.51339924", "0.5132488", "0.5132488", "0.5132488", "0.5132488", "0.5132488", "0.5132488", "0.5132488", "0.51090455", "0.5085152", "0.5085152", "0.5082374", "0.5059055", "0.5056373", "0.50560117", "0.50549656", "0.50549656", "0.50549656", "0.50543606", "0.504922", "0.504922", "0.50452894", "0.5025206", "0.50247943", "0.50192523", "0.501268", "0.5011035", "0.5008666", "0.5006806", "0.49911544", "0.49907252", "0.49774206", "0.4972073", "0.49671885", "0.49600947", "0.49486965", "0.49324408", "0.49317947", "0.4925582", "0.4925151", "0.49237266", "0.4915339", "0.49135756", "0.491166", "0.49011946", "0.4891945", "0.4881576", "0.48811564", "0.48811564", "0.4874882", "0.48747692", "0.48727873", "0.4862515", "0.48556545", "0.4853689", "0.48525798", "0.48437208", "0.48437208", "0.48398957", "0.48359087", "0.48343322", "0.48343322", "0.48342705", "0.4831235", "0.48310715", "0.48282862", "0.48229983", "0.4820986", "0.48184356", "0.4807823", "0.48075014", "0.47948873", "0.47843078", "0.47828513", "0.47802258", "0.4775348", "0.4767603", "0.47650707", "0.4762071", "0.4753168", "0.4752768", "0.47498113", "0.474504", "0.47434404", "0.47417566", "0.4739975" ]
0.5757378
1
Open the type select dialog.
public static String openClassSelectDialog(IJavaProject project, Control parent) { try { Shell shell = parent.getShell(); SelectionDialog dialog = JavaUI.createTypeDialog( shell,new ProgressMonitorDialog(shell), SearchEngine.createJavaSearchScope(new IJavaElement[]{project}), IJavaElementSearchConstants.CONSIDER_CLASSES,false); if(dialog.open()==SelectionDialog.OK){ Object[] result = dialog.getResult(); return ((IType)result[0]).getFullyQualifiedName(); } } catch(Exception ex){ HTMLPlugin.logException(ex); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTypeDialog(Context context) {\r\n\t\ttypeDialog = new DialogBase(context);\r\n\t\ttypeDialog.setContentView(R.layout.type);\r\n\t\ttypeDialog.setHeader(\"Channels\");\r\n\t\tfinal TextView txtVideos = (TextView) typeDialog\r\n\t\t\t\t.findViewById(R.id.tvVideos);\r\n\t\tfinal TextView txtChannels = (TextView) typeDialog\r\n\t\t\t\t.findViewById(R.id.tvChannels);\r\n\t\ttxtChannels.setVisibility(View.GONE);\r\n\t\ttxtVideos.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\ttypeDialog.dismiss();\r\n\t\t\t\tIntent i = new Intent(getApplicationContext(), MyVideosTabletActivity.class);\r\n\t\t\t\ti.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public boolean showDialog() {\r\n if (this.cmbTypes.getItemCount() > 0) {\r\n this.cmbTypes.setSelectedIndex(0);\r\n }\r\n this.returnValue = false;\r\n this.setVisible(true);\r\n return this.returnValue;\r\n }", "public AbstractPokemon.Type selectType()\n {\n JOptionPane typeSelector = new JOptionPane();\n Object message = \"Select which Pokemon this trainer is willing to capture:\";\n Object[] options = {AbstractPokemon.Type.FIRE_TYPE, AbstractPokemon.Type.WATER_TYPE, AbstractPokemon.Type.GRASS_TYPE, AbstractPokemon.Type.ANY_TYPE};\n int type = typeSelector.showOptionDialog(null, message, \"Selection\",\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, \n options[3]);\n AbstractPokemon.Type faveType;\n switch(type)\n {\n case 0: faveType = AbstractPokemon.Type.FIRE_TYPE; break;\n case 1: faveType = AbstractPokemon.Type.WATER_TYPE; break;\n case 2: faveType = AbstractPokemon.Type.GRASS_TYPE; break;\n case 3: faveType = AbstractPokemon.Type.ANY_TYPE; break;\n default: faveType = AbstractPokemon.Type.ANY_TYPE; break;\n }\n return faveType;\n }", "private void selectType(TypeInfo type) {\n if (type == null || !type.getWidget().getSelection()) {\n mInternalTypeUpdate = true;\n mCurrentTypeInfo = type;\n for (TypeInfo type2 : sTypes) {\n type2.getWidget().setSelection(type2 == type);\n }\n updateRootCombo(type);\n mInternalTypeUpdate = false;\n }\n }", "@FXML\n void selectType() {\n \t//hide all errors\n \thideErrors();\n \t//get countries from /type/metadata.txt\n \t//Reset range string\n T3_startYear_ComboBox.setValue(\"\");\n T3_endYear_ComboBox.setValue(\"\");\n //update country list\n String type = T3_type_ComboBox.getValue(); // getting type\n countries.clear();\n for (String country: DatasetHandler.getCountries(type)){\n countries.add(country);\n }\n T3_country_ComboBox.setValue(\"\");\n //clearing the StartYear and EndYear values and lists\n }", "private void openFileChooser(FileType type) {\r\n\t\ttry {\r\n\t\t\tJFileChooser fc = new JFileChooser(\"C:\\\\\");\r\n\t\t\tint choice = fc.showDialog(this.view, \"Add File\");\r\n\t\t\tif(choice == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\tFileModel model = new FileModel(fc.getSelectedFile(), type);\r\n\t\t\t\tif(Validation.isModelValid(model)) {\r\n\t\t\t\t\tFileData.saveFileModel(model);\r\n\t\t\t\t\tthis.updateColumnSelections(type);\r\n\t\t\t\t\tthis.setButtonEnabled(type);\r\n\t\t\t\t\tthis.loadFileNames();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void onOptionClick(View v){\r\n\t\tif (v.getId() == R.id.tvChannels) {\r\n\t\t\tif (typeDialog != null)\r\n\t\t\t\ttypeDialog.show();\r\n\t\t\telse {\r\n\t\t\t\tcreateTypeDialog(MyChannelsTabletActivity.this);\r\n\t\t\t\tif (typeDialog != null)\r\n\t\t\t\t\ttypeDialog.show();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void showMapTypeSelectorDialog() {\n final String fDialogTitle = getActivity().getString(R.string.select_map);\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(fDialogTitle);\n\n // Find the current map type to pre-check the item representing the current state.\n int checkItem = map.getMapType() - 1;\n\n // Add an OnClickListener to the dialog, so that the selection will be handled.\n builder.setSingleChoiceItems(\n MAP_TYPE_ITEMS,\n checkItem,\n new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int item) {\n // Locally create a finalised object.\n Log.d(\"DIALOG\", String.valueOf(item));\n // Perform an action depending on which item was selected.\n switch (item) {\n case 0:\n map.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n break;\n case 1:\n map.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n break;\n case 2:\n map.setMapType(GoogleMap.MAP_TYPE_TERRAIN);\n break;\n case 3:\n map.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n break;\n default:\n break;\n }\n dialog.dismiss();\n }\n }\n );\n\n // Build the dialog and show it.\n AlertDialog fMapTypeDialog = builder.create();\n fMapTypeDialog.setCanceledOnTouchOutside(true);\n fMapTypeDialog.show();\n }", "@Override\r\n\tpublic List<Type> selectType() {\n\t\treturn gd.selectType();\r\n\t}", "@Override\r\n\tpublic void setSelectedType(int paramInt) {\n\r\n\t}", "public void setType(int type) {\n \t\tbrowserType = type;\n \t\tif (type == FILE_BROWSER) {\n \t\t\tdialogLabel = Messages.RemoteResourceBrowser_fileLabel;\n \t\t\tsetTitle(Messages.RemoteResourceBrowser_fileTitle);\n \t\t} else if (type == DIRECTORY_BROWSER) {\n \t\t\tdialogLabel = Messages.RemoteResourceBrowser_directoryLabel;\n \t\t\tsetTitle(Messages.RemoteResourceBrowser_directoryTitle);\n \t\t} else {\n \t\t\tdialogLabel = Messages.RemoteResourceBrowser_resourceLabel;\n \t\t\tsetTitle(Messages.RemoteResourceBrowser_resourceTitle);\n \t\t}\n \t}", "public void openFileDialog() {\n\tswitch(buttonAction) {\n\t case SELECT_FILES:\n openFileDialog(fileUpload, true);\n break;\n\t case SELECT_FILE:\n default:\n openFileDialog(fileUpload, false);\n break;\n\t}\n }", "private void showOpenFileDialog() {\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"*/*\");\n // We accept PDF files and images (for image documents).\n intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[] {\"application/pdf\", \"image/*\"});\n\n // Set of the intent for result, so we can retrieve the Uri of the selected document.\n startActivityForResult(intent, REQUEST_OPEN_DOCUMENT);\n }", "public void setTypesView(JSONObject obj){\n try {\n JSONArray arr = obj.getJSONArray(\"types\");\n String[] arrTypes=new String[arr.length()];\n for(int i=0;i<arr.length();i++){\n arrTypes[i]=arr.getJSONObject(i).getString(\"doctype\");\n }\n ArrayAdapter arrayAdapter=new ArrayAdapter(this,R.layout.select_dialog_item_material,arrTypes);\n autoType.setAdapter(arrayAdapter);\n }catch (JSONException ex){\n ex.printStackTrace();\n }\n }", "public ItemType showSelectionDialog(String title)\n\t{\n\t\treturn super.showSelectionDialog(title, items);\n\t}", "public ItemType showSelectionDialog(String title)\n\t{\n\t\treturn super.showSelectionDialog(title, items);\n\t}", "@And(\"^I go to \\\"([^\\\"]*)\\\" type and select \\\"([^\\\"]*)\\\"$\") //Selecting Type & sub-Type in Create form\r\n\tpublic void selectFormType(String type,String subtype) {\r\n\t\r\n\tenduser.selectFormType(type,subtype);\r\n\t}", "private File openFileChooser(String filetype) throws IOException {\n JFileChooser chooser = new JFileChooser(projectController.getProjectInfo().getPdf());\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\n filetype.toUpperCase(), filetype.toLowerCase());\n chooser.setFileFilter(filter);\n int returnVal = chooser.showOpenDialog(null);\n File output = null;\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n output = chooser.getSelectedFile();\n }\n\n if (output == null) {\n throw new IOException(\"user aborted pdf selection process\");\n }\n\n return output;\n }", "public SelecioneTipoImportacao() {\n initComponents();\n }", "public void initTabletTypeDialog(Activity a) {\n TabletDialog mTabletDialog = new TabletDialog(a);\n mTabletDialog.show();\n }", "public SelectStereotypeDialog(Shell parentShell, Point point, NotifyElement pageParent, String model)\n {\n super(parentShell, point, \"Stereotype Selection\"); //$NON-NLS-1$\n if (pageParent instanceof ImportRequirementWizardPageSelectDocument)\n {\n wizard = (ImportRequirementWizardPageSelectDocument) pageParent;\n }\n requirementInheritance = getAllClasses(model);\n }", "public void setSelectMethod(Selection s){\n selectType = s;\n }", "public SelectType (int _selectType) {\n selectType = _selectType;\n }", "public void whatTypeOfPastaClicked(View view) {\n\n Intent child = new Intent(this, SelectPastaType.class);\n child.putExtra(\"selectedType\", selectedType);\n\n startActivityForResult(child, REQ_CODE_PASTA_TYPE);\n\n }", "private void showSelectAccountDialog(final NetworkEnum networkType, final MainPanel panel) {\n\n if (panel == null || panel.getActivity() == null) {\n // very weired situation; try to avoid crash.\n return;\n }\n\n final Dialog dialog = new Dialog(panel.getActivity(), R.style.Action_Dialog);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n View dialogView = View.inflate(App.sInstance.getApplicationContext(), R.layout.network_type_chooser, null);\n ((TextView) dialogView.findViewById(R.id.network_dialog_title)).setText(App.sInstance.getString(R.string.action_select_account));\n\n final ListView networks = (ListView) dialogView.findViewById(R.id.network_types);\n\n NetworkApi api = App.sInstance.getNetworkApi(networkType);\n\n final BaseAdapter adapter = new NetworkAccountChooserAdapter(api, new NetworkAccountChooserAdapter.OnDeleteItemListener() {\n @Override\n public void onAccountDelete(NetworkAccount account) {\n NetworkAccountDbAdapter.delete(account.getId());\n ((NetworkAccountChooserAdapter) networks.getAdapter()).dataSetChanged();\n }\n });\n\n networks.setAdapter(adapter);\n\n dialogView.findViewById(R.id.cancel).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n\n networks.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n openNetworkAccount((NetworkAccount) view.getTag(), null, panel);\n\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n }\n });\n\n dialog.setContentView(dialogView);\n dialog.show();\n\n adjustDialogSize(dialog, panel);\n }", "public SelectionDialog(HarmonyModel harmonyModel, Integer mode)\r\n\t{\r\n\t\tsuper((mode==SELECT ? \"Select\" : \"Remove\") + \" Links\");\r\n\t\tthis.harmonyModel = harmonyModel;\r\n\t\tthis.mode = mode;\r\n\t\t\r\n\t\t// Initialize the type filter\r\n\t\ttypeFilter = new OptionPane(\"Type\",new String[]{\"All\",\"User\",\"System\"});\r\n\t\ttypeFilter.setBorder(new EmptyBorder(0,20,0,0));\r\n\t\ttypeFilter.setSelectedButton(\"All\");\r\n\t\t\r\n\t\t// Initialize the focus filter\r\n\t\tfocusFilter = new OptionPane(\"Focus\",new String[]{\"All\",\"Focused\",\"Unfocused\"});\r\n\t\tfocusFilter.setBorder(new EmptyBorder(0,13,0,0));\r\n\t\tfocusFilter.setSelectedButton(mode==SELECT ? \"Focused\" : \"All\");\r\n\t\tfocusFilter.setEnabled(mode==DELETE);\r\n\r\n\t\t// Initialize the visibility filter\r\n\t\tvisibilityFilter = new OptionPane(\"Visibility\",new String[]{\"All\",\"Visible\",\"Hidden\"});\t\t\r\n\t\tvisibilityFilter.setSelectedButton(mode==SELECT ? \"Visible\" : \"All\");\r\n\t\tvisibilityFilter.setEnabled(mode==DELETE);\r\n\t\t\r\n\t\t// Create the info pane\r\n\t\tJPanel infoPane = new JPanel();\r\n\t\tinfoPane.setBorder(new CompoundBorder(new EmptyBorder(5,5,0,5),new CompoundBorder(new LineBorder(Color.gray),new EmptyBorder(5,5,5,5))));\r\n\t\tinfoPane.setLayout(new GridLayout(3,1));\r\n\t\tinfoPane.add(typeFilter);\r\n\t\tinfoPane.add(focusFilter);\r\n\t\tinfoPane.add(visibilityFilter);\r\n\t\t\r\n\t\t// Generate the main dialog pane\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t\tpane.setLayout(new BorderLayout());\r\n\t\tpane.add(infoPane,BorderLayout.CENTER);\r\n\t\tpane.add(new ButtonPane(),BorderLayout.SOUTH);\r\n\t\t\r\n\t\t// Initialize the dialog parameters\r\n\t\tsetContentPane(pane);\r\n\t\tsetSize(200,250);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}", "public void onClick(View v) {\n\n\t\t\tDialogFragment newFragment = new ChooseTransactionTypeDialogFragment();\n\t\t\tnewFragment.show(getSupportFragmentManager(), \"chooseTransactionType\");\n\n\t\t}", "public void selectModelItem(final String type, final String name){\n\t\tactivate();\n\t\tDisplay.syncExec(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n DefaultCTabItem tabItem = new DefaultCTabItem(1);\n\t\t\t\ttabItem.activate();\n\t\t\t\tGraphicalViewer viewer = ((IEditorPart) tabItem.getSWTWidget().getData()).getAdapter(GraphicalViewer.class);\n\t\t\t\tviewer.select(ViewerHandler.getInstance().getEditParts(viewer, new ModelEditorItemMatcher(type, name)).get(0));\n\t\t\t}\n\t\t});\n\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "private void startFileSelection() {\n final Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT);\n chooseFile.setType(getString(R.string.file_type));\n startActivityForResult(chooseFile, PICK_FILE_RESULT_CODE);\n }", "public void openClassPicker(View v) {\n // Attach data to fragment\n Bundle bundle = new Bundle();\n bundle.putStringArrayList(FULL_CLASS_LIST_KEY, mFullClassList);\n mClassPickerFragment.setArguments(bundle);\n // Show the Class Picker DialogFragment.\n mClassPickerFragment.show(mFragmentManager, getString(R.string.add_classes));\n }", "private void selectByType(boolean type) {\n if (type) {\n textBuffer.setDragStart();\n } else {\n textBuffer.setDragEnd();\n }\n }", "public String getSelectedDocumentType() {\n\t\treturn (String) combBoxDocumentTypes.getSelectedItem();\n\t}", "public void initChoice() {\n\t\t\t\t\n\t\tChoiceDialog<String> dialog = new ChoiceDialog<>(DB_MYSQL);\n\t\tdialog.setTitle(\"Base de datos\");\n\t\tdialog.setContentText(\"Seleccione una base de datos con la que trabajar\");\n\t\tdialog.getItems().addAll(DB_MYSQL, DB_SQL, DB_ACCESS);\n\t\n\t\tOptional<String> dbType = dialog.showAndWait();\n\t\t\n\t\tif( dbType.isPresent() ) {\t\n\t\t\t// Ajustamos nuestro modelo\n\t\t\tsetBd(dbType.get());\n\t\t\t\n\t\t} else {\n\t\t\tPlatform.exit(); // Entonces hemos acabado\n\t\t}\n\t}", "@And(\"^I Select \\\"([^\\\"]*)\\\" for the drop down Service Type$\")\r\n\tpublic void i_Select_for_the_drop_down_Service_Type(String service_type) throws Throwable {\n\t\tenduser.i_Select_for_the_drop_down_Service_Type_us(service_type);\r\n\t}", "@Test\n\tpublic void testStereotypeOpenOn() {\n\t\tnew DefaultStyledText().selectText(\"s:Stereotype\");\n\t\tKeyboardFactory.getKeyboard().invokeKeyCombination(SWT.F3);\n\t\tnew DefaultEditor(\"Stereotype.class\");\n\n\t\t/* test opened object */\n\t\tassertExpectedOpenedClass(\"javax.enterprise.inject.Stereotype\");\n\n\t}", "private void openCategorySelection() {\n CategorySelectionDialogFragment categorySelectionDialogFragment = CategorySelectionDialogFragment\n .newInstance(categories);\n categorySelectionDialogFragment.show(getChildFragmentManager(), \"CategorySelectionDialogFragment\");\n }", "public abstract void setType();", "private void showTypeSelectionDialog() {\n // Initialize an alert dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"\");\n // Set popup content view\n LayoutInflater inflater = getLayoutInflater();\n View alertView = inflater.inflate(R.layout.check_account_type, null);\n final LinearLayout expenseTypesGrid = (LinearLayout) alertView.findViewById(R.id.expenses_grid);\n final LinearLayout creditTypesGrid = (LinearLayout) alertView.findViewById(R.id.credits_grid);\n String[] expenseTypes = getResources().getStringArray(R.array.expense_types);\n String[] creditTypes = getResources().getStringArray(R.array.credit_types);\n // Set up the layout to use\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n // Populate expenses grid\n for (int i = 0; i < expenseTypes.length; ++i) {\n // Create the new checkbox\n CheckBox checkBox = new CheckBox(this);\n checkBox.setText(expenseTypes[i]);\n checkBox.setChecked(mExpenseTypesSelected[i]);\n checkBox.setLayoutParams(layoutParams);\n // Add the view\n expenseTypesGrid.addView(checkBox);\n }\n // Populate credits grid\n for (int i = 0; i < creditTypes.length; ++i) {\n // Create the new checkbox\n CheckBox checkBox = new CheckBox(this);\n checkBox.setText(creditTypes[i]);\n checkBox.setChecked(mCreditTypesSelected[i]);\n checkBox.setLayoutParams(layoutParams);\n // Add the view\n creditTypesGrid.addView(checkBox);\n }\n // Add listeners to buttons present in the view\n final Button selectAllButton = (Button) alertView.findViewById(R.id.select_all);\n Button selectNothingButton = (Button) alertView.findViewById(R.id.select_nothing);\n Button selectExpensesButton = (Button) alertView.findViewById(R.id.select_expenses);\n Button selectCreditsButton = (Button) alertView.findViewById(R.id.select_credits);\n selectAllButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setCheckBoxesState(expenseTypesGrid, true);\n setCheckBoxesState(creditTypesGrid, true);\n }\n });\n selectNothingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setCheckBoxesState(expenseTypesGrid, false);\n setCheckBoxesState(creditTypesGrid, false);\n }\n });\n selectExpensesButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setCheckBoxesState(expenseTypesGrid, true);\n setCheckBoxesState(creditTypesGrid, false);\n }\n });\n selectCreditsButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setCheckBoxesState(expenseTypesGrid, false);\n setCheckBoxesState(creditTypesGrid, true);\n }\n });\n builder.setView(alertView);\n // Set up the buttons\n Resources res = getResources();\n builder.setNegativeButton(res.getString(R.string.cancel),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.setPositiveButton(res.getString(R.string.apply),\n new DialogInterface.OnClickListener(){\n @Override\n public void onClick(DialogInterface dialog, int which) {\n updateSelectedTypes(expenseTypesGrid, creditTypesGrid);\n for (int i = 0; i < onTypesUpdatedListeners.size(); ++i)\n onTypesUpdatedListeners.get(i).run();\n dialog.dismiss();\n }\n });\n builder.setNeutralButton(res.getString(R.string.reset),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n selectAllButton.performClick();\n updateSelectedTypes(expenseTypesGrid, creditTypesGrid);\n for (int i = 0; i < onTypesUpdatedListeners.size(); ++i)\n onTypesUpdatedListeners.get(i).run();\n dialog.dismiss();\n }\n });\n // Show alert dialog\n builder.create().show();\n }", "@Override\n public void onClick(View v) {\n picker.openChooser(MainActivity.this);\n\n }", "public static String getFileType(){\n\t\t//Get the selected file type\n\t\tString type = (String) fileType.getSelectedItem();\n\t\t//Re-enable the combobox, since download has already started\n\t\tfileType.setEnabled(true);\n\t\t//Reset the default file type\n\t\tfileType.setSelectedIndex(0);\n\t\treturn type;\n\t}", "@Override\n public OpenType<?> getOpenType() {\n return openType;\n }", "SourceType sourceType();", "String getViewType();", "public JComboBox<?> getFileTypesCombo() {\n return getCombo(1);\n }", "public NameFilterDialog(String itemType) {\n\t\tsuper(new Shell(), 0, 0, 0, 0);\n\t\t\n\t\tthis.itemType = itemType;\n\t\tthis.upperItemType = itemType.substring(0, 1).toUpperCase() + \n\t\t\t\t\t\t\t\titemType.substring(1);\n\t}", "private void selectedDasTypeChanged() {\n\t\tselectedDasType = (DASType) jcbDasType.getSelectedItem();\n\t}", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n String type = getArguments().getString(\"type\");\n if(type != null && type.equals(\"农田发布\"))\n ((FarmerRelease) getActivity()).selectDate();\n return null;\n }", "public JTypeView() { }", "public DeviceOptionType getType();", "private void showFileChooser() {\n // Intent intent = new Intent();\n\n /* intent.setType(\"application/pdf\");\n intent.setType(\"docx*//*\");*/\n\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n String [] mimeTypes = {\"application/pdf/docx\"};\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\n\n\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "public VehicleDlg(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n\n for (Vehicle.VehicleType value : Vehicle.VehicleType.values()) {\n cmbType.addItem(value);\n }\n }", "protected void openFileChooser(ValueCallback uploadMsg, String acceptType)\n {\n mUploadMessage = uploadMsg;\n Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n i.addCategory(Intent.CATEGORY_OPENABLE);\n i.setType(\"*/*\");\n startActivityForResult(Intent.createChooser(i, \"File Browser\"), FILECHOOSER_RESULTCODE);\n }", "public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;", "default public void clickSelect() {\n\t\tremoteControlAction(RemoteControlKeyword.SELECT);\n\t}", "public void selectFileType(String filter, StringComparator comparator) {\n getQueueTool().waitEmpty();\n output.printTrace(\"Select \\\"\" + filter + \"\\\" file type in JFileChooser\\n : \"\n + toStringSource());\n JComboBoxOperator comboOper = new JComboBoxOperator(getFileTypesCombo());\n comboOper.copyEnvironment(this);\n comboOper.setOutput(output.createErrorOutput());\n //workaround\n comboOper.setSelectedIndex(findFileTypeIndex(filter, comparator));\n // comboOper.selectItem(findFileTypeIndex(filter, comparator));\n waitPainted(-1);\n }", "public ChangeTypeAction(IWorkbenchSite site) {\n super(site);\n setText(RefactoringMessages.ChangeTypeAction_label);\n setToolTipText(RefactoringMessages.ChangeTypeAction_tooltipText);\n setDescription(RefactoringMessages.ChangeTypeAction_description);\n PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CHANGE_TYPE_ACTION);\n }", "private void getUserTypeChoice() {\n mTypeInput = \"(\";\n if (mBinding.chipApartment.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput = mTypeInput + \"'Apartment'\";\n }\n if (mBinding.chipLoft.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Loft'\";\n }\n if (mBinding.chipHouse.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'House'\";\n }\n if (mBinding.chipVilla.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Villa'\";\n }\n if (mBinding.chipManor.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Manor'\";\n }\n mTypeInput += \")\";\n }", "public static File promptFileOpenExtensions(String title, String typeInfo, String... extensions) {\n Utils.verify(extensions.length > 0, \"\");\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(title);\n\n List<String> allExtensions = new ArrayList<>();\n for (String ext : extensions) {\n String type = \"*.\" + ext; // Unix is case-sensitive, so we add both lower-case and upper-case.\n String lowerCase = type.toLowerCase();\n String upperCase = type.toUpperCase();\n\n if (lowerCase.equals(upperCase)) {\n allExtensions.add(type);\n } else {\n allExtensions.add(lowerCase);\n allExtensions.add(upperCase);\n }\n }\n fileChooser.getExtensionFilters().add(new ExtensionFilter(typeInfo, allExtensions));\n\n fileChooser.setInitialDirectory(GUIMain.getWorkingDirectory());\n\n File selectedFile = fileChooser.showOpenDialog(GUIMain.MAIN_STAGE);\n if (selectedFile != null)\n GUIMain.setWorkingDirectory(selectedFile.getParentFile());\n\n return selectedFile;\n }", "protected void displayComboBox() {\n openingLine = new JLabel(\"Select \" + type + \":\");\n window = new JFrame(frameTitle);\n chooseBox = new JComboBox(range);\n chooseBox.addActionListener(this);\n window.setVisible(true);\n window.setLayout(new BoxLayout(window.getContentPane(), BoxLayout.PAGE_AXIS));\n window.setMinimumSize(new Dimension(300, 100));\n window.setLocationRelativeTo(null);\n confirm = new JButton(\"Confirm\");\n confirm.addActionListener(this);\n confirm.setActionCommand(\"confirm\");\n openingLine = new JLabel(\"Select \" + type + \":\");\n JPanel chooseBoxPane = new JPanel();\n chooseBoxPane.add(openingLine);\n chooseBoxPane.add(chooseBox);\n window.add(chooseBoxPane);\n window.add(confirm);\n\n }", "public void openFileChooser(ValueCallback uploadMsg, String acceptType){\n mUM = uploadMsg;\n Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n i.addCategory(Intent.CATEGORY_OPENABLE);\n i.setType(\"*/*\");\n MainActivity.this.startActivityForResult(\n Intent.createChooser(i, \"File Browser\"),\n FCR);\n }", "public void openFileChooser(ValueCallback uploadMsg, String acceptType){\n mUM = uploadMsg;\n Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n i.addCategory(Intent.CATEGORY_OPENABLE);\n i.setType(\"*/*\");\n MainActivity.this.startActivityForResult(\n Intent.createChooser(i, \"File Browser\"),\n FCR);\n }", "public WildLetterTypeDialog() {\n selectionValues = new String[LetterType.values().length - 1];\n getAllLetterTypesButWildLetter();\n }", "public void openDialog(){\n if (!isAdded()) return;\n homeViewModel.getAllSets().removeObservers(getViewLifecycleOwner());\n ChooseSetDialog dialog = new ChooseSetDialog(setsTitles);\n dialog.show(getChildFragmentManager(), \"choose_set_dialog\");\n dialog.setOnSelectedListener(choice -> {\n Word word = new Word(setsObjects.get(choice).getId(), original, translation);\n homeViewModel.insertWord(word);\n original=\"\"; translation=\"\";\n etOrigWord.setText(\"\"); etTransWord.setText(\"\");\n });\n }", "public void setType(String type) {\n this.type = type;\n }", "public void TripType()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"TripType\")).click();\n\t}", "public void openDialogCreateVisual(){\n DataHeader[] tabHeader = dataset.getListDataHeaderDouble(true);\n TypeVisualization[] tabVis = getListTypeVisualization(tabHeader.length);\n DataHeader[] tabHeaderLabel = dataset.getListDataHeaderDouble(false);\n CreateDataVisualDialog dialog = new CreateDataVisualDialog(this, tabVis, tabHeader, tabHeaderLabel);\n dialog.setVisible(true);\n }", "public void openLoadSelection() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/LoadSelectionView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tLoadSelectionController lsc = fxmlLoader.getController();\n\t\t\tlsc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"lSTitle\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void handleSearchButtonSelected() {\n\t\tShell shell = getShell();\n\t\tIProject project = getProject(editorLocal.getProjectName());\n\t\tIJavaProject javaProject = JavaCore.create(project);\n\t\tIType[] types = new IType[0];\n\t\tboolean[] radioSetting = new boolean[2];\n\t\ttry {\n\t\t\t// fix for Eclipse bug 66922 Wrong radio behaviour when switching\n\t\t\t// remember the selected radio button\n\t\t\tradioSetting[0] = mTestRadioButton.getSelection();\n\t\t\tradioSetting[1] = mTestContainerRadioButton.getSelection();\n\t\t\ttypes = TestSearchEngine.findTests(getLaunchConfigurationDialog(), javaProject, getTestKind());\n\t\t} catch (InterruptedException e) {\n\t\t\tsetErrorMessage(e.getMessage());\n\t\t\treturn;\n\t\t} catch (InvocationTargetException e) {\n\t\t\tLOG.error(\"Error finding test types\", e);\n\t\t\treturn;\n\t\t} finally {\n\t\t\tmTestRadioButton.setSelection(radioSetting[0]);\n\t\t\tmTestContainerRadioButton.setSelection(radioSetting[1]);\n\t\t}\n\t\tSelectionDialog dialog = new TestSelectionDialog(shell, types);\n\t\tdialog.setTitle(JUnitMessages.JUnitLaunchConfigurationTab_testdialog_title);\n\t\tdialog.setMessage(JUnitMessages.JUnitLaunchConfigurationTab_testdialog_message);\n\t\tif (dialog.open() == Window.CANCEL) {\n\t\t\treturn;\n\t\t}\n\t\tObject[] results = dialog.getResult();\n\t\tif ((results == null) || (results.length < 1)) {\n\t\t\treturn;\n\t\t}\n\t\tIType type = (IType) results[0];\n\t\tif (type != null) {\n\t\t\tmTestText.setText(type.getFullyQualifiedName('.'));\n\t\t}\n\t}", "public void askForUserInfo(String type) {\n switch (type) {\n case \"Username\":\n System.out.println(\"Enter username: \");\n break;\n case \"Password\":\n System.out.println(\"Enter password: \");\n break;\n case \"Name\":\n System.out.println(\"Enter Name: \");\n break;\n case \"Type\":\n System.out.println(\"Select the user type:\");\n System.out.println(\"1. Organizer\");\n System.out.println(\"2. Attendee\");\n System.out.println(\"3. VIP\");\n break;\n }\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "void openChooser(Property<String> pathProperty);", "protected void openNewResourceTemplateDialog() {\n hide();\n try {\n NewResourceTemplateDialog newResourceTemplateDialog =\n new NewResourceTemplateDialog(getParentShell(),\n null);\n newResourceTemplateDialog.create();\n newResourceTemplateDialog.getShell().setText(NEW_RESOURCE);\n newResourceTemplateDialog.open();\n if (newResourceTemplateDialog.getReturnCode() == Window.OK) {\n setSelectedPath(newResourceTemplateDialog.getSelectedPath());\n }\n } finally {\n show();\n }\n }", "@FXML\n\tpublic void enableType(ActionEvent event) {\n\t\t// boolean typeExists=false;\n\t\tif (!txtNameDisableProductType.getText().isEmpty()) {\n\t\t\tProductType productType = restaurant.returnProductType(txtNameDisableProductType.getText());\n\t\t\tif (productType != null) {\n\n\t\t\t\ttry {\n\t\t\t\t\tproductType.setCondition(Condition.ACTIVE);\n\t\t\t\t\trestaurant.saveProductTypeData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El tipo de producto ha sido habilitado\");\n\t\t\t\t\tdialog.setTitle(\"Tipo de producto habilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtNameDisableProductType.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se ha podido guardar el nuevo estado del tipo de producto\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * for(int i=0;i<typeOptions.size() && !typeExists;i++) {\n\t\t\t\t * if(typeOptions.get(i).equals(productType.getName())) typeExists=true; }\n\t\t\t\t * \n\t\t\t\t * if (typeExists==false) { typeOptions.add(productType.getName()); }\n\t\t\t\t */\n\n\t\t\t} else {\n\t\t\t\ttypeOptions.add(txtNameDisableProductType.getText());\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este tipo de producto no existe. Ha sido añadido\");\n\t\t\t\tdialog.setTitle(\"Error, objeto no existente\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "private void displayLessonSelectionDialog() {\n\t\tpauseMedia();\n\t\tint requestCode = onLargeScreen ? LessonSelectionDialog.SELECT_TO_CLASS\n\t\t\t\t: LessonSelectionDialog.SELECT_TO_LESSON;\n\t\tlessonSelectionDialog = LessonSelectionDialog.newInstance(\n\t\t\t\tLessonSelectionDialog.CLASS_LESSON_SELECT, requestCode);\n\t\tlessonSelectionDialog.setOnDialogResultListener(this, requestCode);\n\t\tlessonSelectionDialog.show(this.getSupportFragmentManager(),\n\t\t\t\t\"lessonSelectionDialog\");\n\t}", "public static void getDataWithDialogs(ChampionSelectGUI t) {\n\t\tJDialog sND = createSummonerNameDialog(t);\n\t\tsND.setVisible(true);\n\t\tJDialog rD = createRegionDialog(t);\n\t\trD.setVisible(true);\n\t\tJDialog roleD = createRoleDialog(t);\n\t\troleD.setVisible(true);\n\t\tJDialog teamD = createTeamDialog(t);\n\t\tteamD.setVisible(true);\n\t}", "public void setSelectedDocumentType(String docType) {\n\t\tcombBoxDocumentTypes.setSelectedItem(docType);\n\t}", "public void setType(String type) \n {\n this.type = type;\n }", "public void onShowInputMethodPickerSelected(Context context);", "private void openFile() {\n\t\tJDialog fileDialog = new JDialog(this, \"Select File\", true);\n\t\tFileDialog filePanel = new FileDialog(this, this, false, false, false);\n\t\tfileDialog.getContentPane().add(filePanel);\n\t\tfileDialog.pack();\n\n\t\t// set the location.\n\t\tPoint p1 = this.getLocation();\n\t\tDimension d1 = this.getSize();\n\t\tDimension d2 = fileDialog.getSize();\n\t\tfileDialog.setLocation((p1.x + (d1.width / 2)) - (d2.width / 2),\n\t\t\t\t(p1.y + (d1.height / 2)) - (d2.height / 2));\n\n\t\tfilePanel.setCurrentDirectory(Config.getInstance().getBaseHarvestDir());\n\t\tfileDialog.show();\n\t}", "public void setType(String type){\n \tthis.type = type;\n }", "void setType(Type type)\n {\n this.type = type;\n }", "public FileSelector(String[] types, int mode, FileChooser fileSelector){\n chooser = fileSelector;\n selectionMode = mode;\n label = new JTextField(\"Path\", 20);\n button = new CustomButton(\"Seleccionar\", Color.DARK_GRAY, Color.WHITE, Color.WHITE, Color.DARK_GRAY);\n fileChooser = new JFileChooser();\n fileTypes = types;\n }", "private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n timePickerDialog.show();\n }", "void setType(java.lang.String type);", "private void showChooser() {\n Intent target = FileUtils.createGetContentIntent();\n // Create the chooser Intent\n Intent intent = Intent.createChooser(\n target, getString(R.string.chooser_title));\n try {\n startActivityForResult(intent, REQUEST_CODE);\n } catch (ActivityNotFoundException e) {\n // The reason for the existence of aFileChooser\n }\n }", "public ShowTypesResponse showTypes(ShowTypesRequest request) throws GPUdbException {\n ShowTypesResponse actualResponse_ = new ShowTypesResponse();\n submitRequest(\"/show/types\", request, actualResponse_, false);\n\n for (int i_ = 0; i_ < actualResponse_.getTypeIds().size(); i_++) {\n setTypeDescriptorIfMissing(actualResponse_.getTypeIds().get(i_), actualResponse_.getLabels().get(i_), actualResponse_.getTypeSchemas().get(i_), actualResponse_.getProperties().get(i_));\n }\n\n return actualResponse_;\n }", "public void setType(int type) {\n type_ = type;\n }", "void showFileManagerDialog();", "public JTypeView(JNODE aCD) { super(aCD); }", "public void askForUserType() {\n System.out.println(\"What type of User would you like to make? (Type Attendee, Speaker, VIP, or Organizer)\");\n }", "private void updateListBox() {\n String program = Utils.getListBoxItemText(listBox_Program);\n ArrayList<String> typeList = Classification.getTypeList(program);\n listBox_Type.clear();\n for (String item : typeList) {\n listBox_Type.addItem(item);\n }\n listBox_Type.setItemSelected(0, true);\n listBox_Type.setEnabled(typeList.size() > 1);\n listBox_Type.onBrowserEvent(Event.getCurrentEvent());\n }", "protected void openFileChooser(ValueCallback uploadMsg, String acceptType) {\n mUploadMessage = uploadMsg;\n Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n i.addCategory(Intent.CATEGORY_OPENABLE);\n i.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(i, \"File Browser\"), FILECHOOSER_RESULTCODE);\n }", "public ComboBox<String> getTypVlaku() {\r\n\t\treturn typVlaku;\r\n\t}", "void setType(String type) {\n this.type = type;\n }", "public void setType(String type){\n this.type = type;\n }", "private void showNetworksDialog() {\n\n final MainPanel panel = mFileSystemController.getActivePanel();\n \n if (panel == null || panel.getActivity() == null) {\n // very weired situation; try to avoid crash.\n return;\n }\n\n final Dialog dialog = new Dialog(panel.getActivity(), R.style.Action_Dialog);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n View dialogView = View.inflate(App.sInstance.getApplicationContext(), R.layout.network_type_chooser, null);\n\n final ListView networks = (ListView) dialogView.findViewById(R.id.network_types);\n final NetworkChooserAdapter adapter = new NetworkChooserAdapter();\n networks.setAdapter(adapter);\n\n dialogView.findViewById(R.id.cancel).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n\n networks.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n NetworkEnum network = (NetworkEnum) view.getTag();\n\n switch (network) {\n case FTP:\n openFTP(panel);\n break;\n case SFTP:\n openSFTP(panel);\n break;\n case SMB:\n openSmb(panel);\n break;\n case Dropbox:\n openDropbox(panel);\n break;\n case SkyDrive:\n openSkyDrive(panel);\n break;\n case YandexDisk:\n openYandexDisk(panel);\n break;\n case GoogleDrive:\n openGoogleDrive(panel);\n break;\n case MediaFire:\n openMediaFire(panel);\n break;\n case WebDav:\n openWebDav(panel);\n break;\n }\n\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n }\n });\n\n dialog.setContentView(dialogView);\n dialog.show();\n\n adjustDialogSize(dialog, panel);\n }" ]
[ "0.6420607", "0.62877595", "0.6286204", "0.6220793", "0.6209577", "0.6205285", "0.6187898", "0.61503315", "0.6047556", "0.5891456", "0.58841026", "0.5797845", "0.57963055", "0.5771263", "0.5766615", "0.5766615", "0.57423055", "0.5724558", "0.56351817", "0.56227314", "0.5618168", "0.5597721", "0.5594503", "0.55568844", "0.55379075", "0.5537176", "0.5531698", "0.5529592", "0.5527892", "0.5527106", "0.5401081", "0.5399185", "0.53917944", "0.53912795", "0.53627837", "0.5357129", "0.53499746", "0.53492993", "0.53266245", "0.5303123", "0.52961135", "0.52915186", "0.5261455", "0.5221459", "0.51945317", "0.5187552", "0.51821524", "0.5180807", "0.5180807", "0.5180807", "0.5166729", "0.5159565", "0.5158591", "0.515064", "0.51475304", "0.51373017", "0.5135747", "0.512735", "0.51222044", "0.5111391", "0.51099914", "0.51096684", "0.51058704", "0.5093575", "0.5093575", "0.50886416", "0.5063556", "0.5060219", "0.5054359", "0.50432914", "0.5033567", "0.50331944", "0.5027535", "0.50269264", "0.50239736", "0.50227076", "0.5017492", "0.5015427", "0.5004553", "0.500438", "0.49955675", "0.4993619", "0.49920565", "0.49880442", "0.49875128", "0.49866658", "0.49798557", "0.49796456", "0.49769515", "0.49687603", "0.49629182", "0.49614003", "0.49562043", "0.49553174", "0.4954416", "0.49505448", "0.49488553", "0.4944911", "0.4944317", "0.49432635" ]
0.5855183
11
does the player have the permission required to allow backing to death point
@EventHandler(priority = EventPriority.HIGHEST) private void onDeath(PlayerDeathEvent event) { if(!event.getEntity().hasPermission("karanteenials.player.death.back")) return; Location deathLocation = event.getEntity().getLocation(); Back back = new Back(event.getEntity()); back.setBackLocation(deathLocation); // instruct player to use /back to return to death position Karanteenials.getMessager().sendMessage(event.getEntity(), Sounds.NONE.get(), Prefix.NEUTRAL + ModuleFactory.getInstance().getTranslator().getTranslation(Karanteenials.getPlugin(Karanteenials.class), event.getEntity(), "death-return-with-back")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAdmissible();", "boolean hasInstantiatePermission();", "public boolean mayPass(Level level, int x, int y, Entity e) {\n\t\treturn e.canSwim(); // If the entity can swim (which only the player can), then it will allow that entity to pass.\n\t}", "public void playerHasInvincibility() {\n\t\tthis.state = canBeKilled;\n\t}", "public boolean canRespawnHere()\n {\n return false;\n }", "boolean hasPermission(final Player sniper, final String permission);", "public abstract boolean isPossible(Player p);", "public boolean canRespawnHere() {\n\t\treturn false;\n\t}", "public boolean canMine(EntityPlayer player, int X, int Y, int Z);", "private boolean isAllowed(ProcessInstance instance) {\r\n return true; // xoxox\r\n }", "@Override\n public boolean canInteractWith(EntityPlayer player)\n {\n return teKeeper.isUsableByPlayer(player);\n }", "private boolean isInputAllowed() {\n return entered && gameRenderer != null && gameRenderer.isDyingUnitAnimationCompleted() &&\n inGameContext != null && inGameContext.isActionCompleted() && inputAllowed && !blockAllInput;\n }", "public boolean getCanSpawnHere()\r\n {\r\n return false;\r\n }", "public boolean attempt(CommandSender sender) {\n boolean allowed = test(sender);\n if (!allowed) {\n sender.sendMessage(NO_PERMISSION);\n }\n return allowed;\n }", "boolean isAchievable();", "@Override\n public boolean canDo(World world, EntityPlayer player) {\n return getTimer(player, COOLDOWN_TIMER) == 0;\n }", "public boolean checkToProceed(){\n return getGame().getCurrentPlayer().getRemainingActions() > 0;\n }", "public int canPoseBombAndStillBeSafe() {\n Player currentPlayer = state.getCurrentPlayer();\n List<Player> players = state.getPlayers();\n Maze maze = state.getMaze();\n Cell[][] tabcells = maze.getCells();\n for (Player p : players) {\n if (!p.equals(currentPlayer)) {\n if (canBombThisEnemyAndRunSafe(currentPlayer,p)) {\n return 1;\n }\n }\n }\n return 0;\n }", "boolean isPlayableInGame();", "@Override\n public final boolean canStand(Playery player) {\n return true;\n }", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "private void checkPlayerCondition()\n\t{\n\t\tif (playerExists() && PlayerAccess.getPlayer().isInExit())\n\t\t{\n\t\t\twon = true;\n\t\t}\n\t\tif (playerIsDead())\n\t\t{\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t}\n\t\tif (playerHasLost())\n\t\t{\n\t\t\tlost = true;\n\t\t}\n\t\tif (runOutOfTime())\n\t\t{\n\t\t\tPlayerAccess.getPlayer().die();\n\t\t}\n\t}", "public boolean canThreaten(ChessPiece occupant) {\n\t\treturn (occupant.getPlayer() != owner.getPlayer());\n\t}", "public boolean shouldExecute() {\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n if (livingentity != null && livingentity.isAlive()) {\n return ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL;\n } else {\n return false;\n }\n }", "boolean canRobPlayer(HexLocation location, int victimIndex);", "public boolean getCanSpawnHere()\n {\n return this.isValidLightLevel() && super.getCanSpawnHere();\n }", "boolean canFall();", "public boolean canDespawn()\n {\n return true;\n }", "public boolean canDespawn()\n {\n return false;\n }", "@Override\n public boolean hasPermission(CommandSender sender, String pNode) {\n if (!(sender instanceof Player)) return true;\n return hasPermission((Player) sender, pNode);\n }", "public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }", "public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }", "boolean ignoresPermission();", "@Override\n \tpublic boolean canLeave(ArenaPlayer p) {\n \t\treturn true;\n \t}", "public boolean hasPermissions(Player player) {\n\t\tif (!m_bHasPermissions && player.isOp())\n\t\t\treturn true;\n\t\telse if (m_bHasPermissions && m_PermissionHandler.has(player, \"lord.orbitalstrike\"))\n\t\t\treturn true;\n\t\telse {\n\t\t\tOrbitalStrike.sendMessage(player, \"You do not have permission to use this plugin.\");\n\t\t\tOrbitalStrike.logInfo(\"Player \" + player + \" does not have permission.\", 1);\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic boolean canRespawnHere()\n\t{\n\t\treturn false;\n\t}", "static boolean canWin() throws GameActionException {\n\t\tfloat difference = 1000 - rc.getTeamVictoryPoints();\n\t\tif ((rc.getTeamBullets() / 10) >= difference) {\n\t\t\trc.donate(rc.getTeamBullets());\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "private boolean canEnlist() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "boolean isAllowFriendlyFire();", "private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }", "public abstract boolean isPlayer();", "public boolean canBeActivated(Player p) {\n if (p == null) throw new IllegalArgumentException(\"Argument is null\");\n int i;\n boolean retValue;\n\n retValue = true;\n for (i = 0; i < requirements.length && retValue; i++) {\n retValue = requirements[i].checkRequirement(p);\n }\n return retValue;\n }", "public boolean isAllowed() {\n \t\treturn isAllowed;\n \t}", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }", "boolean isAccepting();", "boolean isPlayable();", "public boolean validatePermissions()\r\n\t{\n\t\treturn true;\r\n\t}", "private void checkDeath() {\n\t\tif (player.getLives() == 0) {\n shooty.setIv(new Image(\"/img/shipdeath.png\"));\n\t\t\tdie();\n\t\t}\n\t\t// another way to die: the blocks hit you\n\t\tif(btnList.get(0).getLayoutY() >= FATAL_BUTTON_DIST) {\n\t\t\tendGame.play();\n\t\t\tdie();\n\t\t}\n\t}", "public boolean canEnterWorld(Player p, MultiverseWorld w) {\n return this.hasPermission(p, \"multiverse.access.\" + w.getName(), false);\n }", "public boolean action_allowed(){\r\n\t\treturn action_holds.size()==0;\r\n\t}", "private boolean canAddSupport() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "protected boolean isAccessible(SavedHorse savedHorse, AbstractHorse abstractHorse, Player player, PlayerState playerState) {\n if (abstractHorse.getOwner() != null && !savedHorse.canBeAccessedBy(player) && !playerState.isBypassEnabled()) {\n player.sendMessage(ChatColor.GOLD + \"You don't have access to this \" + Util.entityTypeName(abstractHorse) + \".\");\n player.sendMessage(ChatColor.GOLD + \"It belongs to \" + ChatColor.YELLOW + abstractHorse.getOwner().getName() + ChatColor.GOLD + \".\");\n if (player.hasPermission(\"easyrider.bypass\")) {\n player.sendMessage(ChatColor.GOLD + \"Run \" + ChatColor.YELLOW + \"/horse-bypass\" +\n ChatColor.GOLD + \" to toggle the access bypass.\");\n }\n return false;\n } else {\n return true;\n }\n }", "public boolean shouldExecute() {\n return ShulkerEntity.this.world.getDifficulty() == Difficulty.PEACEFUL ? false : super.shouldExecute();\n }", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "@Override\n\tpublic boolean canLeave(ArenaPlayer p) {\n\t\treturn true;\n\t}", "private boolean isPregnant() {\n return this.hasCapability(LifeStage.PREGNANT);\n }", "public boolean canDoStealPlayerResource(Player victim) {\n\t\t if(victim == null || victim.getResourceCardHandSize() <= 0) {\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "public boolean isAllowed(Player owner, Item item) {\r\n if (item.getValue() > 50000) {\r\n owner.getActionSender().sendMessage(\"This item is too valuable to trust to this familiar.\");\r\n return false;\r\n }\r\n if (!item.getDefinition().isTradeable()) {\r\n owner.getActionSender().sendMessage(\"You can't trade this item, not even to your familiar.\");\r\n return false;\r\n }\r\n if (!owner.getFamiliarManager().getFamiliar().getDefinition().getName().toLowerCase().contains(\"abyssal\")) {\r\n if (item.getId() == 1436 || item.getId() == 7936 || !item.getDefinition().getConfiguration(ItemConfiguration.BANKABLE, true)) {\r\n owner.getActionSender().sendMessage(\"You can't store \" + item.getName().toLowerCase() + \" in this familiar.\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean canDie() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean canTeleport() {\n\t\treturn false;\r\n\t}", "public boolean checkRequirements(PlayerBoard playerBoard);", "public boolean canBreakSign(Sign s, Player p) \n\t{\n\t\tif (!this.isSign(s))\n\t\t\treturn false;\n\t\t\n\t\tboolean bool = false;\n\t\tbool = isSignOwner(s,p);\n\t\tif (!bool)\n\t\t\tbool = p.isOp();\n\t\t\n\t\treturn bool;\n\t}", "@Override\n\tpublic boolean canRespawnHere() {\n\t\treturn true;\n\t}", "private boolean canResumeGame() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n && isGamePaused();\n }", "private boolean canPauseGame() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n && gameStateManager.getState().equals(GameState.PLAY);\n }", "@Override\n protected boolean canMove(int playerIdx) {\n if(pgs.getTurnID() == playerIdx){\n return true;\n }\n return false;\n }", "public boolean handlePerm(Player player, String perm);", "boolean isHasPermissions();", "public abstract boolean isRestricted();", "public boolean canInteract(){\n\t\treturn false;\n\t}", "boolean hasLeaveGameReqeuest();", "boolean hasMinigameAction();", "private boolean shouldAttackPlayer(EntityPlayer player) {\n ItemStack itemStack = player.inventory.armorInventory[3];\n if (itemStack != null && itemStack.getItem() == Item.getItemFromBlock(Blocks.pumpkin))\n return false;\n Vec3 lookVec = player.getLook(1.0F).normalize();\n Vec3 posVec = Vec3.createVectorHelper(this.posX - player.posX, this.boundingBox.minY + this.height / 2.0 - player.posY - player.getEyeHeight(), this.posZ - player.posZ);\n double distance = posVec.lengthVector();\n posVec = posVec.normalize();\n double dotProduct = lookVec.dotProduct(posVec);\n return dotProduct > 1.0 - 0.025 / distance ? player.canEntityBeSeen(this) : false;\n }", "protected boolean isValidInteractee() {\n\t\treturn interactee.isInteracteeNeutral(xGameCoord, yGameCoord, orientation);\n\t}", "private Boolean canUserValidate() throws ServeurException, ClientException {\n // Direct on/off line\n return checkValidatePermission();\n }", "@Override\r\n\tpublic boolean canAttackEntity(Entity entity) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean canAttackEntity(Entity entity) {\n\t\treturn false;\r\n\t}", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "public synchronized boolean canWatch() {\n\t\t//boolean to keep track of theater vacancy \n\t\tboolean enterStatus;\n\t\t//when the movie is in session or the theater is full we can't enter\n\t\tif(Clock.isInSession ||Driver.currentVisitors == 8) { \n\t\t\tenterStatus = false;\n\t\t}else {\n\t\t\tenterStatus = true;\n\t\t}\n\t\treturn enterStatus;\n\t}", "public boolean canTake(EntityPlayer player) {\n \t\treturn (outputIsReal || ((currentRecipe != null) &&\n \t\t (currentRecipe.canCraft(crafting, new CraftingSourceStation(entity, player))) &&\n \t\t (progress >= craftingTime) &&\n \t\t ((player != null) ||\n \t\t ((progress >= GlobalConfig.stationAutocraftDelaySetting.getValue()) &&\n \t\t hasRequirements()))));\n \t}", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "public abstract void isUsedBy(Player player);", "@Override\n\tpublic void canTakeOff() {\n\t\tSystem.out.println(\"I CANNOT TAKE OFF UNLESS YA JUMP ME OVER SOMMAT\");\n\t}", "@NeedsPermission(Manifest.permission.CAMERA)\n void canGo() {\n }", "boolean hasMission();", "public abstract boolean canUse();", "public boolean checkIfPlayerHoldsExplosive () { return noOfExplosives > 0; }", "@Override\r\n \t\t\tpublic boolean isAllowed(long sessionId, String actionKey) {\n \t\t\t\treturn false;\r\n \t\t\t}", "public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }", "@objid (\"41b411f8-e0e5-49a4-a7fc-7eed29779401\")\n @Override\n public boolean canExecute() {\n if (!MTools.getAuthTool().canModify(this.layer.getRelatedElement())) {\n return false;\n }\n return true;\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "public boolean inRange(){\n //System.out.println(\"inRange\");\n return Math.abs(GameView.instance.player.position.x - creationPoint.x) < GameView.instance.cameraSize * attackRange;\n }", "@Override\n\tpublic boolean isDenied();", "public boolean isPlayerAllowedToInteractWith(Player player, Block block)\n \t{\n \t\treturn FactionsPlayerListener.canPlayerUseBlock(player, block, true);\n \t}", "@Override\n\tpublic boolean canInteractWith(EntityPlayer playerIn) {\n\t\treturn false;\n\t}", "public boolean canFly() {\n\t\treturn !isEgg() && !isHatchling();\n\t}", "public boolean canAttack(Combatant aCombatant)\n\t{\n\t\treturn false;\n\t}", "public static boolean testPermission(CommandSender sender, String perm) {\n return !(sender instanceof Player) || sender.hasPermission(\"SlapPlugin.\" + perm);\n }", "public boolean canRequestPower();", "public boolean isAllowed() {\n return isAllowed;\n }" ]
[ "0.6900564", "0.671484", "0.6707324", "0.6664773", "0.66428196", "0.66366786", "0.66116416", "0.65335697", "0.6505158", "0.6505075", "0.64764726", "0.6466984", "0.6451945", "0.64488614", "0.6437345", "0.64334136", "0.6431836", "0.64273816", "0.642737", "0.6416172", "0.64132345", "0.64113504", "0.63945895", "0.63645047", "0.6361338", "0.6356533", "0.635614", "0.63310057", "0.63035005", "0.6286662", "0.6284189", "0.62829214", "0.6281856", "0.6275788", "0.6274424", "0.62499267", "0.6237201", "0.6235421", "0.6232962", "0.6232629", "0.62317955", "0.62090755", "0.62038714", "0.62027544", "0.6197838", "0.6191033", "0.61895573", "0.6188523", "0.6184312", "0.6180348", "0.61749536", "0.61731243", "0.6162277", "0.6153294", "0.614886", "0.614678", "0.61298674", "0.6117461", "0.61091316", "0.6106533", "0.60920554", "0.60915506", "0.6083277", "0.6074282", "0.6072606", "0.6067976", "0.6065936", "0.60626286", "0.6054273", "0.6047004", "0.6041079", "0.60403854", "0.60382116", "0.6033181", "0.6031168", "0.6025854", "0.60253984", "0.60253984", "0.6011172", "0.60100406", "0.60063374", "0.6004915", "0.600368", "0.5994883", "0.59943694", "0.5992344", "0.59902984", "0.5988884", "0.59887147", "0.59883755", "0.5979199", "0.59716713", "0.59715456", "0.5969154", "0.5962389", "0.5955958", "0.5952578", "0.59469575", "0.5941379", "0.5940382", "0.5940276" ]
0.0
-1
FileInputStream input = new FileInputStream("D:\\song\\data.txt");
public static void main(String[] args) throws Exception{ BufferedReader reader=new BufferedReader( new FileReader("D:\\song\\data.txt")); List<String> datas = new ArrayList<>(); while(reader.ready()){ String line = reader.readLine(); if(line.contains("元")) { datas.add(line); } } Collections.sort(datas, new Comparator<String>() { @Override public int compare(String o1, String o2) { return getMoney(o2) - getMoney(o1); } }); int total = 0; for (String data: datas) { //System.out.println(data); total += getMoney(data); } System.out.println("total = " + total); for (String data: datas) { if (data.contains("魏") || data.contains("尚") || data.contains("仪")) System.out.println(data); //total += getMoney(data); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void openInput(String file)\r\n\t{\n\t\ttry{\r\n\t\t\tfstream = new FileInputStream(file);\r\n\t\t\tin = new DataInputStream(fstream);\r\n\t\t\tis = new BufferedReader(new InputStreamReader(in));\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\r\n\t}", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public DataInput( String filepath)\r\n {\r\n this.filepath = filepath;\r\n }", "public static void findFile() throws IOException {\n File newFile = new File(\"test.txt\");\n FileInputStream stream = new FileInputStream(newFile);\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\n FileInputStream fis=new FileInputStream(\"g:/data/info.txt\");\r\n //step-2 (read the data from stream)\r\n int n=fis.available(); //it gives you no of bytes available for reading in stream\r\n System.out.println(\"Total Bytes Available : \"+n);\r\n byte b[]=new byte[n];\r\n fis.read(b); //will take 1st byte from stream and store to b[0], 2nd to b[1], 3rd to b[2]\r\n //converting bytes to String\r\n String st=new String(b);\r\n System.out.println(st);\r\n //step-3 (close the stream)\r\n fis.close();\r\n }", "public FileInputStream openFileInput(final String path)\n throws java.io.FileNotFoundException {\n return GDFileSystem.openFileInput(path);\n }", "public void openFile(){\n\t\ttry{\n\t\t\t//input = new Scanner (new File(\"input.txt\")); // creates file \"input.txt\" or will rewrite existing file\n\t\t\tFile inFile = new File(\"input.txt\");\n\t\t\tinput = new Scanner(inFile);\n\t\t\t//for (int i = 0; i < 25; i ++){\n\t\t\t\t//s = input.nextLine();\n\t\t\t\t//System.out.println(s);\n\t\t\t//}\n\t\t}catch (SecurityException securityException){ // catch errors\n\t\t\tSystem.err.println (\"You do not have the write access to this file.\");\n\t\t\tSystem.exit(1);\n\t\t}catch (FileNotFoundException fnf){// catch errors\n\t\t\tSystem.err.println (\"Trouble opening file\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "@Override\n public InputStream openInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "protected abstract InputStream getFile(final String path);", "public void streamData(String pathToFile) throws IOException;", "public TextFile(Scanner input) {\n \tSystem.out.println(\"Enter your Textfile name: \");\n \tString textfilename = input.nextLine(); \n \ttextFile = new File(textfilename);\n \tthis.checkFile();\n }", "@Test\n public void in() throws IOException {\n InputStream in = getResourceAstream(\"peizhi.xml\");\n\n //InputStream in = new FileInputStream(\"G:\\\\IDEA\\\\Java_test\\\\src\\\\main\\\\resources\\\\peizhi.xml\");\n //定义一个数组相当于缓存\n byte by[]=new byte[1024];\n int n=0;\n while((n=in.read(by))!=-1)\n {\n String s=new String(by,0,n);\n System.out.println(s);\n }\n }", "File openFile();", "@Override\n\tpublic void startInput(String path) throws FileNotFoundException, JavaLayerException {\n\t\tfis = new FileInputStream(path);\n\t\tsetBis(new BufferedInputStream(fis));\n\n\t\tplayer = new Player(getBis());\n\t}", "public InputStream openInputStream(String path) throws SystemException;", "public FileInputStream getFileInputStream(){\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\data\\\\userData.xlsx\");\n\t\tString filePath=System.getProperty(\"user.dir\")+\"/src/test/java/data/userData.xlsx\";\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"src/test/java/data/userData.xlsx\");\n\t\tFile srcFile=new File(filePath);\n\t\ttry {\n\t\t\tfis=new FileInputStream(srcFile);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Test Data file not found.terminating process!! :Check file path of test data file\");\n\t\t}\n\n\t\treturn fis;\n\t}", "public static void main(String[] args) throws IOException {\nFileInputStream fin=new FileInputStream(\"C:\\\\\\\\Users\\\\\\\\Dell\\\\\\\\Desktop\\\\\\\\input.txt\");\nFileOutputStream fout=new FileOutputStream(\"C:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Dell\\\\\\\\\\\\\\\\Desktop\\\\\\\\\\\\\\\\output.txt\");\nint c=0;\nwhile((c=fin.read())!=-1)\n{\n\tfout.write(c);\n}\nSystem.out.println(\"written completed\");\n\t}", "public void readFromFile() {\n\n\t}", "public void openFile()\r\n {\r\n try // open file\r\n {\r\n input = new RandomAccessFile( \"clients.dat\", \"r\" );\r\n } // end try\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"File does not exist.\" );\r\n } // end catch\r\n }", "@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }", "public static DataInputStream getDataInput(Path path) throws IOException {\n return getData(Files.newInputStream(path));\n }", "public SYEParser(InputStream input, String name) throws FileNotFoundException {\n super(input);\n this.filename = name;\n }", "void open(String fileName);", "public void start(InputStream in, String path);", "private static InputStream readFile(String path)\n\t{\n\t\tInputStream input = NativeLibraryLoader.class.getResourceAsStream(\"/\" + path);\n\t\tif (input == null)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Unable to find file: \" + path);\n\t\t}\n\t\treturn input;\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n Scanner scanner = new Scanner(new FileInputStream(\"/Users/guoziren/IdeaProjects/剑指offer for Java/src/main/java/com/ustc/leetcode/algorithmidea/dynamicprogramming/input.txt\"));\n }", "public static void reading(String fileName)\n {\n\n }", "public void readFile();", "public void playSound() {\n String path = \"Data\\\\\\\\Acceptance.wav\";\n InputStream success;\n try {\n success = new FileInputStream(new File(path));\n AudioStream audioStream = new AudioStream(success);\n AudioPlayer.player.start(audioStream);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error playing sounds\");\n }\n }", "public static void main (String[] args) throws IOException {\n File inFile = new File(\"/Users/kbye10/Documents/CS 250 test files/sample1.data\");\r\n FileInputStream inStream = new FileInputStream(inFile);\r\n\r\n //set up an array to read data in\r\n int fileSize = (int)inFile.length();\r\n byte[] byteArray = new byte[fileSize];\r\n\r\n //read data in and display them\r\n inStream.read(byteArray);\r\n for (int i = 0; i < fileSize; i++) {\r\n System.out.println(byteArray[i]);\r\n }\r\n\r\n inStream.close();\r\n }", "public void read() throws IOException {\n\t\tString path = \"/Users/amit/Documents/songs/A.mp3\";\n\t\tFile file = new File(path);\n\t\tfinal int EOF = -1;\n\t\t\n\t\tif(file.exists()) {\n\t\t\tSystem.out.println(\"Exist...\");\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tBufferedInputStream bs = new BufferedInputStream(fs);\n\t\tlong startTime = System.currentTimeMillis();\n\t\tint singleByte = bs.read(); // read single byte\n\t\twhile(singleByte!=EOF) {\n\t\t\t//System.out.print((char)singleByte);\n\t\t\t singleByte = bs.read();\n\t\t}\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Total Time Taken \"+(endTime-startTime)+\"ms\");\n\t\tbs.close();\n\t\tfs.close();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"File Not Exist\");\n\t\t}\n\t\t\n\t}", "public FileStorage(File path) {\n dataFolder = path;\n }", "public static void main(String[] args) {\n\r\n\t\ttry {\r\n\t\t\tInputStream is = new FileInputStream(\"C:\\\\Users\\\\John\\\\eclipse-workspace\\\\Java_Seoul_Wiz\\\\bin\\\\InputStream\\\\jain.txt\");\r\n\t\t\twhile(true) {\r\n\t\t\t\tint i = is.read();\r\n\t\t\t\tSystem.out.println(\"Data: \" + i);\r\n\t\t\t\tif(i==-1) break;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tis.close();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "FileObject getFile();", "FileObject getFile();", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "public InputStream readFile( String fileName, FileType type );", "SparseStream openFile(String path, FileMode mode) throws IOException;", "private void fileRead(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// create file\n\t\t\tFile file = new File(path);\n\t\t\tFileInputStream fileStream = new FileInputStream(file);\n\t\t\t\n\t\t\t// data read\n\t\t\tthis.dataContent = new byte[(int)file.length()];\n\t\t\tint ret = fileStream.read(this.dataContent, 0, (int)file.length());\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File Not Found : \" + e.getMessage());\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed File Read : \" + e.getMessage());\n\t\t}\n\t\t\n\t}", "public void openDiskFile(String musicFileName) throws IOException;", "public void loadMusic(File f) {\n music = new MP3(f);\n }", "public InputStream readDocumentAsStream(String path) ;", "String readText(FsPath path);", "public static void main(String[] args) throws IOException {\n\t\t FileInputStream file=new FileInputStream(\"C:\\\\Users\\\\DELL\\\\Desktop\\\\test.txt\");\r\n Scanner scan=new Scanner(file);\r\n while(scan.hasNextLine()){\r\n \t System.out.println(scan.nextLine());\r\n }\r\n \r\n file.close();\r\n\t}", "public void processInput(String theFile){processInput(new File(theFile));}", "SparseStream openFile(String path, FileMode mode, FileAccess access) throws IOException;", "public Data(String path) throws IOException {\n this.path = Paths.get(\"src/main/data/duke.txt\").toAbsolutePath();\n if (Files.notExists(this.path)) {\n new File(String.valueOf(path)).createNewFile();\n }\n }", "String getFile();", "String getFile();", "String getFile();", "@Override\r\n\tpublic InputStream getFile(String filepath) throws FileSystemUtilException {\r\n\t\t\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\t\r\n\r\n\t}", "InputStream openStream() throws IOException;", "public abstract InputStream openStream(String str);", "List readFile(String pathToFile);", "public static void main(String[] args) {\n byte[] content = null;\n try {\n content = Files.readAllBytes(new File(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\diemkhang\\\\test reader\\\\introduce.txt\").toPath());\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(new String(content));\n }", "public static void main(String[] args) \n { \n try \n { \n FileInputStream Program9 = new FileInputStream(\"/downloads/except.txt\");\n Program9.toString();\n } \n catch (FileNotFoundException e) \n { \n System.out.println(\"File does not exist\"); \n } \n }", "@Override\n public InputStream getInputStream() throws IOException\n {\n/**/\n/**/\n/**/\n if (Files.isDirectory(path))\n throw new IOException(path + \" is a directory\");\n\n return Files.newInputStream(path,StandardOpenOption.READ);\n }", "public static void copyInputStreamToFile(Context context, String name)\n throws IOException {\n\n try (FileOutputStream outputStream = new FileOutputStream(string_FILENAME + name)) {\n\n int read;\n byte[] bytes = new byte[1024];\n while ((read = context.getAssets().open(\"training.ipynb\").read(bytes)) != -1) {\n outputStream.write(bytes, 0, read);\n }\n }\n }", "String getFilepath();", "public InputStream openStream(String str) {\n try {\n return new FileInputStream(str);\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }", "void player(){\n InputStream in; ////apabila merah -> ALT+ENTER ->input stream ->TOP\n try { ////try {}catch(Exception e){}\n in = new FileInputStream(new File(vpath.getText()));\n AudioStream audios = new AudioStream(in);\n AudioPlayer.player.start(audios);\n } catch (Exception e) {\n e.printStackTrace();\n } \n }", "InputStream getInputStream() throws FileSystemException;", "public void fileOpen () {\n\t\ttry {\n\t\t\tinput = new Scanner(new File(file));\n\t\t\tSystem.out.println(\"file created\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file could not be created\");\n\t\t}\n\t}", "private Song(String path) {\n\t\tthis.filepath = path + \"\";\n\t\tAudioFileFormat baseFileFormat;\n\t\tClassLoader classloader = Thread.currentThread().getContextClassLoader();\n\t\tInputStream is = classloader.getResourceAsStream(path);\n\t\ttry {\n\t\t\tbaseFileFormat = new MpegAudioFileReader().getAudioFileFormat(is);\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tMap properties = baseFileFormat.properties();\n\t\t\tlong duration = (long) properties.get(\"duration\");\n\t\t\tthis.length = (int) duration / 1000;\n\t\t\tthis.author = (String) properties.get(\"author\");\n\t\t\tthis.name = (String) properties.get(\"title\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Couldn't read the detailed informations for song:\" + path);\n\t\t}\n\t\tFile tempfile = new File(path);\n\t\tthis.displayname = tempfile.getName();\n\t\tif (this.author != null && !this.author.equals(\"\") && this.name != null && !this.name.equals(\"\"))\n\t\t\tthis.displayname = this.author + \" - \" + this.name;\n\t}", "private SoundPlayer(String mp3) {\n\t\tfile = new File(mp3);\n\t}", "public abstract SoundContainer loadSound( InputStream in ) throws IOException;", "private static String readInput() {\n String kbString = \"\";\n File kbFile = new File(\"kb.txt\");\n if(kbFile.canRead()){\n try {\n FileInputStream fileInputStream = new FileInputStream(kbFile);\n\n int c;\n while((c = fileInputStream.read()) != -1){\n kbString += (char) c;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return kbString;\n }", "public fileReaderTest()\n {\n }", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private FileInputStream loadFile(String file)\n\t{\n\t\tlogger.info(\"Fetching File : \"+System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file);\n\t\ttry \n\t\t{\n\t\t\treturn(new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file));\n\t\t} catch (FileNotFoundException e) {\t\t\t\t\n\t\t\tAssert.assertTrue(file+\" file is missing\", false);\n\t\t\treturn null;\n\t\t}\n\t}", "public FileData(String file_path) {\n\t\tpath = file_path;\n\t\ttry {\n\t\t\topenAndReadFile();\n\t\t}\n\t\tcatch (IOException anything) {\n\t\t\tSystem.out.println(\"Couldn't open and read \" + file_path + \". Error: \" + anything.getMessage());\n\t\t}\n\t}", "public File getDataFile();", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\r\n\t\tFile filename = new File(\"D://normal.txt\");\r\n\t\tFileInputStream fstream = new FileInputStream(filename);\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\t\r\n\t}", "File getFile();", "File getFile();", "public static void main(String[] args) {\n\n try {\n FileInputStream inputStream = new FileInputStream(\"fichier1.txt\");\n\n int data = inputStream.read();\n\n while(data != -1) {\n System.out.print((char)data);\n\n data = inputStream.read();\n }\n\n inputStream.close();\n\n }catch(Exception e) {\n System.out.println(e.toString());\n }\n\n }", "public static void main(String[] args) throws FileNotFoundException {\n Scanner input = new Scanner(System.in);\n files(input); // calls files method \n }", "private static void playAudio(String musicFile) {\n }", "public void setInputFilePath(String path) {\n inputFilePath = path;\n }", "void citire(FileReader f);", "public ReadData(String pathname, String userInput)\n\t{\n\t\tUser = userInput;\n\t\tfilename = pathname; //Records the path filename.\n\t}", "public InputStream open(File file) {\n return new FileInputStream(file);\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tString path=\"D:\\\\Users\\\\testfile.txt\";\n\t\tString content = new String(Files.readAllBytes(Paths.get(path)));\n\t\tSystem.out.println(content);\n\n\t}", "@Before\n public void setUp() throws Exception {\n wordFrequency = new WordFrequency();\n bufferedReader = new BufferedReader(new FileReader(\"/home/anurag/Desktop/P2/src/test/com/stackroute/practice/FileDemo.txt\"));\n }", "public Music loadMusic(String fileName);", "public void readFile(String name) {\n\t\tString filename = this.path + name;\n\t\tFile file = new File(filename);\n\t\t\n\t\t\n\t\ttry {\t\t \n\t\t\tScanner reader = new Scanner(file);\n\t\t\t\n\t\t\twhile (reader.hasNextLine()) {\n\t\t\t\tString data = reader.nextLine();\n\t\t System.out.println(data);\n\t\t\t}\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t System.out.println(\"File not found!\");\n\t\t} \n\t}", "private void ReadTextFile(String FilePath) {\n\t\t\n\t\t\n\t}", "public Sound loadSound(String file);", "private void insertIntoFile(String data){\n\t\tOutputStream os = null;\n try {\n os = new FileOutputStream(file);\n os.write(data.getBytes(), 0, data.length());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}", "public GridFSInputFile createFile(InputStream in) {\n\treturn createFile(in, null);\n }", "private FileInputStream getStreamFromPath(Context context, String fileName) {\n ParcelFileDescriptor parcelFileDesc = null;\n FileInputStream inputStream = null;\n try {\n inputStream = new FileInputStream(new File(fileName));\n if (0 != 0) {\n try {\n parcelFileDesc.close();\n } catch (IOException e) {\n Log.e(TAG, \"parcelFileDesc error!\");\n }\n }\n } catch (FileNotFoundException e2) {\n Log.e(TAG, \"getStreamFromPath FileNotFoundException.\");\n if (0 != 0) {\n parcelFileDesc.close();\n }\n } catch (Throwable th) {\n if (0 != 0) {\n try {\n parcelFileDesc.close();\n } catch (IOException e3) {\n Log.e(TAG, \"parcelFileDesc error!\");\n }\n }\n throw th;\n }\n return inputStream;\n }", "public static void main(String[] args)throws IOException {\n\t\tFileReader file = new FileReader(\"D:\\\\stream\\\\hello.txt\");\n\t\tBufferedReader buffer = new BufferedReader(file);\n\t//\tint k =buffer.read();\n\t//\tSystem.out.println(k);\n\t//\tString s = buffer.readLine();\n\t//\tSystem.out.println(s);\n\t\tint k;\n\t\twhile((k=buffer.read())!=-1) {\n\t\t\t\n\t\t\tSystem.out.print((char)k);\n\t\t}\n\t\tbuffer.close();\n\t\tfile.close();\n\t\t\n\t}", "public String readFileIntoString(String filepath) throws IOException;", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"please input the file path....\");\n String filePath = sc.next();\n\n // Second: list the file path, and iterator it's sub direction\n File file = new File(filePath);\n for(File f : file.listFiles()){\n // F:\\MyStudyFile\\IT-Books\\书籍仓库\\Java书籍类\n System.out.println(f.getPath());\n iteratorFilePath(f);\n }\n }", "public static File name(Scanner user) {\n System.out.println(\"Input file name\");\n String fileName = user.nextLine();\n File file = new File(fileName);\n return file;\n }", "void readFile()\n {\n Scanner sc2 = new Scanner(System.in);\n try {\n sc2 = new Scanner(new File(\"src/main/java/ex45/exercise45_input.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (sc2.hasNextLine()) {\n Scanner s2 = new Scanner(sc2.nextLine());\n while (s2.hasNext()) {\n //s is the next word\n String s = s2.next();\n this.readFile.add(s);\n }\n }\n }", "public static void main(String[] args) {\n File file = new File (\"tesEt.txt\");\n // Path file = Paths.get(\"test.txt\");\n // System.out.println(file.get);\n System.out.println(file.getAbsoluteFile());\n System.out.println(file.isAbsolute());\n System.out.println(file.exists());\n \n // try {\n // // File.createTempFile(\"prefix\", \"suffix\");\n // sy\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }finally\n // {\n // System.out.println(\"hehehehe\");\n // }\n // file.\n\n }", "public static void main(String[] args) throws Exception\t{\r\n\t\tif (args.length != 1) {\r\n\t\t\tthrow new IllegalArgumentException(\"Specify a valid directory.\");\r\n\t\t}\r\n\r\n\t\tPath path = Paths.get(args[0]); // Create Path object\r\n\t\t//Having trouble running from commandline. \r\n\t\t// Path path = Paths.get(\"C:\\\\Users\\\\asanchez\\\\Desktop\\\\mp3s\");\r\n\r\n\t\tif (!Files.exists(path)) { // Verify path actually exists.\r\n\t\t\tthrow new IllegalArgumentException(\"Specifed directory does not exist: \" + path);\r\n\t\t}\r\n\t\tSystem.out.println(\"Path Exist!\");\r\n\r\n\t\t/*Step 2.\r\n\t\t * Read all files from directory\r\n\t\t */\r\n\t\tList<Path> filePaths = new ArrayList<>();\r\n\t\t// will need to edit below stream to only pick up certain file types\r\n\t\t// Files.newDirectoryStream(path, \"*.mp3\")\r\n\t\ttry(DirectoryStream<Path> paths = Files.newDirectoryStream(path, \"*.mp3\")) { // try + conditions; stream will need to be closed afterwards\r\n\t\t\t//Get the file names using lambda expressions.\r\n\t\t\tpaths.forEach(p -> {\r\n\t\t\t\tSystem.out.println(\"Found: \" + p.getFileName().toString());\r\n\t\t\t\tfilePaths.add(p);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t//Step 3: Part 1. Using streams to construct list of Song objects created from MP3 data.\r\n\t\tList<Song> songs = filePaths.stream().map(p -> {\r\n\t\t\ttry {\r\n\t\t\t\tMp3File mp3 = new Mp3File(p.toString());\r\n\t\t\t\tID3v2 id3 = mp3.getId3v2Tag();\r\n\t\t\t\treturn new Song(id3.getArtist(), id3.getYear(), id3.getAlbum(), id3.getTitle());\r\n\t\t\t}\r\n\t\t\tcatch (IOException | UnsupportedTagException | InvalidDataException e) {\r\n\t\t\t\tthrow new IllegalStateException(e);\r\n\t\t\t}\r\n\t\t}).collect(Collectors.toList());\r\n\r\n\t\t//Step 4: Database. \r\n\t\t// Can probably update this to Derby on home computer.\r\n\t\ttry (Connection conn = DriverManager.getConnection(\"jdbc:h2:~/mydatabase;AUTO_SERVER=TRUE;INIT=runscript from './create.sql'\")) {\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"INSERT INTO Songs (artist, year, album, title) VALUES (?, ?, ?, ?)\");\r\n\r\n\t\t\tfor(Song s : songs) {\r\n\t\t\t\tps.setString(1, s.getArtist());\r\n\t\t\t\tps.setString(2, s.getYear());\r\n\t\t\t\tps.setString(3, s.getAlbum());\r\n\t\t\t\tps.setString(4, s.getTitle());\r\n\t\t\t\tps.addBatch();\r\n\t\t\t}\r\n\r\n\t\t\tint[] rows = ps.executeBatch();\r\n\t\t\tSystem.out.println(\"Number of rows inserted: \" + rows.length);\t\t\t\r\n\t\t}\r\n\r\n\t\t//Step 5: Start HTTP Server - Part 1\r\n\t\t//This is pretty new for us.. Going to embed Jetty into Java program.\r\n\t\tServer server = new Server(8080);\r\n\r\n\t\tServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);\r\n\t\tcontext.setContextPath(\"/\");\r\n\t\tcontext.setResourceBase(System.getProperty(\"java.io.tmpdir\"));\r\n\t\tserver.setHandler(context);\r\n\r\n\t\tcontext.addServlet(SongServlet.class, \"/songs\");\r\n\t\tserver.start();\r\n\r\n\t\t// Check if program is running on a desktop, and if so, open up a browser on localhost:8080/songs\r\n\t\tif (Desktop.isDesktopSupported()) {\r\n\t\t\tDesktop.getDesktop().browse(new URI(\"http://localhost:8080/songs\"));\r\n\t\t}\r\n\t}", "public static void echoFile(Scanner in) {\n }", "public void textFile(String path){\n\t\tBufferedReader br;\r\n\t\ttry {\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(path),Charset.forName(\"gbk\")));\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new IllegalArgumentException(e);\r\n\t\t}\r\n\t\tLineBufferReader myReader=new LineBufferReader(br);\r\n\t}" ]
[ "0.61616516", "0.6048487", "0.60422564", "0.5975037", "0.58176756", "0.58158314", "0.5786434", "0.57711625", "0.57339215", "0.566829", "0.5666611", "0.5665939", "0.56632596", "0.56516033", "0.5631526", "0.5626756", "0.5618545", "0.55907243", "0.5566877", "0.55574757", "0.5550946", "0.55394936", "0.5520497", "0.55100036", "0.5493635", "0.54903185", "0.5481474", "0.54813105", "0.54515916", "0.5429887", "0.5425838", "0.5418152", "0.5418042", "0.54175043", "0.5409878", "0.5409878", "0.5342953", "0.53429306", "0.53321433", "0.5323997", "0.5320915", "0.53168595", "0.5315783", "0.5312978", "0.53076977", "0.53057724", "0.530524", "0.5299793", "0.5286209", "0.5286209", "0.5286209", "0.5283797", "0.52715886", "0.52704316", "0.52635044", "0.52552295", "0.52373517", "0.52317894", "0.5229519", "0.52272385", "0.52223974", "0.5191199", "0.51900154", "0.51876163", "0.51783013", "0.5176496", "0.51634526", "0.5138662", "0.5129436", "0.51174074", "0.51071787", "0.50973046", "0.5092568", "0.5088841", "0.50884145", "0.50884145", "0.5079587", "0.507834", "0.50719386", "0.5069594", "0.5067443", "0.5056151", "0.5049786", "0.50372624", "0.5035084", "0.5034513", "0.50272566", "0.5026111", "0.5021831", "0.50163203", "0.5014602", "0.50102705", "0.50094724", "0.50002944", "0.49915504", "0.4988221", "0.49837512", "0.4979638", "0.49785364", "0.49757946", "0.49756113" ]
0.0
-1
Created by yi on 2016/11/29.
@UserScope @Component(modules = CreateRichDocModule.class,dependencies = NetComponent.class) public interface CreateRichDocComponent { void inject(CreateRichDocActivity activity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\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\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}", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo4359a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public final void mo51373a() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void ligar() {\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}", "Constructor() {\r\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\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void strin() {\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\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void init() {\n\n\n\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\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\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }" ]
[ "0.6069433", "0.5979896", "0.59249735", "0.59249735", "0.5918983", "0.5917928", "0.5913268", "0.5896675", "0.5895724", "0.58029693", "0.5802744", "0.5788594", "0.5769616", "0.5766929", "0.57215387", "0.5709382", "0.5707987", "0.5677979", "0.5677309", "0.56667906", "0.565933", "0.5640857", "0.56332326", "0.56332326", "0.56332326", "0.56332326", "0.56332326", "0.5631036", "0.56203663", "0.56164306", "0.56139183", "0.56139183", "0.56111425", "0.56028736", "0.5596984", "0.55896723", "0.5589176", "0.55793434", "0.55788374", "0.55540895", "0.5545705", "0.5545705", "0.5545705", "0.55301154", "0.55172306", "0.55172306", "0.55172306", "0.5514409", "0.5514036", "0.5514036", "0.5514036", "0.55112267", "0.5504019", "0.5504019", "0.5504019", "0.5504019", "0.5504019", "0.5504019", "0.5504019", "0.5499528", "0.549846", "0.549846", "0.5495728", "0.5486875", "0.54844946", "0.547857", "0.5477053", "0.54746395", "0.5474404", "0.5470093", "0.5463553", "0.5463553", "0.5460369", "0.5459045", "0.54557526", "0.5452966", "0.5436105", "0.5427923", "0.54249996", "0.54204315", "0.5419799", "0.5416273", "0.5407269", "0.54044473", "0.53983694", "0.5394129", "0.5385604", "0.5384895", "0.5371003", "0.53661096", "0.53661096", "0.53661096", "0.53661096", "0.53661096", "0.53661096", "0.5361206", "0.5361206", "0.53611946", "0.5357575", "0.5357559", "0.5344857" ]
0.0
-1
TODO Autogenerated method stub
@Override public void endSessionSource(SessionSourceEvent sessionSourceEvent) { }
{ "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
Create contents of the dialog.
private void createContents() { shell = new Shell(getParent(), getStyle()); shell.setSize(250, 150); shell.setText(getText()); shell.setLayout(new BorderLayout(0, 0)); Composite composite = new Composite(shell, SWT.NONE); composite.setLayoutData(BorderLayout.SOUTH); composite.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); Composite composite_1 = new Composite(shell, SWT.NONE); composite_1.setLayoutData(BorderLayout.CENTER); composite_1.setLayout(new GridLayout(4, false)); new Label(composite_1, SWT.NONE); Label lblHour = new Label(composite_1, SWT.NONE); lblHour.setSize(0, 0); lblHour.setText("Hour"); Label lblMin = new Label(composite_1, SWT.NONE); lblMin.setSize(0, 0); lblMin.setText("Min"); Button btnAm = new Button(composite_1, SWT.RADIO); btnAm.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { ampm=0; } }); btnAm.setSize(0, 0); btnAm.setText("AM"); Label lblStartTime = new Label(composite_1, SWT.NONE); lblStartTime.setSize(0, 0); lblStartTime.setText("Start Time:"); final Spinner hourSpinner = new Spinner(composite_1, SWT.BORDER); hourSpinner.setSize(0, 0); hourSpinner.setMaximum(12); hourSpinner.setMinimum(1); final Spinner minSpinner = new Spinner(composite_1, SWT.BORDER); minSpinner.setSize(0, 0); minSpinner.setMaximum(59); minSpinner.setMinimum(0); Button btnPm = new Button(composite_1, SWT.RADIO); btnPm.setSize(0, 0); btnPm.setText("PM"); Button btnCancel = new Button(composite, SWT.NONE); btnCancel.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { shell.close(); } }); btnCancel.setText("Cancel"); Button btnOk = new Button(composite, SWT.NONE); btnOk.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { hour = Integer.valueOf(hourSpinner.getText()); minute = Integer.valueOf(minSpinner.getText()); parent.setHour(hour); System.out.println("print hour-->"+hour+". print parent.hour-->"+parent.hour); System.out.println(parent.hour); parent.setMinute(minute); parent.setAmpm(ampm); shell.close(); } }); btnOk.setText("OK"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "private void createContents(ArrayList<String> content) {\r\n\t\t// create ne whell for dialog window\r\n\t\tshell = new Shell(getParent(), SWT.APPLICATION_MODAL);\r\n\t\tshell.setSize(367, 348);\r\n\t\tshell.setText(getText());\r\n\t\t\r\n\t\tcenterDialog(shell);\r\n\r\n\t\t// create List component inside dialog window\r\n\t\tfinal List list = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// fill list with documentation infElements\r\n\t\tfor (int i=0; i<content.size(); i++)\r\n\t\t\tlist.add(content.get(i));\r\n\t\t\r\n\t\t// set default selection\r\n\t\tlist.setSelection(0);\r\n\t\t\r\n\t\t// set position of List component\r\n\t\tlist.setBounds(10, 31, 341, 270);\r\n\t\t\r\n\t\t// create Label for the List component\r\n\t\tLabel lblSelectDocumentationTopic = new Label(shell, SWT.NONE);\r\n\t\tlblSelectDocumentationTopic.setBounds(10, 10, 173, 15);\r\n\t\tlblSelectDocumentationTopic.setText(\"Select Documentation Topic\");\r\n\r\n\t\t// create Cancel button\r\n\t\tButton btnCancel = new Button(shell, SWT.NONE);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = \"\";\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(276, 307, 75, 25);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\r\n\t\t// Create OK button\r\n\t\tButton btnOk = new Button(shell, SWT.NONE);\r\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(183, 307, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\t\t\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}", "protected void createContents() {\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(764, 551);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.NONE);\n\t\tmntmFile.setText(\"File...\");\n\t\t\n\t\tMenuItem mntmEdit = new MenuItem(menu, SWT.NONE);\n\t\tmntmEdit.setText(\"Edit\");\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite.setLayout(null);\n\t\t\n\t\tGroup grpDirectorio = new Group(composite, SWT.NONE);\n\t\tgrpDirectorio.setText(\"Directorio\");\n\t\tgrpDirectorio.setBounds(10, 86, 261, 387);\n\t\t\n\t\tGroup grpListadoDeAccesos = new Group(composite, SWT.NONE);\n\t\tgrpListadoDeAccesos.setText(\"Listado de Accesos\");\n\t\tgrpListadoDeAccesos.setBounds(277, 86, 477, 387);\n\t\t\n\t\tLabel label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 479, 744, 2);\n\t\t\n\t\tButton btnNewButton = new Button(composite, SWT.NONE);\n\t\tbtnNewButton.setBounds(638, 491, 94, 28);\n\t\tbtnNewButton.setText(\"New Button\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(composite, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(538, 491, 94, 28);\n\t\tbtnNewButton_1.setText(\"New Button\");\n\t\t\n\t\tToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar.setBounds(10, 10, 744, 20);\n\t\t\n\t\tToolItem tltmAccion = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion.setText(\"Accion 1\");\n\t\t\n\t\tToolItem tltmAccion_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion_1.setText(\"Accion 2\");\n\t\t\n\t\tToolItem tltmRadio = new ToolItem(toolBar, SWT.RADIO);\n\t\ttltmRadio.setText(\"Radio\");\n\t\t\n\t\tToolItem tltmItemDrop = new ToolItem(toolBar, SWT.DROP_DOWN);\n\t\ttltmItemDrop.setText(\"Item drop\");\n\t\t\n\t\tToolItem tltmCheckItem = new ToolItem(toolBar, SWT.CHECK);\n\t\ttltmCheckItem.setText(\"Check item\");\n\t\t\n\t\tCoolBar coolBar = new CoolBar(composite, SWT.FLAT);\n\t\tcoolBar.setBounds(10, 39, 744, 30);\n\t\t\n\t\tCoolItem coolItem_1 = new CoolItem(coolBar, SWT.NONE);\n\t\tcoolItem_1.setText(\"Accion 1\");\n\t\t\n\t\tCoolItem coolItem = new CoolItem(coolBar, SWT.NONE);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}", "private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.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}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\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\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}", "protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tnum1 = new Text(shell, SWT.BORDER);\n\t\tnum1.setBounds(32, 51, 112, 19);\n\t\t\n\t\tnum2 = new Text(shell, SWT.BORDER);\n\t\tnum2.setBounds(32, 120, 112, 19);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setBounds(32, 31, 92, 14);\n\t\tlblNewLabel.setText(\"First Number:\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(32, 100, 112, 14);\n\t\tlblNewLabel_1.setText(\"Second Number: \");\n\t\t\n\t\tfinal Label answer = new Label(shell, SWT.NONE);\n\t\tanswer.setBounds(35, 204, 60, 14);\n\t\tanswer.setText(\"Answer:\");\n\t\t\n\t\tButton plusButton = new Button(shell, SWT.NONE);\n\t\tplusButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint number1, number2;\n\t\t\t\ttry {\n\t\t\t\t\tnumber1 = Integer.parseInt(num1.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnumber2 = Integer.parseInt(num2.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint ans = number1 + number2;\n\t\t\t\tanswer.setText(\"Answer: \" + ans);\n\t\t\t}\n\t\t});\n\t\tplusButton.setBounds(29, 158, 56, 28);\n\t\tplusButton.setText(\"+\");\n\t\t\n\t\t\n\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(1200, 1100);\n\t\tshell.setText(\"Zagreb Montaža d.o.o\");\n\n\t\tfinal Composite cmpMenu = new Composite(shell, SWT.NONE);\n\t\tcmpMenu.setBackground(SWTResourceManager.getColor(119, 136, 153));\n\t\tcmpMenu.setBounds(0, 0, 359, 1061);\n\t\t\n\t\tFormToolkit formToolkit = new FormToolkit(Display.getDefault());\n\t\tfinal Section sctnCalculator = formToolkit.createSection(cmpMenu, Section.TWISTIE | Section.TITLE_BAR);\n\t\tsctnCalculator.setExpanded(false);\n\t\tsctnCalculator.setBounds(10, 160, 339, 23);\n\t\tformToolkit.paintBordersFor(sctnCalculator);\n\t\tsctnCalculator.setText(\"Kalkulator temperature preddgrijavanja\");\n\n\t\tfinal Section sctn10112ce = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112ce.setBounds(45, 189, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112ce);\n\t\tsctn10112ce.setText(\"1011-2 CE\");\n\t\tsctn10112ce.setVisible(false);\n\n\t\tfinal Section sctn10112cet = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112cet.setBounds(45, 218, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112cet);\n\t\tsctn10112cet.setText(\"1011-2 CET\");\n\t\tsctn10112cet.setVisible(false);\n\n\t\tfinal Section sctnAws = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctnAws.setBounds(45, 247, 304, 23);\n\t\tformToolkit.paintBordersFor(sctnAws);\n\t\tsctnAws.setText(\"AWS\");\n\t\tsctnAws.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112ce = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112ce.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112ce.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112cet = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112cet.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112cet.setVisible(false);\n\t\t\n\t\tfinal Composite compositeAws = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcompositeAws.setBounds(365, 0, 829, 1061);\n\t\tcompositeAws.setVisible(false);\n\t\t\n\t\tsctnCalculator.addExpansionListener(new IExpansionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t\tif (sctnCalculator.isExpanded() == false) {\n\t\t\t\t\tsctn10112ce.setVisible(true);\n\t\t\t\t\tsctn10112cet.setVisible(true);\n\t\t\t\t\tsctnAws.setVisible(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tsctnAws.setVisible(false);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tsctn10112ce.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112ce.isExpanded() == true) {\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112ce(composite10112ce, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctn10112cet.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112cet.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112cet(composite10112cet, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctnAws.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctnAws.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tnew FAws(compositeAws, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t}\n\t\t});\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "protected void createContents() throws Exception {\n\t\tshlGecco = new Shell();\n\t\tshlGecco.setImage(SWTResourceManager.getImage(jdView.class, \"/images/yc.ico\"));\n\t\tshlGecco.setSize(1366, 736);\n\t\tshlGecco.setText(\"gecco爬取京东信息\");\n\t\tshlGecco.setLocation(0, 0);\n\t\tshlGecco.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tSashForm sashForm = new SashForm(shlGecco, SWT.NONE);\n\t\tsashForm.setOrientation(SWT.VERTICAL);\n\n\t\tGroup group = new Group(sashForm, SWT.NONE);\n\t\tgroup.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup.setText(\"爬取查询条件\");\n\t\tgroup.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_2 = new SashForm(group, SWT.NONE);\n\n\t\tGroup group_2 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_2.setText(\"爬取条件\");\n\n\t\tLabel lblip = new Label(group_2, SWT.NONE);\n\t\tlblip.setLocation(34, 27);\n\t\tlblip.setSize(113, 21);\n\t\tlblip.setText(\"输入开始爬取地址:\");\n\n\t\ttxtSearchUrl = new Text(group_2, SWT.BORDER);\n\t\ttxtSearchUrl.setLocation(153, 23);\n\t\ttxtSearchUrl.setSize(243, 23);\n\t\ttxtSearchUrl.setText(\"https://www.jd.com/allSort.aspx\");\n\n\t\tbtnSearch = new Button(group_2, SWT.NONE);\n\t\tbtnSearch.setLocation(408, 23);\n\t\tbtnSearch.setSize(82, 25);\n\n\t\tbtnSearch.setEnabled(false);\n\t\tbtnSearch.setText(\"开始爬取\");\n\n\t\tGroup group_3 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_3.setText(\"查询条件\");\n\n\t\tLabel label_2 = new Label(group_3, SWT.NONE);\n\t\tlabel_2.setLocation(77, 25);\n\t\tlabel_2.setSize(86, 25);\n\t\tlabel_2.setText(\"选择查询条件:\");\n\n\t\tcombo = new Combo(group_3, SWT.NONE);\n\t\tcombo.setLocation(169, 23);\n\t\tcombo.setSize(140, 23);\n\t\tcombo.setItems(new String[] { \"全部\", \"商品总类别\", \"子类别名\", \"类别链接\" });\n\t\t// combo.setText(\"全部\");\n\n\t\tbutton = new Button(group_3, SWT.NONE);\n\t\tbutton.setLocation(524, 23);\n\t\tbutton.setSize(80, 25);\n\t\tbutton.setText(\"点击查询\");\n\t\tbutton.setEnabled(false);\n\n\t\tcombo_1 = new Combo(group_3, SWT.NONE);\n\t\tcombo_1.setEnabled(false);\n\t\tcombo_1.setLocation(332, 23);\n\t\tcombo_1.setSize(170, 23);\n\t\t// combo_1.setItems(new String[] { \"全部\" });\n\t\t// combo_1.setText(\"全部\");\n\t\tsashForm_2.setWeights(new int[] { 562, 779 });\n\t\tGroup group_1 = new Group(sashForm, SWT.NONE);\n\t\tgroup_1.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup_1.setText(\"爬取结果\");\n\t\tgroup_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_1 = new SashForm(group_1, SWT.NONE);\n\n\t\tGroup group_Categorys = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_Categorys.setText(\"商品分组\");\n\t\tgroup_Categorys.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tcategorys = new Table(group_Categorys, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tcategorys.setHeaderVisible(true);\n\t\tcategorys.setLinesVisible(true);\n\n\t\tTableColumn ParentName = new TableColumn(categorys, SWT.NONE);\n\t\tParentName.setWidth(87);\n\t\tParentName.setText(\"商品总类别\");\n\n\t\tTableColumn Title = new TableColumn(categorys, SWT.NONE);\n\t\tTitle.setWidth(87);\n\t\tTitle.setText(\"子类别名\");\n\n\t\tTableColumn Ip = new TableColumn(categorys, SWT.NONE);\n\t\tIp.setWidth(152);\n\t\tIp.setText(\"类别链接\");\n\n\t\tGroup group_ProductBrief = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductBrief.setText(\"商品简要信息列表\");\n\t\tgroup_ProductBrief.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tproductBrief = new Table(group_ProductBrief, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tproductBrief.setLinesVisible(true);\n\t\tproductBrief.setHeaderVisible(true);\n\n\t\tTableColumn Code = new TableColumn(productBrief, SWT.NONE);\n\t\tCode.setWidth(80);\n\t\tCode.setText(\"商品编号\");\n\n\t\tTableColumn Detailurl = new TableColumn(productBrief, SWT.NONE);\n\t\tDetailurl.setWidth(162);\n\t\tDetailurl.setText(\"商品详情链接\");\n\n\t\tTableColumn Preview = new TableColumn(productBrief, SWT.NONE);\n\t\tPreview.setWidth(170);\n\t\tPreview.setText(\"商品图片链接\");\n\n\t\tTableColumn Dtitle = new TableColumn(productBrief, SWT.NONE);\n\t\tDtitle.setWidth(150);\n\t\tDtitle.setText(\"商品标题\");\n\n\t\tGroup group_ProductDetail = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductDetail.setText(\"商品详细信息\");\n\t\tgroup_ProductDetail.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tComposite composite = new Composite(group_ProductDetail, SWT.NONE);\n\n\t\tPDetail = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tPDetail.setLocation(55, 339);\n\t\tPDetail.setSize(360, 220);\n\n\t\tLabel Id = new Label(composite, SWT.NONE);\n\t\tId.setBounds(31, 28, 61, 15);\n\t\tId.setText(\"商品编号:\");\n\n\t\tLabel detail = new Label(composite, SWT.NONE);\n\t\tdetail.setText(\"商品详情:\");\n\t\tdetail.setBounds(31, 311, 61, 15);\n\n\t\tLabel title = new Label(composite, SWT.NONE);\n\t\ttitle.setText(\"商品标题:\");\n\t\ttitle.setBounds(31, 64, 61, 15);\n\n\t\tLabel jdAd = new Label(composite, SWT.NONE);\n\t\tjdAd.setText(\"商品广告:\");\n\t\tjdAd.setBounds(31, 201, 61, 15);\n\n\t\tLabel price = new Label(composite, SWT.NONE);\n\t\tprice.setBounds(31, 108, 61, 15);\n\t\tprice.setText(\"价格:\");\n\n\t\tdcode = new Text(composite, SWT.BORDER);\n\t\tdcode.setEditable(false);\n\t\tdcode.setBounds(98, 25, 217, 21);\n\n\t\tLabel jdprice = new Label(composite, SWT.NONE);\n\t\tjdprice.setBounds(75, 127, 48, 15);\n\t\tjdprice.setText(\"京东价:\");\n\n\t\tLabel srcPrice = new Label(composite, SWT.NONE);\n\t\tsrcPrice.setBounds(75, 166, 48, 15);\n\t\tsrcPrice.setText(\"原售价:\");\n\n\t\tdprice = new Text(composite, SWT.BORDER);\n\t\tdprice.setEditable(false);\n\t\tdprice.setBounds(128, 127, 187, 21);\n\n\t\tdsrcPrice = new Text(composite, SWT.BORDER);\n\t\tdsrcPrice.setEditable(false);\n\t\tdsrcPrice.setBounds(128, 166, 187, 21);\n\n\t\tdtitle = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tdtitle.setBounds(98, 62, 217, 42);\n\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setText(\"广告标题:\");\n\t\tlabel.setBounds(62, 233, 61, 15);\n\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setText(\"广告链接:\");\n\t\tlabel_1.setBounds(62, 272, 61, 15);\n\n\t\tadtitle = new Text(composite, SWT.BORDER);\n\t\tadtitle.setEditable(false);\n\t\tadtitle.setBounds(128, 231, 187, 21);\n\n\t\tadUrl = new Text(composite, SWT.BORDER);\n\t\tadUrl.setEditable(false);\n\t\tadUrl.setBounds(128, 270, 187, 21);\n\t\tsashForm_1.setWeights(new int[] { 335, 573, 430 });\n\t\tsashForm.setWeights(new int[] { 85, 586 });\n\n\t\tdoEvent();// 组件的事件操作\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "protected void createContents() throws Exception\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(755, 592);\n\t\tshell.setText(\"Impresor - Documentos v1.2\");\n\t\t\n\t\tthis.commClass.centrarVentana(shell);\n\t\t\n\t\tlistComandos = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.COLOR_WHITE);\n\t\tlistComandos.setBounds(72, 22, 628, 498);\n\t\tlistComandos.setVisible(false);\n\n//Boton que carga los documentos\t\t\n\t\tButton btnLoaddocs = new Button(shell, SWT.NONE);\n\t\tbtnLoaddocs.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tloadDocs(false, false);\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.setBounds(10, 20, 200, 26);\n\t\tbtnLoaddocs.setText(\"Cargar documentos a imprimir\");\n\t\t\n//Browser donde se muestra el documento descargado\n\t\tbrowser = new Browser(shell, SWT.BORDER);\n\t\tbrowser.setBounds(10, 289, 726, 231);\n\t\tbrowser.addProgressListener(new ProgressListener() \n\t\t{\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// Cuando cambia.\t\n\t\t\t}\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\t/* Cuando se completo \n\t\t\t\t Se usa para parsear el documento una vez cargado, el documento\n\t\t\t\t puede ser un doc xml que contiene un mensaje de error\n\t\t\t\t o un doc html que dara error de parseo Xml,es decir,\n\t\t\t\t ante este error entendemos que se cargo bien el doc HTML.\n\t\t\t\t Paradojico verdad? */\n\t\t\t\tleerDocumentoCargado();\n\t\t\t}\n\t\t });\n\n///Boton para iniciar impresion\t\t\n\t\tButton btnIniPrintW = new Button(shell, SWT.NONE);\n\t\tbtnIniPrintW.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.setBounds(337, 532, 144, 26);\n\t\tbtnIniPrintW.setText(\"Iniciar impresion\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 52, 885, 2);\n\t\t\n\t\tButton btnSalir = new Button(shell, SWT.NONE);\n\t\tbtnSalir.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.setBounds(659, 532, 77, 26);\n\t\tbtnSalir.setText(\"Salir\");\n\t\t\n\t\tthreadLabel = new Label(shell, SWT.BORDER);\n\t\tthreadLabel.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t//mostrar / ocultar el historial de mensajes\n\t\t\t\tMOCmsgHist();\n\t\t\t}\n\t\t});\n\t\tthreadLabel.setAlignment(SWT.CENTER);\n\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\tthreadLabel.setBounds(10, 0, 891, 18);\n\t\tthreadLabel.setText(\"\");\n\t\t\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel_1.setBounds(10, 281, 726, 2);\n\n\t\ttablaDocs = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttablaDocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.setBounds(10, 52, 726, 215);\n\t\ttablaDocs.setHeaderVisible(true);\n\t\ttablaDocs.setLinesVisible(true);\n\t\tcrearColumnas(tablaDocs);\n\t\t\n//Label que muestra los mensajes\n\t\tmensajeTxt = new Label(shell, SWT.NONE);\n\t\tmensajeTxt.setAlignment(SWT.CENTER);\n\t\tmensajeTxt.setBounds(251, 146, 200, 26);\n\t\tmensajeTxt.setText(\"Espere...\");\n\t\t\n//Listado donde se muestran los documentos cargados\n\t\tlistaDocumentos = new List(shell, SWT.BORDER);\n\t\tlistaDocumentos.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.setBounds(10, 82, 726, 77);\n\t\t\n\t\tButton btnShowPreview = new Button(shell, SWT.CHECK);\n\t\tbtnShowPreview.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tmostrarPreview = true;\n\t\t\t\t}else{\n\t\t\t\t\tmostrarPreview = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShowPreview.setBounds(215, 28, 118, 18);\n\t\tbtnShowPreview.setText(\"Mostrar preview\");\n\t\t\n\t\tButton btnAutoRefresh = new Button(shell, SWT.CHECK);\n\t\tbtnAutoRefresh.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tautoRefresh = true;\n\t\t\t\t\tbeginTarea();\n\t\t\t\t}else{\n\t\t\t\t\tautoRefresh = false;\n\t\t\t\t\tponerMsg(\"Carga automática desactivada\");\n\t\t\t\t\tfinishTarea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAutoRefresh.setBounds(353, 28, 128, 18);\n\t\tbtnAutoRefresh.setText(\"Recarga Automática\");\n\t\t\n\t\ttareaBack(this, autoRefresh).start();\n\t\tloadDocs(false, false);\n\t}", "private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }", "public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\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\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tshell.setSize(599, 779);\r\n\t\tshell.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tButton logoBtn = new Button(shell, SWT.NONE);\r\n\t\tlogoBtn.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tMainMenuKaff mm = new MainMenuKaff();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tmm.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tlogoBtn.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\logo for header button.png\"));\r\n\t\tlogoBtn.setBounds(497, 0, 64, 50);\r\n\r\n\t\tLabel headerLabel = new Label(shell, SWT.NONE);\r\n\t\theaderLabel.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\KaffPlatformheader.jpg\"));\r\n\t\theaderLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\theaderLabel.setBounds(0, 0, 607, 50);\r\n\r\n\t\tLabel bookInfoLabel = new Label(shell, SWT.NONE);\r\n\t\tbookInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\tbookInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\tbookInfoLabel.setAlignment(SWT.CENTER);\r\n\t\tbookInfoLabel.setBounds(177, 130, 192, 28);\r\n\t\tbookInfoLabel.setText(\"معلومات الكتاب\");\r\n\r\n\t\tLabel bookTitleLabel = new Label(shell, SWT.NONE);\r\n\t\tbookTitleLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookTitleLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookTitleLabel.setBounds(415, 203, 119, 28);\r\n\t\tbookTitleLabel.setText(\"عنوان الكتاب\");\r\n\r\n\t\tBookTitleTxt = new Text(shell, SWT.BORDER);\r\n\t\tBookTitleTxt.setBounds(56, 206, 334, 24);\r\n\r\n\t\tLabel bookIDLabel = new Label(shell, SWT.NONE);\r\n\t\tbookIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookIDLabel.setBounds(415, 170, 119, 32);\r\n\t\tbookIDLabel.setText(\"رمز الكتاب\");\r\n\r\n\t\tLabel editionLabel = new Label(shell, SWT.NONE);\r\n\t\teditionLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\teditionLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\teditionLabel.setBounds(415, 235, 119, 28);\r\n\t\teditionLabel.setText(\"إصدار الكتاب\");\r\n\r\n\t\teditionTxt = new Text(shell, SWT.BORDER);\r\n\t\teditionTxt.setBounds(271, 240, 119, 24);\r\n\r\n\t\tLabel lvlLabel = new Label(shell, SWT.NONE);\r\n\t\tlvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tlvlLabel.setText(\"المستوى\");\r\n\t\tlvlLabel.setBounds(415, 269, 119, 27);\r\n\r\n\t\tCombo lvlBookCombo = new Combo(shell, SWT.NONE);\r\n\t\tlvlBookCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\tlvlBookCombo.setBounds(326, 272, 64, 25);\r\n\t\tlvlBookCombo.select(0);\r\n\r\n\t\tLabel priceLabel = new Label(shell, SWT.NONE);\r\n\t\tpriceLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tpriceLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tpriceLabel.setText(\"السعر\");\r\n\t\tpriceLabel.setBounds(415, 351, 119, 28);\r\n\r\n\t\tGroup groupType = new Group(shell, SWT.NONE);\r\n\t\tgroupType.setBounds(56, 320, 334, 24);\r\n\r\n\t\tButton button = new Button(groupType, SWT.RADIO);\r\n\t\tbutton.setSelection(true);\r\n\t\tbutton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton.setBounds(21, 0, 73, 21);\r\n\t\tbutton.setText(\"مجاناً\");\r\n\r\n\t\tButton button_1 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_1.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_1.setBounds(130, 0, 73, 21);\r\n\t\tbutton_1.setText(\"إعارة\");\r\n\r\n\t\tButton button_2 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_2.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_2.setBounds(233, 0, 80, 21);\r\n\t\tbutton_2.setText(\"للبيع\");\r\n\r\n\t\tpriceTxtValue = new Text(shell, SWT.BORDER);\r\n\t\tpriceTxtValue.setBounds(326, 355, 64, 24);\r\n\r\n\t\tLabel ownerInfoLabel = new Label(shell, SWT.NONE);\r\n\t\townerInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\townerInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\townerInfoLabel.setText(\"معلومات صاحبة الكتاب\");\r\n\t\townerInfoLabel.setAlignment(SWT.CENTER);\r\n\t\townerInfoLabel.setBounds(147, 400, 242, 28);\r\n\r\n\t\tLabel ownerIDLabel = new Label(shell, SWT.NONE);\r\n\t\townerIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerIDLabel.setBounds(415, 441, 119, 34);\r\n\t\townerIDLabel.setText(\"الرقم الأكاديمي\");\r\n\r\n\t\townerIDValue = new Text(shell, SWT.BORDER);\r\n\t\townerIDValue.setBounds(204, 444, 186, 24);\r\n\t\t// need to check if the owner is already in the database...\r\n\r\n\t\tLabel nameLabel = new Label(shell, SWT.NONE);\r\n\t\tnameLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tnameLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tnameLabel.setBounds(415, 481, 119, 28);\r\n\t\tnameLabel.setText(\"الاسم الثلاثي\");\r\n\r\n\t\tnameTxt = new Text(shell, SWT.BORDER);\r\n\t\tnameTxt.setBounds(56, 485, 334, 24);\r\n\r\n\t\tLabel phoneLabel = new Label(shell, SWT.NONE);\r\n\t\tphoneLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tphoneLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tphoneLabel.setText(\"رقم الجوال\");\r\n\t\tphoneLabel.setBounds(415, 515, 119, 27);\r\n\r\n\t\tphoneTxt = new Text(shell, SWT.BORDER);\r\n\t\tphoneTxt.setBounds(204, 521, 186, 24);\r\n\r\n\t\tLabel ownerLvlLabel = new Label(shell, SWT.NONE);\r\n\t\townerLvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerLvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerLvlLabel.setBounds(415, 548, 119, 31);\r\n\t\townerLvlLabel.setText(\"المستوى\");\r\n\r\n\t\tCombo owneLvlCombo = new Combo(shell, SWT.NONE);\r\n\t\towneLvlCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\towneLvlCombo.setBounds(326, 554, 64, 25);\r\n\t\towneLvlCombo.select(0);\r\n\r\n\t\tLabel emailLabel = new Label(shell, SWT.NONE);\r\n\t\temailLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\temailLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\temailLabel.setBounds(415, 583, 119, 38);\r\n\t\temailLabel.setText(\"البريد الإلكتروني\");\r\n\r\n\t\temailTxt = new Text(shell, SWT.BORDER);\r\n\t\temailTxt.setBounds(56, 586, 334, 24);\r\n\r\n\t\tButton addButton = new Button(shell, SWT.NONE);\r\n\t\taddButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString bookQuery = \"INSERT INTO kaff.BOOK(bookID, bookTitle, price, level,available, type) VALUES (?, ?, ?, ?, ?, ?, ?)\";\r\n\t\t\t\t\tString bookEdition = \"INSERT INTO kaff.bookEdition(bookID, edition, year) VALUES (?, ?, ?)\";\r\n\t\t\t\t\tString ownerQuery = \"INSERT INTO kaff.user(userID, fname, mname, lastname, phone, level, personalEmail, email) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n\t\t\t\t\tString bookID = bookIDTxt.getText();\r\n\t\t\t\t\tString bookTitle = BookTitleTxt.getText();\r\n\t\t\t\t\tint bookLevel = lvlBookCombo.getSelectionIndex();\r\n\t\t\t\t\tString type = groupType.getText();\r\n\t\t\t\t\tdouble price = Double.parseDouble(priceTxtValue.getText());\r\n\t\t\t\t\tboolean available = true;\r\n\r\n\t\t\t\t\t// must error handle\r\n\t\t\t\t\tString[] ed = editionTxt.getText().split(\" \");\r\n\t\t\t\t\tString edition = ed[0];\r\n\t\t\t\t\tString year = ed[1];\r\n\r\n\t\t\t\t\tString ownerID = ownerIDValue.getText();\r\n\r\n\t\t\t\t\t// error handle if the user enters two names or just first name\r\n\t\t\t\t\tString[] name = nameTxt.getText().split(\" \");\r\n\t\t\t\t\tString fname = \"\", mname = \"\", lname = \"\";\r\n\t\t\t\t\tSystem.out.println(\"name array\" + name);\r\n\t\t\t\t\tif (name.length > 2) {\r\n\t\t\t\t\t\tfname = name[0];\r\n\t\t\t\t\t\tmname = name[1];\r\n\t\t\t\t\t\tlname = name[2];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString phone = phoneTxt.getText();\r\n\t\t\t\t\tint userLevel = owneLvlCombo.getSelectionIndex();\r\n\t\t\t\t\tString email = emailTxt.getText();\r\n\r\n\t\t\t\t\tDatabase.openConnection();\r\n\t\t\t\t\tPreparedStatement bookStatement = Database.getConnection().prepareStatement(bookQuery);\r\n\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, bookTitle);\r\n\t\t\t\t\tbookStatement.setInt(3, bookLevel);\r\n\t\t\t\t\tbookStatement.setString(4, type);\r\n\t\t\t\t\tbookStatement.setDouble(5, price);\r\n\t\t\t\t\tbookStatement.setBoolean(6, available);\r\n\r\n\t\t\t\t\tint bookre = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tbookStatement = Database.getConnection().prepareStatement(bookEdition);\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, edition);\r\n\t\t\t\t\tbookStatement.setString(3, year);\r\n\r\n\t\t\t\t\tint edResult = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tPreparedStatement ownerStatement = Database.getConnection().prepareStatement(ownerQuery);\r\n\t\t\t\t\townerStatement.setString(1, ownerID);\r\n\t\t\t\t\townerStatement.setString(2, fname);\r\n\t\t\t\t\townerStatement.setString(3, mname);\r\n\t\t\t\t\townerStatement.setString(4, lname);\r\n\t\t\t\t\townerStatement.setString(5, phone);\r\n\t\t\t\t\townerStatement.setInt(6, userLevel);\r\n\t\t\t\t\townerStatement.setString(7, ownerID + \"iau.edu.sa\");\r\n\t\t\t\t\townerStatement.setString(8, email);\r\n\t\t\t\t\tint ownRes = ownerStatement.executeUpdate();\r\n\r\n\t\t\t\t\tSystem.out.println(\"results: \" + ownRes + \" \" + edResult + \" bookre\");\r\n\t\t\t\t\t// test result of excute Update\r\n\t\t\t\t\tif (ownRes != 0 && edResult != 0 && bookre != 0) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is updated\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is not updated\");\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDatabase.closeConnection();\r\n\t\t\t\t} catch (SQLException sql) {\r\n\t\t\t\t\tSystem.out.println(sql);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\taddButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\taddButton.setBounds(54, 666, 85, 26);\r\n\t\taddButton.setText(\"إضافة\");\r\n\r\n\t\tButton backButton = new Button(shell, SWT.NONE);\r\n\t\tbackButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tAdminMenu am = new AdminMenu();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tam.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbackButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbackButton.setBounds(150, 666, 85, 26);\r\n\t\tbackButton.setText(\"رجوع\");\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(177, 72, 192, 21);\r\n\t\tlabel.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(22, 103, 167, 21);\r\n\t\t// get user name here to display\r\n\t\tString name = getUserName();\r\n\t\tlabel_1.setText(\"مرحباً ...\" + name);\r\n\r\n\t\tbookIDTxt = new Text(shell, SWT.BORDER);\r\n\t\tbookIDTxt.setBounds(271, 170, 119, 24);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setModified(true);\n\t\tshell.setSize(512, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(null);\n\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);\n\t\tlabel.setBounds(253, 26, 2, 225);\n\n\t\tcomboCarBrandBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_1.setText(\"Selected\");\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandBuy.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandBuy.setBounds(87, 33, 123, 23);\n\t\tcomboCarBrandBuy.setText(\"--select--\");\n\n\t\tLabel lblCarBrand = new Label(shell, SWT.NONE);\n\t\tlblCarBrand.setAlignment(SWT.RIGHT);\n\t\tlblCarBrand.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarBrand.setBounds(12, 38, 71, 15);\n\t\tlblCarBrand.setText(\"Car Brand :\");\n\n\t\ttextCarNameBuy = new Text(shell, SWT.BORDER);\n\t\ttextCarNameBuy.setBounds(87, 67, 123, 21);\n\n\t\tLabel lblCarName = new Label(shell, SWT.NONE);\n\t\tlblCarName.setAlignment(SWT.RIGHT);\n\t\tlblCarName.setText(\"Car Name :\");\n\t\tlblCarName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarName.setBounds(12, 70, 71, 15);\n\n\t\tcomboCarModelBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelBuy.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelBuy.setBounds(87, 99, 91, 23);\n\t\tcomboCarModelBuy.setText(\"--select--\");\n\n\t\tLabel lblModelYear = new Label(shell, SWT.NONE);\n\t\tlblModelYear.setAlignment(SWT.RIGHT);\n\t\tlblModelYear.setText(\"Model :\");\n\t\tlblModelYear.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblModelYear.setBounds(12, 105, 71, 15);\n\n\t\tButton buttonBuy = new Button(shell, SWT.NONE);\n\t\tbuttonBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carName = textCarNameBuy.getText();\n\t\t\t\tString carModel = comboCarModelBuy.getText();\n\n\t\t\t\tif(comboCarBrandBuy.getText().equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tmarutiMap.put(carName, carModel);\n\t\t\t\t}\n\n\t\t\t\tlabel_1.setText(\"Added to Inventory\");\n\t\t\t\tSystem.out.println(marutiMap);\n\t\t\t}\n\t\t});\n\t\tbuttonBuy.setBounds(87, 138, 63, 25);\n\t\tbuttonBuy.setText(\"BUY\");\n\n\t\tlabel_1 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_1.setBounds(73, 198, 137, 19);\n\n\t\tLabel lblStatus = new Label(shell, SWT.NONE);\n\t\tlblStatus.setBounds(22, 198, 45, 15);\n\t\tlblStatus.setText(\"Status :\");\n\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\n\t\tlabel_2.setText(\"Car Brand :\");\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_2.setAlignment(SWT.RIGHT);\n\t\tlabel_2.setBounds(280, 38, 71, 15);\n\n\t\tcomboCarBrandSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carBrand = comboCarBrandSell.getText();\n\t\t\t\tcomboCarNameSell.clearSelection();\n\t\t\t\t\n\t\t\t\tif(carBrand.equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tSet<String> keyList = marutiMap.keySet();\n\t\t\t\t\tint i=0;\n\t\t\t\t\tfor(String key : keyList){\n\t\t\t\t\t\tcarNames.add(key);\n\t\t\t\t\t\t//comboCarNameSell.setItem(i, key);\n\t\t\t\t\t\t//i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] strArray = (String[]) carNames.toArray(new String[0]);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcomboCarNameSell.setItems(strArray);\n\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandSell.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandSell.setBounds(355, 33, 123, 23);\n\t\tcomboCarBrandSell.setText(\"--select--\");\n\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\n\t\tlabel_3.setText(\"Car Name :\");\n\t\tlabel_3.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_3.setAlignment(SWT.RIGHT);\n\t\tlabel_3.setBounds(280, 70, 71, 15);\n\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\n\t\tlabel_4.setText(\"Model :\");\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_4.setAlignment(SWT.RIGHT);\n\t\tlabel_4.setBounds(280, 105, 71, 15);\n\n\t\tCombo comboCarModelSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelSell.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelSell.setBounds(355, 99, 91, 23);\n\t\tcomboCarModelSell.setText(\"--select--\");\n\n\t\tButton buttonSell = new Button(shell, SWT.NONE);\n\t\tbuttonSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_5.setText(\"Sold Successfully\");\n\t\t\t}\n\t\t});\n\t\tbuttonSell.setText(\"SELL\");\n\t\tbuttonSell.setBounds(355, 138, 63, 25);\n\n\t\tlabel_5 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_5.setBounds(341, 198, 137, 19);\n\n\t\tLabel label_6 = new Label(shell, SWT.NONE);\n\t\tlabel_6.setText(\"Status :\");\n\t\tlabel_6.setBounds(290, 198, 45, 15);\n\n\t\tcomboCarNameSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarNameSell.setItems(new String[] {});\n\t\tcomboCarNameSell.setBounds(355, 65, 123, 23);\n\t\tcomboCarNameSell.setText(\"--select--\");\n\n\t}", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\n\t\tcreateContent(container);\n\n\t\treturn container;\n\t}", "private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}", "private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "protected void createContents() {\n\t\tshlFaststone = new Shell();\n\t\tshlFaststone.setImage(SWTResourceManager.getImage(Edit.class, \"/image/all1.png\"));\n\t\tshlFaststone.setToolTipText(\"\");\n\t\tshlFaststone.setSize(944, 479);\n\t\tshlFaststone.setText(\"kaca\");\n\t\tshlFaststone.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tComposite composite = new Composite(shlFaststone, SWT.NONE);\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm = new SashForm(composite, SWT.VERTICAL);\n\t\t//\n\t\tMenu menu = new Menu(shlFaststone, SWT.BAR);\n\t\tshlFaststone.setMenuBar(menu);\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setSelection(true);\n\t\tmenuItem.setText(\"\\u6587\\u4EF6\");\n\t\t\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\t\t\n\t\tfinal Canvas down=new Canvas(shlFaststone,SWT.NONE|SWT.BORDER|SWT.DOUBLE_BUFFERED);\n\t\t\n\t\tComposite composite_4 = new Composite(sashForm, SWT.BORDER);\n\t\tcomposite_4.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_3 = new SashForm(composite_4, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_3);\n\t\tformToolkit.paintBordersFor(sashForm_3);\n\t\t\n\t\tToolBar toolBar = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.WRAP | SWT.RIGHT);\n\t\ttoolBar.setToolTipText(\"\");\n\t\t\n\t\tToolItem toolItem_6 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_6.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_2.notifyListeners(SWT.Selection,event1);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6253\\u5F00.jpg\"));\n\t\ttoolItem_6.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t\n\t\ttltmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttltmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\ttltmNewItem.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t//关闭\n\t\tToolItem tltmNewItem_4 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttltmNewItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttltmNewItem_4.setText(\"\\u5173\\u95ED\");\n\t\t\n\t\t\n\t\t\n\t\tToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\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\n\t\ttltmNewItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u653E\\u5927.jpg\"));\n\t\t\n\t\t//工具栏:放大\n\t\t\n\t\ttltmNewItem_1.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t//工具栏:缩小\n\t\ttltmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\ttltmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F29\\u5C0F.jpg\"));\n\t\ttltmNewItem_2.setText(\"\\u7F29\\u5C0F\");\n\t\tToolItem toolItem_5 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttoolItem_5.setText(\"\\u9000\\u51FA\");\n\t\t\n\t\tToolBar toolBar_1 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\tformToolkit.adapt(toolBar_1);\n\t\tformToolkit.paintBordersFor(toolBar_1);\n\t\t\n\t\tToolItem toolItem_7 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:标题\n\t\ttoolItem_7.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_7.setText(\"\\u6807\\u9898\");\n\t\ttoolItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6807\\u9898.jpg\"));\n\t\t\n\t\tToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:调整大小\n\t\ttoolItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_1.setText(\"\\u8C03\\u6574\\u5927\\u5C0F\");\n\t\ttoolItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u8C03\\u6574\\u5927\\u5C0F.jpg\"));\n\t\t\n\t\tToolBar toolBar_2 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tformToolkit.adapt(toolBar_2);\n\t\tformToolkit.paintBordersFor(toolBar_2);\n\t\t\n\t\tToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:裁剪\n\t\ttoolItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_2.setText(\"\\u88C1\\u526A\");\n\t\ttoolItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u88C1\\u526A.jpg\"));\n\t\t\n\t\tToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:剪切\n\t\ttoolItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_3.setText(\"\\u526A\\u5207\");\n\t\ttoolItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u526A\\u5207.jpg\"));\n\t\t\n\t\tToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\n\t\t//工具栏:粘贴\n\t\ttoolItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tcomposite_3.layout();\n\t\t\t\tFile f=new File(\"src/picture/beauty.jpg\");\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tButton lblNewLabel_3 = null;\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcomposite_3.layout();\n\t\t\t}\n\t\t});\n\t\t//omposite;\n\t\t//\n\t\t\n\t\ttoolItem_4.setText(\"\\u590D\\u5236\");\n\t\ttoolItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u590D\\u5236.jpg\"));\n\t\t\n\t\tToolItem tltmNewItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\ttltmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\ttltmNewItem_3.setText(\"\\u7C98\\u8D34\");\n\t\tsashForm_3.setWeights(new int[] {486, 165, 267});\n\t\t\n\t\tComposite composite_1 = new Composite(sashForm, SWT.NONE);\n\t\tformToolkit.adapt(composite_1);\n\t\tformToolkit.paintBordersFor(composite_1);\n\t\tcomposite_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_1 = new SashForm(composite_1, SWT.VERTICAL);\n\t\tformToolkit.adapt(sashForm_1);\n\t\tformToolkit.paintBordersFor(sashForm_1);\n\t\t\n\t\tComposite composite_2 = new Composite(sashForm_1, SWT.NONE);\n\t\tformToolkit.adapt(composite_2);\n\t\tformToolkit.paintBordersFor(composite_2);\n\t\tcomposite_2.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(composite_2, SWT.NONE);\n\t\ttabFolder.setTouchEnabled(true);\n\t\tformToolkit.adapt(tabFolder);\n\t\tformToolkit.paintBordersFor(tabFolder);\n\t\t\n\t\tTabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem.setText(\"\\u65B0\\u5EFA\\u4E00\");\n\t\t\n\t\tTabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_1.setText(\"\\u65B0\\u5EFA\\u4E8C\");\n\t\t\n\t\tTabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_2.setText(\"\\u65B0\\u5EFA\\u4E09\");\n\t\t\n\t\tButton button = new Button(tabFolder, SWT.CHECK);\n\t\tbutton.setText(\"Check Button\");\n\t\t\n\t\tcomposite_3 = new Composite(sashForm_1, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\t\n\t\tformToolkit.adapt(composite_3);\n\t\tformToolkit.paintBordersFor(composite_3);\n\t\tcomposite_3.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tLabel lblNewLabel_3 = new Label(composite_3, SWT.NONE);\n\t\tformToolkit.adapt(lblNewLabel_3, true, true);\n\t\tlblNewLabel_3.setText(\"\");\n\t\tsashForm_1.setWeights(new int[] {19, 323});\n\t\t\n\t\tComposite composite_5 = new Composite(sashForm, SWT.NONE);\n\t\tcomposite_5.setToolTipText(\"\");\n\t\tcomposite_5.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_2 = new SashForm(composite_5, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_2);\n\t\tformToolkit.paintBordersFor(sashForm_2);\n\t\t\n\t\tLabel lblNewLabel = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel, true, true);\n\t\tlblNewLabel.setText(\"1/1\");\n\t\t\n\t\tLabel lblNewLabel_2 = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_2, true, true);\n\t\tlblNewLabel_2.setText(\"\\u5927\\u5C0F\\uFF1A1366*728\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(sashForm_2, SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_1, true, true);\n\t\tlblNewLabel_1.setText(\"\\u7F29\\u653E\\uFF1A100%\");\n\t\t\n\t\tLabel label = new Label(sashForm_2, SWT.NONE);\n\t\tlabel.setAlignment(SWT.RIGHT);\n\t\tformToolkit.adapt(label, true, true);\n\t\tlabel.setText(\"\\u5494\\u5693\\u5DE5\\u4F5C\\u5BA4\\u7248\\u6743\\u6240\\u6709\");\n\t\tsashForm_2.setWeights(new int[] {127, 141, 161, 490});\n\t\tsashForm.setWeights(new int[] {50, 346, 22});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u65B0\\u5EFA.jpg\"));\n\t\tmntmNewItem.setText(\"\\u65B0\\u5EFA\");\n\t\t\n\t\tmntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t//Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);\n\t\t\t\t//Canvas c=new Canvas(shlFaststone,SWT.BALLOON);\n\t\t\t\t\n\t\t\t\tFileDialog dialog = new FileDialog(shlFaststone,SWT.OPEN); \n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user_home\"));//设置初始路径\n\t\t\t\tdialog.setFilterNames(new String[] {\"文本文档(*txt)\",\"所有文档\"}); \n\t\t\t\tdialog.setFilterExtensions(new String[]{\"*.exe\",\"*.xls\",\"*.*\"});\n\t\t\t\tString path=dialog.open();\n\t\t\t\tString s=null;\n\t\t\t\tFile f=null;\n\t\t\t\tif(path==null||\"\".equals(path)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t f=new File(path);\n\t\t\t\tbyte[] bs=Fileutil.readFile(f);\n\t\t\t s=new String(bs,\"UTF-8\");\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tMessageDialog.openError(shlFaststone, \"出错了\", \"打开\"+path+\"出错了\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t \n\t\t\t\ttext = new Text(composite_4, SWT.BORDER | SWT.WRAP\n\t\t\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL\n\t\t\t\t\t\t| SWT.MULTI);\n\t\t\t\ttext.setText(s);\n\t\t\t\tcomposite_1.layout();\n\t\t\t\tshlFaststone.setText(shlFaststone.getText()+\"\\t\"+f.getName());\n\t\t\t\t\t\n\t\t\t\tFile f1=new File(path);\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f1));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u6253\\u5F00.jpg\"));\n\t\tmntmNewItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_1.setText(\"\\u4ECE\\u526A\\u8D34\\u677F\\u5BFC\\u5165\");\n\t\t\n\t\tMenuItem mntmNewItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\tmntmNewItem_3.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t\n\t\t mntmNewItem_5 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t boolean result=MessageDialog.openConfirm(shlFaststone,\"退出\",\"是否确认退出\");\n\t\t\t\t if(result) {\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u4FDD\\u5B58.jpg\"));\n\t\tmntmNewItem_5.setText(\"\\u5173\\u95ED\");\n\t\tevent2=new Event();\n\t\tevent2.widget=mntmNewItem_5;\n\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u6355\\u6349\");\n\t\t\n\t\tMenu menu_2 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_2);\n\t\t\n\t\tMenuItem mntmNewItem_6 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_6.setText(\"\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_7 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6355\\u6349\\u7A97\\u53E3\\u6216\\u5BF9\\u8C61.jpg\"));\n\t\tmntmNewItem_7.setText(\"\\u6355\\u6349\\u7A97\\u53E3\\u5BF9\\u8C61\");\n\t\t\n\t\tMenuItem mntmNewItem_8 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_8.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.jpg\"));\n\t\tmntmNewItem_8.setText(\"\\u6355\\u6349\\u77E9\\u5F62\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_9 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_9.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u624B\\u7ED8\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_9.setText(\"\\u6355\\u6349\\u624B\\u7ED8\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_10 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_10.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6574\\u4E2A\\u5C4F\\u5E55.jpg\"));\n\t\tmntmNewItem_10.setText(\"\\u6355\\u6349\\u6574\\u4E2A\\u5C4F\\u5E55\");\n\t\t\n\t\tMenuItem mntmNewItem_11 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_11.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_11.setText(\"\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_12 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_12.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_12.setText(\"\\u6355\\u6349\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349.jpg\"));\n\t\tmenuItem_1.setText(\"\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349\");\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_2.setText(\"\\u7F16\\u8F91\");\n\t\t\n\t\tMenu menu_3 = new Menu(menuItem_2);\n\t\tmenuItem_2.setMenu(menu_3);\n\t\t\n\t\tMenuItem mntmNewItem_14 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_14.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_14.setText(\"\\u64A4\\u9500\");\n\t\t\n\t\tMenuItem mntmNewItem_13 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_13.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_13.setText(\"\\u91CD\\u505A\");\n\t\t\n\t\tMenuItem mntmNewItem_15 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_15.setText(\"\\u9009\\u62E9\\u5168\\u90E8\");\n\t\t\n\t\tMenuItem mntmNewItem_16 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_16.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7F16\\u8F91.\\u88C1\\u526A.jpg\"));\n\t\tmntmNewItem_16.setText(\"\\u88C1\\u526A\");\n\t\t\n\t\tMenuItem mntmNewItem_17 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_17.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u526A\\u5207.jpg\"));\n\t\tmntmNewItem_17.setText(\"\\u526A\\u5207\");\n\t\t\n\t\tMenuItem mntmNewItem_18 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_18.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u590D\\u5236.jpg\"));\n\t\tmntmNewItem_18.setText(\"\\u590D\\u5236\");\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_3, SWT.NONE);\n\t\tmenuItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\tmenuItem_4.setText(\"\\u7C98\\u8D34\");\n\t\t\n\t\tMenuItem mntmNewItem_19 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_19.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_3.setText(\"\\u7279\\u6548\");\n\t\t\n\t\tMenu menu_4 = new Menu(menuItem_3);\n\t\tmenuItem_3.setMenu(menu_4);\n\t\t\n\t\tMenuItem mntmNewItem_20 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_20.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6C34\\u5370.jpg\"));\n\t\tmntmNewItem_20.setText(\"\\u6C34\\u5370\");\n\t\t\n\t\tPanelPic ppn = new PanelPic();\n\t\tMenuItem mntmNewItem_21 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_21.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tflag[0]=true;\n\t\t\t\tflag[1]=false;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t\tdown.addMouseListener(new MouseAdapter(){\n\t\t\tpublic void mouseDown(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=true;\n\t\t\t\tpt=new Point(e.x,e.y);\n\t\t\t\tif(flag[1])\n\t\t\t\t{\n\t\t\t\t\trect=new Composite(down,SWT.BORDER);\n\t\t\t\t\trect.setLocation(e.x, e.y);\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=false;\n\t\t\t\tif(flag[1]&&dirty)\n\t\t\t\t{\n\t\t\t\t\trexx[n-1]=rect.getBounds();\n\t\t\t\t\trect.dispose();\n\t\t\t\t\tdown.redraw();\n\t\t\t\t\tdirty=false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdown.addMouseMoveListener(new MouseMoveListener(){\n\t\t\t@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n if(mouseDown)\n {\n \t dirty=true;\n\t\t\t\tif(flag[0])\n\t\t\t {\n \t GC gc=new GC(down);\n gc.drawLine(pt.x, pt.y, e.x, e.y);\n list.add(new int[]{pt.x,pt.y,e.x,e.y});\n pt.x=e.x;pt.y=e.y;\n\t\t\t }\n else if(flag[1])\n {\n \t if(rect!=null)\n \t rect.setSize(rect.getSize().x+e.x-pt.x, rect.getSize().y+e.y-pt.y);\n// \t down.redraw();\n \t pt.x=e.x;pt.y=e.y;\n }\n }\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tdown.addPaintListener(new PaintListener(){\n\t\t\t@Override\n\t\t\tpublic void paintControl(PaintEvent e) {\n\t\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t\t{\n\t\t\t\t\tint a[]=list.get(i);\n\t\t\t\t\te.gc.drawLine(a[0], a[1], a[2], a[3]);\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(rexx[i]!=null)\n\t\t\t\t\t\te.gc.drawRectangle(rexx[i]);\n\t\t\t\t}\n\t\t\t}});\n\n\t\t\n\t\tmntmNewItem_21.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6587\\u5B57.jpg\"));\n\t\tmntmNewItem_21.setText(\"\\u753B\\u7B14\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_1 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_1.setText(\"\\u67E5\\u770B\");\n\t\t\n\t\tMenu menu_5 = new Menu(mntmNewSubmenu_1);\n\t\tmntmNewSubmenu_1.setMenu(menu_5);\n\t\t\n\t\tMenuItem mntmNewItem_24 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_24.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u653E\\u5927.jpg\"));\n\t\tmntmNewItem_24.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tMenuItem mntmNewItem_25 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_25.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u7F29\\u5C0F.jpg\"));\n\t\tmntmNewItem_25.setText(\"\\u7F29\\u5C0F\");\n\t\t\n\t\tMenuItem mntmNewItem_26 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_26.setText(\"\\u5B9E\\u9645\\u5C3A\\u5BF8\\uFF08100%\\uFF09\");\n\t\t\n\t\tMenuItem mntmNewItem_27 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_27.setText(\"\\u9002\\u5408\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_28 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_28.setText(\"100%\");\n\t\t\n\t\tMenuItem mntmNewItem_29 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_29.setText(\"200%\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_2.setText(\"\\u8BBE\\u7F6E\");\n\t\t\n\t\tMenu menu_6 = new Menu(mntmNewSubmenu_2);\n\t\tmntmNewSubmenu_2.setMenu(menu_6);\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_5.setText(\"\\u5E2E\\u52A9\");\n\t\t\n\t\tMenu menu_7 = new Menu(menuItem_5);\n\t\tmenuItem_5.setMenu(menu_7);\n\t\t\n\t\tMenuItem menuItem_6 = new MenuItem(menu_7, SWT.NONE);\n\t\tmenuItem_6.setText(\"\\u7248\\u672C\");\n\t\t\n\t\tMenuItem mntmNewItem_23 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_23.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\t\n\t\tMenuItem mntmNewItem_30 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_30.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\n\t}", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "protected void createContents() {\n\t\tDelAllShell = new Shell(SWT.CLOSE | SWT.MIN);\n\t\tfinal int WIDTH=java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;\n\t\tfinal int HEIGHT=java.awt.Toolkit.getDefaultToolkit().getScreenSize().height;\n\t\t\n\t\tDelAllShell.setBounds((WIDTH-441)/2,(HEIGHT-300)/2,441, 177);\n\t\tDelAllShell.setText(\"清空\");\n\t\t\n\t\tLabel messgLabel_1 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_1.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_1.setBounds(10, 10, 405, 23);\n\t\tmessgLabel_1.setText(\"您所选择的分组为通讯录列表,确认删除时\");\n\t\t\n\t\tLabel messgLabel_2 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_2.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_2.setBounds(62, 39, 272, 23);\n\t\tmessgLabel_2.setText(\"清空所有内容!\");\n\t\t\n\t\tButton yesButton = new Button(DelAllShell, SWT.NONE);\n\t\tyesButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\tTreeItem[] treeItem=mainTreeItem.getItems();\n\t\t\t\t\tfor(int i=0;i<treeItem.length;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ttreeItem[i].dispose();\n\t\t\t\t\t}\n\t\t\t\tGroups.getGroupList().clear();\n\t\t\t\tUsers.getUserList().clear();\n\t\t\t\tGroups.updateToFile();\n\t\t\t\tUsers.updateToFile();\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tSystem.out.println(\"清空文件失败\");\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDelAllShell.close();\n\t\t\t\t//final Group mainTreeItem = new Group(tree, SWT.NONE);\n\t\t\t\t//mainTreeItem.setText(\"通讯录列表\");\n\t\t\t\t//mainShell.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tyesButton.setBounds(86, 102, 80, 27);\n\t\tyesButton.setText(\"确定\");\n\t\t\n\t\tButton noButton = new Button(DelAllShell, SWT.NONE);\n\t\tnoButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tDelAllShell.close();\n\t\t\t}\n\t\t});\n\t\tnoButton.setText(\"取消\");\n\t\tnoButton.setBounds(254, 102, 80, 27);\n\n\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }", "private void createContents() {\n shell = new Shell(getParent(), getStyle());\n shell.setSize(540, 297);\n shell.setLayout(new GridLayout(1, false));\n\n Composite cmpTop = new Composite(shell, SWT.NONE);\n cmpTop.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n GridLayout gl_cmpTop = new GridLayout(4, false);\n gl_cmpTop.verticalSpacing = 0;\n cmpTop.setLayout(gl_cmpTop);\n\n Label lblBankAccountNumber = new Label(cmpTop, SWT.CENTER);\n lblBankAccountNumber.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBankAccountNumber.setBounds(0, 0, 59, 14);\n lblBankAccountNumber.setText(\"Bank Account\");\n Label lblBranch = new Label(cmpTop, SWT.CENTER);\n lblBranch.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBranch.setBounds(0, 0, 59, 14);\n lblBranch.setText(\"Branch\");\n\n Label lblBank = new Label(cmpTop, SWT.CENTER);\n lblBank.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBank.setText(\"Bank\");\n new Label(cmpTop, SWT.NONE);\n\n txtBankAccountNumber = new Text(cmpTop, SWT.BORDER);\n txtBankAccountNumber.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n txtBankAccountNumber.setBounds(0, 0, 64, 19);\n\n txtBranch = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBranch = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBranch.widthHint = 50;\n txtBranch.setLayoutData(gd_txtBranch);\n txtBranch.setBounds(0, 0, 64, 19);\n\n txtBank = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBank = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBank.widthHint = 50;\n txtBank.setLayoutData(gd_txtBank);\n btnSearch = new Button(cmpTop, SWT.NONE);\n btnSearch.setAlignment(SWT.RIGHT);\n btnSearch.setText(\"Search\");\n btnSearch.setEnabled(false);\n\n Composite cmpResults = new Composite(shell, SWT.NONE);\n cmpResults.setLayout(new GridLayout(1, false));\n GridData gd_cmpResults = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_cmpResults.heightHint = 129;\n cmpResults.setLayoutData(gd_cmpResults);\n\n tblAccounts = new Table(cmpResults, SWT.BORDER);\n GridData gd_tblAccounts = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_tblAccounts.heightHint = 71;\n tblAccounts.setLayoutData(gd_tblAccounts);\n tblAccounts.setHeaderVisible(true);\n tblAccounts.setLinesVisible(true);\n\n TableColumn tblclmnAccountNumber = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnAccountNumber.setWidth(120);\n tblclmnAccountNumber.setText(\"Player Account\");\n\n TableColumn tblclmsFirstName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmsFirstName.setWidth(100);\n tblclmsFirstName.setText(\"First Name\");\n\n TableColumn tblclmnLastName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnLastName.setWidth(100);\n tblclmnLastName.setText(\"Last Name\");\n\n TableColumn tblclmnActivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnActivated.setWidth(95);\n tblclmnActivated.setText(\"From\");\n\n TableColumn tblclmnDeactivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnDeactivated.setWidth(100);\n tblclmnDeactivated.setText(\"To\");\n\n Composite cmpFooter = new Composite(shell, SWT.NONE);\n cmpFooter.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n cmpFooter.setLayout(new GridLayout(2, false));\n\n lblResultsMessage = new Label(cmpFooter, SWT.NONE);\n lblResultsMessage.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\n Composite cmpButtons = new Composite(cmpFooter, SWT.NONE);\n cmpButtons.setLayout(new GridLayout(3, false));\n cmpButtons.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false, 1, 1));\n\n btnLoad = new Button(cmpButtons, SWT.NONE);\n btnLoad.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnLoad.setText(\"Load Account\");\n btnLoad.setEnabled(false);\n\n btnCancel = new Button(cmpButtons, SWT.NONE);\n btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnCancel.setText(\"Cancel\");\n new Label(cmpButtons, SWT.NONE);\n }", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tLabel lblUsername = new Label(shell, SWT.NONE);\n\t\tlblUsername.setBounds(73, 30, 55, 15);\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\tLabel lblPassword = new Label(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(73, 78, 55, 15);\n\t\t\n\t\ttxtUsername = new Text(shell, SWT.BORDER);\n\t\ttxtUsername.setText(\"lisa\");\n\t\ttxtUsername.setBounds(139, 24, 209, 21);\n\t\t\n\t\ttxtPassword = new Text(shell, SWT.BORDER);\n\t\ttxtPassword.setText(\"password1\");\n\t\ttxtPassword.setBounds(139, 72, 209, 21);\n\t\t\n\t\tButton btnLogin = new Button(shell, SWT.NONE);\n\t\tbtnLogin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLogin.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tString usrname = txtUsername.getText();\n\t\t\t\tString usrpass = txtPassword.getText();\n\t\t\t\t\n\t\t\t\t// Call authenticate user credentials through authentication RMI server\n\t\t\t\tLoginInterface login;\n\t\t\t\ttry{\n\t\t\t\t\tlogin = (LoginInterface)Naming.lookup(\"rmi://localhost/login\");\n\t\t\t\t\t\n\t\t\t\t\tboolean authenticated = login.authenticate(usrname, usrpass);\n\t\t\t\t\tif(authenticated){\n\t\t\t\t\t\tSystem.out.println(\"User authenticated.\");\n\t\t\t\t\t\tclose();\n\n\t\t\t\t\t\tevaluator.EvaluatorClient.main(null);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t\tlblMsgOut.setText(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}catch(Exception e2){\n\t\t\t\t\tSystem.out.println(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t\tlblMsgOut.setText(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(272, 118, 75, 25);\n\t\tbtnLogin.setText(\"Login\");\n\t\t\n\t\tlblMsgOut = new Label(shell, SWT.BORDER | SWT.WRAP);\n\t\tlblMsgOut.setBounds(10, 174, 414, 77);\n\t\tlblMsgOut.setText(\"Output:\");\n\n\t}", "protected void createContents() throws UnknownHostException, IOException, InterruptedException {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tshlUser = new Shell();\r\n\t\tshlUser.setSize(450, 464);\r\n\t\tshlUser.setText(\"QQ聊天室\\r\\n\");\r\n\t\t\r\n\t\ttext = new Text(shlUser, SWT.BORDER);\r\n\t\ttext.setEnabled(false);\r\n\t\ttext.setBounds(0, 52, 424, 187);\r\n\t\t\r\n\t\t\r\n\t\ttext_1 = new Text(shlUser, SWT.BORDER);\t\t\r\n\t\ttext_1.setBounds(23, 263, 274, 23);\r\n\t\t\r\n\t\tButton button = new Button(shlUser, SWT.CENTER);\r\n\t\tbutton.setText(\"发送\");\r\n\t\tbutton.setBounds(321, 257, 80, 27);\r\n\t\t\r\n\t\ttext_2 = new Text(shlUser, SWT.BORDER);\r\n\t\ttext_2.setText(\"abc\");\r\n\t\ttext_2.setBounds(61, 7, 91, 23);\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(shlUser, SWT.NONE);\r\n\t\tlblNewLabel.setBounds(0, 10, 51, 17);\r\n\t\tlblNewLabel.setText(\"昵称:\");\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shlUser, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tnew Thread() {\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\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t// 连接服务器\r\n\t\t\t\t\t\t\t\tsocket = new Socket(\"127.0.0.1\", 8888);\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// 如果连不上服务器,说明服务器未启动,则启动服务器\r\n\t\t\t\t\t\t\t\tserver = new ServerSocket(8888);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"服务器启动完成,监听端口:8888\");\r\n\t\t\t\t\t\t\t\tsocket = server.accept();\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\t\t/**\r\n\t\t\t\t\t\t\t * 注意:所有在自定义线程中修改图形控件属性,\r\n\t\t\t\t\t\t\t * 都必须使用 shell.getDisplay().asyncExec() 方法\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tMessageBox mb = new MessageBox(shlUser,SWT.OK);\r\n\t\t\t\t\t\t\t\t\tmb.setText(\"系统提示\");\r\n\t\t\t\t\t\t\t\t\tmb.setMessage(\"连接成功!现在你可以开始聊天了!\");\r\n\t\t\t\t\t\t\t\t\tmb.open();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\ttalker = new Talker(socket, new MsgListener() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onMessage(String msg) {\r\n\t\t\t\t\t\t\t\t\t// 收到消息时,将消息更新到多行文本框\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onConnect(InetAddress addr) {\r\n\t\t\t\t\t\t\t\t\t// 连接成功时,显示对方IP\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tlblNewLabel.setText(\"好友IP:\" + addr.getHostAddress());\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttMsg = new Text(shlUser, SWT.BORDER);\r\n\t\ttMsg.setEnabled(false);\r\n\t\ttMsg.setBounds(10, 364, 414, 26);\r\n\r\n\t\t\r\n\t\tbtnNewButton.setBounds(324, 7, 80, 27);\r\n\t\tbtnNewButton.setText(\"连接服务器\");\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (tMsg.getText().trim().isEmpty() == false) {\r\n\t\t\t\t\t\tString msg = talker.send(text_2.getText(), tMsg.getText());\r\n\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\ttMsg.setText(\"\");\r\n\t\t\t\t\t\t// 设置焦点\r\n\t\t\t\t\t\ttMsg.setFocus();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(new Point(500, 360));\n\t\tshell.setMinimumSize(new Point(500, 360));\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setText(\"欢迎 \"+user.getName()+\" 同学使用学生成绩管理系统\");\n\t\tnew Label(shell, SWT.NONE);\n\t\t\n\t\tComposite compositeStdData = new Composite(shell, SWT.NONE);\n\t\tcompositeStdData.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdData = new GridLayout(2, false);\n\t\tgl_compositeStdData.verticalSpacing = 15;\n\t\tcompositeStdData.setLayout(gl_compositeStdData);\n\t\t\n\t\tLabel labelStdData = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdData.setAlignment(SWT.CENTER);\n\t\tlabelStdData.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdData.setText(\"成绩数据\");\n\t\t\n\t\tLabel labelStdDataNum = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataNum.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataNum.setText(\"学号:\");\n\t\t\n\t\ttextStdDataNum = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataNum.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataName.setText(\"姓名:\");\n\t\t\n\t\ttextStdDataName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataLine = new Label(compositeStdData, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabelStdDataLine.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdDataLine.setText(\"New Label\");\n\t\t\n\t\tLabel labelCourseName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelCourseName.setText(\"课程名\");\n\t\t\n\t\tLabel labelScore = new Label(compositeStdData, SWT.NONE);\n\t\tlabelScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelScore.setText(\"成绩\");\n\t\t\n\t\ttextCourseName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\ttextScore = new Text(compositeStdData, SWT.BORDER);\n\t\ttextScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataFill = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataFill.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tnew Label(compositeStdData, SWT.NONE);\n\t\t\n\t\tComposite compositeStdOp = new Composite(shell, SWT.NONE);\n\t\tcompositeStdOp.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdOp = new GridLayout(1, false);\n\t\tgl_compositeStdOp.verticalSpacing = 15;\n\t\tcompositeStdOp.setLayout(gl_compositeStdOp);\n\t\t\n\t\tLabel labelStdOP = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOP.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));\n\t\tlabelStdOP.setAlignment(SWT.CENTER);\n\t\tlabelStdOP.setText(\"操作菜单\");\n\t\t\n\t\tButton buttonStdOPFirst = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPFirst.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPFirst.setText(\"第一门课程\");\n\t\t\n\t\tButton buttonStdOPNext = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPNext.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPNext.setText(\"下一门课程\");\n\t\t\n\t\tButton buttonStdOPPrev = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPPrev.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPPrev.setText(\"上一门课程\");\n\t\t\n\t\tButton buttonStdOPLast = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPLast.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPLast.setText(\"最后一门课程\");\n\t\t\n\t\tCombo comboStdOPSele = new Combo(compositeStdOp, SWT.NONE);\n\t\tcomboStdOPSele.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tcomboStdOPSele.setText(\"课程名?\");\n\t\t\n\t\tLabel labelStdOPFill = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOPFill.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t}", "protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(447, 310);\n\t\tshell.setText(\"Verisure ASCII Node\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\t\n\t\tTabItem basicItem = new TabItem(tabFolder, SWT.NONE);\n\t\tbasicItem.setText(\"Basic\");\n\t\t\n\t\tComposite basicComposite = new Composite(tabFolder, SWT.NONE);\n\t\tbasicItem.setControl(basicComposite);\n\t\tbasicComposite.setLayout(null);\n\t\t\n\t\tButton btnDelMeasurments = new Button(basicComposite, SWT.NONE);\n\t\t\n\t\tbtnDelMeasurments.setToolTipText(\"Delete the measurements from the device.\");\n\t\tbtnDelMeasurments.setBounds(269, 192, 159, 33);\n\t\tbtnDelMeasurments.setText(\"Delete measurements\");\n\t\t\n\t\tButton btnGetMeasurement = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetMeasurement.setToolTipText(\"Get the latest measurement from the device.\");\n\t\t\n\t\tbtnGetMeasurement.setBounds(0, 36, 159, 33);\n\t\tbtnGetMeasurement.setText(\"Get new bloodvalue\");\n\t\t\n\t\tfinal StyledText receiveArea = new StyledText(basicComposite, SWT.BORDER | SWT.WRAP);\n\t\treceiveArea.setLocation(167, 30);\n\t\treceiveArea.setSize(259, 92);\n\t\treceiveArea.setToolTipText(\"This is where the measurement will be displayd.\");\n\t\t\n\t\tButton btnBase64 = new Button(basicComposite, SWT.RADIO);\n\t\tbtnBase64.setToolTipText(\"Show the latest blood value (base64 encoded).\");\n\t\tbtnBase64.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\t\n\t\tbtnDelMeasurments.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Deleting measurements, please wait...\");\n\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"DEL\";\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\tSystem.out.println(\"Sov i tre sekunder.\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\treceiveArea.setText(\"Deleted measurements from device.\");\n\t\t\t}\n\t\t});\n\t\tbtnBase64.setSelection(true);\n\t\tbtnBase64.setBounds(137, 130, 74, 25);\n\t\tbtnBase64.setText(\"base64\");\n\t\t\n\t\tButton btnHex = new Button(basicComposite, SWT.RADIO);\n\t\tbtnHex.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t\t\t\ttype = 2;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\tbtnHex.setToolTipText(\"Show the measurement in hex.\");\n\t\tbtnHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnHex.setBounds(217, 130, 50, 25);\n\t\tbtnHex.setText(\"hex\");\n\t\t\n\t\tButton btnAscii = new Button(basicComposite, SWT.RADIO);\n\t\t\n\t\tbtnAscii.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 1;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Return that the value should be represented as base64.\n\t\t * \n\t\t */\n\t\t\n\t\tbtnBase64.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 0;\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnAscii.setToolTipText(\"Show the measurement in ascii.\");\n\t\tbtnAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnAscii.setBounds(269, 130, 53, 25);\n\t\tbtnAscii.setText(\"ascii\");\n\t\t\n\t\tLabel label = new Label(basicComposite, SWT.NONE);\n\t\tlabel.setText(\"A master thesis project by Pétur and David\");\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlabel.setBounds(10, 204, 192, 21);\n\t\t\n\t\tButton btnGetDbValue = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetDbValue.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting latest measurements from db, please wait...\");\n\t\t\t}\n\t\t});\n\t\tbtnGetDbValue.setBounds(0, 71, 159, 33);\n\t\tbtnGetDbValue.setText(\"Get latest bloodvalue\");\n\t\t\n\t\t/*\n\t\t *Get measurement from device event handler \n\t\t *\n\t\t *@param The Mouse Adapter\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\tbtnGetMeasurement.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\tpublic void MouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Getting measurement from device, please wait...\");\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"LOG\";\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(2000);\n\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting measurements from device, please wait...\");\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t/*\n\t\t * The advanced tab section\n\t\t */\n\t\t\n\t\tTabItem advancedItem = new TabItem(tabFolder, SWT.NONE);\n\t\tadvancedItem.setText(\"Advanced\");\n\t\t\n\t\tComposite advComposite = new Composite(tabFolder, SWT.NONE);\n\t\tadvancedItem.setControl(advComposite);\n\t\tadvComposite.setLayout(null);\n\t\t\n\t\tButton advSendButton = new Button(advComposite, SWT.NONE);\n\t\t\n\t\n\t\tadvSendButton.setToolTipText(\"Send arbitary data to the device.\");\n\t\n\t\tadvSendButton.setBounds(307, 31, 121, 33);\n\t\tadvSendButton.setText(\"Send Data\");\n\t\t\n\t\tLabel lblNewLabel = new Label(advComposite, SWT.NONE);\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(10, 204, 192, 21);\n\t\tlblNewLabel.setText(\"A master thesis project by Pétur and David\");\n\t\t\n\t\tfinal StyledText advSendArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvSendArea.setToolTipText(\"This is where you type your arbitary data to send to the device.\");\n\t\tadvSendArea.setBounds(10, 31, 291, 33);\n\t\t\n\t\tButton advReceiveButton = new Button(advComposite, SWT.NONE);\n\t\t\n\n\t\t\n\t\tadvReceiveButton.setToolTipText(\"Receive data from the database.\");\n\t\tadvReceiveButton.setBounds(10, 70, 99, 33);\n\t\tadvReceiveButton.setText(\"Receive Data\");\n\t\t\n\t\tfinal StyledText advReceiveArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvReceiveArea.setToolTipText(\"This is where the receive data will be presented.\");\n\t\tadvReceiveArea.setBounds(115, 67, 313, 70);\n\t\t\n\t\tButton advAscii = new Button(advComposite, SWT.RADIO);\n\t\tadvAscii.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tadvReceiveButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receiving the data, please wait...\");\n\t\t\t\tXBNConnection xbn = new XBNConnection();\n\t\t\t\tString text = xbn.getNodeFaults(advType);\n\t\t\t\tadvReceiveArea.setText(text);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receivng data from device, please wait\");\n\t\t\t}\n\t\t});\n\t\tadvAscii.setSelection(true);\n\t\tadvAscii.setToolTipText(\"Show the database results as ascii.\");\n\t\tadvAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvAscii.setBounds(10, 109, 54, 25);\n\t\tadvAscii.setText(\"ascii\");\n\t\t\n\t\tButton advHex = new Button(advComposite, SWT.RADIO);\n\t\tadvHex.setToolTipText(\"Show the database results as hex.\");\n\t\tadvHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvHex.setBounds(66, 109, 43, 25);\n\t\tadvHex.setText(\"hex\");\n\t\tadvHex.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnDeleteDatabase = new Button(advComposite, SWT.NONE);\n\t\tbtnDeleteDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tdb.deleteMessages();\n\t\t\t\tadvReceiveArea.setText(\"Deleted data from database\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnDeleteDatabase.setToolTipText(\"Delete entries in the database.\");\n\t\tbtnDeleteDatabase.setText(\"Delete database\");\n\t\tbtnDeleteDatabase.setBounds(269, 192, 159, 33);\n\t\t\n\t\n\t\t\n\n\t\t/*\n\t\t * This is the advanced send button. Can send arbitary text to the device.\n\t\t */\n\t\t\n\t\tadvSendButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\t//advSendArea.setText(\"Sending: '\"+advSendArea.getText()+\"' to the device, please wait...\");\n\t\t\t\tString theText = advSendArea.getText();\n\t\t\t\tSystem.out.println(\"Texten som ska skickas är: \" + theText);\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tString chunkText = \"\";\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tStringBuilder sb = new StringBuilder(theText);\n\t\t\t\t// Add and @ to be sure that there will never be two strings that are\n\t\t\t\t// the same in a row.\n\t\t\t\t// for (int i = 3; i < sb.toString().length(); i += 6) {\n\t\t\t\t// sb.insert(i, \"@\");\n\t\t\t\t// }\n\t\t\t\t// theText = sb.toString();\n\t\t\t\tSystem.out.println(theText);\n\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\tif (theText.length() < 3) {\n\t\t\t\t\t\tchunkText = theText.substring(0, theText.length());\n\t\t\t\t\t\tint pad = theText.length() % 3;\n\t\t\t\t\t\tif (pad == 1) {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunkText = theText.substring(0, 3);\n\t\t\t\t\t}\n\n\t\t\t\t\ttheText = theText.substring(3);\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\trest.doPut(chunkText);\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile (theText.length() > 0 && db.getAck(chunkText, rest));\n\t\t\t\tadvSendArea.setText(\"Data sent to the device.\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\n\t}", "protected void createContents() {\n\n\t\tfinal FileServeApplicationWindow appWindow = this;\n\n\t\tthis.shlFileServe = new Shell();\n\t\tthis.shlFileServe.setSize(450, 300);\n\t\tthis.shlFileServe.setText(\"File Serve - Server\");\n\t\tthis.shlFileServe.setLayout(new BorderLayout(0, 0));\n\n\t\tthis.composite = new Composite(this.shlFileServe, SWT.NONE);\n\t\tthis.composite.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tthis.composite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.composite.setLayout(new FormLayout());\n\n\t\tthis.lblServerTcpPort = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerTcpPort = new FormData();\n\t\tfd_lblServerTcpPort.top = new FormAttachment(0, 10);\n\t\tfd_lblServerTcpPort.left = new FormAttachment(0, 10);\n\t\tthis.lblServerTcpPort.setLayoutData(fd_lblServerTcpPort);\n\t\tthis.lblServerTcpPort.setText(\"Server TCP Port:\");\n\n\t\tthis.serverTCPPortField = new Text(this.composite, SWT.BORDER);\n\t\tthis.serverTCPPortField.setTextLimit(5);\n\t\tthis.serverTCPPortField.addVerifyListener(new VerifyListener() {\n\t\t\t@Override\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\te.doit = true;\n\t\t\t\tfor(int i = 0; i < e.text.length(); i++) {\n\n\t\t\t\t\tchar c = e.text.charAt(i);\n\n\t\t\t\t\tboolean b = false;\n\n\t\t\t\t\tif(c >= '0' && c <= '9') {b = true;}\n\t\t\t\t\telse if(c == SWT.BS) {b = true;}\n\t\t\t\t\telse if(c == SWT.DEL) {b = true;}\n\n\t\t\t\t\tif(b == false) {\n\t\t\t\t\t\te.doit = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tFormData fd_serverTCPPortField = new FormData();\n\t\tfd_serverTCPPortField.top = new FormAttachment(0, 7);\n\t\tfd_serverTCPPortField.right = new FormAttachment(100, -54);\n\t\tfd_serverTCPPortField.left = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tthis.serverTCPPortField.setLayoutData(fd_serverTCPPortField);\n\n\t\tthis.btnStartServer = new Button(this.composite, SWT.NONE);\n\t\tFormData fd_btnStartServer = new FormData();\n\t\tfd_btnStartServer.bottom = new FormAttachment(100, -10);\n\t\tfd_btnStartServer.right = new FormAttachment(100, -10);\n\t\tthis.btnStartServer.setLayoutData(fd_btnStartServer);\n\t\tthis.btnStartServer.setText(\"Start Server\");\n\n\t\tthis.lblServerStatus = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerStatus = new FormData();\n\t\tfd_lblServerStatus.right = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_lblServerStatus.top = new FormAttachment(this.btnStartServer, 5, SWT.TOP);\n\t\tfd_lblServerStatus.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblServerStatus.setLayoutData(fd_lblServerStatus);\n\t\tthis.lblServerStatus.setText(\"Server Status: Stopped\");\n\n\t\tthis.text = new Text(this.composite, SWT.BORDER);\n\t\tFormData fd_text = new FormData();\n\t\tfd_text.top = new FormAttachment(this.serverTCPPortField, 6);\n\t\tthis.text.setLayoutData(fd_text);\n\n\t\tthis.lblHighestDirectory = new Label(this.composite, SWT.NONE);\n\t\tfd_text.left = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tFormData fd_lblHighestDirectory = new FormData();\n\t\tfd_lblHighestDirectory.top = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tfd_lblHighestDirectory.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblHighestDirectory.setLayoutData(fd_lblHighestDirectory);\n\t\tthis.lblHighestDirectory.setText(\"Highest Directory:\");\n\n\t\tthis.button = new Button(this.composite, SWT.NONE);\n\n\t\tfd_text.right = new FormAttachment(100, -54);\n\t\tFormData fd_button = new FormData();\n\t\tfd_button.left = new FormAttachment(this.text, 6);\n\t\tthis.button.setLayoutData(fd_button);\n\t\tthis.button.setText(\"...\");\n\n\t\tthis.grpConnectionInformation = new Group(this.composite, SWT.NONE);\n\t\tfd_button.bottom = new FormAttachment(this.grpConnectionInformation, -1);\n\t\tthis.grpConnectionInformation.setText(\"Connection Information:\");\n\t\tthis.grpConnectionInformation.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_grpConnectionInformation = new FormData();\n\t\tfd_grpConnectionInformation.bottom = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_grpConnectionInformation.right = new FormAttachment(this.btnStartServer, 0, SWT.RIGHT);\n\t\tfd_grpConnectionInformation.top = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tfd_grpConnectionInformation.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.grpConnectionInformation.setLayoutData(fd_grpConnectionInformation);\n\n\t\tthis.scrolledComposite = new ScrolledComposite(this.grpConnectionInformation, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tthis.scrolledComposite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.scrolledComposite.setExpandHorizontal(true);\n\t\tthis.scrolledComposite.setExpandVertical(true);\n\n\t\tthis.table = new Table(this.scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tthis.table.setLinesVisible(true);\n\t\tthis.table.setHeaderVisible(true);\n\t\tthis.scrolledComposite.setContent(this.table);\n\t\tthis.scrolledComposite.setMinSize(this.table.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }", "protected void createContents() {\n cmd.setBean(nodeProperties);\n cmd.setNode(node);\n shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\n shell.setLayout(new FormLayout());\n shell.setSize(800, 500);\n shell.setText(\"详细信息属性\");\n\n final Composite composite_3 = new Composite(shell, SWT.NONE);\n final FormData fd_composite_3 = new FormData();\n fd_composite_3.top = new FormAttachment(0, 1);\n fd_composite_3.left = new FormAttachment(0, 5);\n fd_composite_3.height = 100;\n fd_composite_3.right = new FormAttachment(100, -5);\n composite_3.setLayoutData(fd_composite_3);\n composite_3.setLayout(new FormLayout());\n\n final Group basicGroup = new Group(composite_3, SWT.NONE);\n basicGroup.setLayout(new FormLayout());\n final FormData fd_basicGroup = new FormData();\n fd_basicGroup.bottom = new FormAttachment(100, -1);\n fd_basicGroup.top = new FormAttachment(0, -6);\n fd_basicGroup.right = new FormAttachment(100, 0);\n fd_basicGroup.left = new FormAttachment(0, 0);\n basicGroup.setLayoutData(fd_basicGroup);\n\n final Label label = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label = new FormData();\n fd_label.top = new FormAttachment(0, 0);\n fd_label.right = new FormAttachment(15, 0);\n fd_label.left = new FormAttachment(0, 0);\n label.setLayoutData(fd_label);\n label.setText(\"节点名称:\");\n\n txtName = new Text(basicGroup, SWT.BORDER);\n final FormData fd_txtName = new FormData();\n fd_txtName.top = new FormAttachment(0, 0);\n fd_txtName.right = new FormAttachment(40, 0);\n fd_txtName.left = new FormAttachment(label, 0);\n txtName.setLayoutData(fd_txtName);\n txtName.setEditable(true);\n\n final Label label_1 = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label_1 = new FormData();\n fd_label_1.top = new FormAttachment(0, 0);\n fd_label_1.right = new FormAttachment(55, 0);\n fd_label_1.left = new FormAttachment(txtName, 0);\n label_1.setLayoutData(fd_label_1);\n label_1.setText(\"数据表名:\");\n\n txtTableName = new Text(basicGroup, SWT.BORDER);\n txtTableName.setEditable(false);\n final FormData fd_txtTableName = new FormData();\n fd_txtTableName.top = new FormAttachment(0, 0);\n fd_txtTableName.right = new FormAttachment(90, 0);\n fd_txtTableName.left = new FormAttachment(label_1, 0);\n txtTableName.setLayoutData(fd_txtTableName);\n\n final Button btnSelectTable = new Button(basicGroup, SWT.NONE);\n final FormData fd_btnSelectTable = new FormData();\n fd_btnSelectTable.top = new FormAttachment(0, 0);\n fd_btnSelectTable.right = new FormAttachment(100, -1);\n fd_btnSelectTable.left = new FormAttachment(txtTableName, 0);\n fd_btnSelectTable.height = 23;\n btnSelectTable.setLayoutData(fd_btnSelectTable);\n btnSelectTable.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataTableDialog dataSoruceDlg = new DataTableDialog(shell);\n DataTable dt = dataSoruceDlg.open();\n if (dt != null) {\n txtTableName.setText(dt.getCnName());\n nodeProperties.setTableName(dt.getCnName());\n nodeProperties.setName(dt.getName());\n loadFieldsInfo(dt);\n nodeProperties.setDataTable(dt);\n int res = MessageUtil.comfirm(shell, \"导入\", \"是否导入字段信息?\\r\\n注意:已有字段信息将被覆盖!\");\n if (res == SWT.YES) {\n dataFieldList.clear();\n for (DataField df : dt.getFields()) {\n dataFieldList.add(df);\n }\n tvDataField.refresh();\n }\n }\n }\n });\n btnSelectTable.setText(\"选择表\");\n\n final Label lblDescription = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_lblDescription = new FormData();\n fd_lblDescription.top = new FormAttachment(label, 10);\n fd_lblDescription.bottom = new FormAttachment(100, -2);\n fd_lblDescription.left = new FormAttachment(0, 0);\n fd_lblDescription.right = new FormAttachment(15, 0);\n lblDescription.setLayoutData(fd_lblDescription);\n lblDescription.setText(\"说明:\");\n\n txtDes = new StyledText(basicGroup, SWT.BORDER);\n final FormData fd_txtDes = new FormData();\n fd_txtDes.top = new FormAttachment(txtName, 5);\n fd_txtDes.left = new FormAttachment(15, 0);\n fd_txtDes.right = new FormAttachment(100, -2);\n fd_txtDes.bottom = new FormAttachment(100, -2);\n txtDes.setLayoutData(fd_txtDes);\n\n final Button btnOk = new Button(shell, SWT.NONE);\n btnOk.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/tick.png\"));\n final FormData fd_btnOk = new FormData();\n fd_btnOk.height = 28;\n fd_btnOk.width = 80;\n fd_btnOk.bottom = new FormAttachment(100, -5);\n fd_btnOk.right = new FormAttachment(50, -10);\n btnOk.setLayoutData(fd_btnOk);\n btnOk.setText(\"确定(&O)\");\n btnOk.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n save();\n result = 1;\n close();\n }\n });\n\n final Button btnCancel = new Button(shell, SWT.NONE);\n btnCancel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/cross.png\"));\n final FormData fd_btnCancel = new FormData();\n fd_btnCancel.height = 28;\n fd_btnCancel.width = 80;\n fd_btnCancel.bottom = new FormAttachment(100, -5);\n fd_btnCancel.left = new FormAttachment(50, 10);\n btnCancel.setLayoutData(fd_btnCancel);\n btnCancel.setText(\"取消(&C)\");\n btnCancel.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n close();\n }\n });\n\n final TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TabItem ti = (TabItem) e.item;\n if (ti.getText().startsWith(\"SQL\")) {\n DataNodeProperties d = new DataNodeProperties();\n d.setAdditionSql(txtOtherCondition.getText());\n // d.setTableName(nodeProperties.getTableName());\n d.setName(nodeProperties.getName());\n d.setFields(dataFieldList);\n d.setFilters(filterList);\n txtSQL.setText(d.getSQL(null));\n }\n else if (ti.getText().startsWith(\"过滤\")) {\n String[] fNames = null;\n if (dataFieldList != null && dataFieldList.size() > 0) {\n fNames = new String[dataFieldList.size()];\n for (int i = 0; i < dataFieldList.size(); i++) {\n fNames[i] = dataFieldList.get(i).getAliasName();\n }\n }\n else fNames = new String[] { \"\" };\n // filtersCellModifier.setAliasNames(fNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, fNames));\n tvFilter.getCellEditors()[0] = new ComboBoxCellEditor(tblFilter, fNames, SWT.READ_ONLY);\n }\n else if (ti.getText().startsWith(\"列表配置\")) {\n \tif (dataFieldList.size() > configList.size()) {\n \t\tint configLength = configList.size();\n \t\t//添加\n \tfor (int i = 0 ;i<dataFieldList.size();i++ ) {\n \t\tDataField dataField = dataFieldList.get(i);\n \t\tString cnName = dataField.getCnName();\n String aliasName = dataField.getAliasName();\n if (!\"\".equals(cnName) && !\"\".equals(aliasName)) {\n \tboolean haveFlg = false;\n \tfor (int j = 0 ;j< configLength;j++) {\n \t\tFieldConfig filedCfig = configList.get(j);\n \t\tif (!(filedCfig.getCnName().equals(cnName) &&filedCfig.getName().equals(aliasName))) {\n \t\t\tcontinue;\n \t\t} else {\n \t\t\thaveFlg = true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (!haveFlg) {//原列表不存在此记录\n FieldConfig newFieldCfig = new FieldConfig();\n \t\t\tnewFieldCfig.setCnName(cnName);\n \t\t\tnewFieldCfig.setName(aliasName);\n \t\t\tconfigList.add(newFieldCfig);\n \t}\n }\n \t}\n \t//\n// \tfor (int k = 0;k< configLength;k++) {\n// \t\tFieldConfig filedCfig = configList.get(k);\n// \t\tString cnName = filedCfig.getCnName();\n// String aliasName = filedCfig.getName();\n// boolean haveFiledFlg = false;\n// for (int i = 0 ;i<dataFieldList.size();i++ ) {\n// \tDataField dataField = dataFieldList.get(i);\n// \tif (!(dataField.getAliasName().equals(aliasName) && dataField.getCnName().equals(cnName))) {\n// \t\tcontinue;\n// \t} else {\n// \t\thaveFiledFlg = true;\n// \t\tbreak;\n// \t}\n// }\n// if (!haveFiledFlg) {\n// \tconfigList.remove(k);\n// }\n// \n// \t}\n \t//刷新列表\n \ttvShowConfig.refresh();\n \t}\n }\n }\n });\n final FormData fd_tabFolder = new FormData();\n fd_tabFolder.bottom = new FormAttachment(100, -40);\n fd_tabFolder.top = new FormAttachment(composite_3, 3, SWT.BOTTOM);\n fd_tabFolder.right = new FormAttachment(100, -5);\n fd_tabFolder.left = new FormAttachment(0, 5);\n tabFolder.setLayoutData(fd_tabFolder);\n\n final TabItem tabFields = new TabItem(tabFolder, SWT.NONE);\n tabFields.setText(\"查询字段\");\n\n final Composite composite_1 = new Composite(tabFolder, SWT.NONE);\n composite_1.setLayout(new FormLayout());\n tabFields.setControl(composite_1);\n\n final Group group_1 = new Group(composite_1, SWT.NONE);\n final FormData fd_group_1 = new FormData();\n fd_group_1.left = new FormAttachment(0, 0);\n fd_group_1.bottom = new FormAttachment(100, 0);\n fd_group_1.right = new FormAttachment(100, 0);\n fd_group_1.top = new FormAttachment(0, -6);\n group_1.setLayoutData(fd_group_1);\n group_1.setLayout(new FormLayout());\n // tabFields.setControl(group_1);\n\n tvDataField = new TableViewer(group_1, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvDataField.setContentProvider(new ViewContentProvider());\n tvDataField.setLabelProvider(new DataFieldsLabelProvider0());\n tvDataField.setColumnProperties(DATAFIELDS0);\n tblDataField = tvDataField.getTable();\n\n CellEditor[] cellEditor = new CellEditor[7];\n cellEditor[0] = new TextCellEditor(tblDataField);\n cellEditor[1] = new TextCellEditor(tblDataField);\n cellEditor[2] = new TextCellEditor(tblDataField);\n cellEditor[3] = new ComboBoxCellEditor(tblDataField, Consts.DATATYPE_LABEL, SWT.READ_ONLY);\n cellEditor[4] = new TextCellEditor(tblDataField);\n cellEditor[5] = new ComboBoxCellEditor(tblDataField, Consts.SORTDIRECT_LABEL, SWT.READ_ONLY);\n// cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.AGGREGATE_LABEL, SWT.READ_ONLY);\n// cellEditor[7] = new TextCellEditor(tblDataField);\n cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.YESNO_LABEL, SWT.READ_ONLY);\n Text text1 = (Text) cellEditor[4].getControl();\n text1.addVerifyListener(new VerifyListener() {\n public void verifyText(VerifyEvent e) {\n String str = e.text;\n if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n }\n });\n// Text text2 = (Text) cellEditor[7].getControl();\n// text2.addVerifyListener(new VerifyListener() {\n// public void verifyText(VerifyEvent e) {\n// String str = e.text;\n// if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n// }\n// });\n\n tvDataField.setCellEditors(cellEditor);\n tvDataField.setCellModifier(new DataFieldsCellModifier2(tvDataField));\n\n final FormData fd_table_1 = new FormData();\n fd_table_1.bottom = new FormAttachment(100, -22);\n fd_table_1.top = new FormAttachment(0, -6);\n fd_table_1.right = new FormAttachment(100, 0);\n fd_table_1.left = new FormAttachment(0, 0);\n tblDataField.setLayoutData(fd_table_1);\n tblDataField.setLinesVisible(true);\n tblDataField.setHeaderVisible(true);\n\n final TableColumn colCnName = new TableColumn(tblDataField, SWT.NONE);\n colCnName.setWidth(100);\n colCnName.setText(\"中文名\");\n\n final TableColumn colFieldName = new TableColumn(tblDataField, SWT.NONE);\n colFieldName.setWidth(100);\n colFieldName.setText(\"字段名\");\n\n final TableColumn colAliasName = new TableColumn(tblDataField, SWT.NONE);\n colAliasName.setWidth(100);\n colAliasName.setText(\"别名\");\n\n final TableColumn colDataType = new TableColumn(tblDataField, SWT.NONE);\n colDataType.setWidth(80);\n colDataType.setText(\"数据类型\");\n\n final TableColumn colSortNo = new TableColumn(tblDataField, SWT.NONE);\n colSortNo.setWidth(60);\n colSortNo.setText(\"排序顺序\");\n\n final TableColumn colSortDirect = new TableColumn(tblDataField, SWT.NONE);\n colSortDirect.setWidth(80);\n colSortDirect.setText(\"排序方向\");\n\n final TableColumn colOutput = new TableColumn(tblDataField, SWT.NONE);\n colOutput.setWidth(80);\n colOutput.setText(\"是否输出\");\n\n final TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);\n tabFilter.setText(\"过滤条件\");\n\n final Composite composite = new Composite(tabFolder, SWT.NONE);\n composite.setLayout(new FormLayout());\n tabFilter.setControl(composite);\n\n final Group group_2 = new Group(composite, SWT.NO_RADIO_GROUP);\n final FormData fd_group_2 = new FormData();\n fd_group_2.left = new FormAttachment(0, 0);\n fd_group_2.right = new FormAttachment(100, 0);\n fd_group_2.top = new FormAttachment(0, -6);\n fd_group_2.bottom = new FormAttachment(100, -80);\n group_2.setLayoutData(fd_group_2);\n group_2.setLayout(new FormLayout());\n\n tvFilter = new TableViewer(group_2, SWT.FULL_SELECTION | SWT.BORDER);\n tvFilter.setLabelProvider(new FiltersLabelProvider());\n tvFilter.setContentProvider(new ViewContentProvider());\n tvFilter.setColumnProperties(FiltersLabelProvider.DATAFIELDS);\n tblFilter = tvFilter.getTable();\n CellEditor[] cellEditor1 = new CellEditor[3];\n cellEditor1[0] = new TextCellEditor(tblFilter);\n String[] aliasNames = new String[] { \"\" };\n cellEditor1[0] = new ComboBoxCellEditor(tblFilter, aliasNames, SWT.READ_ONLY);\n cellEditor1[1] = new ComboBoxCellEditor(tblFilter, Consts.OPERATOR_LABEL, SWT.READ_ONLY);\n cellEditor1[2] = new TextCellEditor(tblFilter);\n tvFilter.setCellEditors(cellEditor1);\n // filtersCellModifier = new FiltersCellModifier(tvFilter, aliasNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, aliasNames));\n\n final FormData fd_table_2 = new FormData();\n fd_table_2.bottom = new FormAttachment(100, -21);\n fd_table_2.top = new FormAttachment(0, -5);\n fd_table_2.right = new FormAttachment(100, -1);\n fd_table_2.left = new FormAttachment(0, 1);\n tblFilter.setLayoutData(fd_table_2);\n tblFilter.setLinesVisible(true);\n tblFilter.setHeaderVisible(true);\n\n final TableColumn colFilterFieldName = new TableColumn(tblFilter, SWT.NONE);\n colFilterFieldName.setWidth(120);\n colFilterFieldName.setText(\"字段名称\");\n\n final TableColumn colOper = new TableColumn(tblFilter, SWT.NONE);\n colOper.setWidth(120);\n colOper.setText(\"操作符\");\n\n final TableColumn colFilterData = new TableColumn(tblFilter, SWT.NONE);\n colFilterData.setWidth(500);\n colFilterData.setText(\"操作数据\");\n\n final Button btnFilterAdd = new Button(group_2, SWT.NONE);\n btnFilterAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n Filter df = new Filter();\n df.setField(\"\");\n df.setOperator(\"=\");\n df.setExpression(\"\");\n filterList.add(df);\n tvFilter.refresh();\n }\n });\n btnFilterAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFilterAdd = new FormData();\n fd_btnFilterAdd.bottom = new FormAttachment(100, -1);\n fd_btnFilterAdd.left = new FormAttachment(0, 1);\n fd_btnFilterAdd.height = 20;\n fd_btnFilterAdd.width = 20;\n btnFilterAdd.setLayoutData(fd_btnFilterAdd);\n\n final Button btnFilterDel = new Button(group_2, SWT.NONE);\n btnFilterDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblFilter.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n Filter o = (Filter) ti.getData();\n filterList.remove(o);\n }\n tvFilter.refresh();\n }\n }\n });\n btnFilterDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFilterDel = new FormData();\n fd_btnFilterDel.bottom = new FormAttachment(100, -1);\n fd_btnFilterDel.left = new FormAttachment(btnFilterAdd, 1, SWT.DEFAULT);\n fd_btnFilterDel.height = 20;\n fd_btnFilterDel.width = 20;\n btnFilterDel.setLayoutData(fd_btnFilterDel);\n\n final Button btnFilterUp = new Button(group_2, SWT.NONE);\n btnFilterUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnFilterUp = new FormData();\n fd_btnFilterUp.bottom = new FormAttachment(100, -1);\n fd_btnFilterUp.left = new FormAttachment(btnFilterDel, 1, SWT.DEFAULT);\n fd_btnFilterUp.height = 20;\n fd_btnFilterUp.width = 20;\n btnFilterUp.setLayoutData(fd_btnFilterUp);\n btnFilterUp.setVisible(false);\n\n final Button btnFilterDown = new Button(group_2, SWT.NONE);\n btnFilterDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnFilterDown = new FormData();\n fd_btnFilterDown.bottom = new FormAttachment(100, -1);\n fd_btnFilterDown.left = new FormAttachment(btnFilterUp, 1, SWT.DEFAULT);\n fd_btnFilterDown.height = 20;\n fd_btnFilterDown.width = 20;\n btnFilterDown.setLayoutData(fd_btnFilterDown);\n btnFilterDown.setVisible(false);\n\n final Label label_2 = new Label(composite, SWT.NONE);\n final FormData fd_label_2 = new FormData();\n fd_label_2.bottom = new FormAttachment(100, -60);\n fd_label_2.top = new FormAttachment(group_2, 1);\n fd_label_2.width = 70;\n fd_label_2.left = new FormAttachment(0, 0);\n label_2.setLayoutData(fd_label_2);\n label_2.setText(\"其他条件:\");\n\n txtOtherCondition = new StyledText(composite, SWT.BORDER);\n final FormData fd_txtOtherCondition = new FormData();\n fd_txtOtherCondition.bottom = new FormAttachment(100, -1);\n fd_txtOtherCondition.top = new FormAttachment(label_2, 1);\n fd_txtOtherCondition.right = new FormAttachment(100, -1);\n fd_txtOtherCondition.left = new FormAttachment(0, 1);\n txtOtherCondition.setLayoutData(fd_txtOtherCondition);\n\n final Button btnFieldAdd = new Button(group_1, SWT.NONE);\n btnFieldAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataField df = new DataField();\n df.setOutput(Consts.YES);\n df.setSortDirect(\"\");\n df.setSortNo(\"\");\n df.setAggregate(\"\");\n dataFieldList.add(df);\n tvDataField.refresh();\n }\n });\n btnFieldAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFieldAdd = new FormData();\n fd_btnFieldAdd.bottom = new FormAttachment(100, 0);\n fd_btnFieldAdd.left = new FormAttachment(0, 0);\n fd_btnFieldAdd.height = 20;\n fd_btnFieldAdd.width = 20;\n btnFieldAdd.setLayoutData(fd_btnFieldAdd);\n\n final Button btnFieldDel = new Button(group_1, SWT.NONE);\n btnFieldDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblDataField.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n DataField o = (DataField) ti.getData();\n //\n String cnName = o.getCnName();\n String aliasName = o.getAliasName();\n for (int i = 0;i< configList.size();i++) {\n \tFieldConfig cfig = configList.get(i);\n \tif (cnName.equals(cfig.getCnName()) && aliasName.equals(cfig.getName())) {\n \t\tconfigList.remove(i);\n \t\tbreak;\n \t}\n }\n \n dataFieldList.remove(o);\n }\n tvDataField.refresh();\n tvShowConfig.refresh();\n }\n }\n });\n btnFieldDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFieldDel = new FormData();\n fd_btnFieldDel.bottom = new FormAttachment(100, 0);\n fd_btnFieldDel.left = new FormAttachment(0, 21);\n fd_btnFieldDel.height = 20;\n fd_btnFieldDel.width = 20;\n btnFieldDel.setLayoutData(fd_btnFieldDel);\n\n final TabItem tabSQL = new TabItem(tabFolder, SWT.NONE);\n tabSQL.setText(\"SQL语句\");\n\n final Composite composite_2 = new Composite(tabFolder, SWT.NONE);\n composite_2.setLayout(new FormLayout());\n tabSQL.setControl(composite_2);\n\n final Group group = new Group(composite_2, SWT.NONE);\n final FormData fd_group = new FormData();\n fd_group.top = new FormAttachment(0, -6);\n fd_group.right = new FormAttachment(100, 0);\n fd_group.left = new FormAttachment(0, 0);\n fd_group.bottom = new FormAttachment(100, 0);\n group.setLayoutData(fd_group);\n group.setLayout(new FormLayout());\n\n txtSQL = new StyledText(group, SWT.BORDER|SWT.WRAP|SWT.MULTI|SWT.V_SCROLL|SWT.H_SCROLL);\n final FormData fd_txtSQL = new FormData();\n fd_txtSQL.bottom = new FormAttachment(100, 0);\n fd_txtSQL.top = new FormAttachment(0, -6);\n fd_txtSQL.right = new FormAttachment(100, 0);\n fd_txtSQL.left = new FormAttachment(0, 0);\n txtSQL.setLayoutData(fd_txtSQL);\n txtSQL.setWordWrap(true);\n txtSQL.setFont(SWTResourceManager.getFont(\"Fixedsys\", 10, SWT.NONE));\n txtSQL.setEditable(false);\n\n final TabItem tabItem = new TabItem(tabFolder, SWT.NONE);\n tabItem.setText(\"列表配置\");\n\n final Composite composite_1_1 = new Composite(tabFolder, SWT.NONE);\n composite_1_1.setLayout(new FormLayout());\n tabItem.setControl(composite_1_1);\n\n final Group group_3 = new Group(composite_1_1, SWT.NONE);\n group_3.setLayout(new FormLayout());\n final FormData fd_group_3 = new FormData();\n fd_group_3.left = new FormAttachment(0, 0);\n fd_group_3.bottom = new FormAttachment(100, 0);\n fd_group_3.right = new FormAttachment(100, 0);\n fd_group_3.top = new FormAttachment(0, -6);\n group_3.setLayoutData(fd_group_3);\n\n tvShowConfig = new TableViewer(group_3, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvShowConfig.setContentProvider(new ViewContentProvider());\n tvShowConfig.setLabelProvider(new ShowConfigLabelProvider());\n tvShowConfig.setColumnProperties(DATAFIELDS);\n tblShowConfig = tvShowConfig.getTable();\n\n CellEditor[] cfigCellEditor = new CellEditor[8];\n cfigCellEditor[0] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[1] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[2] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[3] = new ComboBoxCellEditor(tblShowConfig, Consts.ALIGN_LABEL, SWT.READ_ONLY);\n cfigCellEditor[4] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[5] = new ComboBoxCellEditor(tblShowConfig, Consts.YESNO_LABEL, SWT.READ_ONLY);\n cfigCellEditor[6] = new ComboBoxCellEditor(tblShowConfig, codeSetNames, SWT.READ_ONLY);\n// cellEditor[7] = new DetailLinkCellEditor(tblShowConfig, configList, diagram.getNodes());\n Text text10 = (Text) cfigCellEditor[4].getControl();\n text10.addVerifyListener(new NumberVerifier());\n\n tvShowConfig.setCellEditors(cfigCellEditor);\n tvShowConfig.setCellModifier(new ShowConfigCellModifier(tvShowConfig));\n \n final FormData fd_table_1_1 = new FormData();\n fd_table_1_1.bottom = new FormAttachment(100, -21);\n fd_table_1_1.top = new FormAttachment(0, 1);\n fd_table_1_1.right = new FormAttachment(100, -1);\n fd_table_1_1.left = new FormAttachment(0, 0);\n tblShowConfig.setLayoutData(fd_table_1_1);\n tblShowConfig.setLinesVisible(true);\n tblShowConfig.setHeaderVisible(true);\n\n final TableColumn colCnName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colCnName_1.setWidth(120);\n colCnName_1.setText(\"中文名\");\n\n final TableColumn colFieldName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colFieldName_1.setWidth(120);\n colFieldName_1.setText(\"列名\");\n\n final TableColumn colDataType_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colDataType_1.setWidth(60);\n colDataType_1.setText(\"数据格式\");\n\n final TableColumn colAlign = new TableColumn(tblShowConfig, SWT.NONE);\n colAlign.setWidth(70);\n colAlign.setText(\"对齐方式\");\n\n final TableColumn colWidth = new TableColumn(tblShowConfig, SWT.NONE);\n colWidth.setWidth(40);\n colWidth.setText(\"宽度\");\n\n final TableColumn colVisible = new TableColumn(tblShowConfig, SWT.NONE);\n colVisible.setWidth(70);\n colVisible.setText(\"是否显示\");\n\n final TableColumn colCodeSet = new TableColumn(tblShowConfig, SWT.NONE);\n colCodeSet.setWidth(100);\n colCodeSet.setText(\"代码集\");\n\n final Button btnUp = new Button(group_3, SWT.NONE);\n btnUp.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx > 0) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx - 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnUp = new FormData();\n fd_btnUp.left = new FormAttachment(0,1);\n fd_btnUp.top = new FormAttachment(tblShowConfig, 1);\n fd_btnUp.width = 20;\n fd_btnUp.height = 20;\n btnUp.setLayoutData(fd_btnUp);\n btnUp.setText(\"button\");\n\n final Button btnDown = new Button(group_3, SWT.NONE);\n btnDown.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx < tblShowConfig.getItemCount()) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx + 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnDown = new FormData();\n fd_btnDown.top = new FormAttachment(tblShowConfig, 1);\n fd_btnDown.width = 20;\n fd_btnDown.height = 20;\n fd_btnDown.left = new FormAttachment(btnUp, 1);\n btnDown.setLayoutData(fd_btnDown);\n btnDown.setText(\"button\");\n\n //\n init();\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshell.setSize(750, 450);\n\t\tshell.setText(\"Sensitivity Analysis for: \" + parentNode.getName());\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tsashForm = new SashForm(shell, SWT.NONE);\n\n\t\tscrolledComposite = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\n\t\tSaCriterionListComp = new Composite(scrolledComposite, SWT.NONE);\n\t\tSaCriterionListComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a criterion weighting SaCriterionListComp for every criterion\n\t\tweightingSelectComponents = new SaCriterionWeightingSelectComp[c.length];\n\n\t\tArrayList<Criterion> criteria = parentNode.getCriteria();\n\t\tfor (int i = 0; i < c.length; i++) {\n\n\t\t\tSaCriterionWeightingSelectComp scwsc = new SaCriterionWeightingSelectComp(\n\t\t\t\t\tSaCriterionListComp, SWT.None, criteria.get(i), c[i], i);\n\n\t\t\tscwsc.addWeightingChangedListener(new SaCriterionWeightingChangedListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void doCriterionWeightingChanged(\n\t\t\t\t\t\tSaCriterionWeightingChangedEvent e) {\n\t\t\t\t\tupdateCriteriaWeightings(e.getCriterionIndex(),\n\t\t\t\t\t\t\te.getNewValue());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tweightingSelectComponents[i] = scwsc;\n\t\t}\n\n\t\tscrolledComposite.setContent(SaCriterionListComp);\n\t\tscrolledComposite.setMinSize(SaCriterionListComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tscrolledComposite_1 = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite_1.setExpandHorizontal(true);\n\t\tscrolledComposite_1.setExpandVertical(true);\n\n\t\tSaAlternativeWeighingComp = new Composite(scrolledComposite_1, SWT.NONE);\n\t\tSaAlternativeWeighingComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a bar component for every alternative\n\t\talternativeBarComponents = new SaAlternativeWeightingBarComp[a.length];\n\n\t\tfor (int i = 0; i < alternatives.size(); i++) {\n\t\t\tSaAlternativeWeightingBarComp sawc = new SaAlternativeWeightingBarComp(\n\t\t\t\t\tSaAlternativeWeighingComp, SWT.NONE, alternatives.get(i)\n\t\t\t\t\t\t\t.getName(), a[i]);\n\n\t\t\talternativeBarComponents[i] = sawc;\n\t\t}\n\n\t\tscrolledComposite_1.setContent(SaAlternativeWeighingComp);\n\t\tscrolledComposite_1.setMinSize(SaAlternativeWeighingComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tsashForm.setWeights(new int[] { 1, 1 });\n\n\t\tsetBarValues();\n\t}", "@Override\n public Control createDialogArea(Composite parent) {\n Composite top = (Composite) super.createDialogArea(parent);\n\n /*\n * Create the main layout for the shell.\n */\n GridLayout mainLayout = new GridLayout(1, false);\n mainLayout.verticalSpacing = 15;\n top.setLayout(mainLayout);\n GridData mainLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);\n top.setLayoutData(mainLayoutData);\n\n createStormTypeArea(top);\n createViewerArea(top);\n createTransmitArea(top);\n\n /*\n * Sets dialog title\n */\n getShell().setText(\"View/Send PSH\");\n\n // Update GUI from PshData.\n updateGui(pshData);\n\n return top;\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "private void setup(){\n\t\t\n\t\t//set the dialog title\n\t\tsetText(LocaleText.get(\"createSPSSFileDialog\"));\n\t\t//create the status text\n\t\tstatusLabel = new Label();\n\t\t\n\t\t//create the buttons\n\t\tButton btnCancel = new Button(LocaleText.get(\"close\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcancel();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnCreate = new Button(LocaleText.get(\"createSPSSFileDialog\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcreateSPSSFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnSave = new Button(LocaleText.get(\"save\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tsave();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\t\t\n\t\t\n\t\t//update the languages in the form.\n\t\tFormHandler.updateLanguage(Context.getLocale(), Context.getLocale(), form);\n\t\t//add the languages to the language drop down\n\t\tfor(Locale l : form.getLocales())\n\t\t{\n\t\t\tlistBoxLanguages.addItem(l.getName());\n\t\t}\n\t\t\n\t\t//setup the text area\n\t\tspssText.setCharacterWidth(30);\n\t\tspssText.setPixelSize(300, 300);\n\t\t\n\t\t\n\t\tFlexCellFormatter formatter = table.getFlexCellFormatter();\n\t\t\n\t\t//now add stuff to the UI\n\t\tint row = 0;\n\t\ttable.setWidget(row, 0, new Label(LocaleText.get(\"language\")));\n\t\ttable.setWidget(row, 1, listBoxLanguages);\n\t\trow++;\n\t\ttable.setWidget(row, 0, spssText);\n\t\tformatter.setColSpan(row, 0, 2);\n\t\tformatter.setHeight(row, 0, \"300px\");\n\t\tformatter.setWidth(row, 0, \"300px\");\n\t\trow++;\n\t\ttable.setWidget(row, 0, statusLabel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnCreate);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnSave);\n\t\ttable.setWidget(row, 1, btnCancel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, appletHtml);\n\t\t\n\t\t\t\t\t\t\n\t\t//some random UI stuff to make everything nice and neat\n\t\tVerticalPanel panel = new VerticalPanel();\n\t\tFormUtil.maximizeWidget(panel);\n\t\tpanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\n\t\tpanel.add(table);\n\t\t\n\t\tsetWidget(panel);\n\t\t\n\t\tsetWidth(\"200px\");\t\t\n\t}", "protected Control createDialogArea(Composite parent) {\n\t\t\ttext = new Text(parent, SWT.READ_ONLY | SWT.NO_FOCUS);\n\n\t\t\t// Use the compact margins employed by PopupDialog.\n\t\t\tGridData gd = new GridData(GridData.BEGINNING | GridData.FILL_BOTH);\n\t\t\tgd.horizontalIndent = 5;\n\t\t\tgd.verticalAlignment = SWT.CENTER;\n\t\t\ttext.setLayoutData(gd);\n\t\t\ttext.setText(contents);\n\n\t\t\t// since SWT.NO_FOCUS is only a hint...\n\t\t\ttext.addFocusListener(new FocusAdapter() {\n\t\t\t\tpublic void focusGained(FocusEvent event) {\n\t\t\t\t\tContentProposalPopup.this.close();\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn text;\n\t\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "protected void createContents(Display display) {\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setSize(539, 648);\n\t\tshell.setText(\"SiSi - Security-aware Event Log Generator\");\n\t\tshell.setImage(new Image(shell.getDisplay(), \"imgs/shell.png\"));\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmOpenFile = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenFile.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tFileDialog dialog = new FileDialog(shell, SWT.OPEN);\n\n\t\t\t\tString[] filterNames = new String[] { \"PNML\", \"All Files (*)\" };\n\t\t\t\tString[] filterExtensions = new String[] { \"*.pnml\", \"*\" };\n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user.dir\"));\n\n\t\t\t\tdialog.setFilterNames(filterNames);\n\t\t\t\tdialog.setFilterExtensions(filterExtensions);\n\n\t\t\t\tString path = dialog.open();\n\t\t\t\tif( path != null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(path);\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load File.\", exception);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmOpenFile.setImage(new Image(shell.getDisplay(), \"imgs/open.png\"));\n\t\tmntmOpenFile.setText(\"Open File...\");\n\t\t\n\t\tMenuItem mntmOpenExample = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenExample.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(\"examples/kbv.pnml\");\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load Example.\", exception);\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmOpenExample.setImage(new Image(shell.getDisplay(), \"imgs/example.png\"));\n\t\tmntmOpenExample.setText(\"Open Example\");\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.SEPARATOR);\n\t\tmntmNewItem.setText(\"Separator1\");\n\t\t\n\t\tMenuItem mntmExit = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmExit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.getDisplay().dispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmntmExit.setImage(new Image(shell.getDisplay(), \"imgs/exit.png\"));\n\t\tmntmExit.setText(\"Exit\");\n\t\t\n\t\tmainComposite = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tmainComposite.setExpandHorizontal(true);\n\t\tmainComposite.setExpandVertical(true);\n\t\t\n\t\tactiveComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridLayout gl_activeComposite = new GridLayout(1, true);\n\t\tgl_activeComposite.marginWidth = 10;\n\t\tgl_activeComposite.marginHeight = 10;\n\t\tactiveComposite.setLayout(gl_activeComposite);\n\t\t\n\t\tLabel lblWelcomeToSisi = new Label(activeComposite, SWT.NONE);\n\t\tlblWelcomeToSisi.setFont(SWTResourceManager.getFont(\"Segoe UI\", 30, SWT.BOLD));\n\t\tGridData gd_lblWelcomeToSisi = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblWelcomeToSisi.verticalIndent = 50;\n\t\tlblWelcomeToSisi.setLayoutData(gd_lblWelcomeToSisi);\n\t\tlblWelcomeToSisi.setText(\"Welcome to SiSi!\");\n\t\t\n\t\tLabel lblSecurityawareEvent = new Label(activeComposite, SWT.NONE);\n\t\tlblSecurityawareEvent.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tlblSecurityawareEvent.setText(\"- A security-aware Event Log Generator -\");\n\t\t\n\t\tLabel lblToGetStarted = new Label(activeComposite, SWT.NONE);\n\t\tlblToGetStarted.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.ITALIC));\n\t\tGridData gd_lblToGetStarted = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblToGetStarted.verticalIndent = 150;\n\t\tlblToGetStarted.setLayoutData(gd_lblToGetStarted);\n\t\tlblToGetStarted.setText(\"To get started load a file or an example\");\n\t\t\n\t\tmainComposite.setContent(activeComposite);\n\t\tmainComposite.setMinSize(activeComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\t}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}", "protected abstract JDialog createDialog();", "private final void createContents() {\n\t\tthis.shell = new Shell(this.getParent(), getStyle());\n\t\tthis.shell.setSize(450, 140);\n\t\tthis.shell.addTraverseListener(new TraverseListener() {\n\t\t\t@Override\n\t\t\tpublic void keyTraversed(TraverseEvent e) {\n\t\t\t\tif(e.character == SWT.ESC) {\n\t\t\t\t\te.doit = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.shell.setText(\"Rename file - \" + this.getParent().getText());\n\t\tthis.shell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\te.doit = false;\n\t\t\t\tRenameFileDialog.this.result = Response.CLOSE;\n\t\t\t}\n\t\t});\n\t\tFunctions.centerShell2OnShell1(getParent(), this.shell);\n\t\tthis.shell.setImages(Main.getShellImages());\n\t\t\n\t\tLabel lblPleaseChooseA = new Label(this.shell, SWT.BORDER | SWT.WRAP);\n\t\tlblPleaseChooseA.setBounds(10, 10, 424, 40);\n\t\tlblPleaseChooseA.setText(\"Please choose a new name for the file \\\"\" + this.originalName + \"\\\":\");\n\t\t\n\t\tButton btnDone = new Button(this.shell, SWT.NONE);\n\t\tbtnDone.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.text.getText();\n\t\t\t\tRenameFileDialog.this.result = Response.DONE;\n\t\t\t}\n\t\t});\n\t\tbtnDone.setBounds(10, 81, 209, 23);\n\t\tbtnDone.setText(\"Done\");\n\t\t\n\t\tButton btnCancel = new Button(this.shell, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.originalName;\n\t\t\t\tRenameFileDialog.this.result = Response.CANCEL;\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(225, 81, 209, 23);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tthis.text = new Text(this.shell, SWT.BORDER);\n\t\tthis.text.setBounds(10, 56, 424, 19);\n\t\tthis.text.setText(this.originalName);\n\t\tthis.text.selectAll();\n\t}", "public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}", "public void openDialogCreateVisual(){\n DataHeader[] tabHeader = dataset.getListDataHeaderDouble(true);\n TypeVisualization[] tabVis = getListTypeVisualization(tabHeader.length);\n DataHeader[] tabHeaderLabel = dataset.getListDataHeaderDouble(false);\n CreateDataVisualDialog dialog = new CreateDataVisualDialog(this, tabVis, tabHeader, tabHeaderLabel);\n dialog.setVisible(true);\n }", "public abstract void createContents(Panel mainPanel);", "protected void createContents() {\n\t\tmainShell = new Shell();\n\t\tmainShell.addDisposeListener(new DisposeListener() {\n\t\t\tpublic void widgetDisposed(DisposeEvent arg0) {\n\t\t\t\tLastValueManager manager = LastValueManager.getInstance();\n\t\t\t\tmanager.setLastAppEngineDirectory(mGAELocation.getText());\n\t\t\t\tmanager.setLastProjectDirectory(mAppRootDir.getText());\n\t\t\t\tmanager.setLastPythonBinDirectory(txtPythonLocation.getText());\n\t\t\t\tmanager.save();\n\t\t\t}\n\t\t});\n\t\tmainShell.setSize(460, 397);\n\t\tmainShell.setText(\"Google App Engine Launcher\");\n\t\tmainShell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite mainComposite = new Composite(mainShell, SWT.NONE);\n\t\tmainComposite.setLayout(new GridLayout(1, false));\n\t\t\n\t\tComposite northComposite = new Composite(mainComposite, SWT.NONE);\n\t\tnorthComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));\n\t\tGridLayout gl_northComposite = new GridLayout(1, false);\n\t\tgl_northComposite.verticalSpacing = 1;\n\t\tnorthComposite.setLayout(gl_northComposite);\n\t\t\n\t\tComposite pythonComposite = new Composite(northComposite, SWT.NONE);\n\t\tpythonComposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblPython = new Label(pythonComposite, SWT.NONE);\n\t\tlblPython.setText(\"Python : \");\n\t\t\n\t\ttxtPythonLocation = new Text(pythonComposite, SWT.BORDER);\n\t\ttxtPythonLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\ttxtPythonLocation.setText(\"/usr/bin/python2.7\");\n\t\t\n\t\tLabel lblGaeLocation = new Label(pythonComposite, SWT.NONE);\n\t\tlblGaeLocation.setText(\"GAE Location :\");\n\t\t\n\t\tmGAELocation = new Text(pythonComposite, SWT.BORDER);\n\t\tmGAELocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tmGAELocation.setText(\"/home/zelon/Programs/google_appengine\");\n\t\t\n\t\tLabel lblProject = new Label(pythonComposite, SWT.NONE);\n\t\tlblProject.setText(\"Project : \");\n\t\t\n\t\tmAppRootDir = new Text(pythonComposite, SWT.BORDER);\n\t\tmAppRootDir.setSize(322, 27);\n\t\tmAppRootDir.setText(\"/home/zelon/workspaceIndigo/box.wimy.com\");\n\t\t\n\t\tComposite ActionComposite = new Composite(northComposite, SWT.NONE);\n\t\tActionComposite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tActionComposite.setLayout(new GridLayout(2, true));\n\t\t\n\t\tButton btnTestServer = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnTestServer = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnTestServer.widthHint = 100;\n\t\tbtnTestServer.setLayoutData(gd_btnTestServer);\n\t\tbtnTestServer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.startTestServer(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText(), 8080);\n\t\t\t}\n\t\t});\n\t\tbtnTestServer.setText(\"Test Server\");\n\t\t\n\t\tButton btnDeploy = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnDeploy = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDeploy.widthHint = 100;\n\t\tbtnDeploy.setLayoutData(gd_btnDeploy);\n\t\tbtnDeploy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.deploy(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText());\n\t\t\t}\n\t\t});\n\t\tbtnDeploy.setText(\"Deploy\");\n\t\tActionComposite.setTabList(new Control[]{btnTestServer, btnDeploy});\n\t\tnorthComposite.setTabList(new Control[]{ActionComposite, pythonComposite});\n\t\t\n\t\tComposite centerComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridData gd_centerComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);\n\t\tgd_centerComposite.heightHint = 200;\n\t\tcenterComposite.setLayoutData(gd_centerComposite);\n\t\tcenterComposite.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tlog = new StyledText(centerComposite, SWT.BORDER | SWT.V_SCROLL);\n\t\tlog.setAlignment(SWT.CENTER);\n\t}", "protected void createContents(String value) {\n\t\tshlResult = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE);\n\t\tshlResult.setSize(762, 532);\n\t\tshlResult.setText(title);\n\t\t\n\t\tComposite composite = new Composite(shlResult, SWT.NONE);\n\t\tcomposite.setBounds(0, 0, 746, 494);\n\t\t\n\t\ttext = new StyledText(composite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext.setBounds(0, 0, 750, 500);\n\t\ttext.setText(value);\n\t\ttext.setKeyBinding('A'| SWT.CONTROL, ST.SELECT_ALL);\n\t\ttext.setKeyBinding('C' | SWT.CONTROL, ST.COPY);\n\t\ttext.setKeyBinding('V' | SWT.CONTROL, ST.PASTE);\n\t\ttext.setKeyBinding('X' | SWT.CONTROL, ST.CUT);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell(SWT.APPLICATION_MODAL|SWT.CLOSE);\r\n\t\tshell.setSize(800, 600);\r\n\t\tshell.setText(\"租借/归还车辆\");\r\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\r\n\r\n\t\t/**换肤功能已经实现*/\r\n\t\tString bgpath = ChangeSkin.getCurrSkin();\r\n\t\tInputStream bg = this.getClass().getResourceAsStream(bgpath);\r\n\t\t\r\n\t\tInputStream reimg = this.getClass().getResourceAsStream(\"/Img/icon1.png\");\r\n\t\tshell.setBackgroundImage(new Image(display,bg));\r\n\t\tshell.setImage(new Image(display, reimg));\r\n\t\t\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(52, 48, 168, 20);\r\n\t\tlabel.setText(\"\\u8BF7\\u60A8\\u8BA4\\u771F\\u586B\\u5199\\u79DF\\u8D41\\u4FE1\\u606F:\");\r\n\t\t\r\n\t\tLabel lblid = new Label(shell, SWT.NONE);\r\n\t\tlblid.setBounds(158, 180, 61, 20);\r\n\t\tlblid.setText(\"\\u8F66\\u8F86ID\");\r\n\t\t\r\n\t\tui_car_id = new Text(shell, SWT.BORDER);\r\n\t\tui_car_id.setBounds(225, 177, 129, 26);\r\n\t\t\r\n\t\tui_renter = new Text(shell, SWT.BORDER);\r\n\t\tui_renter.setBounds(225, 228, 129, 26);\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(159, 231, 61, 20);\r\n\t\tlabel_1.setText(\"\\u79DF\\u8D41\\u4EBA\");\r\n\t\t\r\n\t\tDateTime ui_start = new DateTime(shell, SWT.BORDER);\r\n\t\tui_start.setBounds(225, 271, 129, 28);\r\n\t\t\r\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setBounds(144, 271, 76, 20);\r\n\t\tlabel_2.setText(\"\\u5F00\\u59CB\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setBounds(144, 326, 76, 20);\r\n\t\tlabel_3.setText(\"\\u7ED3\\u675F\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setBounds(559, 97, 76, 20);\r\n\t\tlabel_4.setText(\"\\u5F53\\u524D\\u8D39\\u7528:\");\r\n\t\t\r\n\t\tLabel ui_count_price = new Label(shell, SWT.BORDER | SWT.CENTER);\r\n\t\tui_count_price.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 16, SWT.NORMAL));\r\n\t\tui_count_price.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tui_count_price.setBounds(539, 205, 156, 77);\r\n\t\tui_count_price.setText(\"0.00\");\r\n\t\t\r\n\t\tDateTime ui_end = new DateTime(shell, SWT.BORDER);\r\n\t\tui_end.setBounds(225, 318, 129, 28);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentser = new RentService();\r\n\t\t\t\tdouble day_pri = rentser.rentPrice(ui_car_id.getText());\r\n\t\t\t\t/*当前仅能计算一个月以内的租用情况\r\n\t\t\t\t * @Time 10/09/15.03\r\n\t\t\t\t * \r\n\t\t\t\t * **/\r\n\t\t\t\t//不管当月几天,都按照30天计算\r\n\t\t\t\tint month = ui_end.getMonth()-ui_start.getMonth();\r\n\t\t\t\tint day = (ui_end.getDay() - ui_start.getDay()) +\r\n\t\t\t\t\t\tmonth * 30\r\n\t\t\t\t\t\t;\r\n\t\t\t\tif(day_pri > 0) {\r\n\t\t\t\t\tui_count_price.setText(String.valueOf(day*day_pri));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"数据非法\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(122, 393, 141, 30);\r\n\t\tbutton.setText(\"\\u4F30\\u7B97\\u5F53\\u524D\\u79DF\\u8D41\\u4EF7\\u683C\");\r\n\t\t\r\n\t\tButton button_1 = new Button(shell, SWT.NONE);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentService = new RentService();\r\n\t\t\t\tString sdate = ui_start.getDay()+\"-\"+ui_start.getMonth()+\"月-\"+ui_start.getYear();\r\n\t\t\t\tString edate = ui_end.getDay()+\"-\"+ui_end.getMonth()+\"月-\"+ui_end.getYear();\r\n\t\t\t\t/**这个地方可能有问题*/\r\n\t\t\t\tboolean rentCar = rentService.rentCar(ui_car_id.getText(),sdate , edate, ui_count_price.getText());\r\n\t\t\t\tif(rentCar) {\r\n\t\t\t\t\tui_count_price.setText(\"租借成功!\");\r\n\t\t\t\t\t/**租借成功,就该让信息表中的数据减1**/\r\n\t\t\t\t\tCarService cars = new CarService();\r\n\t\t\t\t\tcars.minusCar(ui_car_id.getText());\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"租借失败!\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(292, 393, 98, 30);\r\n\t\tbutton_1.setText(\"\\u79DF\\u501F\");\r\n\t\t\r\n\t\r\n\r\n\t}", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity ());\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public JComponent createContentPanel() {\n\t\tFormLayout layout = new FormLayout(\"p,3dlu,p,3dlu\", // cols //$NON-NLS-1$\n\t\t\t\t\"p,10dlu,p,10dlu\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\tCellConstraints cc = new CellConstraints();\n\t\tJEditorPane l=new JEditorPane(\"text/html\",Messages.getString(\"LicenseDialog.Email\"));\n\t\tl.setEditable(false);\n\t\tl.setOpaque(false);\n\t\tl.setFont(l.getFont().deriveFont(Font.PLAIN));\n\t\tJLabel emailLabel=new JLabel(Messages.getString(\"LicenseDialog.EmailLabel\")+\":\");\n\t\t//emailLabel.setFont(emailLabel.getFont().deriveFont(Font.PLAIN));\n\t\tbuilder.add(l,cc.xyw(1,1, 4));\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(emailLabel,email);\n\t\tbuilder.nextLine(2);\n\n\t\tJComponent result = builder.getPanel();\n\t\treturn result;\n\t}", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"带进度条的表\");\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\tTable table = new Table(shell, SWT.BORDER);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n//\t\t两列\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tnew TableColumn(table, SWT.NONE);\r\n\t\t}\r\n\t\ttable.getColumn(0).setText(\"Task\");\r\n\t\ttable.getColumn(1).setText(\"Progress\");\r\n\r\n//\t\t四十行\r\n\t\tfor (int i = 0; i < 40; i++) {\r\n\t\t\tTableItem item = new TableItem(table, SWT.NONE);\r\n\t\t\titem.setText(\"Task \" + i);\r\n//\t\t\t行数为5的倍数时添加进度条\r\n\t\t\tif (i % 5 == 0) {\r\n\t\t\t\tProgressBar bar = new ProgressBar(table, SWT.NONE);\r\n\t\t\t\tbar.setSelection(i); // 进度条显示的百分比\r\n\t\t\t\tTableEditor editor = new TableEditor(table);\r\n\t\t\t\teditor.grabHorizontal = editor.grabVertical = true; // 宽度高度同表格\r\n\t\t\t\teditor.setEditor(bar, item, 1); // 在表格上方显示进度条\r\n\t\t\t}\r\n\t\t}\r\n\t\ttable.getColumn(0).pack();\r\n\t\ttable.getColumn(1).setWidth(128);\r\n\r\n\t\tshell.pack();\r\n\t}", "protected Control createDialogArea(Composite parent) {\n\t\t//Composite composite = (Composite) super.createDialogArea(parent);\n\t\tComposite composite = new Composite(parent, SWT.NULL);\n\t\t\n\t\tGridLayout layout = new GridLayout(5, false);\n\t\tlayout.marginWidth = 15;\n\t\tlayout.marginHeight = 10;\n\t\tlayout.verticalSpacing = 8;\n\t\tcomposite.setLayout(layout);\n\t\t\n\t\tLabel l;\n\t\tGridData gridData;\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Fecha:\");\n\t\ttxtFecha = new Text(composite, SWT.BORDER);\n\t\tgridData = new GridData(60,15);\n\t\ttxtFecha.setLayoutData(gridData);\n\t\t//txtFecha.addKeyListener(this.crearKeyAdapter(txtFecha)); // calendar ya incluye esto\n\t\t\n\t\tbFecha = new Button(composite, SWT.NONE);\n\t\tgridData = new GridData(16,16);\n\t\t//gridData.horizontalSpan = 2;\n\t\tbFecha.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, IImageKeys.CALENDARIO);\n\t\tbFecha.setImage(image.createImage());\n\t\tbFecha.addSelectionListener(this.crearCalendario(shell, txtFecha));\n\n\t\tfinal Label labelNoches = new Label(composite, SWT.NONE);\n\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\n\t\tComposite compQty = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tcompQty.setLayout(layout);\n\t\t\n\t\ttxtCantidad = new Text(compQty, SWT.BORDER);\n\t\tgridData = new GridData(25,15);\n\t\ttxtCantidad.setLayoutData(gridData);\n\t\t\n\t\tfinal Label labelEspacios = new Label(compQty, SWT.NONE);\n\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\tgridData = new GridData(45, 15);\n\t\tgridData.horizontalIndent = 10;\n\t\tlabelEspacios.setLayoutData(gridData);\n\t\ttxtEspacios = new Text(compQty, SWT.BORDER);\n\t\ttxtEspacios.setLayoutData(new GridData(25,15));\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo:\");\n\t\tcomboTipo = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 120;\n\t\tgridData.horizontalSpan = 2;\n\t\tcomboTipo.setLayoutData(gridData);\n\t\tcdTipoProductos = cdController.getComboDataTipoProductos();\n\t\tcomboTipo.setItems(cdTipoProductos.getTexto());\n\t\tcomboTipo.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint indice = comboTipo.getSelectionIndex();\n\t\t\t\tif (indice != -1) {\n\t\t\t\t\tLong seleccionado = cdTipoProductos.getKeyAsLongByIndex(indice);\n\t\t\t\t\tproductos.filtrarByTipo(seleccionado, true); // eliminamos cualquier filtro previo\n\t\t\t\t}\n\t\t\t\tcomboProducto.setItems(productos.getTexto());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Actividad:\");\n\t\tcomboProducto = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 150;\n\t\tcomboProducto.setLayoutData(gridData);\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionListener() {\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetDefSel: \" + comboProducto.getText());\n\t\t\t}\n\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetSelected: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tSystem.out.println(\"modifyText: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (!comboProducto.getText().equals(\"\")) {\n\t\t\t\t\tLong idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\t\tisRecursoAEP = p.isHotelAEP();\n\t\t\t\t\tisModificable = p.isModificable();\n\t\t\t\t\tprecioMinimo = p.getPrecioMinimo();\n\t\t\t\t\tSystem.out.println(\"Minimo: \" + precioMinimo);\n\t\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t}\n\t\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t\t\ttxtPrecio.setEditable(isModificable == null ? false : isModificable.booleanValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t} else {\n\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"PAXs:\");\n\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t}\n\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo de precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 75;\n\t\tgridData.horizontalSpan = 2;\n\n\t\tlistaTipoPrecio = new List(composite, SWT.SINGLE | SWT.BORDER);\n\t\tlistaTipoPrecio.setLayoutData(gridData);\n\t\tlistaTipoPrecio.setItems(new String[] {\"Comisionable\", \"Operador\", \"Público\"});\n\t\tlistaTipoPrecio.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tobtenerPrecio(listaTipoPrecio.getSelection()[0]);\n\t\t\t}\n\t\t});\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tComposite compPrecio = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tcompPrecio.setLayout(layout);\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tcompPrecio.setLayoutData(gridData);\n\t\t\n\t\ttxtPrecio = new Text(compPrecio, SWT.BORDER);\n\t\ttxtPrecio.setEditable(false);\n\t\tgridData = new GridData(50,15);\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\ttxtPrecio.setLayoutData(gridData);\n\n\t\tButton bCuadrar = new Button(compPrecio, SWT.PUSH);\n\t\tgridData = new GridData(12,16);\n\t\tbCuadrar.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, \"icons/cuadrar.gif\");\n\t\tbCuadrar.setImage(image.createImage());\n\t\tbCuadrar.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"Botón de cuadrar...\");\n\t\t\t\tcuadrarCotizacion();\n\t\t\t}\n\t\t});\t\n\t\t\n\t\tbVisible = new Button(compPrecio, SWT.CHECK);\n\t\tbVisible.setText(\"Visible\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalIndent = 15;\n\t\tbVisible.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Comentarios:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\ttxtComentario = new Text(composite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);\n\t\tgridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.horizontalSpan = 4;\n\t\tgridData.heightHint = 40;\n\t\ttxtComentario.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Un \\\"*\\\" al inicio del comentario mostrará el mismo en el PDF de la cotización.\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalSpan = 4;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t gridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.heightHint = 10;\n\t\tgridData.horizontalSpan = 5;\n\t\tl.setLayoutData(gridData);\n\n\t\tllenarCampos();\n\t\t\n\t\treturn composite;\n\t}", "public void addContent() {\n ScrollPane mySP = new ScrollPane();\n myContent = new SaveForm(myManager);\n mySP.setContent(myContent);\n mySP.setPrefSize(size, size);\n myRoot.getChildren().add(mySP);\n }", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\r\n\t\tGridData dGrid = new GridData();\r\n\t\tdGrid.horizontalSpan = 180;\r\n\t\tdGrid.horizontalAlignment = GridData.FILL;\r\n\t\tcontainer.setLayoutData(dGrid);\r\n\t\t\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tString labelText = \"Most of the features for SimplifIDE require knowledge of the project structure.\\r\\n\";\r\n\t\tlabelText += \"Currently you are editting a file outside of the project where many features will not work properly.\\r\\n\";\r\n\t\tlabelText += \"Instructions for setting up your project can be found at http://simplifide.com/html2/project_structure/simplifide_structure.htm, or\\r\\n\";\r\n\t\tlabelText += \"for a simple project only containing rtl files at http://simplifide.com/html2/getting_started/simple_suite.htm.\\r\\n\";\r\n\t\tnameLabel.setText(labelText);\r\n\t\t\r\n\t\tthis.ONESHOT = true;\r\n\t\t\r\n\t\treturn container;\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.RESIZE | SWT.TITLE);\r\n\t\tshell.setSize(690, 436);\r\n\t\t\r\n\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint w = 690;\r\n\t\tint h = 436;\r\n\t\tshell.setBounds((int)(scrSize.width-w)/2,(int)(scrSize.height-h)/2,w, h);\r\n\t\tshell.setText(getText());\r\n\r\n\t\t\r\n\t\tloadData();\r\n\t\t\r\n\t\tviewer = new TableViewer(shell,SWT.FULL_SELECTION |SWT.MULTI |SWT.BORDER);\r\n\t\t\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setBounds(23, 53, 638, 285);\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setRedraw(true);\r\n\t\t\r\n\t\tTableColumn tbCol_Time = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Time.setWidth(69);\r\n\t\ttbCol_Time.setText(\"序号\");\t\t\r\n\t\t\r\n\t\tTableColumn tbCol_Path = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Path.setWidth(127);\r\n\t\ttbCol_Path.setText(\"进程\");\t\r\n\t\t\r\n\t\tTableColumn tbCol_Info = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Info.setWidth(123);\r\n\t\ttbCol_Info.setText(\"Hash值\");\r\n\t\t\r\n\t\tTableColumn tbCol_Type = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Type.setWidth(92);\r\n\t\ttbCol_Type.setText(\"类型\");\r\n\t\t\r\n\t\tTableColumn tbCol_Hash = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Hash.setWidth(196);\r\n\t\ttbCol_Hash.setText(\"描述信息\");\r\n\t\t\r\n\t\tviewer.setContentProvider(new TableViewerContentProvider());\r\n\t\tviewer.setLabelProvider(new TableViewerLabelProvider());\r\n\t\tviewer.setInput(white_list);\t\t\t\t//===== 设置数据源 ======\r\n\t\t\r\n\t\trefresh();\r\n\t\t\r\n\t\tlbl_ItemCount = new Label(shell, SWT.NONE);\r\n\t\tlbl_ItemCount.setBounds(43, 355, 194, 21);\r\n\t\tlbl_ItemCount.setText(\"未通过验证进程: \"+ table.getItemCount() +\"个\");\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(309, 344, 88, 25);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcount--;\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"楷体_GB2312\", 16, SWT.BOLD));\r\n\t\tlabel.setBounds(301, 10, 118, 21);\r\n\t\tlabel.setText(\"详细信息\");\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\r\n\t\tlabel_1.setBounds(10, 45, 664, 2);\r\n\r\n\t\t\r\n\t\t//添加窗体鼠标事件\r\n\t\tshell.addMouseListener(new MouseListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tx=y=-1;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//鼠标移动事件\r\n\t\tshell.addMouseMoveListener(new MouseMoveListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "@Override\n protected Control createDialogArea(Composite parent) {\n Composite container = (Composite) super.createDialogArea(parent);\n container.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n final SashForm hsashForm = new SashForm(container, SWT.HORIZONTAL);\n hsashForm.SASH_WIDTH = 1;\n\n hsashForm.setBackground(container.getDisplay().getSystemColor(SWT.COLOR_GREEN));\n\n // Create the buttons and their event handlers\n tree = new Tree(hsashForm, SWT.V_SCROLL);\n tree.setLinesVisible(true);\n tree.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n AddDetailedInfo2Tables();\n }\n });\n tree.setLayout(new FillLayout());\n\n final Composite tabledock = new Composite(hsashForm, SWT.PUSH);\n tabledock.setLayout(new FillLayout(SWT.VERTICAL));\n\n final SashForm vsashForm = new SashForm(tabledock, SWT.VERTICAL);\n vsashForm.SASH_WIDTH = 1;\n vsashForm.setBackground(container.getDisplay().getSystemColor(SWT.COLOR_GREEN));\n\n ruletable = new Table(vsashForm, SWT.BORDER | SWT.FULL_SELECTION);\n ruletable.setHeaderVisible(true);\n ruletable.setLinesVisible(true);\n\n TableColumn col_entitysubject = new TableColumn(ruletable, SWT.CENTER);\n col_entitysubject.setWidth(87);\n col_entitysubject.setText(Messages.BaselineShowDialog_1);\n\n TableColumn col_relation = new TableColumn(ruletable, SWT.CENTER);\n col_relation.setWidth(88);\n col_relation.setText(Messages.BaselineShowDialog_2);\n\n TableColumn col_quantifier = new TableColumn(ruletable, SWT.CENTER);\n col_quantifier.setWidth(79);\n col_quantifier.setText(Messages.BaselineShowDialog_3);\n\n TableColumn col_number = new TableColumn(ruletable, SWT.CENTER);\n col_number.setWidth(80);\n col_number.setText(Messages.BaselineShowDialog_4);\n\n TableColumn col_entityguest = new TableColumn(ruletable, SWT.CENTER);\n col_entityguest.setWidth(88);\n col_entityguest.setText(Messages.BaselineShowDialog_5);\n\n requirementtable = new Table(vsashForm, SWT.BORDER | SWT.FULL_SELECTION);\n requirementtable.setHeaderVisible(true);\n requirementtable.setLinesVisible(true);\n\n TableColumn tblclmnFormaldesc = new TableColumn(requirementtable, SWT.CENTER);\n tblclmnFormaldesc.setWidth(234);\n tblclmnFormaldesc.setText(Messages.BaselineShowDialog_6);\n\n TableColumn tblclmnRelatedentity = new TableColumn(requirementtable, SWT.CENTER);\n tblclmnRelatedentity.setWidth(195);\n tblclmnRelatedentity.setText(Messages.BaselineShowDialog_7);\n\n\n hsashForm.setWeights(new int[] {2, 2});\n\n if (AddBaseline2Tree(tree, filepath)) {\n if (tree.getItemCount() > 0) {\n tree.getItem(0).setExpanded(true);\n }\n\n tree.pack();\n }\n\n return container;\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(720, 480);\n\t\tshell.setText(\"1FN Normalization\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tcomposite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));\n\t\tcomposite.setLayout(new GridLayout(5, false));\n\t\tlblSeparators = new Label(composite, SWT.NONE);\n\t\tlblSeparators.setText(\"Separators:\");\n\t\tcomposite_1 = new Composite(composite, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(5, false));\n\t\tcomposite_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));\n\t\tchk1 = new Button(composite_1, SWT.CHECK);\n\t\tchk1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk1widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk1.setSelection(true);\n\t\tchk1.setText(\";\");\n\t\tchk2 = new Button(composite_1, SWT.CHECK);\n\t\tchk2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk2widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk2.setSelection(true);\n\t\tchk2.setText(\"cr\");\n\t\tchk3 = new Button(composite_1, SWT.CHECK);\n\t\tchk3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk3widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk3.setText(\",\");\n\t\tchk4 = new Button(composite_1, SWT.CHECK);\n\t\tchk4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk4widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk4.setText(\"space\");\n\t\tchk5 = new Button(composite_1, SWT.CHECK);\n\t\tchk5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk5widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk5.setText(\".\");\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\t\tlblColumn = new Label(composite, SWT.NONE);\n\t\tlblColumn.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));\n\t\tlblColumn.setText(\"Column:\");\n\t\tlstColumn = new List(composite, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\n\t\tlstColumn.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdolstColumnwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tGridData gd_lstColumn = new GridData(SWT.LEFT, SWT.FILL, false, true, 4, 1);\n\t\tgd_lstColumn.widthHint = 150;\n\t\tgd_lstColumn.heightHint = 80;\n\t\tlstColumn.setLayoutData(gd_lstColumn);\n\t\tlblMethod = new Label(composite, SWT.NONE);\n\t\tlblMethod.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblMethod.setText(\"Method:\");\n\t\tcheckSingle = new Button(composite, SWT.RADIO);\n\t\tcheckSingle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdocheckSinglewidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tcheckSingle.setText(\"Single Table (Recommended)\");\n\t\tchkMulti = new Button(composite, SWT.RADIO);\n\t\tchkMulti.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochkMultiwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchkMulti.setText(\"Multi table\");\n\t\tlblNewTableName = new Label(composite, SWT.NONE);\n\t\tlblNewTableName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblNewTableName.setText(\"New table name: \");\n\t\ttxtNewTableName = new Text(composite, SWT.BORDER);\n\t\ttxtNewTableName.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tdotxtNewTableNamemodifyText(arg0);\n\t\t\t}\n\t\t});\n\t\ttxtNewTableName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tlblActual = new Label(shell, SWT.NONE);\n\t\tlblActual.setText(\"Actual\");\n\t\tlblRefatored = new Label(shell, SWT.NONE);\n\t\tlblRefatored.setText(\"Refator\");\n\t\tmodelEditor1 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tGridData gd_modelEditor1 = new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1);\n\t\tgd_modelEditor1.widthHint = 250;\n\t\tmodelEditor1.setLayoutData(gd_modelEditor1);\n\t\tmodelEditor2 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tmodelEditor2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tbtnConfirm = new Button(shell, SWT.NONE);\n\t\tbtnConfirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdobtnConfirmwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tbtnConfirm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 2, 1));\n\t\tbtnConfirm.setText(\"Confirm\");\n\t\ttxtNewTableName.setEnabled(false);\n\t}", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\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\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\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\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\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\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\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\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\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\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\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\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\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\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\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\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\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\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\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\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\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\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\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\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\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\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}" ]
[ "0.7466308", "0.7121929", "0.7076964", "0.7058293", "0.70372325", "0.69826394", "0.69677204", "0.6853879", "0.6844699", "0.68149126", "0.6811977", "0.6802788", "0.6799058", "0.6798219", "0.6795771", "0.6789541", "0.6781222", "0.67697275", "0.6749127", "0.671979", "0.671894", "0.6703226", "0.668378", "0.66801244", "0.6676589", "0.6676229", "0.6666906", "0.66629356", "0.665894", "0.66583747", "0.6649853", "0.6635743", "0.6591822", "0.65896374", "0.65852225", "0.65746284", "0.65739757", "0.6569845", "0.65525484", "0.65404856", "0.6517563", "0.65162325", "0.6515991", "0.6511208", "0.650987", "0.650943", "0.6505396", "0.6497644", "0.64563996", "0.64529127", "0.6432041", "0.6405693", "0.63948244", "0.6349882", "0.63263714", "0.63170826", "0.63141996", "0.6289742", "0.6274933", "0.6253046", "0.62431294", "0.62134796", "0.62129223", "0.6204424", "0.6193443", "0.6189343", "0.6176744", "0.61701435", "0.6169391", "0.609519", "0.6092258", "0.6090748", "0.608684", "0.60707986", "0.6068732", "0.6064853", "0.60647583", "0.60532546", "0.6049037", "0.6041353", "0.60375416", "0.6035106", "0.6033497", "0.6004499", "0.59901375", "0.5958695", "0.59576756", "0.595605", "0.59282273", "0.592648", "0.5920741", "0.59057504", "0.5905617", "0.5891821", "0.5889946", "0.58850807", "0.5884588", "0.5871137", "0.58706844", "0.58550036" ]
0.6241599
61
TODO Autogenerated method stub
@Override public User login(User user) { return userdao.findByUserId(user.getId()); }
{ "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 int selectCount() { return userdao.selectCount(); }
{ "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
Creates a new instance of DTCCollection
public OBDParamCollection() { parser = new OBDParamFormulaParser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DTCCollection() {\n\t}", "public DTCCollection(final int initialCapacity) {\n\t\tsuper(initialCapacity);\n\t}", "Collection<?> create(int initialCapacity);", "public WECollection()\n {\n }", "public static IDatastreamCollection createDatastreamCollection(File f) throws ScapException {\r\n \treturn new DatastreamCollection(DatastreamCollection.getDSCollection(f));\r\n }", "public Collection() {\n }", "protected abstract Collection createCollection();", "public RandomizedCollection() {\n\n }", "private void createTargetCollection() throws Exception {\n List<String> nodeNames = this.startServers(shardCount * replicationFactor);\n this.collectionToNodeNames.put(TARGET_COLLECTION, nodeNames);\n this.createCollection(TARGET_COLLECTION);\n this.waitForRecoveriesToFinish(TARGET_COLLECTION, true);\n this.updateMappingsFromZk(TARGET_COLLECTION);\n }", "public Collection() {\n this.collection = new ArrayList<>();\n }", "protected abstract <T> Collection<T> createCollection(Class<T> clazz);", "private void createSourceCollection() throws Exception {\n List<String> nodeNames = this.startServers(shardCount * replicationFactor);\n this.collectionToNodeNames.put(SOURCE_COLLECTION, nodeNames);\n this.createCollection(SOURCE_COLLECTION);\n this.waitForRecoveriesToFinish(SOURCE_COLLECTION, true);\n this.updateMappingsFromZk(SOURCE_COLLECTION);\n }", "public static IDatastreamCollection createDatastreamCollection(URL url) throws ScapException {\r\n \ttry {\r\n \t return new DatastreamCollection(DatastreamCollection.getDSCollection(url.openStream()));\r\n \t} catch (IOException e) {\r\n \t throw new ScapException(e);\r\n \t}\r\n }", "public DDSViewCollectionForm() {\n\t}", "public SitbMoneyCollection create(long money_collection_id);", "public Collection()\n {\n // initialisation des variables d'instance\n documents = new ArrayList<>();\n }", "ClusterSet() {\n }", "protected DBCollection(final DB database, final String name) {\n this(name, database, database.getExecutor());\n }", "CollectionResource createCollectionResource();", "private List<ConnectionSetup> createDetachedSnapshotOfCollection() {\n return Collections.unmodifiableList(new ArrayList<ConnectionSetup>(setups));\n }", "public Collection<Service> createServices();", "CollectionItem createCollectionItem();", "public DBPoolImpl()\n {\n }", "@Override\n public DietCollection digestion() {\n return new DietCollection();\n }", "protected Collection<V> newCollection() {\r\n \treturn new ArrayList<V>();\r\n }", "public PTreeCredalSet() {\n }", "public CustomerDatabase(){\n\t\tlist = new ArrayList<Customer>();\n\t}", "private CollectionType() {}", "public void init(String collectionName) {\n\r\n }", "public AbstractCollectionMetaData()\n {\n }", "public void createCollection(IndexBenchmark.Setup setup, String collectionName, String configsetName) throws Exception {\n\t try (HttpSolrClient hsc = createClient()) {\n\t\t Create create;\n\t\t if (setup.replicationFactor != null) {\n\t\t\t create = Create.createCollection(collectionName, configsetName, setup.shards, setup.replicationFactor);\n\t\t\t create.setMaxShardsPerNode(setup.shards*(setup.replicationFactor));\n\t\t } else {\n\t\t\t create = Create.createCollection(collectionName, configsetName, setup.shards,\n\t\t\t\t\t setup.nrtReplicas, setup.tlogReplicas, setup.pullReplicas);\n\t\t\t create.setMaxShardsPerNode(setup.shards\n\t\t\t\t\t * ((setup.pullReplicas==null? 0: setup.pullReplicas)\n\t\t\t\t\t + (setup.nrtReplicas==null? 0: setup.nrtReplicas)\n\t\t\t\t\t + (setup.tlogReplicas==null? 0: setup.tlogReplicas)));\n\t\t }\n\t\t CollectionAdminResponse resp;\n\t\t if (setup.collectionCreationParams != null && setup.collectionCreationParams.isEmpty()==false) {\n\t\t\t resp = new CreateWithAdditionalParameters(create, collectionName, setup.collectionCreationParams).process(hsc);\n\t\t } else {\n\t\t\t resp = create.process(hsc);\n\t\t }\n\t\t log.info(\"Collection created: \"+ resp.jsonStr());\n }\n\t colls.add(setup.collection);\n }", "private CollectionUtils() {\n\n\t}", "public TaskList() {\n }", "public Duke() {\n ui = new Ui();\n storage = new Storage();\n try {\n taskList = new TaskList(TaskList.deserialize(storage.loadData()));\n } catch (DukeException | IOException e) {\n ui.printMessage(e.getMessage());\n taskList = new TaskList();\n storage.createNewData(ui);\n }\n }", "StoreCollection getOrCreateCollection( String name);", "DD createDD();", "public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}", "@Override\n\tpublic Alg newInstance() {\n\t\treturn new BnetDistributedCF();\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 DLList() {\r\n init();\r\n }", "public CollectionDataStore(SimpleFeatureType schema) {\n this.collection = new DefaultFeatureCollection();\n this.featureType = schema;\n }", "public static Collections createEntity(EntityManager em) {\n Collections collections = new Collections().name(DEFAULT_NAME).description(DEFAULT_DESCRIPTION);\n return collections;\n }", "DataList createDataList();", "public CortexCollection(List<CortexGraph> graphCollection) {\n loadCollection(graphCollection);\n }", "public TaskList(){}", "public PTreeCredalSet getInstance(Vector vars){\n return new PTreeCredalSet(vars);\n }", "private void createClient() {\n tc = new TestClient();\n }", "public Duke() {\n this.ui = new Ui();\n this.storage = new Storage();\n this.tasks = new TaskList();\n this.parse = new Parser();\n this.lists = new ArrayList<Task>();\n\n }", "private void createCollection(String commonLocation) throws RegistryException {\n\t\tRegistry systemRegistry = CommonUtil.getUnchrootedSystemRegistry(requestContext);\n\t\t//Creating a collection if not exists.\n\t\tif (!systemRegistry.resourceExists(commonLocation)) {\n\t\t\tsystemRegistry.put(commonLocation, systemRegistry.newCollection());\n\t\t}\n\t}", "@Override\r\n\tpublic AbstractBagGift createBagGift() {\n\t\treturn new MerchantCollection();\r\n\t}", "public Duke() {\n this.ui = new Ui();\n this.storage = new Storage();\n try {\n tasks = new TaskList(storage.load());\n } catch (DukeException | IOException e) {\n tasks = new TaskList();\n e.printStackTrace();\n }\n }", "public LinkedDocumentCollection() {\n super();\n }", "private TaskSeriesCollection createCollection1() {\n TaskSeriesCollection result = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new Date(1), new Date(2)));\n s1.add(new Task(\"Task 2\", new Date(3), new Date(4)));\n result.add(s1);\n TaskSeries s2 = new TaskSeries(\"S2\");\n s2.add(new Task(\"Task 3\", new Date(5), new Date(6)));\n result.add(s2);\n return result;\n }", "<C> CollectionItem<C> createCollectionItem();", "public ConnectionList() {\n connections = new ConcurrentHashMap<>();\n keyCounter = 0;\n }", "public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }", "public SRWDatabasePool() {\n }", "public DbHelper(String collection){\n\t\tmongoDbHelper = new MongoDb(collection);\n\t}", "public RandomizedCollection() {\n map=new HashMap();\n li=new ArrayList();\n rand=new Random();\n }", "public interface CollectionCreator {\n\n /**\n * Creates a new collection instance to be populated by the binder.\n * \n * @param initialCapacity\n * The number of elements that will be added to the collection. To be\n * used with collections that can benefit from this information.\n * @return the newly created empty collection instance.\n */\n Collection<?> create(int initialCapacity);\n\n}", "CdapServiceDescriptor createCdapServiceDescriptor();", "public Pool() {\n\t\t// inicializaDataSource();\n\t}", "public static ComicCollectionEntity create(String name, int id, Date dateCreated) {\n return new ComicCollectionEntity(name, id, dateCreated);\n }", "public Duke() {\n try {\n taskList = new TaskList(storage);\n } catch (DukeException err) {\n System.out.println(err.getMessage());\n } catch (FileNotFoundException err) {\n System.out.println(\"File not found in filepath provided\");\n }\n }", "@Nullable\n public static CollectionConfig createCollection(\n DiagCollector diagCollector, CollectionConfigProto collectionConfigProto) {\n String namePattern = collectionConfigProto.getNamePattern();\n PathTemplate nameTemplate;\n try {\n nameTemplate = PathTemplate.create(namePattern);\n } catch (ValidationException e) {\n diagCollector.addDiag(Diag.error(SimpleLocation.TOPLEVEL, e.getMessage()));\n return null;\n }\n String entityName = collectionConfigProto.getEntityName();\n return new CollectionConfig(namePattern, nameTemplate, entityName);\n }", "private PropertyCollection createCollectionProperty(final String descr) {\n\t\treturn createCollectionProperty(descr, null, null);\n\t}", "private AttendantDatabase() {}", "public RandomizedQueue() {\n collection = (Item[]) new Object[1];\n }", "protected DissertationStorage newDissertationStorage()\n\t{\n\t\treturn new DbCachedDissertationStorage(new DissertationStorageUser());\n\t}", "public DiskPoolVolume() {\n }", "public CollectionDataStore(FeatureCollection<SimpleFeatureType,SimpleFeature> collection) {\n this.collection = collection;\n if (collection.size() == 0) {\n this.featureType = FeatureTypes.EMPTY;\n } else {\n this.featureType = collection.getSchema();\n }\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic static <T> Set<T> createConcurrentHashSet() {\n \t\treturn (Set<T>) Collections.synchronizedSet(CollectionFactory.createHashSet());\n \t}", "private TaskItem()\n {\n }", "public CSSTidier() {\n\t}", "private FixtureCache() {\n\t}", "public Group()\r\n {\r\n endpoints = new ArrayList<>();\r\n name = \"NewGroup\";\r\n }", "T createContainer();", "public DleseCollectionDocReader() {\n\t}", "public JSHTMLOptionsCollection() {\r\n\r\n\t}", "CdapServiceInstance createCdapServiceInstance();", "public DataEquivalentSetClass() {\n }", "DTMCFactory getDTMCFactory();", "public AzureDataLakeStoreDataset() {\n }", "public DiscoveryExtension() {\n }", "public FixedSizeList(int capacity) {\n // YOUR CODE HERE\n }", "public DistinctOptionsConnector(Connection db, DBType db_type)\r\n/* 14: */ {\r\n/* 15:32 */ this(db, db_type, new BaseFactory());\r\n/* 16: */ }", "@Test\n public void testConstructor_Custom_Store_String() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testConstructor_Custom_Store_String\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file.getAbsolutePath());\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n\n }", "public CollectionResource createCollection(String arg0)\n\t\t\tthrows NotAuthorizedException, ConflictException {\n\t\treturn null;\n\t}", "public ClusterServicePlanSpec() {\n }", "protected DPP createDPP() {\n\t\tDPP dpp = new DPP();\n\t\tdpp.add(null, OP_CREATE, ST_CREATED);\n\t\t// dpp.add(ST_CREATED, ..., ...);\n\t\treturn dpp;\n\t}", "public RecipientCardCollection create(Map<String, Object> params) throws StripeException {\n return create(params, (RequestOptions) null);\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }", "public TaskList() {\n tasks = new ArrayList<>();\n }", "public TaskList() {\n tasks = new ArrayList<>();\n }", "public TaskList() {\n tasks = new ArrayList<>();\n }", "private static Datacenter CreateDataCenter() {\n\t\tList<Pe> peList = new ArrayList<Pe>();\n\t\t//One PE with 1000 Mips\n\t\tPeProvisionerSimple peProvisioner = new PeProvisionerSimple(1000);\n\t\t////Four 1000 MIPS PEs\n\t\tfor (int id = 0; id < 4; id++) {\n\t\t\tPe core = new Pe(id, peProvisioner);\n\t\t\tpeList.add(core);\n\t\t}\n\t\t//Initialize the hosts\n\t\tList<Host> hostList = new ArrayList<Host>();\n\t\t//8 GB RAM\n\t\tint ram = 8000;\n\t\t//1 MPBS network bandwidth\n\t\tint bw = 1000;\n\t\t//100 GB storage\n\t\tlong storage = 100000;\n\t\tfor (int id = 0; id < 4; id++) {\n\t\t\tHost host = new Host(id, new RamProvisionerSimple(ram), new BwProvisionerSimple(bw), storage, peList,\n\t\t\t\t\tnew VmSchedulerSpaceShared(peList));\n\t\t\thostList.add(host);\n\t\t}\n\t\t//Initialize the data center\n\t\tString architecture = \"x64\";\n\t\tString os = \"Kelly Linux\";\n\t\tString vmm = \"XEN\";\n\t\tdouble timeZone = -4.0;\n\t\tdouble computeCostPerSec = 3.0;\n\t\tdouble costPerMem = 1.0;\n\t\tdouble costPerStorage = 0.05;\n\t\tdouble costPerBW = 0.10;\n\t\tDatacenterCharacteristics datacenterCharacteristics = new DatacenterCharacteristics(architecture, os, vmm,\n\t\t\t\thostList, timeZone, computeCostPerSec, costPerMem, costPerStorage, costPerBW);\n\t\tLinkedList<Storage> SANstorage = new LinkedList<Storage>();\n\t\tDatacenter datacenter = null;\n\t\ttry {\n\t\t\tdatacenter = new Datacenter(\"datacenter0\", datacenterCharacteristics,\n\t\t\t\t\tnew VmAllocationPolicySimple(hostList), SANstorage, 1);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn datacenter;\n\t}", "public PermissionCollection newPermissionCollection()\n {\n return new WECollection();\n }", "public Resource createCollection(String uri, String label) {\n Resource collection = createStatement(uri, ProvOntology.getRDFTypeFullURI(),\n ProvOntology.getCollectionExpandedClassFullURI());\n labelResource(collection, label);\n return collection;\n }", "public CostFactoryImpl() {\n\t\tsuper();\n\t}", "protected Collection createCollectionMatchingType(MappingContext mappingContext) {\n Class<?> collectionType = mappingContext.getTypeInformation().getSafeToWriteClass();\n if (collectionType.isAssignableFrom(ArrayList.class)) {\n return new ArrayList();\n } else if (collectionType.isAssignableFrom(LinkedHashSet.class)) {\n return new LinkedHashSet();\n } else {\n throw new ConfigMeMapperException(mappingContext, \"Unsupported collection type '\" + collectionType + \"'\");\n }\n }" ]
[ "0.827222", "0.6748134", "0.6161539", "0.603627", "0.59276396", "0.5877046", "0.5793978", "0.56064916", "0.5601764", "0.55412215", "0.5522461", "0.54679424", "0.5416397", "0.5365141", "0.53274435", "0.523271", "0.5211114", "0.5199057", "0.51922166", "0.5185697", "0.5181573", "0.51692235", "0.51627964", "0.51428837", "0.51311916", "0.5124849", "0.5114811", "0.51114565", "0.5108284", "0.51049", "0.5078164", "0.50776774", "0.50605005", "0.5035908", "0.50162715", "0.50100464", "0.4973953", "0.49682704", "0.49616432", "0.49610057", "0.49424306", "0.49360627", "0.49326423", "0.49277738", "0.49215928", "0.49178085", "0.49176985", "0.4917002", "0.49114674", "0.48965564", "0.48954496", "0.48781645", "0.4872898", "0.4870365", "0.48676395", "0.4860766", "0.48596334", "0.48595035", "0.4858268", "0.48523822", "0.48509046", "0.4845071", "0.48355755", "0.48306563", "0.48183915", "0.4814687", "0.48083884", "0.48058727", "0.48052472", "0.47982627", "0.479381", "0.47922096", "0.47741827", "0.47659698", "0.47632685", "0.4761033", "0.4746297", "0.47447926", "0.4738201", "0.4733675", "0.47268513", "0.47219533", "0.47176504", "0.47143587", "0.4711027", "0.47028235", "0.4701535", "0.46902594", "0.4684774", "0.4683543", "0.4677131", "0.46766663", "0.46704614", "0.4665498", "0.4665498", "0.4665498", "0.46652493", "0.4663929", "0.4663027", "0.46622097", "0.46550724" ]
0.0
-1
write schedule data in excel sheet
public void writeExcel(String file_name, String path, DepartmentDto department, StageDto stage) throws FileNotFoundException, IOException { List<SlotDto> slots = null; try { //create workbook to generate .xls file XSSFWorkbook workbook = new XSSFWorkbook(); XSSFSheet sheet = workbook.createSheet(file_name); // Create a Font for styling header cells Font headerFont = workbook.createFont(); headerFont.setBold(false); headerFont.setFontHeightInPoints((short) 14); headerFont.setColor(IndexedColors.BLACK.getIndex()); Font headerFont2 = workbook.createFont(); headerFont2.setBold(true); headerFont2.setFontHeightInPoints((short) 14); headerFont2.setColor(IndexedColors.DARK_BLUE.getIndex()); Font headerFont1 = workbook.createFont(); headerFont1.setBold(true); headerFont1.setFontHeightInPoints((short) 14); headerFont1.setColor(IndexedColors.DARK_BLUE.getIndex()); CellStyle headerCellStyle3 = workbook.createCellStyle(); headerCellStyle3.setFont(headerFont1); headerCellStyle3.setAlignment(HorizontalAlignment.LEFT); // Create a CellStyle with the font CellStyle headerCellStyle = workbook.createCellStyle(); headerCellStyle.setFont(headerFont2); headerCellStyle.setFillForegroundColor(IndexedColors.SKY_BLUE.getIndex()); headerCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND); headerCellStyle.setAlignment(HorizontalAlignment.CENTER); // Create a CellStyle with the font CellStyle headerCellStyle2 = workbook.createCellStyle(); headerCellStyle2.setFont(headerFont); headerCellStyle2.setFillForegroundColor(IndexedColors.WHITE.getIndex()); headerCellStyle2.setFillPattern(FillPatternType.SOLID_FOREGROUND); headerCellStyle2.setAlignment(HorizontalAlignment.LEFT); // Create a CellStyle with the font for day CellStyle headerCellStyle1 = workbook.createCellStyle(); headerCellStyle1.setFont(headerFont); headerCellStyle1.setFillForegroundColor(IndexedColors.LIGHT_YELLOW.getIndex()); headerCellStyle1.setFillPattern(FillPatternType.SOLID_FOREGROUND); headerCellStyle1.setAlignment(HorizontalAlignment.LEFT); // get arraylist of slots of schedule slots = new ArrayList<>(); slots = slotBao.viewSlotsOfSchedule(stage, department); //create all rows for (int r = 0; r < 30; r++) { // Create a Row XSSFRow headerRow = sheet.createRow(r); // Create all cells in row and set their style for (int i = 0; i < 9; i++) { Cell cell = headerRow.createCell(i); if ((i == 0 && r > 2) || r == 3 || r == 4) cell.setCellStyle(headerCellStyle); else if (r > 4) cell.setCellStyle(headerCellStyle2); else if (r < 3) cell.setCellStyle(headerCellStyle3); } } // create row and cell to set the schedule department sheet.getRow(0) .getCell(0) .setCellValue(department.getName()); sheet.getRow(0) .getCell(1) .setCellValue(department.getCode()); // create row and cell to set the academic year sheet.getRow(1) .getCell(0) .setCellValue("Academic year"); sheet.getRow(1) .getCell(1) .setCellValue(stage.getNumber()); // create row and cells to set the term of schedule sheet.getRow(2) .getCell(0) .setCellValue("Term"); sheet.getRow(2) .getCell(1) .setCellValue(slots.get(0).getTerm()); // create rows and cells to set time slots number and day sheet.getRow(3) .getCell(0) .setCellValue("Time slot"); sheet.getRow(3) .getCell(1) .setCellValue("Slot 1"); sheet.getRow(3) .getCell(3) .setCellValue("Slot 2"); sheet.getRow(3) .getCell(5) .setCellValue("Slot 3"); sheet.getRow(3) .getCell(7) .setCellValue("Slot 4"); // ceate row and cells to set start and end time of slots sheet.getRow(4) .getCell(1) .setCellValue("F 09:00-T 10:20"); sheet.getRow(4) .getCell(3) .setCellValue("F 10:30-T 12:00"); sheet.getRow(4) .getCell(5) .setCellValue("F 12:20-T 01:50"); sheet.getRow(4) .getCell(7) .setCellValue("F 2:00-T 03:30"); //set days sheet.getRow(5) .getCell(0) .setCellValue("Sunday"); sheet.getRow(10) .getCell(0) .setCellValue("Monday"); sheet.getRow(15) .getCell(0) .setCellValue("Tuesday"); sheet.getRow(20) .getCell(0) .setCellValue("Wednesday"); sheet.getRow(25) .getCell(0) .setCellValue("Thursday"); // Resize all columns to fit the content size for (int i = 0; i < 9; i++) { sheet.autoSizeColumn(i); } // loop to get slot of indexed day and time slot for (int i = 0; i < slots.size(); i++) { //define slot day int r = -1; if (slots.get(i) .getDay() .equalsIgnoreCase("Sunday")) r = 5; else if (slots.get(i) .getDay() .equalsIgnoreCase("Monday")) r = 10; else if (slots.get(i) .getDay() .equalsIgnoreCase("Tuesday")) r = 15; else if (slots.get(i) .getDay() .equalsIgnoreCase("Wednesday")) r = 20; else if (slots.get(i) .getDay() .equalsIgnoreCase("Thursday")) r = 25; int cell = slots.get(i).getNum() * 2 - 1; // set style for cells if ((r % 2 == 0 && (cell == 1 || cell == 2 || cell == 5 || cell == 6)) || (r % 2 != 0 && (cell == 3 || cell == 4 || cell == 7 || cell == 8))) { sheet.getRow(r) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r) .getCell(cell + 1) .setCellStyle(headerCellStyle1); sheet.getRow(r + 1) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r + 1) .getCell(cell + 1) .setCellStyle(headerCellStyle1); sheet.getRow(r + 2) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r + 2) .getCell(cell + 1) .setCellStyle(headerCellStyle1); sheet.getRow(r + 3) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r + 3) .getCell(cell + 1) .setCellStyle(headerCellStyle1); sheet.getRow(r + 4) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r + 4) .getCell(cell + 1) .setCellStyle(headerCellStyle1); } // set course name and code of slot sheet.getRow(r) .getCell(cell) .setCellValue(slots.get(i) .getCourse() .getName()); sheet.getRow(r) .getCell(cell + 1) .setCellValue(slots.get(i) .getCourse() .getCode()); // set type of slot sheet.getRow(r + 2) .getCell(cell) .setCellValue(slots.get(i).getSlot_type()); // set location of slot sheet.getRow(r + 3) .getCell(cell) .setCellValue(slots.get(i) .getLocation() .getName()); // check slot type then set plt of slot if (slots.get(i) .getSlot_type() .equals("LECTURE")) { sheet.getRow(r + 3) .getCell(cell + 1) .setCellValue(slots.get(i) .getCourse() .getPlt_lecture() .getCode()); } if (slots.get(i) .getSlot_type() .equals("SECTION")) { sheet.getRow(r + 3) .getCell(cell + 1) .setCellValue(slots.get(i) .getCourse() .getPlt_section() .getCode()); } // set student number of slot sheet.getRow(r + 4) .getCell(cell) .setCellValue("Student number"); sheet.getRow(r + 4) .getCell(cell + 1) .setCellValue(slots.get(i).getStudent_number()); /* * set staff of slot then check if members > 1 * then concatenate all members' names * and set to cell */ String staff = slots.get(i) .getStaff() .get(0) .getPosition() + "/" + slots.get(i) .getStaff() .get(0) .getName(); /* * set staff user email of slot then check if members > 1 * then concatenate all members' emails * and set to cell */ String[] email = slots.get(i) .getStaff() .get(0) .getUser() .getEmail() .split("@", 2); String user = email[0]; for (int j = 1; j < slots.get(i) .getStaff() .size(); j++) { staff = staff + " # " + slots.get(i) .getStaff() .get(j) .getPosition() + "/" + slots.get(i) .getStaff() .get(j) .getName(); String[] _email = slots.get(i) .getStaff() .get(j) .getUser() .getEmail() .split("@", 2); user = user + " # " + _email[0]; } sheet.getRow(r + 1) .getCell(cell) .setCellValue(staff); sheet.getRow(r + 1) .getCell(cell + 1) .setCellValue(user); } // write data to the file FileOutputStream fileOut = new FileOutputStream(path + "\\" + file_name); workbook.write(fileOut); fileOut.close(); // Closing the workbook workbook.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"client-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}", "@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"recaudado-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}", "public void createXLS(String fileName){\r\n FileOutputStream fo = null;\r\n int totalColumns;\r\n try {\r\n WorkBookHandle h=new WorkBookHandle();\r\n WorkSheetHandle sheet1 = h.getWorkSheet(\"Sheet1\");\r\n \r\n int currentRow=1;\r\n char currentColumn;\r\n int underSessions;\r\n for(StudentResult i:(List<StudentResult>)results){\r\n if(results.indexOf(i)==0){\r\n sheet1.add(\"Register No.\", \"A1\");\r\n sheet1.add(\"Name of Student\", \"B1\");\r\n currentColumn='C';\r\n for(ExamResult j:i.subjectResults){\r\n sheet1.add(j.subCode, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n }\r\n sheet1.add(\"SGPA\", String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n sheet1.add(\"No. of Under-sessions\", String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n totalColumns=currentColumn;\r\n }\r\n \r\n currentRow++;\r\n sheet1.add(i.regNo,\"A\"+String.valueOf(currentRow));\r\n sheet1.add(i.studentName,\"B\"+String.valueOf(currentRow));\r\n currentColumn='C';\r\n underSessions=0;\r\n for(ExamResult j:i.subjectResults){\r\n sheet1.add(j.grade, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n if(MainFrame1.UNDER_SESION_GRADES.contains(j.grade)){\r\n underSessions++;\r\n } \r\n currentColumn++;\r\n }\r\n sheet1.add(i.averageGradePoint, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n sheet1.add(underSessions, String.valueOf(currentColumn)+String.valueOf(currentRow)); \r\n }\r\n fo = new FileOutputStream(\"Result.xls\");\r\n h.writeBytes(fo);\r\n fo.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (WorkSheetNotFoundException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n try {\r\n fo.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "public void exportXLS() {\n\t\t// Create a Workbook\n\t\tWorkbook workbook = new HSSFWorkbook(); // new HSSFWorkbook() for\n\t\t\t\t\t\t\t\t\t\t\t\t// generating `.xls` file\n\n\t\t/*\n\t\t * CreationHelper helps us create instances of various things like DataFormat,\n\t\t * Hyperlink, RichTextString etc, in a format (HSSF, XSSF) independent way\n\t\t */\n\t\tCreationHelper createHelper = workbook.getCreationHelper();\n\n\t\t// Create a Sheet\n\t\tSheet sheet = workbook.createSheet(\"العقود\");\n\n\t\t// Create a Font for styling header cells\n\t\tFont headerFont = workbook.createFont();\n\t\theaderFont.setBold(true);\n\t\theaderFont.setFontHeightInPoints((short) 14);\n\t\theaderFont.setColor(IndexedColors.RED.getIndex());\n\n\t\t// Create a CellStyle with the font\n\t\tCellStyle headerCellStyle = workbook.createCellStyle();\n\t\theaderCellStyle.setFont(headerFont);\n\n\t\t// Create a Row\n\t\tRow headerRow = sheet.createRow(0);\n\n\t\tString[] columns = { \"الرقم\", \"رقم العقد \", \"تاريخ البداية\", \"تاريخ النهاية\", \"المستثمر\", \"حالة الفاتورة\" };\n\t\t// Create cells\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tCell cell = headerRow.createCell(i);\n\t\t\tcell.setCellValue(columns[i]);\n\t\t\tcell.setCellStyle(headerCellStyle);\n\t\t}\n\n\t\t// Create Cell Style for formatting Date\n\t\tCellStyle dateCellStyle = workbook.createCellStyle();\n\t\tdateCellStyle.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MM-yyyy\"));\n\n\t\t// Create Other rows and cells with employees data\n\t\tint rowNum = 1;\n\t\tint num = 1;\n//\t\tfor (ContractDirect contObj : contractsDirectList) {\n//\t\t\tRow row = sheet.createRow(rowNum++);\n//\t\t\trow.createCell(0).setCellValue(num);\n//\t\t\trow.createCell(1).setCellValue(contObj.getContractNum());\n//\n//\t\t\tif (!tableHigriMode) {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartContDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndContDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t} else {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t}\n//\n//\t\t\tInvestor inv = (Investor) dataAccessService.findEntityById(Investor.class, contObj.getInvestorId());\n//\t\t\trow.createCell(4).setCellValue(inv.getName());\n//\t\t\trow.createCell(5).setCellValue(contObj.getPayStatusName());\n//\t\t\tnum++;\n//\t\t}\n\n\t\t// Resize all columns to fit the content size\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tsheet.autoSizeColumn(i);\n\t\t}\n\n\t\t// Write the output to a file\n\n\t\ttry {\n\t\t\tString path = \"D:/العقود.xls\";\n\t\t\tFileOutputStream fileOut = new FileOutputStream(path);\n\t\t\tworkbook.write(fileOut);\n\t\t\tfileOut.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\n\t\t\tworkbook.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Closing the workbook\n\n\t}", "public static void saveExcel() {\r\n\t\ttry {\r\n\t\t\tFileOutputStream fileOut = new FileOutputStream(Constant.EXCEL_PATH);\r\n\t\t\tworkBook.write(fileOut);\r\n\t\t\tfileOut.flush();\r\n\t\t\tfileOut.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public int xlsWriter(List<CeoMypageDto> datas, String fileName, CeoMypageDto ceoDto )\n\t{\n\t\tint flag = 1;\n\t\tint startRow =2;\n\t\tint startCol =1;\n\t\t//workbook생성\n\t\tHSSFWorkbook workBook = new HSSFWorkbook();\n\t\t\n\t\t//work sheet생성\n\t\tif(fileName.equals(\"\"))fileName=\"sheet1\";\n\t\tHSSFSheet workSheet = workBook.createSheet(fileName);\n\t\t\n\t\t//행생성\n\t\tHSSFRow row = workSheet.createRow(startRow);\n\t\tHSSFRow row1 = workSheet.createRow(startRow+1);\n\t\tHSSFRow row2 = workSheet.createRow(startRow+2);\n\t\t\n\t\t//cell생성\n\t\tHSSFCell cell;\n\t\t\n\t\t//스타일 설정\n\n\n\t\t//스타일 객체 생성 \n\t\tHSSFCellStyle styleHd = workBook.createCellStyle(); //제목 스타일\n\t\tHSSFCellStyle styleBody = workBook.createCellStyle(); //내용 스타일\n\n\n\t\t//제목 폰트\n\t\tHSSFFont font = workBook.createFont();\n\t\tfont.setFontHeightInPoints((short)12);\n\t\tfont.setBoldweight((short)font.BOLDWEIGHT_BOLD);\n\n\t\t//제목 스타일에 폰트 적용, 정렬\n\t\tstyleHd.setFont(font);\n\t\tstyleHd.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\tstyleHd.setVerticalAlignment (HSSFCellStyle.VERTICAL_CENTER);\n styleHd.setFillBackgroundColor(HSSFColor.SKY_BLUE.index);\n styleHd.setFillForegroundColor(HSSFColor.SKY_BLUE.index);\n \n \n\t\tstyleHd.setFillPattern(CellStyle.SOLID_FOREGROUND);\n\t\t\n\t\t//날짜부분\n\t\tcell = row.createCell(startCol);\n\t\tcell.setCellValue(ceoDto.getSTART_DATE());\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row.createCell(startCol+2);\n\t\tcell.setCellValue(ceoDto.getEND_DATE());\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\t//검색어, 페이지넘 부분 \n\t\tcell = row1.createCell(startCol);\n\t\tcell.setCellValue(ceoDto.getSEARCH().replace(\"%\", \"\"));\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row1.createCell(startCol+2);\n\t\tcell.setCellValue(ceoDto.getPAGE_NUM());\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t// 제목부분 \n\t\tcell = row2.createCell(startCol);\n\t\tcell.setCellValue(\"분류\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+1);\n\t\tcell.setCellValue(\"상품이름\");\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+2);\n\t\tcell.setCellValue(\"구매색상\");\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+3);\n\t\tcell.setCellValue(\"구매사이즈\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+4);\n\t\tcell.setCellValue(\"구매자\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+5);\n\t\tcell.setCellValue(\"상품수량\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\n\t\tcell = row2.createCell(startCol+6);\n\t\tcell.setCellValue(\"재고\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\n\t\tcell = row2.createCell(startCol+7);\n\t\tcell.setCellValue(\"실제 구매가격\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\n\t\tcell = row2.createCell(startCol+8);\n\t\tcell.setCellValue(\"구매시간\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+9);\n\t\tcell.setCellValue(\"배송상태\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\n\n\n\t\t\n\t\tfor(int i=0;i<datas.size();i++)\n\t\t{\n\t\t\tCeoMypageDto vo = (CeoMypageDto)datas.get(i);\n\t\t\trow = workSheet.createRow(i+(startRow+3));\n\t\t \t\n\t\t\tcell = row.createCell(startCol+0);\n\t\t\tcell.setCellValue(vo.getITEM());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+1);\n\t\t\tcell.setCellValue(vo.getPRO_NAME());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+2);\n\t\t\tcell.setCellValue(vo.getSEL_COLOR());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+3);\n\t\t\tcell.setCellValue(vo.getSEL_SIZE());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+4);\n\t\t\tcell.setCellValue(vo.getUSER_ID());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+5);\n\t\t\tcell.setCellValue(vo.getSEL_NUM());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+6);\n\t\t\tcell.setCellValue(vo.getSTOCK());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+7);\n\t\t\tcell.setCellValue(vo.getFINAL_PRICE());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+8);\n\t\t\tcell.setCellValue(vo.getSELTIME());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+9);\n\t\t\tcell.setCellValue(vo.getDEL_STEP());\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i=0;i<4;i++) \n\t\t{ \n\t\t\tworkSheet.autoSizeColumn(i);\n\t\t\tworkSheet.setColumnWidth(i, (workSheet.getColumnWidth(i))+512 ); //이건 자동으로 조절 하면 너무 딱딱해 보여서 자동조정한 사이즈에 (short)512를 추가해 주니 한결 보기 나아졌다.\n\t\t}\n\t\tworkSheet.setColumnWidth(0, 200);\n\t\t\n\t\t\n\t\tFile file=new File(PATH+fileName+\"_\"+ExcelUtil.getPK()+\".xls\" );\n\t\tFileOutputStream fo = null;\n\t\ttry{\n\t\t\tfo = new FileOutputStream(file);\n\t\t\tworkBook.write(fo);\n\t\t}catch(FileNotFoundException fnf){\n\t\t\tflag = -1;\n\t\t\tfnf.printStackTrace();\n\t\t\t\n\t\t}catch(IOException io){\n\t\t\tflag = -1;\n\t\t\tio.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\tif(workBook!=null)workBook.close();\n\t\t\t\tif(fo!=null)fo.close();\n\t\t\t\t\n\t\t\t}catch(IOException io){\n\t\t\t\tflag = -1;\n\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn flag;\n\t}", "public FileOutputStream generateFinance14Report(List<Finance14Dto> Finance14DtoList,String fileName) throws IOException, ClassNotFoundException, SQLException {\n\t\tFile file=new File(fileName);\n\n\t\tString sheetName = \"Sheet1\";// name of sheet\n\n//\t\tResultSet resultSet = getDatabase(villageId,yearmonth);\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(); \n\t XSSFSheet spreadsheet = workbook\n\t \t .createSheet(sheetName);\n\t \t XSSFRow row=spreadsheet.createRow(1);\n\t \t /* XSSFRow row1 = spreadsheet.createRow(2);*/\n\t \t XSSFCell cell;\n\t \t cell=row.createCell(1);\n\t \t cell.setCellValue(\"vid\");\n\t \t cell=row.createCell(2);\n\t \t cell.setCellValue(\"month\");\n\t \t cell=row.createCell(3);\n\t \t cell.setCellValue(\"year\");\n\t \t cell=row.createCell(4);\n\t \t cell.setCellValue(\"Total work\");\n\t \t cell=row.createCell(5);\n\t \t cell.setCellValue(\"Works approved\");\n\t \t cell=row.createCell(6);\n\t \t cell.setCellValue(\"Project not started\");\n\t \t cell=row.createCell(7);\n\t \t cell.setCellValue(\"Progress\");\n\t \t cell=row.createCell(8);\n\t \t cell.setCellValue(\"Completed\");\n\t \t cell=row.createCell(9);\n\t \t cell.setCellValue(\"Grant allocated\");\n\t \t cell=row.createCell(10);\n\t \t cell.setCellValue(\"Amount spent\");\n\t \t /* cell=row.createCell(11);\n\t \t cell.setCellValue(\"entry date\");*/\n\t \t \n\t \t int i=2;\n\t \t for(Finance14Dto finance14Dto:Finance14DtoList)\n//\t \t while(resultSet.next())\n\t \t {\n\t \t row=spreadsheet.createRow(i);\n\t \t /* row1=spreadsheet.createRow(i+1);*/\n\t \t cell=row.createCell(1);\n\t \t cell.setCellValue(finance14Dto.getVillageId());\n\t \t cell=row.createCell(2);\n\t \t cell.setCellValue(finance14Dto.getMonth());\n\t \t cell=row.createCell(3);\n\t \t cell.setCellValue(finance14Dto.getYear());\n//\t \t /* spreadsheet.addMergedRegion(new CellRangeAddress(3, 3, 4, 4));*/\n\t \t cell=row.createCell(4);\n\t \t cell.setCellValue(finance14Dto.getTotalWork());\n\t \t cell=row.createCell(5);\n\t \t cell.setCellValue(finance14Dto.getWorksApproved());\n\t \t cell=row.createCell(6);\n\t \t cell.setCellValue(finance14Dto.getProjectNotStarted());\n\t \t cell=row.createCell(7);\n\t \t cell.setCellValue(finance14Dto.getProgress());\n\t \t cell=row.createCell(8);\n\t \t cell.setCellValue(finance14Dto.getCompleted());\n\t \t cell=row.createCell(9);\n\t \t cell.setCellValue(finance14Dto.getGrantAllocated());\n\t \t cell=row.createCell(10);\n\t \t cell.setCellValue(finance14Dto.getAmountSpent());\n\t \t /*cell=row.createCell(11);\n\t \t cell.setCellValue(finance14Dto.getEntryDate());*/\n\t \t i++;\n\t \t }\n\t \t FileOutputStream out = new FileOutputStream(\n\t \t file);\n\t \t workbook.write(out);\n\t \t out.close();\n\t \t System.out.println(\n\t \t \"exceldatabase.xlsx written successfully\");\n\t \t \n\t \treturn out;\n\t}", "public void writeXlsx() throws IOException {\n String[] columns = {\"Kártya lehúzása\", \"Tanuló neve\", \"Osztálya\", \"Késés oka\"};\n xlsxDataList.sort(Comparator.comparing(Student::getKey));\n Workbook workbook = new XSSFWorkbook();\n Sheet sheet = workbook.createSheet(\"Munka1\");\n\n // Create header\n Font headerFont = workbook.createFont();\n headerFont.setFontHeightInPoints((short) 14);\n CellStyle headerCellStyle = workbook.createCellStyle();\n headerCellStyle.setFont(headerFont);\n headerCellStyle.setBorderBottom(BorderStyle.MEDIUM);\n headerCellStyle.setBorderTop(BorderStyle.MEDIUM);\n Row headerRow = sheet.createRow(0);\n for (int i = 0; i < columns.length; i++) {\n Cell cell = headerRow.createCell(i);\n cell.setCellValue(columns[i]);\n cell.setCellStyle(headerCellStyle);\n }\n // Create Other rows and cells with student data\n int rowNum = 1;\n for (Student student : xlsxDataList) {\n Row row = sheet.createRow(rowNum++);\n row.createCell(0).setCellValue(student.getTime());\n row.createCell(1).setCellValue(student.getName());\n row.createCell(2).setCellValue(student.getClassNumber());\n row.createCell(3).setCellValue(student.getReason());\n }\n // Resize all columns to fit the content size\n for (int i = 0; i < columns.length; i++) {\n sheet.autoSizeColumn(i);\n }\n // Write the output to a file\n FileOutputStream fileOut = new FileOutputStream(\"C:\\\\Munka\\\\\" + year + \"_\" + directory + \"_ho_vegi_osszesites.xlsx\");\n workbook.write(fileOut);\n fileOut.close();\n // Closing the workbook\n workbook.close();\n }", "public void WriteDataToExcel(String SheetName,int RowNumber,int ColumnNumber,String Value)\n\t{\t \n\t\tDate dNow = new Date( );\n\t\tSimpleDateFormat ft =new SimpleDateFormat (\"MMddYYYY\");\n\t\t\n\t\t try\n\t\t {\n\t\t\t FileInputStream fstream = new FileInputStream(System.getProperty(\"user.dir\")+\"//TestResult_\"+ft.format(dNow)+\".xls\");\n\t\t\t org.apache.poi.ss.usermodel.Workbook wb = (org.apache.poi.ss.usermodel.Workbook)WorkbookFactory.create(fstream); \n\t\t\t Sheet sheet =(Sheet)wb.getSheetAt(0); \n\t\t\t Row row = (Row)((org.apache.poi.ss.usermodel.Sheet)sheet).getRow(RowNumber); \n\t\t\t Cell cell=row.createCell(ColumnNumber);\n\t\t\t cell.setCellValue(Value);\n\t\t\t FileOutputStream fileout=new FileOutputStream(System.getProperty(\"user.dir\")+\"//PG HealthCheck List_\"+ft.format(dNow)+\".xls\");\n\t\t\t wb.write(fileout);\n\t\t\t fileout.close();\n\t\t }\n\t\t catch (Exception e){//Catch exception if any\n\t\t\t assertTrue(false);\n\t\t }\t\t\n\t}", "@RequestMapping(\"exportToExcel\")\n public void exportFundamentalsToExcel(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n log.debug(\"Requested exporting data to excel.\");\n\n TradingAidCommand jshData = getJshData();\n\n // create a new file\n FileOutputStream outExcel = new FileOutputStream(\"workbook\");\n // create a new workbook\n HSSFWorkbook workbook = new HSSFWorkbook();\n // create a new sheet\n HSSFSheet sheet = workbook.createSheet();\n\n sheet.setDefaultColumnWidth(7);\n\n // create header row\n HSSFRow header = sheet.createRow(0);\n header.createCell(0).setCellValue(\"Horse\");\n header.createCell(1).setCellValue(\"9am\");\n header.createCell(2).setCellValue(\"MovAM\");\n header.createCell(3).setCellValue(\"60min\");\n header.createCell(4).setCellValue(\"Mov60\");\n header.createCell(5).setCellValue(\"30min\");\n header.createCell(6).setCellValue(\"Mov30\");\n header.createCell(7).setCellValue(\"15min\");\n header.createCell(8).setCellValue(\"Mov15\");\n header.createCell(9).setCellValue(\"5min\");\n header.createCell(10).setCellValue(\"Mov5\");\n header.createCell(11).setCellValue(\"3min\");\n header.createCell(12).setCellValue(\"Mov3\");\n header.createCell(13).setCellValue(\"2min\");\n header.createCell(14).setCellValue(\"Mov2\");\n header.createCell(15).setCellValue(\"1min\");\n header.createCell(16).setCellValue(\"Mov1\");\n header.createCell(17).setCellValue(\"Mean\");\n header.createCell(18).setCellValue(\"321\");\n header.createCell(19).setCellValue(\"Result\");\n header.createCell(20).setCellValue(\"CPR\");\n header.createCell(21).setCellValue(\"NPTips\");\n header.createCell(22).setCellValue(\"Naps\");\n header.createCell(23).setCellValue(\"Stars\");\n header.createCell(24).setCellValue(\"Jockey\");\n header.createCell(25).setCellValue(\"Wins\");\n header.createCell(26).setCellValue(\"R\");\n header.createCell(27).setCellValue(\"Rs\");\n header.createCell(28).setCellValue(\"Mov9-60\");\n header.createCell(29).setCellValue(\"FP\");\n header.createCell(30).setCellValue(\"C\");\n header.createCell(31).setCellValue(\"D\");\n header.createCell(32).setCellValue(\"CD\");\n header.createCell(33).setCellValue(\"HG\");\n header.createCell(34).setCellValue(\"Trainer\");\n header.createCell(35).setCellValue(\"Wins\");\n header.createCell(36).setCellValue(\"R\");\n header.createCell(37).setCellValue(\"Rs\");\n\n int rowIndex = 1;\n for (JSHRaceCommand race : jshData.getRaces()) {\n\n HSSFRow row = sheet.createRow(rowIndex);\n HSSFCell cell = row.createCell(0);\n cell.setCellValue(race.getGeneralInfo());\n sheet.addMergedRegion(new CellRangeAddress(rowIndex, rowIndex, 0, 37));\n\n rowIndex++;\n\n int runnerFavPos = 1;\n for (JSHRunnerCommand runner : race.getRunners()) {\n row = sheet.createRow(rowIndex);\n row.createCell(0).setCellValue(runner.getHorseName());\n row.createCell(1).setCellValue(runner.getPrice9());\n row.createCell(2).setCellValue(runner.getMov9to11());\n row.createCell(3).setCellValue(runner.getPrice60());\n row.createCell(4).setCellValue(runner.getMov60());\n row.createCell(5).setCellValue(runner.getPrice30());\n row.createCell(6).setCellValue(runner.getMov30());\n row.createCell(7).setCellValue(runner.getPrice15());\n row.createCell(8).setCellValue(runner.getMov15());\n row.createCell(9).setCellValue(runner.getPrice5());\n row.createCell(10).setCellValue(runner.getMov5());\n row.createCell(11).setCellValue(runner.getPrice3());\n row.createCell(12).setCellValue(runner.getMov3());\n row.createCell(13).setCellValue(runner.getPrice2());\n row.createCell(14).setCellValue(runner.getMov2());\n row.createCell(15).setCellValue(runner.getPrice1());\n row.createCell(16).setCellValue(runner.getMov1());\n row.createCell(17).setCellValue(runner.getMean());\n row.createCell(18).setCellValue(runner.getMov3to1());\n row.createCell(19).setCellValue(runner.getResult());\n row.createCell(20).setCellValue(runner.getCpr());\n row.createCell(21).setCellValue(runner.getNptips());\n row.createCell(22).setCellValue(runner.getNaps());\n row.createCell(23).setCellValue(runner.getStars());\n row.createCell(24).setCellValue(runner.getJockey());\n row.createCell(25).setCellValue(runner.getJockeyWins());\n row.createCell(26).setCellValue(runner.getJockeyRideNo());\n row.createCell(27).setCellValue(runner.getJockeyRides());\n row.createCell(28).setCellValue(runner.getMov9to60());\n row.createCell(29).setCellValue(runnerFavPos++);\n row.createCell(30).setCellValue(runner.getCourse());\n row.createCell(31).setCellValue(runner.getDistance());\n row.createCell(32).setCellValue(runner.getDistanceAndCourse());\n row.createCell(33).setCellValue(runner.getHeadGear());\n row.createCell(34).setCellValue(runner.getTrainer());\n row.createCell(35).setCellValue(runner.getTrainerWins());\n row.createCell(36).setCellValue(runner.getTrainerRunnerNo());\n row.createCell(37).setCellValue(runner.getTrainerRunners());\n\n rowIndex++;\n }\n\n }\n\n for (int i = 0; i < 37; i++) {\n sheet.autoSizeColumn(i);\n }\n\n // Movement formatting\n HSSFSheetConditionalFormatting conditionalFormattingLayer = sheet.getSheetConditionalFormatting();\n HSSFConditionalFormattingRule blueRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.GT, \"5\");\n HSSFConditionalFormattingRule greenRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"2.5\", \"5\");\n HSSFConditionalFormattingRule yellowRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"0.01\", \"2.5\");\n HSSFConditionalFormattingRule orangeRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"-2.5\", \"-0.01\");\n HSSFConditionalFormattingRule pinkRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"-2.5\");\n\n HSSFPatternFormatting blueFormatting = blueRule.createPatternFormatting();\n blueFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.BLUE.getIndex());\n\n HSSFPatternFormatting greenFormatting = greenRule.createPatternFormatting();\n greenFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.GREEN.getIndex());\n\n HSSFPatternFormatting yellowFormatting = yellowRule.createPatternFormatting();\n yellowFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.YELLOW.getIndex());\n\n HSSFPatternFormatting orangeFormatting = orangeRule.createPatternFormatting();\n orangeFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.ORANGE.getIndex());\n\n HSSFPatternFormatting pinkFormatting = pinkRule.createPatternFormatting();\n pinkFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.PINK.getIndex());\n\n HSSFPalette palette = workbook.getCustomPalette();\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.BLUE.getIndex(), (byte) 153, (byte) 204, (byte) 255);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.GREEN.getIndex(), (byte) 204, (byte) 255, (byte) 204);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.YELLOW.getIndex(), (byte) 255, (byte) 255, (byte) 153);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.ORANGE.getIndex(), (byte) 255, (byte) 204, (byte) 153);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.PINK.getIndex(), (byte) 255, (byte) 153, (byte) 204);\n\n int lastRowNum = sheet.getLastRowNum();\n\n CellRangeAddress[] basicMovementCellRangeAddresses = {\n\n // 9-11 Movement\n new CellRangeAddress(1, lastRowNum, 2, 2),\n // 60 min Movement\n new CellRangeAddress(1, lastRowNum, 4, 4),\n // 30 min Movement\n new CellRangeAddress(1, lastRowNum, 6, 6),\n // 15 min Movement\n new CellRangeAddress(1, lastRowNum, 8, 8),\n // 5 min Movement\n new CellRangeAddress(1, lastRowNum, 10, 10),\n // 3 min Movement\n new CellRangeAddress(1, lastRowNum, 12, 12),\n // 2 min Movement\n new CellRangeAddress(1, lastRowNum, 14, 14),\n // 1 min Movement\n new CellRangeAddress(1, lastRowNum, 16, 16),\n // Mean\n new CellRangeAddress(1, lastRowNum, 17, 17),\n // 3-1 Movement\n new CellRangeAddress(1, lastRowNum, 18, 18),\n };\n\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, blueRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, greenRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, yellowRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, orangeRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, pinkRule);\n\n\n // Movement 9 to 60 formatting\n HSSFConditionalFormattingRule mov9to60LessThanZeroRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"0\");\n HSSFFontFormatting mov9to60LessThanZeroFormatting = mov9to60LessThanZeroRule.createFontFormatting();\n mov9to60LessThanZeroFormatting.setFontColorIndex(HSSFColor.HSSFColorPredefined.RED.getIndex());\n CellRangeAddress[] mov9to60CellRange = {new CellRangeAddress(1, lastRowNum, 28, 28)};\n conditionalFormattingLayer.addConditionalFormatting(mov9to60CellRange, mov9to60LessThanZeroRule);\n\n // CPR Formatting\n HSSFConditionalFormattingRule cprRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"0\");\n HSSFFontFormatting cprFormatting = cprRule.createFontFormatting();\n cprFormatting.setFontColorIndex(HSSFColor.HSSFColorPredefined.RED.getIndex());\n CellRangeAddress[] cprCellRange = {new CellRangeAddress(1, lastRowNum, 20, 20)};\n conditionalFormattingLayer.addConditionalFormatting(cprCellRange, cprRule);\n\n // Result formatting\n HSSFConditionalFormattingRule winnerRule = conditionalFormattingLayer.createConditionalFormattingRule(\"EXACT($T1, \\\"Won\\\")\");\n HSSFConditionalFormattingRule placedRule = conditionalFormattingLayer.createConditionalFormattingRule(\"EXACT($T1, \\\"Placed\\\")\");\n\n HSSFPatternFormatting winnerFormatting = winnerRule.createPatternFormatting();\n winnerFormatting.setFillBackgroundColor(IndexedColors.BRIGHT_GREEN.getIndex());\n\n HSSFPatternFormatting placedFormatting = placedRule.createPatternFormatting();\n placedFormatting.setFillBackgroundColor(IndexedColors.LEMON_CHIFFON.getIndex());\n\n palette.setColorAtIndex(IndexedColors.BRIGHT_GREEN.getIndex(), (byte) 62, (byte) 213, (byte) 120);\n palette.setColorAtIndex(IndexedColors.LEMON_CHIFFON.getIndex(), (byte) 242, (byte) 218, (byte) 193);\n\n CellRangeAddress[] resultCellRange = {\n // Horse name\n new CellRangeAddress(1, lastRowNum, 0, 0),\n // Result\n new CellRangeAddress(1, lastRowNum, 19, 19),\n // Jockey\n new CellRangeAddress(1, lastRowNum, 24, 24),\n // Trainer\n new CellRangeAddress(1, lastRowNum, 34, 34)\n\n };\n\n conditionalFormattingLayer.addConditionalFormatting(resultCellRange, winnerRule);\n conditionalFormattingLayer.addConditionalFormatting(resultCellRange, placedRule);\n\n // Writing the file into Http response\n workbook.write(outExcel);\n\n response.setContentType(\"application/octet-stream\");\n DateFormat dateFormat = new SimpleDateFormat(\"yyyyMMdd\");\n Date today = new Date();\n response.setHeader(\"Content-disposition\", \"attachment; filename=\" + \"trading-aid-\" + dateFormat.format(today) + \".xls\");\n\n FileInputStream inputStream = new FileInputStream(new File(\"workbook\"));\n\n OutputStream outputStream = response.getOutputStream();\n\n byte[] buffer = new byte[1024];\n int bytesRead = -1;\n while ((bytesRead = inputStream.read(buffer)) != -1) { // write bytes read from the input stream into the output stream\n outputStream.write(buffer, 0, bytesRead);\n }\n\n outputStream.flush();\n\n log.debug(\"Data export to excel successful.\");\n\n }", "protected void generarReporte(String fileNameOut){\n LinkedList datos;\n LinkedList listaHojas;\n frmHoja tmpSheet;\n Clases.Dato tmpDato;\n int numRows = 0;\n int numCols = 0;\n try{\n sw = new FileWriter(fileNameOut,true);\n //obtener lista de hojas desde el workplace\n listaHojas = wp.getListaHojas();\n\n //escribir encabezado de HTML a stream\n sw.write(\"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01 Transitional//EN\\\">\\n\");\n sw.write(\"<html>\\n<head>\\n<meta content=\\\"text/html; charset=ISO-8859-1\\\" http-equiv=\\\"content-type\\\">\\n\");\n sw.write(\"<title>JExcel</title>\\n\");\n sw.write(\"</head>\\n<body>\\n\");\n sw.write(\"<big><span style=\\\"font-weight: bold;\\\">Hoja generada por JExcel</span></big><br>\\n\");\n sw.write(\"<small>Universidad Mariano Gálvez de Guatemala</small><br>\\n<br>\\n\");\n sw.write(\"<small>Extensión Morales Izabal</small><br>\\n<br>\\n\");\n sw.write(\"<small>(C) Amy C. Leiva - 4890-15-</small><br>\\n<br>\\n\");\n // Iterar sobre cada hoja en listaSheets\n for (int i = 0; i < listaHojas.size();i++){\n // obtener maximo numero de datos\n tmpSheet = (frmHoja) listaHojas.get(i);\n\n numRows = tmpSheet.getHoja().getRowCount();\n numCols = tmpSheet.getHoja().getColumnCount();\n sw.write(\"<table style=\\\"text-align: left; width: 100%;\\\" border=\\\"1\\\" cellpadding=\\\"2\\\" cellspacing=\\\"2\\\">\\n\");\n sw.write(\"<tbody>\\n\");\n sw.write(\" <tr> <td colspan=\\\"4\\\" rowspan=\\\"1\\\"><big><span style=\\\"font-weight: bold;\\\">\");\n sw.write(\"Nombre de la Hoja: \" + tmpSheet.getId());\n sw.write(\"</span></big></td>\\n</tr>\\n\");\n sw.write(\" <tr><td>Fila</td><td>Columna</td><td>Expresi&oacute;n</td> <td>Valor Num&eacute;rico</td> </tr>\\n\");\n // obtener lista de datos desde matriz\n if( tmpSheet.getHoja().getTabla().estaVacia() == false){ // si la tabla tiene datos\n datos = tmpSheet.getHoja().getTabla().getSubset(1,1,numCols,numRows);\n //escribir tabla con datos generados\n for (int j = 0; j < datos.size();j++){\n tmpDato = (Clases.Dato) datos.get(j); \n sw.write(\"<tr>\\n\");\n sw.write(\"<td>\" + tmpDato.getRow() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getCol() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.getExpr() + \"</td>\\n\");\n sw.write(\"<td>\" + tmpDato.eval() + \"</td>\\n\");\n sw.write(\"</tr>\\n\");\n }\n }\n else{\n sw.write(\"<tr><td colspan=\\\"4\\\" rowspan=\\\"1\\\"> Hoja Vacia... </td></tr>\");\n }\n sw.write(\" </tbody></table>\\n<br><br><br>\");\n // sw.write();\n // sw.write();\n }\n //escribir fin de datos\n sw.write(\"</body></html>\");\n //escribir a archivo de salida\n sw.close();\n }\n catch(Exception e){\n System.out.println(\"No se pudo guardar archivo:\" + e);\n }\n \n }", "void onActionFromExport() {\n\t\ttry {\n\t\t\tHSSFWorkbook document = new HSSFWorkbook();\n\t\t\tHSSFSheet sheet = ReportUtil.createSheet(document);\n\n\t\t\tsheet.setMargin((short) 0, 0.5);\n\t\t\tReportUtil.setColumnWidths(sheet, 0, 0.5, 1, 0.5, 2, 2, 3, 2, 3, 2, 4, 3, 5, 2, 6, 2, 7, 2, 8, 3, 9, 3, 10,\n\t\t\t\t\t3, 11, 2, 12, 2);\n\n\t\t\tMap<String, HSSFCellStyle> styles = ReportUtil.createStyles(document);\n\n\t\t\tint sheetNumber = 0;\n\t\t\tint rowIndex = 1;\n\t\t\tint colIndex = 1;\n\t\t\tLong index = 1L;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"empList\"), styles.get(\"title\"), 5);\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, ++rowIndex, 1,\n\t\t\t\t\tmessages.get(\"date\") + \": \" + format.format(new Date()), styles.get(\"plain-left-wrap\"), 5);\n\t\t\trowIndex += 2;\n\n\t\t\t/* column headers */\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1, messages.get(\"number-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"firstname-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tif (lastname) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"lastname-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (origin1) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"persuasion-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (register) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"register-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (status) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"status-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (gender) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"gender-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (occ) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"occupation-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (birthday) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"birthDate-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (phoneNo) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"phoneNo-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (email) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"email-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (org) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"organization-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (appointment) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"appointment-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegree) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цэргийн цол\", styles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeStatus) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цолны статус\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeDate) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цол авсан огноо\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (TotalWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"TotalOrgWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (StateWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"stateWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"courtOrgTotalWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtMilitaryWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtSimpleWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (familyCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"familyCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (childCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"childCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\n\t\t\trowIndex++;\n\t\t\tif (listEmployee != null)\n\t\t\t\tfor (Employee empDTO : listEmployee) {\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\tlistEmployee.indexOf(empDTO) + 1 + \"\", styles.get(\"plain-left-wrap-border\"));\n\n\t\t\t\t\tif (lastname) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getLastname() != null) ? empDTO.getLastname() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++, empDTO.getFirstName(),\n\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\n\t\t\t\t\tif (origin1) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOrigin().getName() != null) ? empDTO.getOrigin().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (register) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getRegisterNo() != null) ? empDTO.getRegisterNo() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (status) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getEmployeeStatus() != null) ? empDTO.getEmployeeStatus().name() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gender) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\tmessages.get((empDTO.getGender() != null) ? empDTO.getGender().toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (occ) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOccupation() != null) ? empDTO.getOccupation().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (birthday) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getBirthDate() != null) ? format.format(empDTO.getBirthDate()) : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (phoneNo) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getPhoneNo() != null) ? empDTO.getPhoneNo() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (email) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.geteMail() != null) ? empDTO.geteMail() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (org) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getOrganization() != null) ? empDTO.getOrganization().getName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (appointment) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getAppointment() != null) ? empDTO.getAppointment().getAppointmentName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegree) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getMilitary().getMilitaryName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeStatus) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getDegreeStatus().name() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeDate) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? format.format(dao.getEmployeeMilitary(empDTO.getId()).getOlgosonOgnoo())\n\t\t\t\t\t\t\t\t\t\t: \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (TotalWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getTotalOrgWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getTotalOrgWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\tif (StateWorkedYear) {\n\t\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t\t((getStateWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t\t? getStateWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtOrgTotalWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtOrgTotalWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtMilitaryWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtMilitaryWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtSimpleWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtSimpleWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (familyCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getFamilyCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getFamilyCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (childCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getChildCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getChildCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\t\t\t\t\trowIndex++;\n\t\t\t\t\tindex++;\n\t\t\t\t\tcolIndex = 1;\n\n\t\t\t\t}\n\n\t\t\trowIndex += 2;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1,\n\t\t\t\t\t\"ТАЙЛАН ГАРГАСАН: \" + \"..................................... / \"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getLastname().charAt(0) + \".\"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getFirstName() + \" /\",\n\t\t\t\t\tstyles.get(\"plain-left-wrap\"), 8);\n\t\t\trowIndex++;\n\n\t\t\tOutputStream out = response.getOutputStream(\"application/vnd.ms-excel\");\n\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"employeeList.xls\\\"\");\n\n\t\t\tdocument.write(out);\n\t\t\tout.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void outputToExcel(String startTime,String endTime) throws ParseException {\n\t\tDate[] dates = new Date[2];\r\n\t\tif (startTime != null && endTime != null) {\r\n\t\t\t\r\n\t\t\tString dateRange = startTime +\" - \"+endTime;\r\n\t\t\tdates = WebUtil.changeDateRangeToDate(dateRange);\r\n\t\t}else {\r\n\t\t\tdates[0] = null;\r\n\t\t\tdates[1] = null;\r\n\t\t}\r\n\t\t\r\n\t\tList<Profit> profits = profitMapper.getProfit(dates[0], dates[1]);\r\n\t\tList<CourseProfit> courseProfits = courseSelectMapper.getCourseProfit(dates[0],WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<CardProfit> cardProfits = cardFeeMapper.getCardProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<MachineBuyConfig> machineBuyConfigs = machineConfigMapper.getMachineProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\t\r\n\t\tMap<String, String> profitMap = new LinkedHashMap<String, String>();\r\n\t\tprofitMap.put(\"date\", \"时间\");\r\n\t\tprofitMap.put(\"vip\", \"会员收益\");\r\n\t\tprofitMap.put(\"course\", \"课程收益\");\r\n\t\tprofitMap.put(\"mechine\", \"器械支出\");\r\n\t\tprofitMap.put(\"sum\", \"总计\");\r\n\t\tString sheetName = \"财务总表\";\r\n\t\t\r\n\t\tMap<String, String> courseProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcourseProfitMap.put(\"selectTime\", \"时间\");\r\n\t\tcourseProfitMap.put(\"courseName\", \"课程名称\");\r\n\t\tcourseProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcourseProfitMap.put(\"courseCost\", \"课程收益\");\r\n\t\tString courseSheet = \"课程收益\";\r\n\t\t\r\n\t\tMap<String, String> cardProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcardProfitMap.put(\"startTime\", \"时间\");\r\n\t\tcardProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcardProfitMap.put(\"cardType\", \"办卡类型\");\r\n\t\tcardProfitMap.put(\"cardFee\", \"办卡收益\");\r\n\t\tString cardSheet = \"办卡收益(1、年卡会员 2、季卡会员 3、月卡会员)\";\r\n\t\t\r\n\t\tMap<String, String> machineOutMap = new LinkedHashMap<String, String>();\r\n\t\tmachineOutMap.put(\"time\", \"时间\");\r\n\t\tmachineOutMap.put(\"machineName\", \"器械名称\");\r\n\t\tmachineOutMap.put(\"machineBrand\", \"器械品牌\");\r\n\t\tmachineOutMap.put(\"machineCost\", \"单价\");\r\n\t\tmachineOutMap.put(\"machineCount\", \"购买数量\");\r\n\t\tmachineOutMap.put(\"sumCost\", \"支出\");\r\n\t\tString machineSheet = \"器械支出\";\r\n\t\t\r\n\t\tExportExcel.excelExport(profits, profitMap, sheetName);\r\n\t\tExportExcel.excelExport(courseProfits, courseProfitMap, courseSheet);\r\n\t\tExportExcel.excelExport(cardProfits, cardProfitMap, cardSheet);\r\n\t\tExportExcel.excelExport(machineBuyConfigs, machineOutMap, machineSheet);\r\n\t}", "@Override\r\n public void execute(Workbook workbook) {\n InputStream fileStream = this.getResourceStream(\"xlsx/Employee absence schedule.xlsx\");\r\n workbook.open(fileStream);\r\n }", "@Override\n public <T> void exportToExcel(String location, List<T>... values) throws IOException, WriteException, DALException {\n ExcelWriter newFile = new ExcelWriter();\n newFile.setOutputFile(location);\n newFile.createNewExcel(\"Rapport over frivillige\");\n\n newFile.createCaptions(0, \"Frivillig\", \"Email\", \"Telefon\", \"Antal timer i laug\");\n\n writeDataToFile(newFile, values[0], 1);\n\n //If a second list is parsed, prints its information under the first list.\n if (values.length > 1 && values[1] != null) {\n newFile.createCaptions(values[0].size() + 1, \"Inaktive Frivillige\");\n\n writeDataToFile(newFile, values[1], values[1].size() + 2);\n }\n\n newFile.writeExcelToFile();\n }", "private void createScheduleFile() {\n try {\n File scheduleFile = new File(filePath, \"schedule.txt\");\n// FileWriter fw = new FileWriter(scheduleFile);\n\n OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(scheduleFile), StandardCharsets.UTF_8);\n osw.write(\"SCHEDULE:\\n\" + schedule);\n osw.close();\n\n System.out.println(\"schedule.txt successfully created.\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// log.debug(\"FILE SYSTEM -----\" + fileSystem);\n\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// log.debug(\"PATH----------\" + path);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\t// log.debug(\"NEW EXCEL_FILE PATH TO EXPORT----------\" + filePath);\n\n\t\t\t\t// create workbook\n\t\t\t\tXSSFWorkbook xssfWorkbook = new XSSFWorkbook();\n\t\t\t\t// create worksheet with title\n\t\t\t\tXSSFSheet xssfSheet = xssfWorkbook.createSheet(\"EMPLOYEE_REPORT\");\n\n\t\t\t\tRow headerRow = xssfSheet.createRow(0);\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\tCell cell = headerRow.createCell(i);\n\t\t\t\t\tcell.setCellValue(EMP_HEADER[i]);\n\t\t\t\t}\n\n\t\t\t\tint rowNum = 1;\n\n\t\t\t\tfor (EmployeeDTO transaction : content) {\n\n\t\t\t\t\tlog.info(\"Entered into EMP-FOR Loop--------->\");\n\n\t\t\t\t\tRow dataRow = xssfSheet.createRow(rowNum++);\n\n\t\t\t\t\tdataRow.createCell(0).setCellValue(transaction.getEmpId());\n\t\t\t\t\tdataRow.createCell(1).setCellValue(transaction.getName());\n\t\t\t\t\tdataRow.createCell(2).setCellValue(transaction.getDesignation());\n\t\t\t\t\tdataRow.createCell(3).setCellValue(transaction.getManagerName());\n\t\t\t\t\tdataRow.createCell(4).setCellValue(transaction.getProjectName());\n\t\t\t\t\tdataRow.createCell(5).setCellValue(transaction.getSiteName());\n\t\t\t\t\tdataRow.createCell(6).setCellValue(transaction.getActive());\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\txssfSheet.autoSizeColumn(i);\n\t\t\t\t}\n\t\t\t\t// log.info(exportFileName + \" Excel file was created successfully !!!\");\n\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\n\t\t\t\t// String fName = \"F:\\\\Export\\\\Employee.xlsx\";\n\t\t\t\tFileOutputStream fileOutputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tfileOutputStream = new FileOutputStream(filePath);\n\t\t\t\t\txssfWorkbook.write(fileOutputStream);\n\t\t\t\t\tfileOutputStream.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.error(\"Error while flushing/closing !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public static String[][] writeXL(String fPathe, String fSheet) throws Exception{\n\t\n\t\tFile outFile = new File(fPath);\n\t\tHSSFWorkbook WB = new HSSFWorkbook();\n\t\tHSSFSheet osSheet = WB.createSheet(fSheet);\n\t\tint xR_TS = xData.length;\n\t\tint xC_TS = xData[0].length;\n\t\tfor (int myrow =0; myrow < xR_TS; myrow++) {\n\t\t\tHSSFRow row = osheet.createRow(myrow);\n\t\t}\n\t\t//System.out.println(\"Total Rows in Excel are \" + xRows);)\n}", "public static byte[] writeExcel(List<Object[]> objectList) throws IOException {\n\n String sheetName = \"Sheet1\";//name of sheet\n\n XSSFWorkbook wb = new XSSFWorkbook();\n XSSFSheet sheet = wb.createSheet(sheetName);\n Map<String, CellStyle> styles = createStyles(wb);\n int contRow = 0;\n for (Object[] obj : objectList) {\n XSSFRow row = sheet.createRow(contRow);\n int contCell = 0;\n\n for (Object s : obj) {\n\n XSSFCell cell = row.createCell(contCell);\n\n /*if (contCell == 0 && contRow > 0) {\n nomAct = s.toString();\n }*/\n \n /*if (contCell == 1 && contRow > 0) {\n descripAct = s.toString();\n }*/\n\n if (contRow == 0) {\n cell.setCellValue(s.toString());\n cell.setCellStyle(styles.get(\"header\"));\n } else {\n /*if (nomAct.equals(nomAnt) && contCell == 0) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n }\n if (descripAct.equals(descripAnt) && contCell == 1) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n } else {*/\n cell.setCellValue(s.toString());\n /* if (contCell == 0 || contCell==1) {\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n nomAnt = nomAct;\n descripAnt = descripAct;\n } else {\n cell.setCellStyle(styles.get(\"cell_normal\"));\n }*/\n //}\n }\n\n contCell++;\n }\n contRow++;\n }\n\n/*\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 0, 0));\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 1, 1));*/\n\n\n /*//iterating r number of rows\n for (int r = 0; r < 5; r++) {\n XSSFRow row = sheet.createRow(r);\n\n //iterating c number of columns\n for (int c = 0; c < 5; c++) {\n for (int c = 0; c < 5; c++) {\n XSSFCell cell = row.createCell(c);\n\n cell.setCellValue(\"Cell \" + r + \" \" + c);\n }\n }*/\n\n // FileOutputStream fileOut = new FileOutputStream(excelFileName);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n wb.write(byteArrayOutputStream);\n return byteArrayOutputStream.toByteArray();\n\n //write this workbook to an Outputstream.\n/* wb.write(fileOut);\n fileOut.flush();\n fileOut.close();*/\n }", "public void testExportToStream() throws FileNotFoundException {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n OutputStream out1 = new FileOutputStream(new File(\"t2-out.xls\"));\n excelExportingService.exportToExcel(null, out1, data, ExcelFormatTypeEnum.XLS);\n\n InputStream in2 = getClass().getResourceAsStream(\"/exportData/t2-in.xlsx\");\n OutputStream out2 = new FileOutputStream(new File(\"t2-out.xlsx\"));\n sheet1.setName(\"Append Sheet\");\n sheet1.setSheetIndex(0);\n excelExportingService.exportToExcel(in2, out2, data, ExcelFormatTypeEnum.XLSX);\n }", "public void writeShortSolutionExcel(String file) \n\t{\n\t\t\n\t\t//setup excel file\n\t\tint rowCounter = 0;\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(); // create a book\n\t\tXSSFSheet sheet = workbook.createSheet(\"Sheet1\");// create a sheet\n\t\tXSSFRow curRow = sheet.createRow(rowCounter); // create a row\n\t\t\n\t\t//Problem info\n\t\tcurRow.createCell(0).setCellValue(\"File: \");\n\t\tcurRow.createCell(1).setCellValue(file);\n\t\tcurRow.createCell(2).setCellValue(\"Num Depots: \");\n\t\tcurRow.createCell(3).setCellValue(ProblemInfo.numDepots);\n\t\tcurRow.createCell(4).setCellValue(\"Num Pick Up Points: \");\n\t\tcurRow.createCell(5).setCellValue(ProblemInfo.numCustomers);\n\t\tcurRow.createCell(6).setCellValue(\"Num Trucks: \");\n\t\tcurRow.createCell(7).setCellValue(ProblemInfo.numTrucks);\n\t\tcurRow.createCell(8).setCellValue(\"Processing Time: \");\n\t\tcurRow.createCell(9).setCellValue((endTime - startTime) / 1000);\n\t\tcurRow.createCell(10).setCellValue(\"seconds\");\n\t\t\n\t\t//next row\n\t\trowCounter++;\n\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\n\t\t\n\t\tcurRow.createCell(0).setCellValue(\"Total Demand =\");\n\t\tcurRow.createCell(1).setCellValue(mainDepots.getAttributes().getTotalDemand());\n\t\tcurRow.createCell(2).setCellValue(\"Total Distance =\");\n\t\tcurRow.createCell(3).setCellValue(mainDepots.getAttributes().getTotalDistance());\n\t\tcurRow.createCell(4).setCellValue(\"Total Travel Time =\");\n\t\tcurRow.createCell(5).setCellValue(mainDepots.getAttributes().getTotalTravelTime());\n\t\tcurRow.createCell(6).setCellValue(\"Total Cost = \");\n\t\tcurRow.createCell(7).setCellValue(Math.round(mainDepots.getAttributes().getTotalCost()*100.0)/100.0);\n\t\t\t\n\t\trowCounter++;\n\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\n\t\tDepot depotHead = mainDepots.getHead();\n\t\tDepot depotTail = mainDepots.getTail();\n\t\t\n\t\t//Truck header info\n\t\tcurRow.createCell(0).setCellValue(\"Truck #\");\n\t\tcurRow.createCell(1).setCellValue(\"MaxCap:\");\n\t\tcurRow.createCell(2).setCellValue(\"Demand:\");\n\t\t\n\t\t//loop through Depots, trucks, nodes\n\t\twhile (depotHead != depotTail) \n\t\t{\n\t\t\tTruck truckHead = depotHead.getMainTrucks().getHead();\n\t\t\tTruck truckTail = depotHead.getMainTrucks().getTail();\n\t\t\t\n\t\t\t//print truck data\n\t\t\twhile (truckHead != truckTail) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\trowCounter++;\n\t\t\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcurRow.createCell(1).setCellValue(truckHead.getTruckType().getMaxCapacity());\n\t\t\t\t\tcurRow.createCell(0).setCellValue(truckHead.getTruckNum());\n\t\t\t\t\tcurRow.createCell(2).setCellValue(truckHead.getAttributes().getTotalDemand());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tNodes nodesHead = truckHead.getMainNodes().getHead().getNext();\n\t\t\t\t\tNodes nodesTail = truckHead.getMainNodes().getTail();\n\t\t\t\t\t\n\t\t\t\t\trowCounter++;\n\t\t\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\t\t\n\t\t\t\t\tcurRow.createCell(0).setCellValue(\"ROUTE:\");\n\t\t\t\t\tint cellCount = 1;\n\t\t\t\t\t\n\t\t\t\t\t//print rout data\n\t\t\t\t\twhile (nodesHead != nodesTail) \n\t\t\t\t\t{\n\t\t\t\t\t\tcurRow.createCell(cellCount).setCellValue(nodesHead.getIndex());\n\n\t\t\t\t\t\tcellCount++;\n\t\t\t\t\t\tnodesHead = nodesHead.getNext();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcellCount = 0;\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException ex)\n\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Null truck types detected\");\n\t\t\t\t\t\trowCounter--;\n\t\t\t\t}\n\t\t\t\t\ttruckHead = truckHead.getNext();\n\t\t\t}\n\t\t\tdepotHead = depotHead.getNext();\n\t\t}\n\t\t\t \n\t\t\trowCounter +=2;\n\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\n\t\t\tcurRow.createCell(0).setCellValue(\"optimization Info\");\n\t\t\t\n\t\t\trowCounter ++;\n\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\n\t\t\t//print Optimization information\n\t\t\tfor (int i = 0; i < optInformation.size(); i++) \n\t\t\t{\n\t\t\t\tcurRow.createCell(i).setCellValue(optInformation.elementAt(i).toString());\n\t\t\t}\n\t\t\t\n\t\t\ttry \n\t\t {\n\t\t\t\tFileOutputStream fout = new FileOutputStream(new File(ProblemInfo.outputPath + file + \"_short.xlsx\"));\n\t\t \tworkbook.write(fout); \n\t\t fout.close();\n\t\t } \n\t\t catch (Exception e) \n\t\t { \n\t\t e.printStackTrace(); \n\t\t } \n\t}", "public void WriteResultsInExcel(String strExcelPath,String sheetName,LinkedHashMap<String, String>Results) throws IOException {\n FileInputStream inputStream = new FileInputStream(strExcelPath);\n\n Workbook guru99Workbook = null;\n\n //Find the file extension by splitting file name in substring and getting only extension name\n\n String fileExtensionName = strExcelPath.substring(strExcelPath.indexOf(\".\"));\n\n //Check condition if the file is xlsx file\n\n if(fileExtensionName.equals(\".xlsx\")){\n\n //If it is xlsx file then create object of XSSFWorkbook class\n\n guru99Workbook = new XSSFWorkbook(inputStream);\n\n }\n\n //Check condition if the file is xls file\n\n else if(fileExtensionName.equals(\".xls\")){\n\n //If it is xls file then create object of XSSFWorkbook class\n\n guru99Workbook = new HSSFWorkbook(inputStream);\n\n } \n\n //Read excel sheet by sheet name \n\n Sheet sheet = guru99Workbook.getSheet(sheetName);\n\n //Get the current count of rows in excel file\n\n int rowCount = sheet.getLastRowNum()-sheet.getFirstRowNum();\n\n //Get the first row from the sheet\n\n Row row = sheet.getRow(0);\n int column=row.getLastCellNum();\n for(int i=0;i<column;i++) {\n\t if(row.getCell(column).getStringCellValue().equalsIgnoreCase(\"TestResult\")) {\n\t\t column=i;\n\t\t break;\n\t }\n\n //Create a new row and append it at last of sheet\n\n // Row newRow = sheet.createRow(rowCount+1);\n\n //Create a loop over the cell of newly created Row\n\n for(int j = 1; j < sheet.getLastRowNum(); j++){\n\t for(Map.Entry<String, String>entry:Results.entrySet()) {\n\t\t if(entry.getKey().equalsIgnoreCase(sheet.getRow(j).getCell(0).getStringCellValue())) {\n\t\t\t sheet.getRow(j).getCell(column).setCellValue(entry.getValue().toString());\n\t\t\t break;\n\t\t }\n\t }\n\n //Fill data in row\n\n \n\n }\n\n //Close input stream\n\n inputStream.close();\n\n //Create an object of FileOutputStream class to create write data in excel file\n\n FileOutputStream outputStream = new FileOutputStream(strExcelPath);\n\n //write data in the excel file\n\n guru99Workbook.write(outputStream);\n\n //close output stream\n\n outputStream.close();\n\t\n }\n\n }", "public static void writeToExcelFromText() {\r\n\t\tExcelDataAccess payloadDataFile = new ExcelDataAccess(\r\n\t\t\t\t\"D:\\\\Users\\\\gawandejyostna\\\\Desktop\\\\WebServicesWorkspace\\\\GitRepo\\\\test-automation\\\\Bajaj_Automation\\\\Datatables\",\r\n\t\t\t\t\"CorrectPayloads\");\r\n\t\tpayloadDataFile.setDatasheetName(\"payloads\");\r\n\t\tint lastRowNum = payloadDataFile.getLastRowNum();\r\n\t\tfinal String TEXT_FILE_EXTENSION = \".txt\";\r\n\t\tFile[] packageDirectories = {\r\n\t\t\t\tnew File(\r\n\t\t\t\t\t\t\"D:\\\\Users\\\\gawandejyostna\\\\Desktop\\\\WebServicesWorkspace\\\\GitRepo\\\\test-automation\\\\Bajaj_Automation\\\\Datatables\\\\api\\\\inputrequests\"),\r\n\t\t\t\tnew File(\r\n\t\t\t\t\t\t\"D:\\\\Users\\\\gawandejyostna\\\\Desktop\\\\WebServicesWorkspace\\\\GitRepo\\\\test-automation\\\\Bajaj_Automation\\\\Datatables\\\\api\\\\exptresponse\\\\uat\") };\r\n\t\tfor (File packageDirectory : packageDirectories) {\r\n\t\t\tFile[] packageFiles = packageDirectory.listFiles();\r\n\t\t\tString packageName = packageDirectory.getName();\r\n\t\t\tString payloadColumn = \"Request Payload\";\r\n\t\t\tif (\"uat\".equals(packageName)) {\r\n\t\t\t\tpayloadColumn = \"Response Payload\";\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < packageFiles.length; i++) {\r\n\t\t\t\tFile packageFile = packageFiles[i];\r\n\t\t\t\tString fileName = packageFile.getName();\r\n\t\t\t\tString fileNameWithoutExt = fileName.substring(0, fileName.indexOf(TEXT_FILE_EXTENSION));\r\n\t\t\t\t// We only want the .class files\r\n\t\t\t\tif (fileName.endsWith(TEXT_FILE_EXTENSION)) {\r\n\t\t\t\t\tString payload = readFromTextFile(packageFile);\r\n\t\t\t\t\tint rowNum = payloadDataFile.getRowNum(fileNameWithoutExt, 0);\r\n\t\t\t\t\tif (rowNum == -1) {\r\n\t\t\t\t\t\tlastRowNum = payloadDataFile.getLastRowNum();\r\n\t\t\t\t\t\trowNum = payloadDataFile.addRow();\r\n\t\t\t\t\t\tpayloadDataFile.setValue(rowNum, \"Test Case\", fileNameWithoutExt);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpayloadDataFile.setValue(rowNum, payloadColumn,\r\n\t\t\t\t\t\t\tpayload.length() > 32000 ? payload.substring(0, 32000) : payload);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static void save(Schedules schedules, String filename) throws IOException, RBEConfigObjectException\n {\n\t\tFileWriter fw = new FileWriter(filename);\n\t\tschedules.toXML(fw);\n\t\tfw.close();\n }", "void createWorkSheet() {\n wb = new HSSFWorkbook();\n for (int SheetNumber = 0; SheetNumber < keywords.length - 1; SheetNumber++) {\n sheet[SheetNumber] = wb.createSheet(keywords[SheetNumber]);\n // Create row at index zero ( Top Row)\n HSSFRow row = sheet[SheetNumber].createRow((short) 0);\n String[] headers = {\"Title\", \"Category\", \"Developer\", \"Description\", \"Release Date\", \"currentVersionReleaseDate\", \"Version\", \"Website\", \"Rating Counts\", \"Average User Rating\", \"Average User Rating For Current Version\", \"Market URL\", \"Size\"};\n for (int i = 0; i <= 12; i++) {\n\n HSSFCell cell = row.createCell((short) i);\n cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n cell.setCellValue(headers[i]);\n excelFileCreated = false;\n }\n }\n }", "public void testCreateNewFile() {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n excelExportingService.exportToExcel(\"t1.xls\", data, false, ExcelFormatTypeEnum.XLS);\n excelExportingService.exportToExcel(\"t1.xlsx\", data, false, ExcelFormatTypeEnum.XLSX);\n }", "public writeXLSX(String s) throws IOException {\n this.fileName = s;\n wb = new XSSFWorkbook();\n sheet = wb.createSheet(\"Sorting Algorithm Runtimes\");\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public void CreateTestResultFile()\n\t{ \n\t\tDate dNow = new Date( );\n\t\tSimpleDateFormat ft =new SimpleDateFormat (\"MMddYYYY\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tFileOutputStream fos = new FileOutputStream(System.getProperty(\"user.dir\")+\"//PG HealthCheck List_\"+ft.format(dNow)+\".xls\");\n\t HSSFWorkbook workbook = new HSSFWorkbook();\n\t HSSFSheet worksheet = workbook.createSheet(\"PG Functionality - Country\");\n\t HSSFRow row1 = worksheet.createRow(0);\n\t row1.createCell(0).setCellValue(\"Availability of Data\");\n\t HSSFRow row = worksheet.createRow(1);\n\t row.createCell(0).setCellValue(\"Testcase\");\n\t row.createCell(1).setCellValue(\"TestRunStatus\");\n\t row.createCell(2).setCellValue(\"Remarks\");\n\t workbook.write(fos);\n\t fos.close();\n\t \t \n\t } \n\t\tcatch (Exception e)\n\t {\n\t \te.printStackTrace();\n\t }\n\t\t\t\n\t\t\n\t}", "public static void writeExcel(HashMap h, String newData) {\r\n\r\n try {\r\n File exlFile = new File(\"test_book.xls\");\r\n WritableWorkbook writableWorkbook = Workbook\r\n .createWorkbook(exlFile);\r\n\r\n WritableSheet writableSheet = writableWorkbook.createSheet(\r\n \"Data\", 0);\r\n\r\n for (int i = 0 ; i < h.size() ; i++)\r\n {\r\n int digit = Integer.parseInt((String) h.get(i));\r\n Number num = new Number(0, i, digit);\r\n writableSheet.addCell(num);\r\n }\r\n\r\n writableSheet.addCell(new Number(0,h.size(),Integer.parseInt(newData)));\r\n\r\n //Write and close the workbook\r\n writableWorkbook.write();\r\n writableWorkbook.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (RowsExceededException e) {\r\n e.printStackTrace();\r\n } catch (WriteException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) {\n String filePath=\"C:\\\\down\\\\gogo.xls\";\r\n \r\n HSSFWorkbook workbook = new HSSFWorkbook(); // 새 엑셀 생성\r\n HSSFSheet sheet = workbook.createSheet(\"sheet1\"); // 새 시트(Sheet) 생성\r\n HSSFRow row = sheet.createRow(0); // 엑셀의 행은 0번부터 시작\r\n HSSFCell cell = row.createCell(0); // 행의 셀은 0번부터 시작\r\n cell.setCellValue(\"data\"); //생성한 셀에 데이터 삽입\r\n try {\r\n FileOutputStream fileoutputstream = new FileOutputStream(\"C:\\\\down\\\\gogo.xls\");\r\n workbook.write(fileoutputstream);\r\n fileoutputstream.close();\r\n System.out.println(\"엑셀파일생성성공\");\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n System.out.println(\"엑셀파일생성실패\");\r\n }\r\n\r\n}", "private void gerarArquivoExcel() {\n\t\tFile currDir = getPastaParaSalvarArquivo();\n\t\tString path = currDir.getAbsolutePath();\n\t\t// Adiciona ao nome da pasta o nome do arquivo que desejamos utilizar\n\t\tString fileLocation = path.substring(0, path.length()) + \"/relatorio.xls\";\n\t\t\n\t\t// mosta o caminho que exportamos na tela\n\t\ttextField.setText(fileLocation);\n\n\t\t\n\t\t// Criação do arquivo excel\n\t\ttry {\n\t\t\t\n\t\t\t// Diz pro excel que estamos usando portguês\n\t\t\tWorkbookSettings ws = new WorkbookSettings();\n\t\t\tws.setLocale(new Locale(\"pt\", \"BR\"));\n\t\t\t// Cria uma planilha\n\t\t\tWritableWorkbook workbook = Workbook.createWorkbook(new File(fileLocation), ws);\n\t\t\t// Cria uma pasta dentro da planilha\n\t\t\tWritableSheet sheet = workbook.createSheet(\"Pasta 1\", 0);\n\n\t\t\t// Cria um cabeçario para a Planilha\n\t\t\tWritableCellFormat headerFormat = new WritableCellFormat();\n\t\t\tWritableFont font = new WritableFont(WritableFont.ARIAL, 16, WritableFont.BOLD);\n\t\t\theaderFormat.setFont(font);\n\t\t\theaderFormat.setBackground(Colour.LIGHT_BLUE);\n\t\t\theaderFormat.setWrap(true);\n\n\t\t\tLabel headerLabel = new Label(0, 0, \"Nome\", headerFormat);\n\t\t\tsheet.setColumnView(0, 60);\n\t\t\tsheet.addCell(headerLabel);\n\n\t\t\theaderLabel = new Label(1, 0, \"Idade\", headerFormat);\n\t\t\tsheet.setColumnView(0, 40);\n\t\t\tsheet.addCell(headerLabel);\n\n\t\t\t// Cria as celulas com o conteudo\n\t\t\tWritableCellFormat cellFormat = new WritableCellFormat();\n\t\t\tcellFormat.setWrap(true);\n\n\t\t\t// Conteudo tipo texto\n\t\t\tLabel cellLabel = new Label(0, 2, \"Elcio Bonitão\", cellFormat);\n\t\t\tsheet.addCell(cellLabel);\n\t\t\t// Conteudo tipo número (usar jxl.write... para não confundir com java.lang.number...)\n\t\t\tjxl.write.Number cellNumber = new jxl.write.Number(1, 2, 49, cellFormat);\n\t\t\tsheet.addCell(cellNumber);\n\n\t\t\t// Não esquecer de escrever e fechar a planilha\n\t\t\tworkbook.write();\n\t\t\tworkbook.close();\n\n\t\t} catch (IOException e1) {\n\t\t\t// Imprime erro se não conseguir achar o arquivo ou pasta para gravar\n\t\t\te1.printStackTrace();\n\t\t} catch (WriteException e) {\n\t\t\t// exibe erro se acontecer algum tipo de celula de planilha inválida\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void exportAllFactures(OutputStream outputStream) throws IOException {\n\n Workbook workbook = new XSSFWorkbook();\n \n // Styles des cellules: \n CellStyle styleGreen = workbook.createCellStyle();\n styleGreen.setFillForegroundColor(IndexedColors.GREEN.getIndex());\n styleGreen.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n CellStyle styleBlue = workbook.createCellStyle();\n styleBlue.setFillForegroundColor(IndexedColors.DARK_BLUE.getIndex());\n styleBlue.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n CellStyle styleYellow = workbook.createCellStyle();\n styleYellow.setFillForegroundColor(IndexedColors.YELLOW.getIndex());\n styleYellow.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n Font font = workbook.createFont();\n font.setColor(IndexedColors.WHITE.getIndex());\n styleGreen.setFont(font);\n styleBlue.setFont(font);\n styleYellow.setFont(font);\n \n \n \n List<FactureDto> listAllFacturesAllClient = this.factureService.findAllFactures();\n \n \n for (FactureDto factureDto : listAllFacturesAllClient) {\n\t //SHEET\n\t Sheet sheet = workbook.createSheet(\"Facture\"+factureDto.getId());\n\t Row headerRow = sheet.createRow(0);\n\t //LIBELLES\n\t Cell cellLibelle0 = headerRow.createCell(0);\n\t Cell cellLibelle1 = headerRow.createCell(1);\n\t Cell cellLibelle2 = headerRow.createCell(2);\n\t Cell cellLibelle3 = headerRow.createCell(3);\n\t cellLibelle0.setCellValue(\"Désignation\");\n\t cellLibelle1.setCellValue(\"Quantité\");\n\t cellLibelle2.setCellValue(\"Prix Unitaire\");\n\t cellLibelle3.setCellValue(\"Prix ligne\");\n\t cellLibelle0.setCellStyle(styleGreen);\n\t cellLibelle1.setCellStyle(styleBlue);\n\t cellLibelle2.setCellStyle(styleYellow);\n\t cellLibelle3.setCellStyle(styleGreen);\n\n\t for (int i =0; i<factureDto.getLigneFactures().size(); i++) {\n\t \t\t \t\n\t Row newRow = sheet.createRow(i+1);\n\t \n\t Cell firstCell = newRow.createCell(0);\n\t firstCell.setCellStyle(styleGreen);\n\t firstCell.setCellValue(factureDto.getLigneFactures().get(i).getArticle().getLibelle());\n\t \n\t Cell secondCell =newRow.createCell(1);\n\t secondCell.setCellValue(factureDto.getLigneFactures().get(i).getQuantite());\n\t secondCell.setCellStyle(styleBlue);\n\t \n\t Cell thirdCell =newRow.createCell(3);\n\t thirdCell.setCellValue(factureDto.getLigneFactures().get(i).getArticle().getPrix());\n\t thirdCell.setCellStyle(styleYellow);\n\t \n\t Cell fourthCell =newRow.createCell(3);\n\t fourthCell.setCellValue(\n\t \t\t(factureDto.getLigneFactures().get(i).getArticle().getPrix())*(factureDto.getLigneFactures().get(i).getQuantite())\n\t \t\t);\n\t fourthCell.setCellStyle(styleGreen);\n\t \t\t}\n\t\t\t}\n\t\t\n\n workbook.write(outputStream);\n workbook.close();\n }", "public static int create(EcoSystem system){\n \n \n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Customer Details\");\n\n //Custom font style for header\n CellStyle cellStyle = sheet.getWorkbook().createCellStyle();\n Font font = sheet.getWorkbook().createFont();\n font.setBold(true);\n cellStyle.setFont(font);\n \n int rowCount = 0;\n int columnCount1 = 0;\n \n //Creating header row\n \n String s[] = {\"CUSTOMER ID\",\"CUSTOMER NAME\",\"CONTACT NO.\",\"EMAIL ID\",\"USAGE(Gallons)\",\"BILLING DATE\",\"TOTAL BILL($)\"};\n Row row1 = sheet.createRow(++rowCount);\n for(String s1 : s){\n Cell header = row1.createCell(++columnCount1);\n header.setCellValue(s1);\n header.setCellStyle(cellStyle);\n }\n \n \n \n for(Network network : system.getNetworkList()){\n for(Enterprise enterprise : network.getEnterpriseDirectory().getEnterpriseList()){\n if(enterprise instanceof WaterEnterprise){\n for(Organization organization : enterprise.getOrganizationDirectory().getOrganizationList()){\n if(organization instanceof CustomerOrganization){\n for(Employee employee : organization.getEmployeeDirectory().getEmployeeList()){\n Customer customer = (Customer) employee;\n Row row = sheet.createRow(++rowCount);\n int columnCount = 0;\n for(int i = 0 ; i<7 ; i++ ){\n Cell cell = row.createCell(++columnCount);\n if(i==0){\n cell.setCellValue(customer.getId());\n }\n else if(i == 1){\n cell.setCellValue(customer.getName());\n }\n else if(i == 2){\n cell.setCellValue(customer.getContactNo());\n }\n else if(i == 3){\n cell.setCellValue(customer.getEmailId());\n }\n else if(i == 4){\n cell.setCellValue(customer.getTotalUsageVolume());\n }\n else if(i == 5){\n if(customer.getBillingDate() != null)\n cell.setCellValue(String.valueOf(customer.getBillingDate()));\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n else if(i == 6){\n if(customer.getTotalBill() != 0)\n cell.setCellValue(customer.getTotalBill());\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n }\n }\n }\n }\n }\n }\n }\n \n \n try (FileOutputStream outputStream = new FileOutputStream(\"Customer_details.xlsx\")) {\n workbook.write(outputStream);\n } catch (FileNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"File not found\");\n return 0;\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"IOException\");\n return 0;\n }\n return 1;\n }", "public FileData export() {\n\t\ttry(Workbook workbook = createWorkbook();\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();) {\n\t\t\tsheet = workbook.createSheet();\n\t\t\tcreateRows();\n\t\t\tworkbook.write(outputStream);\n\t\t\treturn getExportedFileData(outputStream.toByteArray());\n\t\t} catch (IOException ex) {\n\t\t\tthrow new RuntimeException(\"error while exporting file\",ex);\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\t\n\t\t\n\t\tFile f=new File(\"C:\\\\Users\\\\Lenovo\\\\Desktop\\\\ExcelOperations.xlsx\");\n\t\tFileInputStream fi=new FileInputStream(f);\n\t\tXSSFWorkbook wb=new XSSFWorkbook(fi);\n\t XSSFSheet sh = wb.getSheet(\"WritingData\");\n\t \n\t sh.createRow(5).createCell(4).setCellValue(\"Excel writing programm\");\n\t \n\t FileOutputStream fo=new FileOutputStream(f);\n\t wb.write(fo);\n\t \n\t wb.close();\n\t fo.close();\n\t fi.close();\n\n\t}", "public static void main(String args[]) throws WorkSheetNotFoundException, CellNotFoundException, FileNotFoundException, IOException{\r\n /*\r\n //Test 1 - Creating empty XLS\r\n FileOutputStream fo=new FileOutputStream(\"Result.xls\");\r\n WorkBookHandle h=new WorkBookHandle();\r\n WorkSheetHandle y = h.getWorkSheet(\"Sheet1\");\r\n y.add(\"aa\", \"A1\");\r\n h.writeBytes(fo);\r\n fo.close();\r\n */ \r\n \r\n }", "@Override\n public void escribirExcel(String pathPlan, String pathDeex, String nombResa) throws Exception {\n LOGGER.info(\"Iniciando escritura del archivo en excel\");\n\n LOGGER.debug(\"Ruta de la plantilla {}\", pathPlan);\n LOGGER.debug(\"Ruta donde se va a escribir la plantilla {} \", pathDeex);\n\n //Archivo Origen\n File archOrig = null;\n //Archivo Destino\n File archDest = null;\n //ruta completa de la plantilla\n String pathDefi = pathDeex + File.separator + nombResa;\n //Registra del archivo de excel\n Row row = null;\n //Celda en el archivo de excel\n Cell cell;\n //Hoja de excel\n Sheet sheet = null;\n //Numero de hojas en el libro de excel\n int numberOfSheets;\n //Constantes\n final String NOMBRE_HOJA = \"RESULTADOS EVALUACION\";\n // Fila y columna para \n int fila = 0;\n int columna = 0;\n //Fila inicio evidencia\n int filaEvid;\n\n try {\n archOrig = new File(pathPlan);\n\n if (!archOrig.exists()) {\n LOGGER.debug(\"Plantilla no existe en la ruta {} \", pathPlan);\n throw new IOException(\"La plantilla no existe en la ruta \" + pathPlan);\n }\n\n archDest = new File(pathDeex);\n\n if (!archDest.exists()) {\n LOGGER.debug(\"Ruta no existe donde se va a depositar el excel {} , se va a crear\", pathDeex);\n archDest.mkdirs();\n }\n\n LOGGER.info(\"Ruta del archivo a crear {}\", pathDefi);\n archDest = new File(pathDefi);\n\n if (!archDest.exists()) {\n LOGGER.info(\"No existe el archivo en la ruta {}, se procede a la creacion \", pathDefi);\n archDest.createNewFile();\n } else {\n\n LOGGER.info(\"el archivo que se requiere crear, ya existe {} se va a recrear\", pathDefi);\n archDest.delete();\n LOGGER.info(\"archivo en la ruta {}, borrado\", pathDefi);\n archDest.createNewFile();\n\n LOGGER.info(\"archivo en la ruta {}, se vuelve a crear\", pathDefi);\n\n }\n\n LOGGER.info(\"Se inicia con la copia de la plantilla de la ruta {} a la ruta {} \", pathPlan, pathDefi);\n try (FileChannel archTror = new FileInputStream(archOrig).getChannel();\n FileChannel archTrDe = new FileOutputStream(archDest).getChannel();) {\n\n archTrDe.transferFrom(archTror, 0, archTror.size());\n\n LOGGER.info(\"Termina la copia del archivo\");\n\n } catch (Exception e) {\n LOGGER.info(\"Se genera un error con la transferencia {} \", e.getMessage());\n throw new Exception(\"Error [\" + e.getMessage() + \"]\");\n }\n\n LOGGER.info(\"Se inicia con el diligenciamiento del formato \");\n\n LOGGER.info(\"Nombre Archivo {}\", archDest.getName());\n if (!archDest.getName().toLowerCase().endsWith(\"xls\")) {\n throw new Exception(\"La plantilla debe tener extension xls\");\n }\n\n try (FileInputStream fis = new FileInputStream(archDest);\n Workbook workbook = new HSSFWorkbook(fis);\n FileOutputStream fos = new FileOutputStream(archDest);) {\n\n if (workbook != null) {\n numberOfSheets = workbook.getNumberOfSheets();\n LOGGER.debug(\"Numero de hojas {}\", numberOfSheets);\n\n LOGGER.info(\"Hoja seleccionada:{}\", NOMBRE_HOJA);\n sheet = workbook.getSheetAt(0);\n\n fila = 5;\n\n LOGGER.info(\"Se inicia con la escritura de las oportunidades de mejora\");\n\n LOGGER.info(\"Creando las celdas a llenar\");\n\n for (int numeFila = fila; numeFila < this.listOpme.size() + fila; numeFila++) {\n\n LOGGER.info(\"Fila {} \", numeFila);\n if (numeFila > 8) {\n\n copyRow(workbook, sheet, numeFila - 2, numeFila - 1);\n sheet.addMergedRegion(new CellRangeAddress(numeFila - 1, numeFila - 1, 1, 4));\n sheet.addMergedRegion(new CellRangeAddress(numeFila - 1, numeFila - 1, 6, 7));\n\n }\n\n }\n\n LOGGER.info(\"Terminando de llenar celdas\");\n LOGGER.info(\"Poblar registros desde {} \", fila);\n\n for (OptuMejo optuMejo : this.listOpme) {\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 1. Valor Capacitacion tecnica {}\", fila, optuMejo.getCapaTecn());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(1);\n\n cell.setCellValue(optuMejo.getCapaTecn());\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 6. Valor compromisos del area {}\", fila, optuMejo.getComporta());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(6);\n\n cell.setCellValue(optuMejo.getComporta());\n\n fila++;\n\n }\n LOGGER.info(\"Termino de poblar el registro hasta {} \", fila);\n //Ajustando los formulario\n if (fila > 8) {\n sheet.addMergedRegion(new CellRangeAddress(fila, fila, 1, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 2, 6));\n } else {\n fila = 9;\n }\n\n /* sheet.addMergedRegion(new CellRangeAddress(fila, fila, 1, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 2, 6));*/\n LOGGER.info(\"Fin de la escritura de las oportunidades de mejora\");\n\n LOGGER.info(\"Se inicia la escritura de las evidencias \");\n\n fila += 2;\n filaEvid = fila + 5;\n\n LOGGER.info(\"Se inicia la creacion de las celdas desde el registro {} \", fila);\n\n for (Evidenci evidenci : this.listEvid) {\n\n if (filaEvid < fila) {\n copyRow(workbook, sheet, fila - 1, fila);\n\n }\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 1. Valor Fecha {}\", fila, evidenci.getFecha());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(1);\n\n cell.setCellValue(evidenci.getFecha());\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 6. Valor compromisos del area {}\", fila, evidenci.getDescripc());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(2);\n\n cell.setCellValue(evidenci.getDescripc());\n\n sheet.addMergedRegion(new CellRangeAddress(fila, fila, 2, 6));\n\n fila++;\n\n }\n\n LOGGER.info(\"Fin de la escritura de las Evidencias\");\n\n LOGGER.info(\"Inicio de escritura de calificaciones\");\n //Ajustando los formulario - resultado\n\n /*sheet.addMergedRegion(new CellRangeAddress(fila, fila, 1, 7));*/\n if (fila > filaEvid) {\n LOGGER.info(\"Fila a ejecutar {} \", fila);\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 2, fila + 2, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 3, fila + 3, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 4, fila + 4, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 6, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 2, fila + 4, 6, 7));\n //Firma del evaluado ajuste\n sheet.addMergedRegion(new CellRangeAddress(fila + 5, fila + 5, 1, 3));\n sheet.addMergedRegion(new CellRangeAddress(fila + 5, fila + 5, 4, 6));\n\n //Ajustando recursos\n sheet.addMergedRegion(new CellRangeAddress(fila + 6, fila + 6, 1, 7));\n\n sheet.addMergedRegion(new CellRangeAddress(fila + 8, fila + 8, 1, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 10, fila + 10, 1, 7));\n\n } else {\n fila = filaEvid + 1;\n LOGGER.info(\"Fila a ejecutar {} \", fila);\n }\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 2. Valor Excelente {}\", fila + 2, this.excelent);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 2);\n cell = row.getCell(2);\n\n cell.setCellValue((this.excelent != null ? this.excelent : \"\"));\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 2. Valor satisfactorio {}\", fila + 3, this.satisfac);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 3);\n cell = row.getCell(2);\n\n cell.setCellValue((this.satisfac != null ? this.satisfac : \"\"));\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 3. Valor no satisfactorio {}\", fila + 4, this.noSatisf);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 4);\n cell = row.getCell(2);\n\n cell.setCellValue((this.noSatisf != null ? this.noSatisf : \"\"));\n\n //Ajustando Total Calificacion en Numero\n LOGGER.debug(\"Se va actualizar la linea {} celda 2. Valor total calificacion {}\", fila + 2, this.numeToca);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 2);\n cell = row.getCell(6);\n\n cell.setCellValue(this.numeToca);\n\n LOGGER.info(\"Fin de escritura de calificaciones\");\n\n LOGGER.info(\"Inicio de escritura de interposicion de recursos\");\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 5. Valor si interpone recursos {}\", fila + 7, this.siinRecu);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 7);\n cell = row.getCell(6);\n\n cell.setCellValue(\"SI:\" + (this.siinRecu != null ? this.siinRecu : \"\"));\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 5. Valor si interpone recursos {}\", fila + 7, this.noinRecu);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 7);\n cell = row.getCell(7);\n\n cell.setCellValue(\"NO:\" + (this.noinRecu != null ? this.noinRecu : \"\"));\n \n \n LOGGER.debug(\"Se va actualizar la linea {} celda 5. Valor si interpone recursos {}\", fila + 8, this.fech);\n \n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 8);\n cell = row.getCell(1);\n\n cell.setCellValue(\"FECHA:\" + (this.fech != null ? this.fech : \"\"));\n \n \n\n LOGGER.info(\"Fin de escritura de interposicion de recursos\");\n\n //Ajustando recursos\n workbook.write(fos);\n\n } else {\n throw new Exception(\"No se cargo de manera adecuada el archivo \");\n }\n\n } catch (Exception e) {\n System.out.println(\"\" + e.getMessage());\n }\n\n } catch (Exception e) {\n LOGGER.error(e.getMessage());\n throw new Exception(e.getMessage());\n }\n }", "public static void main(String[] args) throws FileNotFoundException,IOException, JXLException {\nFileOutputStream fo=new FileOutputStream(\"./testdata/testoutput.xls\");\r\nWritableWorkbook ww=Workbook.createWorkbook(fo);\r\nWritableSheet ws=ww.createSheet(\"testing\",0);\r\n//to move data into specific loationa using labels\r\nLabel a = new Label(0,0,\"Username\");//now the label store in ram loaction\r\n// to move data into specific location\r\nLabel b = new Label(1,0,\"password\");\r\nws.addCell(b);\r\n\r\nws.addCell(a);\r\nww.write();\r\nww.close();\r\n\t}", "public void generateSchedule(){\n\t\t\n\t}", "@Test\r\n\t public void writeExcel(String fileName,String sheetName,String dataToWrite) throws IOException{\n\t \r\n\t File file = new File(\"D:\\\\output.xls\");\r\n\t \r\n\t //Create an object of FileInputStream class to read excel file\r\n\t \r\n\t FileInputStream inputStream = new FileInputStream(file);\r\n\t \r\n\t \t \r\n\t //Find the file extension by spliting file name in substing and getting only extension name\r\n\t \r\n\t String fileExtensionName = fileName.substring(fileName.indexOf(\".\"));\r\n\t \r\n\t //Check condition if the file is xlsx file\r\n\t \r\n\t Workbook guru99Workbook = null;\r\n\t \r\n\t\t\tif(fileExtensionName.equals(\".xlsx\")){\r\n\t \r\n\t //If it is xlsx file then create object of XSSFWorkbook class\r\n\t \r\n\t guru99Workbook = new XSSFWorkbook(inputStream);\r\n\t \r\n\t }\r\n\t \r\n\t //Check condition if the file is xls file\r\n\t \r\n\t else if(fileExtensionName.equals(\".xls\")){\r\n\t \r\n\t //If it is xls file then create object of XSSFWorkbook class\r\n\t \r\n\t guru99Workbook = new HSSFWorkbook(inputStream);\r\n\t \r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t //Read excel sheet by sheet name \r\n\t \r\n\t HSSFSheet sheet = (HSSFSheet) guru99Workbook.getSheet(sheetName);\r\n\t \r\n\t //Get the current count of rows in excel file\r\n\t \r\n\t int rowCount = sheet.getLastRowNum()-sheet.getFirstRowNum();\r\n\t \r\n\t //Get the first row from the sheet\r\n\t \r\n\t Row row = sheet.getRow(0);\r\n\t \r\n\t //Create a new row and append it at last of sheet\r\n\t \r\n\t Row newRow = sheet.createRow(rowCount+1);\r\n\t \r\n\t //Create a loop over the cell of newly created Row\r\n\t \r\n\t for(int j = 0; j < row.getLastCellNum(); j++){\r\n\t \r\n\t //Fill data in row\r\n\t \r\n\t Cell cell = newRow.createCell(j);\r\n\t \r\n\t cell.setCellValue(dataToWrite);\r\n\t \r\n\t }\r\n\t \r\n\t //Close input stream\r\n\t \r\n\t inputStream.close();\r\n\t \r\n\t //Create an object of FileOutputStream class to create write data in excel file\r\n\t \r\n\t FileOutputStream outputStream = new FileOutputStream(file);\r\n\t \r\n\t //write data in the excel file\r\n\t \r\n\t guru99Workbook.write(outputStream);\r\n\t \r\n\t //close output stream\r\n\t \r\n\t outputStream.close();\t \r\n\t \r\n\t }", "public void exportExcel(final List<Project> projects) throws Exception {\n\n\t\tlog.info(\"Entered exportExcel \");\n\n\t\t/* Check if previous week report is older than one week */\n\t\tLocalDate previousReportDate = findPreviousWeekDate();\n\t\tLocalDate now = LocalDate.now();\n\t\tint daysOfDifference = (now.getDayOfYear() - previousReportDate.getDayOfYear());\n\t\tSystem.err.println(\"Days of difference : \" + daysOfDifference);\n\t\tif (daysOfDifference > maximumWeekDays)\n\t\t\tthrow new Exception(baseHistoryPath + \" doesn't contain the previous week report.\");\n\n\t\t/* Read previous week report */\n\t\tList<Project> previousWeekProjects = readPreviousWeekReport(previousReportDate);\n\t\t// Collections.sort(previousWeekProjects, new NameComporator())\n\t\t// Collections.sort(projects, new NameComporator())\n\n\t\t/* Create XSSFWorkbook & XSSFSheet */\n\t\tXSSFWorkbook workbook = new XSSFWorkbook();\n\t\tXSSFSheet sheet = workbook.createSheet(\"Datatypes in Java\");\n\n\t\t// --------------- Create Styles -----------------------//\n\n\t\t/* Init Styles */\n\t\tinitStyles(workbook);\n\n\t\t/* Iterate the data */\n\t\tint[] rowNum = { 0 };\n\n\t\t/* Create row 0-Descriptions */\n\t\tRow row0 = sheet.createRow(rowNum[0]);\n\t\tfor (int i = 0; i <= 4; i++) {\n\n\t\t\t/* Create Row Count */\n\t\t\tCell cell = row0.createCell(i);\n\t\t\tcell.setCellStyle(blueStyle);\n\t\t\tif (i == 0)\n\t\t\t\tcell.setCellValue(\"NO\");\n\t\t\telse if (i == 1)\n\t\t\t\tcell.setCellValue(\"Category\");\n\t\t\telse if (i == 2)\n\t\t\t\tcell.setCellValue(\"Component\");\n\t\t\telse if (i == 3)\n\n\t\t\t\tcell.setCellValue(\"Last Week\");\n\t\t\telse if (i == 4)\n\t\t\t\tcell.setCellValue(\"This week\");\n\n\t\t\tif (i <= 2)\n\t\t\t\tcell.setCellStyle(blueStyleLeft);\n\t\t\telse\n\t\t\t\tcell.setCellStyle(blueStyle);\n\t\t}\n\n\t\tprojects.forEach(thisWeekProject -> {\n\t\t\trowNum[0]++;\n\t\t\tRow row = sheet.createRow(rowNum[0]);\n\n\t\t\tint[] colNum = { 0 };\n\n\t\t\t/* Create Row Count */\n\t\t\tCell rowCountCell = row.createCell(colNum[0]++);\n\t\t\trowCountCell.setCellStyle(defaultStyle);\n\t\t\trowCountCell.setCellValue(rowNum[0]);\n\n\t\t\t/* Application Category */\n\t\t\tCell categoryCell = row.createCell(colNum[0]++);\n\t\t\tcategoryCell.setCellValue(thisWeekProject.getCategory());\n\n\t\t\t/* Application Name */\n\t\t\tCell nameCell = row.createCell(colNum[0]++);\n\t\t\tnameCell.setCellValue(thisWeekProject.getName());\n\n\t\t\t// --------------- Add Coverage -----------------------//\n\n\t\t\t/* Add Previous Week Coverage */\n\t\t\tProject previousWeekProject = previousWeekProjects.stream()\n\t\t\t\t\t.filter(project -> project.getName().equals(thisWeekProject.getName())).findFirst().get();\n\t\t\tCell previousWeekCovCell = row.createCell(colNum[0]++);\n\t\t\tif (previousWeekProject.getCoverage().equals(\"No Coverage\"))\n\t\t\t\tpreviousWeekCovCell.setCellStyle(orangeStyle);\n\t\t\telse\n\t\t\t\tpreviousWeekCovCell.setCellStyle(defaultStyleRight);\n\t\t\tpreviousWeekCovCell.setCellValue(previousWeekProject.getCoverage());\n\n\t\t\t//Print Table to Console?\n\t\t\tif (printToConsole) {\n\t\t\t\tSystem.err.println(\"----------------------------------------\");\n\t\t\t\tSystem.err.println(\n\t\t\t\t\t\trowNum[0] + \" This Week => \" + thisWeekProject.getName() + \":\" + thisWeekProject.getCoverage());\n\t\t\t\tSystem.err.println(rowNum[0] + \" Prev Week => \" + previousWeekProject.getName() + \":\"\n\t\t\t\t\t\t+ previousWeekProject.getCoverage());\n\n\t\t\t\tSystem.err.println(\"----------------------------------------\");\n\t\t\t}\n\n\t\t\t/* Add Current Week Coverage */\n\t\t\tCell thisWeekCovCell = row.createCell(colNum[0]++);\n\t\t\tDouble coveragePreviousWeek = previousWeekProject.getCoverageAsDouble();\n\t\t\tDouble coverageThisWeek = thisWeekProject.getCoverageAsDouble();\n\t\t\tif (coveragePreviousWeek > coverageThisWeek)\n\t\t\t\tthisWeekCovCell.setCellStyle(redStyle);\n\t\t\telse if (coverageThisWeek > coveragePreviousWeek)\n\t\t\t\tthisWeekCovCell.setCellStyle(greenStyle);\n\t\t\telse if (thisWeekProject.getCoverage().equals(\"No Coverage\"))\n\t\t\t\tthisWeekCovCell.setCellStyle(orangeStyle);\n\t\t\telse\n\t\t\t\tthisWeekCovCell.setCellStyle(defaultStyleRight);\n\t\t\tthisWeekCovCell.setCellValue(thisWeekProject.getCoverage());\n\t\t});\n\n\t\t// Auto size column widths\n\t\tfor (int i = 0; i < 7; i++)\n\t\t\tsheet.autoSizeColumn(i);\n\t\tsheet.setColumnWidth(0, 1500);\n\t\tsheet.setColumnWidth(3, 3500);\n\t\tsheet.setColumnWidth(4, 3500);\n\n\t\t/* Create excel file */\n\t\tFile file = getSonarQubeReport(basePath, LocalDate.now());\n\t\tlog.error(\"File {} exists {}... deleting = {}\", file.getName(), file.exists(), FileUtils.deleteQuietly(file));\n\n\t\t/* Write excel file */\n\t\ttry (FileOutputStream outputStream = new FileOutputStream(file.getAbsolutePath())) {\n\t\t\tworkbook.write(outputStream);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\t/* Copy the file to the history folder */\n\t\tFiles.move(Paths.get(file.getAbsolutePath()), Paths.get(baseHistoryPath, file.getName()),\n\t\t\t\tStandardCopyOption.REPLACE_EXISTING);\n\n\t\tlog.info(\"Exited exportExcel \");\n\t}", "public static void main(String[] args) throws IOException {\n FileInputStream fi=new FileInputStream(\"C:\\\\Users\\\\SURENDRA\\\\Documents\\\\msexel1.xlsx\");\r\n Workbook wb= new XSSFWorkbook(fi);\r\n // wb.createSheet(\"MIN5\");\r\n \r\n \r\n FileOutputStream fo=new FileOutputStream(\"C:\\\\Users\\\\SURENDRA\\\\Documents\\\\msexel2.xlsx\");\r\n wb.write(fo);\r\n wb.close();\r\n fi.close();\r\n fo.close();\r\n \r\n \r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private boolean exportDataTable2Excel(Context context, String fileName) {\n if (!isExternalStorageAvailable() || isExternalStorageReadOnly()) { \n \terrMsg = \"Storage not available or read only\";\n return false; \n } \n \n boolean success = false; \n //New Workbook\n Workbook wb = new HSSFWorkbook();\n Cell c = null; \n //New Sheet\n Sheet sheet1 = null;\n sheet1 = wb.createSheet(\"tempData\");\n \n //load Database table \n SQLiteDatabase db;\n db = openOrCreateDatabase(\"MyDB\", MODE_PRIVATE, null);\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS \"+ loadedTable +\" (Datum TEXT(40), Temp1S INT(4),Temp2S INT(4),Temp3S INT(4));\");\n\n\t\tCursor cur = db.rawQuery(\"SELECT * FROM \"+ loadedTable, null);\n\t\tif (cur != null && cur.getCount() > 0) {\n\t\t\tcur.moveToFirst();\n\t\t\tint i = 0;\n\t\t\tString s;\n\t\t\tRow row = sheet1.createRow(0);\n\t\t\tc = row.createCell(0);\n\t c.setCellValue(\"Datum\");\n\t c = row.createCell(1);\n\t c.setCellValue(\"tempS\");\n\t c = row.createCell(2);\n\t c.setCellValue(\"tempP\");\n\t c = row.createCell(3);\n\t c.setCellValue(\"tempZ\");\n\t\t\t\n\t\t\tdo {\n\t\t\t\ti++;\n\t\t\t\trow = sheet1.createRow(i);\n\t\t\t\t\n\t\t\t\ts = cur.getString(cur.getColumnIndex(\"Datum\"));\n\t\t\t\tc = row.createCell(0);\n\t\t c.setCellValue(s);\n\t\t \n\t\t\t\ts = cur.getString(cur.getColumnIndex(\"Temp1S\")) + \"\\n\";\n\t\t\t\tc = row.createCell(1);\n\t\t c.setCellValue(s);\n\t\t\t\t\n\t\t\t\ts = cur.getString(cur.getColumnIndex(\"Temp2S\")) + \"\\n\";\n\t\t\t\tc = row.createCell(2);\n\t\t c.setCellValue(s);\n\t\t\t\t\n\t\t\t\ts = cur.getString(cur.getColumnIndex(\"Temp3S\")) + \"\\n\";\n\t\t\t\tc = row.createCell(3);\n\t\t c.setCellValue(s);\n\t\t\t\t\n\t\t\t} while (cur.moveToNext());\n\t\t} else {\n\t\t\terrMsg = \"No data in table!\";\n\t\t}\n\n\t\tdb.close(); //close dataBase\n\n\n sheet1.setColumnWidth(0, (4000));\n sheet1.setColumnWidth(1, (1600));\n sheet1.setColumnWidth(2, (1600));\n sheet1.setColumnWidth(3, (1600));\n \n // Create a path where we will place our List of objects on external storage \n File file = new File(context.getExternalFilesDir(null), fileName); \n FileOutputStream os = null; \n \n try { \n os = new FileOutputStream(file);\n wb.write(os);\n errMsg = \"Successfully Exported!\";\n success = true; \n } catch (IOException e) { \n errMsg = \"Error writing \" + file;\n } catch (Exception e) { \n errMsg =\"Failed to save file\"; \n } finally { \n try { \n if (os != null) \n os.close(); \n } catch (Exception ex) { \n } \n } \n return success; \n }", "public static void main(String[] args) throws IOException {\n\t\tWorkbook workbook = new XSSFWorkbook(); \n\t\t\n /* CreationHelper helps us create instances of various things like DataFormat, \n Hyperlink, RichTextString etc, in a format (HSSF, XSSF) independent way */\n\t\tCreationHelper createHelper = workbook.getCreationHelper();\n \n\t\t// Create a sheet\n\t\tSheet sheet = workbook.createSheet(\"Employee\");\n\t\t\n\t\t// create a font for styling header cells\n\t\tFont headerFont =workbook.createFont();\n\t\theaderFont.setBold(true);\n\t\theaderFont.setFontHeightInPoints((short)14);\n\t\theaderFont.setColor(IndexedColors.RED.getIndex());\n\t\t\n\t\t// Create a cellStyle with font \n\t\tCellStyle headerCellStyle=workbook.createCellStyle();\n\t\theaderCellStyle.setFont(headerFont);\n\t\t\n\t\t// Create a row \n\t\tRow headerRow = sheet.createRow(0);\n\t\t\n\t\t// create cell\n\t\tfor(int i=0; i<columns.length; i++){\n\t\t\t\tCell cell=headerRow.createCell(i);\n\t\t\t\tcell.setCellValue(columns[i]);\n\t\t\t\tcell.setCellStyle(headerCellStyle);\n\t\t}\n\t\t\n\t\tCellStyle dateCellStyle = workbook.createCellStyle();\n\t\tdateCellStyle.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MM-yyyy\"));\n\t\t\n\t\t// Create Other rows and cells with employees data\n\t\tint rowNum=(sheet.getLastRowNum()+1);\n\t\tfor(Employee employee : employees){\n\t\t\tint cellNum = 0;\n\t\t\tRow row=sheet.createRow(rowNum++);\n\t\t\trow.createCell(cellNum++).setCellValue(employee.getName());\n\t\t\trow.createCell(cellNum++).setCellValue(employee.getEmail());\n\t\t\t\n\t\t\tCell dateOfBirthCell=row.createCell(cellNum++);\n\t\t\tdateOfBirthCell.setCellValue(employee.getDateOfBirth());\n\t\t\tdateOfBirthCell.setCellStyle(dateCellStyle);\n\t\t\t\n\t\t\trow.createCell(cellNum).setCellValue(employee.getSalary());\n\t\t\t\n\t\t\t// Resize all columns to fit the content size\n\t for(int i = 0; i < columns.length; i++) {\n\t sheet.autoSizeColumn(i);\n\t }\n\t\t\t\t\n\t\t}\n\t\t\n // Write the output to the file\n\t\t\n OutputStream outputStream=new \n\t\t\t\t\tFileOutputStream(\"C:\\\\Users\\\\gauravd\\\\Downloads\\\\poi-generated-file.xlsx\");\n\t\t\tworkbook.write(outputStream);\n\t\t\t\n\t\t\toutputStream.close();\n\t\t\tworkbook.close();\n\t\t\tSystem.out.println(\"Writer Completed\");\n\t\t\t\n\t}", "public void exportAllFacturesClient(OutputStream outputStream, long id) throws IOException {\n\n Workbook workbook = new XSSFWorkbook();\n \n // Styles des cellules: \n CellStyle styleGreen = workbook.createCellStyle();\n styleGreen.setFillForegroundColor(IndexedColors.GREEN.getIndex());\n styleGreen.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n CellStyle styleBlue = workbook.createCellStyle();\n styleBlue.setFillForegroundColor(IndexedColors.BLUE.getIndex());\n styleBlue.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n CellStyle styleYellow = workbook.createCellStyle();\n styleYellow.setFillForegroundColor(IndexedColors.YELLOW.getIndex());\n styleYellow.setFillPattern(FillPatternType.SOLID_FOREGROUND); \n \n Font font = workbook.createFont();\n font.setColor(IndexedColors.WHITE.getIndex());\n styleGreen.setFont(font);\n styleBlue.setFont(font);\n styleYellow.setFont(font);\n \n \n \n List<FactureDto> listAllFacturesAllClient = this.factureService.findAllFactures();\n \n \n for (FactureDto factureDto : listAllFacturesAllClient) {\n\t\t\tif(factureDto.getClient().id == id) {\n\t //SHEET\n\t Sheet sheet = workbook.createSheet(\"Facture\"+factureDto.getId());\n\t Row headerRow = sheet.createRow(0);\n\t //LIBELLES\n\t Cell cellLibelle0 = headerRow.createCell(0);\n\t Cell cellLibelle1 = headerRow.createCell(1);\n\t Cell cellLibelle2 = headerRow.createCell(2);\n\t Cell cellLibelle3 = headerRow.createCell(3);\n\t cellLibelle0.setCellValue(\"Désignation\");\n\t cellLibelle1.setCellValue(\"Quantité\");\n\t cellLibelle2.setCellValue(\"Prix Unitaire\");\n\t cellLibelle3.setCellValue(\"Prix ligne\");\n\t cellLibelle0.setCellStyle(styleGreen);\n\t cellLibelle1.setCellStyle(styleBlue);\n\t cellLibelle2.setCellStyle(styleYellow);\n\t cellLibelle3.setCellStyle(styleGreen);\n\n\t for (int i =0; i<factureDto.getLigneFactures().size(); i++) {\n\t \t\t \t\n\t Row newRow = sheet.createRow(i+1);\n\t \n\t Cell firstCell = newRow.createCell(0);\n\t firstCell.setCellStyle(styleGreen);\n\t firstCell.setCellValue(factureDto.getLigneFactures().get(i).getArticle().getLibelle());\n\t \n\t Cell secondCell =newRow.createCell(1);\n\t secondCell.setCellValue(factureDto.getLigneFactures().get(i).getQuantite());\n\t secondCell.setCellStyle(styleBlue);\n\t \n\t Cell thirdCell =newRow.createCell(3);\n\t thirdCell.setCellValue(factureDto.getLigneFactures().get(i).getArticle().getPrix());\n\t thirdCell.setCellStyle(styleYellow);\n\t \n\t Cell fourthCell =newRow.createCell(3);\n\t fourthCell.setCellValue(\n\t \t\t(factureDto.getLigneFactures().get(i).getArticle().getPrix())*(factureDto.getLigneFactures().get(i).getQuantite())\n\t \t\t);\n\t fourthCell.setCellStyle(styleGreen);\n\t \t\t}\n\t\t\t}\n\t\t}\n\n workbook.write(outputStream);\n workbook.close();\n }", "public static void writeExcelFileForSingleFields(String ruleDataExcelSheetFilePath, List rowDataArr_ForIndividual,String editionYear,int fieldNumber,String state,String realPath,String fieldName,int recentRuleId) throws InvalidFormatException {\n int rowCount = 1;\r\n boolean sheetDupCheck=false;\r\n String fieldNames[]=fieldName.split(\"-\");\r\n String fieldNameValue=fieldNames[0];\r\n try {\r\n \t XSSFWorkbook workbook ;\r\n // \tFile file = new File(\"D:\\\\latest\\\\SOUTH DAKOTA_BUFFALO_5_5.xlsx\");\r\n \t File file = new File(realPath+MappingConstants.EXCELFULEFORRULESCREATION+\".xlsx\"); \r\n \tif (file.exists() == false) {\r\n \t\tworkbook = new XSSFWorkbook();\r\n \t\t XSSFSheet sheet = workbook.createSheet(state+\"_\"+editionYear+\"_\"+fieldNumber);\r\n\t\t//\t Row row1 = sheet.createRow(0);\r\n\t\t//\t Cell cell1 = row1.createCell(0);\r\n\t\t//\t cell1.setCellValue(\"Rule Id:\"+recentRuleId);\r\n \t\t\tfor (int i=0; i<rowDataArr_ForIndividual.size(); i++) {\r\n \t\t\t\tList rowDataList = (ArrayList)rowDataArr_ForIndividual.get(i);\r\n \t\t\t Row row = sheet.createRow(rowCount);\r\n \t\t\t int columnCount = 0;\r\n \t\t\t for (int j = 0; j < rowDataList.size(); j++) {\r\n \t\t\t \tObject colObj = rowDataList.get(j);\r\n \t\t\t Cell cell = row.createCell(columnCount);\r\n \t\t\t CellUtil.setAlignment(cell, workbook, CellStyle.ALIGN_CENTER);\r\n \t\t\t if (colObj instanceof String) {\r\n \t\t\t cell.setCellValue((String) colObj);\r\n \t\t\t } else if (colObj instanceof Integer) {\r\n \t\t\t cell.setCellValue((Integer) colObj);\r\n \t\t\t }\r\n \t\t\t columnCount++;\r\n \t\t\t }\r\n \t\t\t rowCount++;\r\n \t\t\t}\r\n \t\t\tFileOutputStream outputStream = new FileOutputStream(file);\r\n \t\t\tworkbook.write(outputStream);\r\n \t}\r\n \telse{\r\n \t\tint sheetOfDup=0;\r\n \t\tint lastRowInSheet=0;\r\n \t\tfinal InputStream is = new FileInputStream(file);\r\n \t\tworkbook = new XSSFWorkbook(is);\r\n \t\tint noOfSheets=workbook.getNumberOfSheets();\r\n \t\tfor(int sheetCount=0;noOfSheets>sheetCount;sheetCount++){\r\n \t\t\tString sheetOfType = workbook.getSheetAt(sheetCount).getSheetName();\r\n \t\t\tlastRowInSheet = workbook.getSheetAt(sheetCount).getLastRowNum();\r\n \t\t\tif(sheetOfType.equals(state+\"_\"+editionYear+\"_\"+fieldNumber)){\r\n \t\t\t\t sheetDupCheck=true;\r\n \t\t\t\tsheetOfDup=sheetCount;\r\n \t\t\t\tlastRowInSheet=lastRowInSheet+1;\r\n \t\t\t\t break;\r\n \t\t\t}\r\n \t\t\telse{\r\n \t\t\t\tsheetDupCheck=false;\r\n \t\t\t}\r\n \t\t}\r\n \t\t if(sheetDupCheck){\r\n \t\t\tXSSFSheet sheetToAddData= workbook.getSheetAt(sheetOfDup);\r\n\t \t\t\t Row row1 = sheetToAddData.createRow(lastRowInSheet);\r\n\t \t\t\t Cell cell1 = row1.createCell(0);\r\n\t \t\t\t cell1.setCellValue(MappingConstants.ruleIdInExcel+recentRuleId);\r\n\t \t\t\t lastRowInSheet++;\r\n\t\t\t\tfor (int i=0; i<rowDataArr_ForIndividual.size(); i++) {\r\n\t\t\t\t\t\tList rowDataList = (ArrayList)rowDataArr_ForIndividual.get(i);\r\n\t\t\t\t\t\t/*int colOfLastInserted= workbook.getSheetAt(sheetOfDup).;*/\r\n\t\t\t\t\t Row row = sheetToAddData.createRow(lastRowInSheet);\r\n\t\t\t\t\t int columnCount = 0;\r\n\t\t\t\t\t\t for (int j = 0; j < rowDataList.size(); j++) {\r\n\t\t\t\t\t\t \tObject colObj = rowDataList.get(j);\r\n\t\t\t\t\t\t Cell cell = row.createCell(columnCount);\r\n\t\t\t\t\t\t CellUtil.setAlignment(cell, workbook, CellStyle.ALIGN_CENTER);\r\n\t\t\t\t\t\t if (colObj instanceof String) {\r\n\t\t\t\t\t\t cell.setCellValue((String) colObj);\r\n\t\t\t\t\t\t } else if (colObj instanceof Integer) {\r\n\t\t\t\t\t\t cell.setCellValue((Integer) colObj);\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t columnCount++;\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t lastRowInSheet++;\r\n\t\t\t\t}\r\n\t\t\t\tFileOutputStream outputStream = new FileOutputStream(file);\r\n\t\t\t\tworkbook.write(outputStream);\r\n \t\t}\r\n \t\telse{\r\n \t\t\tXSSFSheet sheet = workbook.createSheet(state+\"_\"+editionYear+\"_\"+fieldNumber);\r\n \t\t Row row1 = sheet.createRow(0);\r\n\t \t\t\t Cell cell1 = row1.createCell(0);\r\n\t \t\t\t cell1.setCellValue(\"Rule Id:\"+recentRuleId);\r\n\t\t\t\tfor (int i=0; i<rowDataArr_ForIndividual.size(); i++) {\r\n\t\t\t\t\t\tList rowDataList = (ArrayList)rowDataArr_ForIndividual.get(i);\r\n\t\t\t\t\t Row row = sheet.createRow(rowCount);\r\n\t\t\t\t\t int columnCount = 0;\r\n\t\t\t\t\t\t for (int j = 0; j < rowDataList.size(); j++) {\r\n\t\t\t\t\t\t \tObject colObj = rowDataList.get(j);\r\n\t\t\t\t\t\t Cell cell = row.createCell(columnCount);\r\n\t\t\t\t\t\t CellUtil.setAlignment(cell, workbook, CellStyle.ALIGN_CENTER);\r\n\t\t\t\t\t\t if (colObj instanceof String) {\r\n\t\t\t\t\t\t cell.setCellValue((String) colObj);\r\n\t\t\t\t\t\t } else if (colObj instanceof Integer) {\r\n\t\t\t\t\t\t cell.setCellValue((Integer) colObj);\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t columnCount++;\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t rowCount++;\r\n\t\t\t\t}\r\n\t\t\t\tFileOutputStream outputStream = new FileOutputStream(file);\r\n\t\t\t\tworkbook.write(outputStream);\r\n \t\t}\r\n \t}\r\n \t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \r\n\t}", "public void selectAndExportEXCEL(String queue, String path)\n\t{\n\t\t\n\t\tWorkbook wb = new XSSFWorkbook();\n\t\tSheet sheet = wb.createSheet(\"new sheet\");\n\t\tint rowCount = 0;\n\n\t\tResultSet rs = select(queue);\n\n\t\ttry \n\t\t{\n\t\t\tResultSetMetaData metaData = rs.getMetaData();\n\t\t\tint count = metaData.getColumnCount();\n\n\t\t\t// excel row for head info\n\t\t\tRow headRow = sheet.createRow(rowCount++);\n\t\t\t\n\t\t\tfor(int i = 1; i <= count; i++)\n\t\t\t{\n\t\t\t\theadRow.createCell(i - 1).setCellValue(metaData.getColumnLabel(i));\n\t\t\t}\n\n\t\t\t// main data\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tRow row = sheet.createRow(rowCount++);\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < rs.getMetaData().getColumnCount(); i++)\n\t\t\t\t{\n\t\t\t\t\trow.createCell(i).setCellValue(rs.getString(i + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tFileOutputStream fileOut = new FileOutputStream(path);\n\t\t\twb.write(fileOut);\n\t\t} \n\t\tcatch (SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tMessages.showError(e.getMessage());\n\t\t} \n\t\tcatch (FileNotFoundException e) \n\t\t{\n\t\t\t// for FileOutputStream fileOut = new FileOutputStream\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\t// for wb.write(fileOut);\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tMessages.showError(e.getMessage());\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFile file = new File(\"C:\\\\Users\\\\Leonardo\\\\git\\\\repository5\\\\HandleExcelWithApachePoi\\\\src\\\\arquivo_excel.xls\");\r\n\t\t\r\n\t\tif (!file.exists()) {\r\n\t\t\tfile.createNewFile();\r\n\t\t}\r\n\t\t\r\n\t\tPessoa p1 = new Pessoa();\r\n\t\tp1.setEmail(\"[email protected]\");\r\n\t\tp1.setIdade(50);\r\n\t\tp1.setNome(\"Ricardo Edigio\");\r\n\t\t\r\n\t\tPessoa p2 = new Pessoa();\r\n\t\tp2.setEmail(\"[email protected]\");\r\n\t\tp2.setIdade(40);\r\n\t\tp2.setNome(\"Marcos Tadeu\");\r\n\t\t\r\n\t\tPessoa p3 = new Pessoa();\r\n\t\tp3.setEmail(\"[email protected]\");\r\n\t\tp3.setIdade(30);\r\n\t\tp3.setNome(\"Maria Julia\");\r\n\t\t\r\n\t\tList<Pessoa> pessoas = new ArrayList<Pessoa>();\r\n\t\tpessoas.add(p1);\r\n\t\tpessoas.add(p2);\r\n\t\tpessoas.add(p3);\r\n\t\t\r\n\t\t\r\n\t\tHSSFWorkbook hssfWorkbook = new HSSFWorkbook(); /*escrever na planilha*/\r\n\t\tHSSFSheet linhasPessoa = hssfWorkbook.createSheet(\"Planilha de pessoas\"); /*criar planilha*/\r\n\t\t\r\n\t\tint nlinha = 0;\r\n\t\tfor (Pessoa p : pessoas) {\r\n\t\t\tRow linha = linhasPessoa.createRow(nlinha ++); /*criando a linha na planilha*/\r\n\t\t\t\r\n\t\t\tint celula = 0;\r\n\t\t\t\r\n\t\t\tCell celNome = linha.createCell(celula ++); /*celula 1*/\r\n\t\t\tcelNome.setCellValue(p.getNome());\r\n\t\t\t\r\n\t\t\tCell celEmail = linha.createCell(celula ++); /*celula 2*/\r\n\t\t\tcelEmail.setCellValue(p.getEmail());\r\n\t\t\t\r\n\t\t\tCell celIdade = linha.createCell(celula ++); /*celula 3*/\r\n\t\t\tcelIdade.setCellValue(p.getIdade());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tFileOutputStream saida = new FileOutputStream(file);\r\n\t\thssfWorkbook.write(saida);\r\n\t\t\r\n\t\tsaida.flush();\r\n\t\tsaida.close();\r\n\t\t\r\n\t\tSystem.out.println(\"Planilha Criada com Sucesso!\");\r\n\t\t\r\n\t}", "public void my_timesheet_report()\n {\n\t boolean timesheetreppresent =mytimesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\" My Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }", "private void btExportIActionPerformed(java.awt.event.ActionEvent evt) {\n try{\n JFileChooser jFile=new JFileChooser();\n jFile.showSaveDialog(this);\n File saveFile=jFile.getSelectedFile();\n if(saveFile!=null){\n saveFile=new File(saveFile.toString()+\".xlsx\");\n Workbook wbi=new XSSFWorkbook();\n Sheet sheet=wbi.createSheet(\"Rekap data Imunisasi\");\n \n Row rowCol=sheet.createRow(0);\n for(int i=0;i<tbImunisasi.getColumnCount();i++){\n Cell sel=rowCol.createCell(i);\n sel.setCellValue(tbImunisasi.getColumnName(i));\n \n }\n for(int j=0;j<tbImunisasi.getRowCount();j++){\n Row rowImun=sheet.createRow(j+1);\n for(int k=0;k<tbImunisasi.getColumnCount();k++){\n Cell sel=rowImun.createCell(k);\n if(tbImunisasi.getValueAt(j,k)!=null){\n sel.setCellValue(tbImunisasi.getValueAt(j, k).toString());\n }\n }\n }\n FileOutputStream output=new FileOutputStream(new File(saveFile.toString()));\n wbi.write(output);\n wbi.close();\n output.close();\n openFile(saveFile.toString());\n }else{\n JOptionPane.showMessageDialog(null, \"Terjadi Error saat proses arsip\");\n }\n }catch(FileNotFoundException e){\n\n System.out.println(e);\n }catch (IOException io){\n System.out.println(io);\n }\n \n }", "void writeExcel(File newFile) throws Exception;", "public void timesheet_report()\n {\n\t boolean timesheetreppresent =timesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\"Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }", "public static void main(String[] args) {\n\t\tDataToExcel etd = new DataToExcel();\n\t\ttry {\n\t\t\t\n\t\tlong startTime = System.currentTimeMillis(); // 获取开始时间\n\t\t\tetd.dataToexcel(\"e:/express2014031912.xls\");\n\t\t\tSystem.out.println(\"数据导出成功!\");\n\t\t\t\n\t\tlong endTime = System.currentTimeMillis(); \n\t\tSystem.out.println(\"导出表所需要的时间:\"+(endTime-startTime)+\"ms\");\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"数据导出失败!\");\n\t\t}\n\t}", "public ExcelSaver(Data itemsToSave) {\n\t\twb = new HSSFWorkbook();\n\t\ts = wb.createSheet();\n\t\theaders = new ArrayList<>(Attribute.getAtts().keySet().stream().filter(Attribute::isSel).collect(Collectors.toList()));\n//\t\theaders.add(\"Group\");\n\t\tsetHeaders(headers);\n\t\tsave(itemsToSave);\n\t}", "public void toExcelFromRequest(HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n \n String tituloReporte = request.getParameter(\"tituloReporte\");\n String tipoReporte = request.getParameter(\"tipoReporte\");\n String nombreReporte = request.getParameter(\"nombreReporte\");\n String nombreRuta = request.getParameter(\"nombreRuta\");\n String idRuta = request.getParameter(\"idRuta\");\n String fechaInicio = request.getParameter(\"fechaInicio\");\n String fechaFinal = request.getParameter(\"fechaFinal\");\n String meta = request.getParameter(\"meta\");\n String metaReal = request.getParameter(\"metaReal\");\n String listaVehPlaca = request.getParameter(\"listaVehiculosPlaca\");\n \n ParametrosReporte pr = new ParametrosReporte();\n \n if (pr != null) {\n pr.setTituloReporte(tituloReporte);\n pr.setTipoReporte(Restriction.getNumber(tipoReporte));\n pr.setNombreReporte(nombreReporte);\n pr.setNombreRuta(nombreRuta);\n pr.setIdRuta(Restriction.getNumber(idRuta));\n pr.setFechaInicioStr(fechaInicio);\n pr.setFechaFinalStr(fechaFinal);\n pr.setMeta(Restriction.getNumber(meta));\n pr.setMeta_real(Restriction.getRealNumber(metaReal));\n pr.setListaVehiculosPlaca(listaVehPlaca);\n \n PrintOutExcel poe = new PrintOutExcel();\n poe.print(request, response, pr);\n }\n \n /*\n HttpSession session = request.getSession();\n ParametrosReporte pr = (ParametrosReporte) session.getAttribute(\"parametrosReporte\");\n \n if (pr != null) {\n \n // Reporte editable XLS \n ReporteUtilExcel rue = new ReporteUtilExcel(); \n pr.setTipoReporte(Restriction.getNumber(tipoReporte));\n pr.setNombreReporte(nombreReporte);\n \n MakeExcel rpte = rue.crearReporte(pr.getTipoReporte(), false, pr); \n String nombreArchivo = pr.getNombreReporte() + \".xls\"; \n\n //response.setContentType(\"application/vnd.ms-excel\");\n response.setContentType(\"application/ms-excel\"); \n response.setHeader(\"Content-Disposition\", \"attachment; filename=\"+nombreArchivo);\n\n HSSFWorkbook file = rpte.getExcelFile();\n file.write(response.getOutputStream()); \n response.flushBuffer();\n response.getOutputStream().close(); \n }\n */\n }", "public interface ExcelExport {\n\n //void buildSheet(XSSFWorkbook xssfWorkbook, String sheetName, String headerTitle, Map<String, String> commonExcelData, List<Map<String, String>> data);\n\n /**\n * 构建xlsx\n *\n * @param xssfWorkbook\n * @param config\n * @param result 数据\n */\n void buildXlsx(XSSFWorkbook xssfWorkbook, XlsxConfig config, JSONObject result);\n\n XlsxConfig getXlsxConfig(String path) throws IOException;\n}", "public void write(int rowNum, int columnNum, long algorithmTime){\n row = sheet.getRow(rowNum);\n cell = row.createCell(columnNum);\n cell.setCellValue(algorithmTime);\n }", "public void WriteToolVersion () {\n\t\tHSSFRow row = sheet.createRow((short)rowIndex++);\n\t\tHSSFCell cell = row.createCell(0);\n\t\tWrite(\"Java Mestra Tool\",cell,cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n//\t\tHSSFRichTextString strRT = new HSSFRichTextString(\"Java Mestra Tool\");\n//\t\tcell.setCellValue(strRT);\n//\t\tcell.setCellStyle(ArialEightCellStyle);\n\n\t\tMestraToolVersion mestraToolVersion = new MestraToolVersion();\n\t\tcell = row.createCell(1);\n\t\tHSSFRichTextString strRT = new HSSFRichTextString(mestraToolVersion.getMestraToolVersion());\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\trow = sheet.createRow((short)rowIndex++);\n\t\tcell = row.createCell(0);\n\t\tstrRT = new HSSFRichTextString(\"Files Analysed\");\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\tDate now = new Date();\n\t\tString strDate = DateFormat.getDateInstance().format(now);\n\t\tcell = row.createCell(1);\n\t\tstrRT = new HSSFRichTextString(strDate);\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\tString strTime = DateFormat.getTimeInstance().format(now);\n\t\tcell = row.createCell(2);\n\t\tstrRT = new HSSFRichTextString(strTime);\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t}", "@Override\n public void writeAll() throws IOException {\n try\n {\n workbook.write(outputStream);\n outputStream.close();\n workbook.dispose();\n }\n catch (IOException io)\n {\n throw new IOException(io);\n }\n }", "@Override\n\tpublic void run() {\n\t\tHSSFWorkbook wb = null;\n\t\tHSSFWorkbook outWb = new HSSFWorkbook();\n\t\ttry {\n\t\t\twb = new HSSFWorkbook(new FileInputStream(options.getInputFile()));\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(wb != null) {\n\t\t\tHSSFSheet newSheet = outWb.createSheet(\"copy\");\n\t\t\t// copy sheet from original file\n\t\t\tExcelUtil.copySheets(newSheet, wb.getSheetAt(0));\n\t\t\tgroupRows(newSheet);\n\t\t\tList<Integer> errorRows = processData(newSheet);\n\t\t\tcreateReport(outWb, errorRows);\n\t\t\t\n\t\t\t\t\t\t\n\t\t}\n\t\t\n\t\t// write file\n\t\tFileOutputStream fileOut = null;\n\t\ttry {\n\t\t\tfileOut = new FileOutputStream(\"workbook.xls\");\n\t\t\toutWb.write(fileOut);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\t\t\t \n\t\t try {\n\t\t\t\tfileOut.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} \n\t\t\n\t}", "public static void writeNewCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, true);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n int lastElement = activities.size();\n Activity activity = activities.get(lastElement - 1);\n bw.write(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles.name + \" \" + \"(\"\n + activity.Roles.subRole + \")\" + \"\\n\");\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n }", "@GetMapping(\"/export\")\n @ApiOperation(value = \"导出数据\", notes = \"将所有职位导出到excel\")\n public ResponseEntity<byte[]> exportData() {\n List<Position> positions = positionService.getAllPosition();\n return PoiUtils.exportData(positions);\n }", "public static void main(String[] args) throws IOException {\n\t\tSystem.getProperty(\"user.dir\");\n\t\tFileOutputStream fileout = new FileOutputStream(\"C:\\\\Workspace\\\\Module7\\\\Workbook.xls\");\n\t\tHSSFWorkbook wb = new HSSFWorkbook();\n\t\t\n\t\t\n\t\t//creating sheet\n\t\t\n\t\tHSSFSheet sheet1 = wb.createSheet(\"First Sheet\");\n\t\tHSSFSheet sheet2 = wb.createSheet(\"Second sheet\");\n\t\t\n\t\t\n\t\t//Creating rows and cells\n\t\tfor (int i=0; i<100; i++)\n\t\t{\n\t\t\tHSSFRow row = sheet1.createRow(i);\n\t\t\tfor (int j=0; j<4; j++)\n\t\t\t{\n\t\t\t\tHSSFCell cell = row.createCell(j);\n\t\t\t\tcell.setCellValue(j);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\twb.write(fileout);\n\t\tfileout.close();\n\t\t\n\t\tString ProjectLocation = System.getProperty(\"user.dir\");\n\t\t\n\t\tSystem.out.println(ProjectLocation);\n\t\t\n\t\tFileOutputStream FO = new FileOutputStream (ProjectLocation + \"\\\\Playing.xls\");\n\t\tHSSFWorkbook wb2 = new HSSFWorkbook ();\n\t\t\n\t\tHSSFSheet sheet3 = wb.createSheet(\"new sheet\");\n\t\tHSSFRow row1 = sheet3.createRow(0);\n\t\trow1.createCell(0).setCellValue(true);\n\t\trow1.createCell(1).setCellValue(2);\n\t\t\n\t\t\n\t\twb2.write(FO);\n\t\tFO.close();\n\t\t\n\t /*HSSFWorkbook wb = new HSSFWorkbook();\n\t HSSFSheet sheet = wb.createSheet(\"new sheet\");\n\t HSSFRow row = sheet.createRow((short)2);\n\t row.createCell(0).setCellValue(1.1);\n\t row.createCell(1).setCellValue(new Date());\n\t row.createCell(2).setCellValue(Calendar.getInstance());\n\t row.createCell(3).setCellValue(\"a string\");\n\t row.createCell(4).setCellValue(true);\n\t row.createCell(5).setCellType(Cell.CELL_TYPE_ERROR);\n\n\t // Write the output to a file\n\t FileOutputStream fileOut = new FileOutputStream(\"workbook2.xls\");\n\t wb.write(fileOut);\n\t fileOut.close();*/\n\t\t}", "public static void main(String[] args) {\n\n String filePath = \"/Users/hubery/Desktop/泛金融销户/泛金融销户账户.xlsx\";\n String filePath1 = \"/Users/hubery/Desktop/泛金融销户/泛金融销户账户_bak.xlsx\";\n File excelFile = new File(filePath);\n\n try {\n Map<Integer, Map<Integer, Object>> content = readSheetContent(excelFile, 0);\n\n for (Map<Integer, Object> map : content.values()) {\n\n for (Object obj : map.values()) {\n System.out.print(obj + \"\\t\");\n }\n System.out.println();\n }\n\n writeNewSheet(new File(filePath1), content);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Test\n public void testFillInDataToTemplate() throws IOException {\n List<List<Object>> rows = new ArrayList<List<Object>>();\n\n List<String> communeStrs = Arrays.asList(\"Aclens\", \"Allaman\", \"Aubonne\", \"Apples\", \"Bière\", \"Bremblens\",\n \"Bougy-Villars\", \"Berolle\", \"Chevilly\");\n List<String> typeStrs = Arrays.asList(\"Résidence Secondaire\", \"Location\", \"Hotel\", \"Chambre\", \"Camping\",\n \"Institut\");\n\n for (int i = 0; i < 25; i++) {\n List<Object> row = new ArrayList<Object>();\n row.add(new Long(900000L + i));\n row.add(i + 1);\n row.add(communeStrs.get(i % communeStrs.size()));\n row.add(typeStrs.get(i % typeStrs.size()));\n row.add(new Long(25000L * i));\n row.add(BooleanUtils.toBoolean(i % 2));\n row.add(new Date());\n row.add(DateUtils.addDays(new Date(), i + 1));\n row.add(String.format(\"%d piéces ou moins\", i + 1));\n row.add(i + 1);\n row.add((i % 7 == 0 ? i : null));\n row.add((i % 7 == 1 ? i : null));\n row.add((i % 7 == 2 ? i : null));\n row.add((i % 7 == 3 ? i : null));\n row.add((i % 7 == 4 ? i : null));\n row.add((i % 7 == 5 ? i : null));\n row.add((i % 7 == 6 ? i : null));\n row.add(10 * i);\n row.add(200 * i);\n row.add(25 * i);\n row.add(i % 5 + 1);\n row.add(i % 6 + 1);\n row.add(BigDecimal.ZERO);\n row.add(1500 * (i + 1));\n row.add(null);\n\n rows.add(row);\n }\n\n SheetDataDto sheet1 = ExcelExportingUtil.convert2DListToSheetDto(rows, false);\n sheet1.setName(\"Data\");\n sheet1.setOverriden(true);\n // re-assign the index of the rows in the sheet to fill in the template: ignore the first two rows\n for (int i = 2; i < 2 + sheet1.getRows().size(); i++) {\n RowDataDto row = sheet1.getRows().get(i - 2);\n row.setRowNum(i);\n for (int j = 0; j < row.getCells().size(); j++) {\n CellDataDto cell = row.getCells().get(j);\n cell.setCellNum(j);\n }\n }\n\n // specify the format for col 7 and 8 (0-based)\n for (int i = 0; i < sheet1.getRows().size(); i++) {\n switch (i) {\n case 7:\n CellFormatter formatter = new CellFormatter(\"dd-MMM-yyyy\");\n formatter.setAlignment(CellStyle.ALIGN_CENTER);\n sheet1.getFormatters().add(formatter);\n break;\n\n case 8:\n CellFormatter formatter1 = new CellFormatter();\n formatter1.setWrapText(false);\n sheet1.getFormatters().add(formatter1);\n break;\n\n default:\n sheet1.getFormatters().add(null);\n break;\n }\n }\n\n InputStream input = getClass().getResourceAsStream(\"/exportData/Statistics_v0.1.xls\");\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n excelExportingService.exportToExcel(input, out, Arrays.asList(sheet1), ExcelFormatTypeEnum.XLS);\n\n FileUtils.writeByteArrayToFile(new File(\"output-template.xls\"), out.toByteArray());\n }", "public static void writeInFile(String fileName,String sheetName, String cntry, String menu,String subMenu,String subMenu_1,String ActualEng_Title,String Overridden_Title,String xmlURL) throws IOException {\n\r\n\t\tFile myFile = new File(\"./\" + fileName);\r\n\r\n\t\t//Create an object of FileInputStream class to read excel file\r\n\r\n\t\tFileInputStream inputStream = new FileInputStream(myFile);\r\n\r\n\t\tWorkbook myWorkbook = null;\r\n\r\n\t\t//Find the file extension by spliting file name in substring and getting only extension name\r\n\r\n\t\tString fileExtensionName = fileName.substring(fileName.indexOf(\".\"));\r\n\r\n\t\t//Check condition if the file is xlsx file\t\r\n\r\n\t\tif(fileExtensionName.equals(\".xlsx\")){\r\n\r\n\t\t\t//If it is xlsx file then create object of XSSFWorkbook class\r\n\r\n\t\t\tmyWorkbook = new XSSFWorkbook(inputStream);\r\n\t\t\tSystem.out.println(\"Extension of file \"+fileName +\" is .xlsx\");\r\n\r\n\t\t}\r\n\r\n\t\t//Check condition if the file is xls file\r\n\r\n\t\telse if(fileExtensionName.equals(\".xls\")){\r\n\r\n\t\t\t//If it is xls file then create object of XSSFWorkbook class\r\n\r\n\t\t\tmyWorkbook = new HSSFWorkbook(inputStream);\r\n\t\t\tSystem.out.println(\"Extension of file \"+fileName +\" is .xlx\");\r\n\r\n\t\t}\r\n\r\n\t\t//Read sheet inside the workbook by its name\r\n\r\n\t\tSheet mySheet = myWorkbook.getSheet(sheetName);\r\n\r\n\t\t//Find number of rows in excel file\r\n\r\n\t\tint rowCount = mySheet.getLastRowNum() - mySheet.getFirstRowNum();\r\n\r\n\r\n\t\tRow row = mySheet.getRow(0);\r\n\r\n\t\t//Create a new row and append it at last of sheet\r\n\r\n\t\tRow newRow = mySheet.createRow(rowCount+1);\r\n\r\n\r\n\t\t//Create a loop over the cell of newly created Row\r\n\t\tfor(int colCnt=0;colCnt<=6;colCnt++)\r\n\t\t{ \r\n\t\t\tCell cell = newRow.createCell(colCnt);\r\n\r\n\t\t\tif(colCnt==0)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(cntry);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==1)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(menu);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==2)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(subMenu);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==3)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(subMenu_1);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==4)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(ActualEng_Title);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==5)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(Overridden_Title);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==6)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(xmlURL);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/* for(int j = 0; j < row.getLastCellNum(); j++){\r\n\r\n\t //Fill data in row\r\n\r\n\t Cell cell = newRow.createCell(j);\r\n\r\n\t cell.setCellValue(\"test\");\r\n\r\n\t }*/\r\n\r\n\t\t//Close input stream\r\n\r\n\t\tinputStream.close();\r\n\r\n\t\t//Create an object of FileOutputStream class to create write data in excel file\r\n\r\n\t\tFileOutputStream opStream = new FileOutputStream(myFile);\r\n\r\n\t\t//write data in the excel file\r\n\r\n\t\tmyWorkbook.write(opStream);\r\n\t\t//close output stream\r\n\t\topStream.close();\r\n\t\t//\tfor(int i = 0;i<=objectArr.length-1;i++ ){\r\n\r\n\t\t// Cell cell = row.createCell(i);\r\n\t\t// cell.setCellValue(objectArr[i]);\r\n\r\n\t\t// }\r\n\r\n\t\t//File myFile = new File(\"./Controller.xlsx\");\r\n\t\t// FileOutputStream os = new FileOutputStream(myFile);\r\n\t\t//\tmyWorkBook.write(os);\r\n\t\tSystem.out.println(\"Controller Sheet Creation finished ...\");\r\n\t\t//\tos.close();\r\n\r\n\r\n\t}", "public static void writeCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, false);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n for (int j = 0; j < 1; j++) {\n bw.write(\"Year\" + \",\" + \"Month\" + \",\" + \"Activity\" + \",\" + \"Role\" + \"\\n\");\n }\n\n for (int i = 0; i < activities.size(); i++) {\n Activity activity = activities.get(i);\n bw.append(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles);\n }\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n\n }", "public static void main(String[] args) throws Exception\r\n\t{\n\t\tFile f=new File(\"w2smskwd.xls\");\r\n\t\t// open excel file for reading\r\n\t\tWorkbook rwb=Workbook.getWorkbook(f);\r\n\t\tSheet rsh1=rwb.getSheet(0); // 0 for sheet1(tests)\r\n\t\tint nour1=rsh1.getRows();\r\n\t\tint nouc1=rsh1.getColumns();\r\n\t\tSheet rsh2=rwb.getSheet(1); // 1 for sheet2(steps)\r\n\t\tint nour2=rsh2.getRows();\r\n\t\tint nouc2=rsh2.getColumns();\r\n\t\t\r\n\t\t// open same excel for result writing\r\n\t\tWritableWorkbook wwb=Workbook.createWorkbook(f,rwb);\r\n\t\tWritableSheet wsh1=wwb.getSheet(0); //0 means sheet1\r\n\t\tWritableSheet wsh2=wwb.getSheet(1); //1 means sheet2\r\n\t\t\r\n\t\t//set font style,color and cell alignment heading\r\n\t\tWritableFont wf=new WritableFont(WritableFont.TIMES,11,WritableFont.BOLD);\r\n\t\twf.setColour(Colour.BLUE);\r\n\t\tWritableCellFormat wcf=new WritableCellFormat(wf);\r\n\t\twcf.setAlignment(Alignment.JUSTIFY);\r\n\t\twcf.setAlignment(Alignment.CENTRE);\r\n\t\t\t\t\r\n\t\t//set font style,color and cell alignment for Test PASSED\r\n\t\tWritableFont wf1=new WritableFont(WritableFont.TIMES,11);\r\n\t\twf1.setColour(Colour.GREEN);\r\n\t\tWritableCellFormat wcf1=new WritableCellFormat(wf1);\r\n\t\twcf1.setAlignment(Alignment.JUSTIFY);\r\n\t\twcf1.setAlignment(Alignment.CENTRE);\r\n\t\t\t\t\r\n\t\t//set font style,color and cell alignment for Test FAILED\r\n\t\tWritableFont wf2=new WritableFont(WritableFont.TIMES,11);\r\n\t\twf2.setColour(Colour.RED);\r\n\t\tWritableCellFormat wcf2=new WritableCellFormat(wf2);\r\n\t\twcf2.setAlignment(Alignment.JUSTIFY);\r\n\t\twcf2.setAlignment(Alignment.CENTRE);\r\n\t\t\t\t\r\n\t\t//take results heading as date and time format\r\n\t\tSimpleDateFormat sf=new SimpleDateFormat(\"dd-MM-yyyy-hh-mm-ss\");\r\n\t\tDate dt=new Date();\r\n\t\tString cname=sf.format(dt);\r\n\t\t\r\n\t\t// set name to result column in sheet1\r\n\t\tLabel l1=new Label(nouc1,0,cname,wcf);\r\n\t\twsh1.addCell(l1);\r\n\t\t// set name to result column in sheet2\r\n\t\tLabel l2=new Label(nouc2,0,cname,wcf);\r\n\t\twsh2.addCell(l2);\r\n\t\t// create objects to methods class\r\n\t\tW2smsmethods ms=new W2smsmethods();\r\n\t\t// collect methods info using methods class object\r\n\t\tMethod m[]=ms.getClass().getMethods();\r\n\t\t// keyword driven\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//calling methods one after another\r\n\t\t\t//1st row (index=0) have names of columns in sheet1\r\n\t\t\tfor(int i=1;i<nour1;i++) // from 2nd row(index=1)\r\n\t\t\t{\r\n\t\t\t\tint flag=0;\r\n\t\t\t\t// get tid and mode from sheet1\r\n\t\t\t\tString tid=rsh1.getCell(0, i).getContents();\r\n\t\t\t\tString mode=rsh1.getCell(2, i).getContents();\r\n\t\t\t\tif(mode.equalsIgnoreCase(\"yes\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t//1st row (index=0)have names of columns of sheet2\r\n\t\t\t\t\tfor(int j=1;j<nour2;j++) // from 2nd row(index=1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString sid=rsh2.getCell(0, j).getContents();\r\n\t\t\t\t\t\tif(tid.equalsIgnoreCase(sid))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//take step details from sheet2\r\n\t\t\t\t\t\t\tString mn=rsh2.getCell(2, j).getContents();\r\n\t\t\t\t\t\t\tString e=rsh2.getCell(3, j).getContents();\r\n\t\t\t\t\t\t\tString d=rsh2.getCell(4, j).getContents();\r\n\t\t\t\t\t\t\tString c=rsh2.getCell(5, j).getContents();\r\n\t\t\t\t\t\t\tSystem.out.println(mn+\" \"+e+\" \"+d+\" \"+c);\r\n\t\t\t\t\t\t\tfor(int k=0;k<m.length;k++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(m[k].getName().equals(mn))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tString r=(String) m[k].invoke(ms, e,d,c);\r\n\t\t\t\t\t\t\t\t\tLabel lb=new Label(nouc2,j,r,wcf1);\r\n\t\t\t\t\t\t\t\t\twsh2.addCell(lb);\r\n\t\t\t\t\t\t\t\t\tif(r.equalsIgnoreCase(\"unknown browser\"))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\twwb.write();\r\n\t\t\t\t\t\t\t\t\t\twwb.close();\r\n\t\t\t\t\t\t\t\t\t\trwb.close();\r\n\t\t\t\t\t\t\t\t\t\tSystem.exit(0); //force stop run\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(r.contains(\"Failed\") || r.contains(\"failed\") || r.contains(\"interrupted\") || r.contains(\"Interrupted\"))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tflag=1;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbreak; //terminate from loop for k \r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tbreak; //terminate from loop if tid not equal to sid\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\t\t\t\tif(flag==0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tLabel l=new Label(nouc1,i,\"passed\",wcf1);\r\n\t\t\t\t\t\twsh1.addCell(l);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tLabel l=new Label(nouc1,i,\"failed\",wcf2);\r\n\t\t\t\t\t\twsh1.addCell(l);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t}\r\n\t\t//to autofit width of excel column size(sheet1)\r\n\t\tCellView cv=rsh1.getColumnView(nouc1);\r\n\t\tcv.setAutosize(true);\r\n\t\twsh1.setColumnView(nouc1, cv);\r\n\t\t\r\n\t\t//to autofit width of excel column size(sheet2)\r\n\t\tCellView cv1=rsh2.getColumnView(nouc2);\r\n\t\tcv.setAutosize(true);\r\n\t\twsh2.setColumnView(nouc2, cv1);\r\n\t\t//save and close excel\r\n\t\twwb.write();\r\n\t\twwb.close();\r\n\t\trwb.close();\r\n\t\t\r\n\t}", "@Scheduled(cron = \"*/10 * * * * *\")\n\tpublic void startJob() {\n\n\t\tBooleanBuilder booleanIssuer = new BooleanBuilder();\n\t\tbooleanIssuer.and(QIssuer.issuer.status.eq(Issuer.Status.ACTIVE));\n\n\t\tQIssuer qIssuer = QIssuer.issuer;\n\t\tJPAQuery<?> query = new JPAQuery<Void>(entityManager);\n\t\tList<Issuer> listIssuer = query.select(qIssuer).from(qIssuer).where(booleanIssuer).fetch();\n\n\t\tfor (Issuer issuer : listIssuer) {\n\t\t\tSystem.out.println(issuer.toString());\n\t\t}\n\n\t\tFileWriter fileWirter = null;\n\t\tif (!(CollectionUtils.isEmpty(listIssuer))) {\n\t\t\ttry {\n\t\t\t\tfileWirter = new FileWriter(\"test.csv\");\n\t\t\t\tfileWirter.append(FILE_HEADER.toString());\n\t\t\t\tfileWirter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\tfor (Issuer issuer : listIssuer) {\n\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getId()));\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(issuer.getIssuerCode());\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(issuer.getName());\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getStatus()));\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getLastUpdate()));\n\t\t\t\t\tfileWirter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"writer successfully !\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tslackService.send(\" \" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\r\n\tpublic void saveMatch(JTable homeTable, JTable guestTable,String homeName,String guestName, String path) {\n\t fileWorkbook = new XSSFWorkbook();\r\n\t fileSheet = fileWorkbook.createSheet();\r\n\t \r\n\t int countRow = 1;\r\n\r\n\t TreeMap<String, List<String>> homeTeamData = new TreeMap<>();\r\n\t TreeMap<String, List<String>> guestTeamData = new TreeMap<>();\r\n\t ArrayList<String> header = new ArrayList<>();\r\n\t \r\n\t //Creating the style for the table\r\n CellStyle homeStyle = fileWorkbook.createCellStyle();\r\n homeStyle.setFillForegroundColor(IndexedColors.RED.getIndex());\r\n homeStyle.setFillPattern(CellStyle.ALIGN_FILL);\r\n \r\n CellStyle guestStyle = fileWorkbook.createCellStyle();\r\n guestStyle.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n guestStyle.setFillPattern(CellStyle.ALIGN_FILL);\r\n \r\n //Setting the first row with headers\r\n\t for(int k = 0; k <= (homeTable.getColumnCount()-1);k++){\r\n\t header.add(homeTable.getColumnName(k));\r\n\t }\r\n\t homeTeamData.put(\"0\",header);\r\n\r\n //Gettin the home team data \r\n\t for(int i= 0; i <= (homeTable.getRowCount()-1); i++){\r\n\t homeValues = new ArrayList<>();\r\n\t for(int j = 0; j <= (homeTable.getColumnCount()-1); j++){\r\n\t homeValues.add(homeTable.getValueAt(i, j).toString());\r\n\t homeTeamData.put(\"\"+countRow,homeValues);\r\n\t }\r\n\t countRow++;\r\n\t }\r\n\t \r\n\t countRow = 1;\r\n\t //Setting again the header \r\n guestTeamData.put(\"0\", header);\r\n\t // Getting the guest team data \r\n\t for(int i = 0; i <= (guestTable.getRowCount()-1); i++){\r\n\t guestValues = new ArrayList<>();\r\n\t for(int j = 0; j <= (guestTable.getColumnCount()-1); j++){\r\n\t guestValues.add(guestTable.getValueAt(i, j).toString());\r\n\t guestTeamData.put(\"\"+countRow, guestValues);\r\n\t }\r\n\t countRow++;\r\n\t }\r\n\t \r\n\t \r\n\t homeId = homeTeamData.keySet();\r\n\t // Creating row\r\n\t XSSFRow row;\r\n\t int rowID = 0;\r\n\t for(String key: homeId){\r\n\t row = fileSheet.createRow(rowID++);\r\n\t int cellID = 0;\r\n\t homeValueable = homeTeamData.get(key);\r\n\t // Populating cells\r\n\t for(String o: homeValueable){\r\n\t cell = row.createCell(cellID++);\r\n\t if(rowID == 1){\r\n\t cell.setCellStyle(homeStyle);\r\n\t }\r\n\t cell.setCellValue(o);\r\n\t }\r\n\t }\r\n\t /* Leaving empty row */\r\n\t rowID++;\r\n\t \r\n\t guestHeaderRowIndex = rowID;\r\n\t // Creting row\r\n guestId = guestTeamData.keySet();\r\n XSSFRow guestRow;\r\n\t for(String guestKey: guestId){\r\n\t guestRow = fileSheet.createRow(rowID++);\r\n\t int cellID = 0;\r\n\t guestValueable = guestTeamData.get(guestKey);\r\n\t // Populating cells\r\n\t for(String s: guestValueable){\r\n\t guestCell = guestRow.createCell(cellID++);\r\n\t if(rowID == guestHeaderRowIndex+1){\r\n\t guestCell.setCellStyle(guestStyle);\r\n\t }\r\n\t guestCell.setCellValue(s);\r\n\t } \r\n\t }\r\n\t try{\r\n\t //Saving into a file\r\n\t FileOutputStream fs = new FileOutputStream(path+\".xlsx\");\r\n\t fileWorkbook.write(fs);\r\n\t fs.close();\r\n\t } catch (IOException ex){\r\n\t \r\n\t }\r\n\t\tUtils.save(model);\r\n\t}", "@Override\n protected void buildExcelDocument(Map<String, Object> model, Workbook workbook,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"Du Report.xls\\\"\");\n\n @SuppressWarnings(\"unchecked\")\n List<ReportByGroup> reportList = (List<ReportByGroup>) model.get(\"reportList\");\n\n String[] month = new String[] { \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\", \"January\",\n \"February\", \"March\" };\n\n // create excel xls sheet\n Sheet sheet = workbook.createSheet(\"Report Du Detail\");\n // sheet.setDefaultColumnWidth(12);\n\n // create style for header cells\n CellStyle style = workbook.createCellStyle();\n Font font = workbook.createFont();\n font.setFontName(\"Arial\");\n style.setFillForegroundColor(HSSFColor.BLUE.index);\n style.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n style.setAlignment(HorizontalAlignment.CENTER);\n style.setWrapText(true);\n style.setBorderRight(BorderStyle.THIN);\n style.setRightBorderColor(IndexedColors.BLACK.getIndex());\n style.setBorderLeft(BorderStyle.THIN);\n style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n style.setBorderTop(BorderStyle.THIN);\n style.setTopBorderColor(IndexedColors.BLACK.getIndex());\n style.setBorderBottom(BorderStyle.THIN);\n style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n font.setBold(true);\n font.setColor(HSSFColor.WHITE.index);\n style.setFont(font);\n\n CellStyle style1 = workbook.createCellStyle();\n // style1.setAlignment(HorizontalAlignment.CENTER);\n // style1.setWrapText(true);\n style1.setBorderRight(BorderStyle.THIN);\n style1.setRightBorderColor(IndexedColors.BLACK.getIndex());\n style1.setBorderLeft(BorderStyle.THIN);\n style1.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n style1.setBorderTop(BorderStyle.THIN);\n style1.setTopBorderColor(IndexedColors.BLACK.getIndex());\n style1.setBorderBottom(BorderStyle.THIN);\n style1.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n // style1.setFont(font);\n\n // create header row\n Row header = sheet.createRow(0);\n Row header1 = sheet.createRow(1);\n Row header2 = sheet.createRow(2);\n\n header.createCell(0).setCellValue(\"STT\");\n header.getCell(0).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 2, // last row (0-based)\n 0, // first column (0-based)\n 0 // last column (0-based)\n ));\n header.createCell(1).setCellValue(\"Vị trí\");\n header.getCell(1).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 2, // last row (0-based)\n 1, // first column (0-based)\n 1 // last column (0-based)\n ));\n\n header.createCell(2).setCellValue(\"\");\n header.getCell(2).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 2, // last row (0-based)\n 2, // first column (0-based)\n 2 // last column (0-based)\n ));\n\n header.createCell(3).setCellValue(\"Số lượng đã tuyển trong tháng\");\n header.getCell(3).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 0, // last row (0-based)\n 3, // first column (0-based)\n 26 // last column (0-based)\n ));\n header.createCell(27).setCellValue(\"SL tuyển dụng \" + this.year);\n header.getCell(27).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 2, // last row (0-based)\n 27, // first column (0-based)\n 27 // last column (0-based)\n ));\n\n header1.createCell(0).setCellValue(\"\");\n header1.getCell(0).setCellStyle(style);\n header1.createCell(1).setCellValue(\"\");\n header1.getCell(1).setCellStyle(style);\n int k = 0;\n for (int i = 3; i < 27; i++) {\n if (i % 2 != 0) {\n header1.createCell(i).setCellValue(month[k++]);\n header1.getCell(i).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(1, // first row (0-based)\n 1, // last row (0-based)\n i, // first column (0-based)\n i + 1 // last column (0-based)\n ));\n } else {\n header1.createCell(i).setCellValue(\"\");\n header1.getCell(i).setCellStyle(style);\n }\n }\n\n header2.createCell(0).setCellValue(\"\");\n header2.getCell(0).setCellStyle(style);\n header2.createCell(1).setCellValue(\"\");\n header2.getCell(1).setCellStyle(style);\n for (int i = 3; i < 27; i++) {\n if (i % 2 != 0) {\n header2.createCell(i).setCellValue(\"NEW\");\n header2.getCell(i).setCellStyle(style);\n } else {\n header2.createCell(i).setCellValue(\"TT\");\n header2.getCell(i).setCellStyle(style);\n }\n }\n\n int rowCount = 3;\n\n for (ReportByGroup item : reportList) {\n Row row = sheet.createRow(rowCount++);\n row.createCell(0).setCellValue(rowCount - 3);\n if (item.getDepartment() == null) {\n row.createCell(1).setCellValue(item.getGroup());\n } else {\n row.createCell(1).setCellValue(\"\");\n }\n row.createCell(2).setCellValue(item.getDepartment());\n int a = 3;\n for (StatisticMonth number : item.getStatisticMonth()) {\n if (number.getNumberOfNew() == 0) {\n row.createCell(a++).setCellValue(\"\");\n } else {\n row.createCell(a++).setCellValue(number.getNumberOfNew());\n }\n if (number.getNumberOfTT() == 0) {\n row.createCell(a++).setCellValue(\"\");\n } else {\n row.createCell(a++).setCellValue(number.getNumberOfTT());\n }\n }\n if (item.getTotal() == 0) {\n row.createCell(a).setCellValue(\"\");\n } else {\n row.createCell(a).setCellValue(item.getTotal());\n }\n\n for (int i = 0; i < 28; i++) {\n row.getCell(i).setCellStyle(style1);\n }\n }\n sheet.autoSizeColumn(0);\n sheet.autoSizeColumn(1);\n sheet.autoSizeColumn(2);\n sheet.autoSizeColumn(3);\n sheet.autoSizeColumn(4);\n sheet.autoSizeColumn(5);\n sheet.autoSizeColumn(6);\n sheet.autoSizeColumn(7);\n sheet.autoSizeColumn(8);\n sheet.autoSizeColumn(9);\n sheet.autoSizeColumn(10);\n sheet.autoSizeColumn(11);\n sheet.autoSizeColumn(12);\n sheet.autoSizeColumn(13);\n sheet.autoSizeColumn(14);\n sheet.autoSizeColumn(15);\n sheet.autoSizeColumn(16);\n sheet.autoSizeColumn(17);\n sheet.autoSizeColumn(18);\n sheet.autoSizeColumn(19);\n sheet.autoSizeColumn(20);\n sheet.autoSizeColumn(21);\n sheet.autoSizeColumn(22);\n sheet.autoSizeColumn(23);\n sheet.autoSizeColumn(24);\n sheet.autoSizeColumn(25);\n }", "@Override\n\tpublic void export(HttpServletRequest request, HttpServletResponse response, Map<String, Object> map) {\n\t\tString sheetName = \"石砌边沟过路涵\";\n\t\t//表头\n\t\tString[] head0 = new String[] { \"编号\", \"中心桩号\", \"孔数-孔径(孔-米)\", \"位置\", \"L(m)\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\", \"工程数量\",\"备注\"};\n\t\tString[] head1 = new String[] { \"过路板钢筋(Kg)\", \"过路板混凝土C30(m3)\", \"涂料(m2)\", \"涵面铺装钢筋(Kg)\",\"涵面铺装混凝土C30(m3)\", \"C20混凝土台帽(m3)\", \"M15浆砌片石涵台身及基础(m2)\", \"涵身顶面1cm厚油毛毡(m2)\",\"透水性砾料(m3)\" };\n\t\t//对应excel中的行和列,下表从0开始{\"开始行,结束行,开始列,结束列\"}\n\t\tString[] headnum0 = new String[] { \"2,3,0,0\", \"2,3,1,1\", \"2,3,2,2\",\"2,3,3,3\", \"2,3,4,4\", \"2,2,5,13\" ,\"2,3,14,14\"};\n\t\tString[] headnum1 = new String[] { \"3,3,5,5\",\"3,3,6,6\", \"3,3,7,7\", \"3,3,8,8\",\"3,3,9,9\", \"3,3,10,10\", \"3,3,11,11\",\"3,3,12,12\",\"3,3,13,13\"};\n\t\t List<Map<String, Object>> dataList = passingCulvertNumberDao.getPassingCulvertNumberListEX(map);\n\t\t for (int i = 0; i < dataList.size(); i++) {\n\t\t\t dataList.get(i).put(\"row\", i+1);\n\t\t}\n\t\t String[] colName = new String[] { \"row\", \"PileNumber\", \"HoleCount\", \"Position\", \"L\", \"CrossingRebar\", \"CrossingConcrete\", \n\t\t\t\t \"Coating\", \"SpreadRebar\",\"SpreadConcrete\", \"ConcreteCap\", \"RubbleBasics\", \"ThickFelt\", \"PermeableGranules\",\"Remarks\"};\n\t\t Date now = new Date(); \n\t\t String date = \"创建时间\" + now.toString();\n\t\t try {\n\t\t\t //request, response, 数值,标题,第一行表头名字,第一行合并坐标,第二行表头名字,第二行合并坐标,数值对应列名称,创建时间,一共多少列,开始第二行表头列,结束第二行表头列,合计开始列\n\t\t\tReportMergeXls.reportMergeXls(request, response, dataList, sheetName, head0,headnum0, head1, headnum1, colName, date,15,5,14,5);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public static void main(String[] args) throws IOException {\n write2Excel(new File(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\test.xls\"));\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (AttendanceDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for Employee id :\" + transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getCreatedDate());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getEmployeeEmpId()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeFullName());\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckInTime()));\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckOutTime()));\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public void Ejecutar() throws IOException {\n\t\t// An excel file name. You can create a file name with a full\n\t\t// path information.\n\t\t//\n\t\tString filename = \"excel/bd.xls\";\n\t\t//\n\t\t// Create an ArrayList to store the data read from excel sheet.\n\t\t//\n\t\tList sheetData = new ArrayList();\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\t//\n\t\t\t// Create a FileInputStream that will be use to read the\n\t\t\t// excel file.\n\t\t\t//\n\t\t\tfis = new FileInputStream(filename);\n\t\t\t//\n\t\t\t// Create an excel workbook from the file system.\n\t\t\t//\n\t\t\tHSSFWorkbook workbook = new HSSFWorkbook(fis);\n\t\t\t//\n\t\t\t// Get the first sheet on the workbook.\n\t\t\t//\n\t\t\tHSSFSheet sheet = workbook.getSheetAt(0);\n\t\t\t//\n\t\t\t// When we have a sheet object in hand we can iterator on\n\t\t\t// each sheet's rows and on each row's cells. We store the\n\t\t\t// data read on an ArrayList so that we can printed the\n\t\t\t// content of the excel to the console.\n\t\t\t//\n\t\t\tIterator rows = sheet.rowIterator();\n\t\t\twhile (rows.hasNext()) {\n\t\t\t\tHSSFRow row = (HSSFRow) rows.next();\n\n\t\t\t\tIterator cells = row.cellIterator();\n\t\t\t\tList data = new ArrayList();\n\t\t\t\twhile (cells.hasNext()) {\n\t\t\t\t\tHSSFCell cell = (HSSFCell) cells.next();\n\t\t\t\t\t// System.out.println(\"Añadiendo Celda: \" + cell.toString());\n\t\t\t\t\tdata.add(cell);\n\t\t\t\t}\n\t\t\t\tsheetData.add(data);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (fis != null) {\n\t\t\t\tfis.close();\n\t\t\t}\n\t\t}\n\t\tshowExelData(sheetData);\n\n\t\t// impresion de matriz\n\t\t/*\n\t\t * for (int filas = 0; filas <fila; filas++) { for (int columna = 0; columna <\n\t\t * 4; columna++) { if(columna<3) {\n\t\t * \n\t\t * \n\t\t * }else { System.out.println(\"\"); }\n\t\t * \n\t\t * } }\n\t\t */\n\n\t\tint matriz2[][] = new int[fila][3];\n\n\t\tint numeroDeDatosMatriz = 0;\n\n\t\tfor (int filas = 0; filas < fila; filas++) {\n\t\t\tint validar = 0;\n\n\t\t\tfor (int recorrido = 0; recorrido < numeroDeDatosMatriz; recorrido++) {\n\t\t\t\tif (validar == 1) {\n\t\t\t\t\t// System.out.println(\"si encontro\");\n\t\t\t\t\t// break;\n\t\t\t\t}\n\n\t\t\t\t// System.out.print(matriz[filas][0]+\"|\");\n\t\t\t\t// System.out.println(matriz2[recorrido][0]+\"|\");\n\n\t\t\t\tif (matriz[filas][0] == matriz2[recorrido][0]) {\n\t\t\t\t\tmatriz2[recorrido][1] = matriz2[recorrido][1] + matriz[filas][1];\n\t\t\t\t\tmatriz2[recorrido][2] = matriz2[recorrido][2] + matriz[filas][2];\n\t\t\t\t\tvalidar = 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (validar == 0) {\n\t\t\t\tmatriz2[numeroDeDatosMatriz][0] = matriz[filas][0];\n\t\t\t\tmatriz2[numeroDeDatosMatriz][1] = matriz[filas][1];\n\t\t\t\tmatriz2[numeroDeDatosMatriz][2] = matriz[filas][2];\n\t\t\t\tnumeroDeDatosMatriz++;\n\n\t\t\t}\n\n\t\t\tif (validar == 1) {\n\t\t\t\tvalidar = 0;\n\t\t\t}\n\n\t\t}\n\t\t// impresion del contro general\n\t\t/*\n\t\t * \n\t\t * for (int filas = 0; filas <fila; filas++) { for (int columna = 0; columna <\n\t\t * 4; columna++) { if(columna<3) {\n\t\t * \n\t\t * System.out.print(matriz2[filas][columna]+\"|\"); }else {\n\t\t * System.out.println(\"\"); }\n\t\t * \n\t\t * } }\n\t\t */\n\t\t//////////// Pedir numero\n\t\t\n\t\tint numero = Integer.parseInt( JOptionPane.showInputDialog(\n\t\t\t null,\"¿Qué numeros con importe arriba de ?\",\n\t\t\t \"Petición \",\n\t\t\t JOptionPane.QUESTION_MESSAGE) );\n\t\t\n\t\t\n\t\t////////\n\t\tint matrizresultados[][] = new int[fila][2];\n\n\t\t// filtro primer lugar\n\n\t\tint numeroDeresultadosPrimerLugar = 0;\n\n\t\tfor (int filas = 0; filas < fila; filas++) {\n\t\t\tif (matriz2[filas][1] > numero) {\n\t\t\t\tmatrizresultados[numeroDeresultadosPrimerLugar][0] = matriz2[filas][0];\n\t\t\t\tmatrizresultados[numeroDeresultadosPrimerLugar][1] = matriz2[filas][1];\n\t\t\t\tnumeroDeresultadosPrimerLugar++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int filas = 0; filas < numeroDeresultadosPrimerLugar; filas++) {\n\t\t\t// System.out.print(matrizresultados[filas][0]+\"|\");\n\t\t\t// System.out.println(matrizresultados[filas][1]);\n\t\t}\n\n\t\t//\n\n\t\t////////\n\n\t\t// System.out.println(\"///////////////////////////////////////////////\");\n\t\tint matrizresultadosSegundo[][] = new int[fila][2];\n\n\t\t// filtro primer lugar\n\n\t\tint numeroDeresultadosSegundoLugar = 0;\n\n\t\tfor (int filas = 0; filas < fila; filas++) {\n\t\t\tif (matriz2[filas][2] > numero) {\n\t\t\t\tmatrizresultadosSegundo[numeroDeresultadosSegundoLugar][0] = matriz2[filas][0];\n\t\t\t\tmatrizresultadosSegundo[numeroDeresultadosSegundoLugar][1] = matriz2[filas][2];\n\t\t\t\tnumeroDeresultadosSegundoLugar++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int filas = 0; filas < numeroDeresultadosSegundoLugar; filas++) {\n\t\t\t// System.out.print(matrizresultadosSegundo[filas][0]+\"|\");\n\t\t\t// System.out.println(matrizresultadosSegundo[filas][1]);\n\t\t}\n\n\t\t//\n\n\t\tString textoArchivo = \"\";\n\n\t\tint numeroDeFilasCrearExcel = 0;\n\n\t\tfor (int lugar = 0; lugar < 2; lugar++) {\n\t\t\tif (lugar == 0) {\n\t\t\t\ttextoArchivo = \"Primeros lugares\";\n\t\t\t\tnumeroDeFilasCrearExcel = numeroDeresultadosPrimerLugar;\n\t\t\t} else {\n\t\t\t\ttextoArchivo = \"Segundos lugares\";\n\t\t\t\tnumeroDeFilasCrearExcel = numeroDeresultadosSegundoLugar;\n\t\t\t}\n\n\t\t\t/* La ruta donde se creará el archivo */\n\t\t\tString rutaArchivo = System.getProperty(\"user.home\") + \"/\" + textoArchivo + \".xls\";\n\t\t\t/* Se crea el objeto de tipo File con la ruta del archivo */\n\t\t\tFile archivoXLS = new File(rutaArchivo);\n\t\t\t/* Si el archivo existe se elimina */\n\t\t\tif (archivoXLS.exists())\n\t\t\t\tarchivoXLS.delete();\n\t\t\t/* Se crea el archivo */\n\t\t\tarchivoXLS.createNewFile();\n\n\t\t\t/* Se crea el libro de excel usando el objeto de tipo Workbook */\n\t\t\tWorkbook libro = new HSSFWorkbook();\n\t\t\t/* Se inicializa el flujo de datos con el archivo xls */\n\t\t\tFileOutputStream archivo = new FileOutputStream(archivoXLS);\n\n\t\t\t/*\n\t\t\t * Utilizamos la clase Sheet para crear una nueva hoja de trabajo dentro del\n\t\t\t * libro que creamos anteriormente\n\t\t\t */\n\t\t\tSheet hoja = libro.createSheet(textoArchivo+\" arriba de \" + numero);\n\n\t\t\t/* Hacemos un ciclo para inicializar los valores de 10 filas de celdas */\n\t\t\tfor (int f = 0; f < numeroDeFilasCrearExcel + 1; f++) {\n\t\t\t\t/* La clase Row nos permitirá crear las filas */\n\t\t\t\tRow fila = hoja.createRow(f);\n\n\t\t\t\t/* Cada fila tendrá 5 celdas de datos */\n\t\t\t\tfor (int c = 0; c < 2; c++) {\n\t\t\t\t\t/* Creamos la celda a partir de la fila actual */\n\t\t\t\t\tCell celda = fila.createCell(c);\n\n\t\t\t\t\t/* Si la fila es la número 0, estableceremos los encabezados */\n\t\t\t\t\tif (f == 0) {\n\t\t\t\t\t\tif (c == 0) {\n\t\t\t\t\t\t\tcelda.setCellValue(\"Numero Ganador\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcelda.setCellValue(textoArchivo+\" arriba de \" + numero);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (lugar == 0) {\n\t\t\t\t\t\t\t/* Si no es la primera fila establecemos un valor */\n\t\t\t\t\t\t\tif(c==0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(matrizresultados[f - 1][c]<100) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcelda.setCellValue(\"0\" + matrizresultados[f - 1][c]);\n\t\t\t\t\t\t\t\t}else \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcelda.setCellValue(\"\" + matrizresultados[f - 1][c]);\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{\n\t\t\t\t\t\t\t\tcelda.setCellValue(\"\" + matrizresultados[f - 1][c]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(c==0) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(matrizresultadosSegundo[f - 1][c]<100) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcelda.setCellValue(\"0\" + matrizresultadosSegundo[f - 1][c]);\n\t\t\t\t\t\t\t\t}else \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcelda.setCellValue(\"\" + matrizresultadosSegundo[f - 1][c]);\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{\n\t\t\t\t\t\t\t\tcelda.setCellValue(\"\" + matrizresultadosSegundo[f - 1][c]);\n\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}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Escribimos en el libro */\n\t\t\tlibro.write(archivo);\n\t\t\t/* Cerramos el flujo de datos */\n\t\t\tarchivo.close();\n\t\t\t/* Y abrimos el archivo con la clase Desktop */\n\t\t\tDesktop.getDesktop().open(archivoXLS);\n\n\t\t}\n\n\t}", "public void generateWeeklySchedule(){\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.get(i).clear();\r\n\r\n int day = 0;\r\n int workHrs = 0;\r\n\r\n for (Task unfinishedTask: unfinished){\r\n if (day > numDayWorkWeek - 1) break;\r\n\r\n //if there is room for this task --> add it. Else, move to the next day\r\n if (workHrs + unfinishedTask.getHrsLeft() <= dailyWorkload){\r\n weeklySchedule.get(day).add(unfinishedTask);\r\n workHrs += unfinishedTask.getHrsLeft();\r\n }\r\n else{\r\n day++;\r\n weeklySchedule.get(day).add(unfinishedTask);\r\n workHrs = unfinishedTask.getHrsLeft();\r\n }\r\n }\r\n }", "public WriteExcelXLS(String filePath) {\n\t\tsuper(filePath);\n\t\tthis.book = new HSSFWorkbook();\n\t\tthis.sheet = book.createSheet(\"Teste\");\n\t\tthis.cstyle = new CellStyleList(book);\n\t}", "public void storeRegularDayTripStationScheduleWithRS();", "public void WriteFileName(MestraFile mestraFile) {\n\t\tHSSFRow row = sheet.createRow((short)rowIndex++);\n\n\t\t// Create a cell and put a value in it.\n\t\tint cellIndex = 0;\n\t\tHSSFCell cell = row.createCell(cellIndex++);\n\n\t\tHSSFRichTextString strRT = new HSSFRichTextString(mestraFile.getStrFileType());\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\tcell = row.createCell(cellIndex++);\n\t\tString FileName = \"file:\\\\\" + mestraFile.getLongFileName();\n\t\tstrRT = new HSSFRichTextString(FileName);\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\tif (mestraFile.isWordExtractionFailed()) {\n\t\t\tcell = row.createCell(cellIndex++);\n\t\t\tString ErrorMessage = \"Word Extraction Failed!\";\n\t\t\tstrRT = new HSSFRichTextString(ErrorMessage);\n\t\t\tcell.setCellValue(strRT);\n\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightRedBackGroundCellStyle));\n\t\t}\n\n\t\t//cell = row.createCell((short)cellIndex++);\n\t\t//String formulae = \"HYPERLINK(file://\"+ mestraFile.getLongFileName()+\")\";\n\t\t//cell.setCellType(HSSFCell.CELL_TYPE_FORMULA);\n\t\t//cell.setCellFormula(formulae);\n\n\t\t// if the file is a SSS we add a row listing all the CSCI impacted by the SSS Requirements\n\t\tif\t(mestraFile.IsSSS()) {\n\n\t\t\trow = sheet.createRow((short)rowIndex++);\n\t\t\tcellIndex = 0;\n\t\t\tcell = row.createCell(cellIndex++);\n\t\t\tstrRT = new HSSFRichTextString(\"Impacted CSCI List\");\n\t\t\tcell.setCellValue(strRT);\n\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\t\tif (mestraFile.getSSS_FileAllocationList() != null) {\n\t\t\t\t\n\t\t\t\tIterator<Map.Entry<String, CSCI_Allocation>> Iter = mestraFile.getSSS_FileAllocationList().iterator();\n\t\t\t\twhile (Iter.hasNext()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcell = row.createCell(cellIndex++);\n\t\t\t\t\t\t\n\t\t\t\t\t\tMap.Entry<String, CSCI_Allocation> entry = Iter.next();\n\t\t\t\t\t\tCSCI_Allocation aCSCI_Allocation = entry.getValue();\n\n\t\t\t\t\t\tstrRT = new HSSFRichTextString(aCSCI_Allocation.getCSCI_Name());\n\t\t\t\t\t\tcell.setCellValue(strRT);\n\t\t\t\t\t\t// check if the CSCI exists in the configuration file\n\t\t\t\t\t\tif (aCSCI_Allocation.isCSCI_NameExisting() == false) {\n\t\t\t\t\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightYellowBackGroundCellStyle));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch (RuntimeException e) {\n\t\t\t\t\t\tlogger.log(Level.SEVERE , e.getLocalizedMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n\n\t\t\trow = sheet.createRow((short)rowIndex++);\n\t\t\tcellIndex = 0;\n\t\t\tcell = row.createCell(cellIndex++);\n\t\t\tstrRT = new HSSFRichTextString(\"Nbr ref\");\n\t\t\tcell.setCellValue(strRT);\n\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\t\tif (mestraFile.getSSS_FileAllocationList() != null) {\n\t\t\t\t\n\t\t\t\tIterator<Map.Entry<String, CSCI_Allocation>> Iter = mestraFile.getSSS_FileAllocationList().iterator();\n\t\t\t\twhile (Iter.hasNext()) {\n\n\t\t\t\t\tMap.Entry<String, CSCI_Allocation> entry = Iter.next();\n\t\t\t\t\tCSCI_Allocation aCSCI_Allocation = entry.getValue();\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcell = row.createCell(cellIndex++);\n\t\t\t\t\t\tint NbrRef = aCSCI_Allocation.getNbrReferences();\n\t\t\t\t\t\tcell.setCellValue(NbrRef);\n\t\t\t\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\t\t\t\t\t}\n\t\t\t\t\tcatch (RuntimeException e) {\n\t\t\t\t\t\tlogger.log(Level.SEVERE , e.getLocalizedMessage());\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args)throws Exception {\n\t\t\r\n\t\tFileInputStream inFile = new FileInputStream(\"C:\\\\Users\\\\vshadmin\\\\Desktop\\\\Book1.xlsx\");\r\n\t\tXSSFWorkbook book = new XSSFWorkbook(inFile);\r\n\t\tXSSFSheet sheet = book.getSheet(\"Sheet1\");\r\n\t\t\r\n\t//\tsheet.getRow(2).getCell(1).setCellValue(\"LNT\");\r\n\t//\tsheet.getRow(2).getCell(1).setCellValue(\"LNT\");\r\n\t\t//sheet.createRow(3).createCell(2).setCellValue(\"LNT\");\r\n\t\t\r\n\t\t\r\n\t\tFileOutputStream op = new FileOutputStream(\"C:\\\\Users\\\\vshadmin\\\\Desktop\\\\Book1.xlsx\");\r\n\t\tbook.write(op);\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tcontroller.writeExcelFile();\r\n\t\t\t}", "void doIt() throws RBEConfigObjectException, IOException\n\t{\n\t\t// Create a schedules\n\t\tSchedules schedules = new Schedules();\n\n\t\t// add a schedule that include a period for 8:00am to 6:00pm every Monday\n\t\taddMondayOnly(schedules);\n\n\t\t// Save it to a file\n\t\tsave(schedules, SAMPLE_SCHEDULES_NAME+schedules.getFileExtension());\n\n\t\t// load the schedules from and check if it is equals to the original.\n\t\tSchedules schedulesLoaded = load(SAMPLE_SCHEDULES_NAME+schedules.getFileExtension());\n\t\tif (!schedules.equals(schedulesLoaded))\n\t\t\tprintln(\"Error saving schedules to file!\");\n\t}", "public void saveData(AppDataComponent data, String filePath) throws IOException {\n CSGData dataManager = (CSGData)data;\r\n ScheduleData scheduleData = dataManager.getScheduleData();\r\n\r\n // NOW BUILD THE SITE PAGES JSON OBJCTS (ARRAY)TO SAVE\r\n\tJsonArrayBuilder scheduleItemsArrayBuilder = Json.createArrayBuilder();\r\n\tObservableList<ScheduleItem> scheduleItems = scheduleData.getScheduleItems();\r\n\tfor (ScheduleItem scheduleItem : scheduleItems) {\t \r\n\t JsonObject scheduleItemJson = Json.createObjectBuilder()\r\n\t\t .add(JSON_TYPE, scheduleItem.getType())\r\n\t\t .add(JSON_DATE, scheduleItem.getDateString())\r\n\t\t .add(JSON_TIME, scheduleItem.getTime())\r\n .add(JSON_TITLE, scheduleItem.getTitle())\r\n .add(JSON_TOPIC, scheduleItem.getTopic())\r\n .add(JSON_LINK, scheduleItem.getLink())\r\n .add(JSON_CRITERIA, scheduleItem.getCriteria()).build();\r\n\t scheduleItemsArrayBuilder.add(scheduleItemJson);\r\n\t}\r\n\tJsonArray scheduleItemsArray = scheduleItemsArrayBuilder.build();\r\n \r\n\t// THEN PUT IT ALL TOGETHER IN A JsonObject\r\n if(scheduleData.getStartingMondayString() != null && scheduleData.getEndingFridayString() != null){\r\n scheduleJson = Json.createObjectBuilder()\r\n .add(JSON_START_MON, scheduleData.getStartingMondayString())\r\n .add(JSON_END_FRI, scheduleData.getEndingFridayString())\r\n .add(JSON_SCHEDULE_ITEMS, scheduleItemsArray).build();\r\n }\r\n else{\r\n scheduleJson = Json.createObjectBuilder()\r\n .add(JSON_START_MON, \"\")\r\n .add(JSON_END_FRI, \"\")\r\n .add(JSON_SCHEDULE_ITEMS, scheduleItemsArray).build();\r\n }\r\n\t\r\n }", "public <T> void exportToExcel(String location, List<T>... values) throws IOException, WriteException, DALException;", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tXSSFWorkbook xlwb = new XSSFWorkbook();\n\t\t\n\t\tXSSFSheet sht = xlwb.createSheet(\"Firstsheet\");\n\t\t\n\t\tRow row0 = sht.createRow(0);\n\t\n\tCell Cela = row0.createCell(0);\n\tCell Celb = row0.createCell(1);\n\t\n\tCela.setCellValue(\"this is first cell value\");\n\t\n\tCelb.setCellValue(\"this is 2nd cell value\");\n\t\n\tFile f = new File(\"D:\\\\Personal\\\\Learning\\\\PatriceFiles\\\\Excel\\\\Excelfile.xlsx\");\n\t\n\t\tFileOutputStream fo = new FileOutputStream(f);\n\t\t\n\t\txlwb.write(fo);\n\t\n\tSystem.out.println(\"Excel File Created\");\n\t\t\n\t}", "public void addNewIDtoCells() {\n\t\t//Get iterator to all the rows in current sheet\n\t\tIterator<Row> rowIteratorA = cells.iterator();\n\t\t\n\t\trowIteratorA.next();//Ignore the column names. We actually know it.\n\t\tRow row = null;\n\t\tint previousValue = -1;\n\t\tdouble key = -1;\n\t\t//For each row we will read the info. 12\n\t\twhile(rowIteratorA.hasNext()){\n\t\t\trow = rowIteratorA.next();\n\t\t\tdouble currentValue = Math.round(row.getCell(CELLQUERY).getNumericCellValue()*100)/100;\n\t\t\t//System.out.println(i++);\n\t\t\tif(currentValue!=previousValue){\n\t\t\t\tif(table.containsKey(currentValue))\n\t\t\t\t\tkey=table.get(currentValue);\n\t\t\t\telse\n\t\t\t\t\tkey=-1;\n\t\t\t}\n\t\t\trow.createCell(CELLKEY);\n\t\t\trow.getCell(CELLKEY).setCellValue(key);\n\t\t\tif(key==-1){\n\t\t\t\tSystem.err.println(\"Error: Value \"+currentValue+\" was not found in the matching table\");\n\t\t\t}\n\t\t}\n\t\tFileOutputStream dataFileOut;\n\t\ttry {\n\t\t\tdataFileOut = new FileOutputStream(\n\t\t\t\t\tcellsFile.getAbsolutePath().replace(\".xlsx\", \"out.xlsx\"));\n\t\t\t//System.out.println(dataFileOut+\" \"+cellsWorkbook);\n\t\t\t\n\t\t\tcellsWorkbook.write(dataFileOut);\n\t\t\tdataFileOut.flush();\n\t\t\tdataFileOut.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\t\t\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(JOB_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (JobDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getTitle()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeName());\n\t\t\t\t\t\trecord.add(transaction.getJobType());\n\t\t\t\t\t\trecord.add(transaction.getPlannedStartTime());\n\t\t\t\t\t\trecord.add(transaction.getActualEndTime());\n\t\t\t\t\t\trecord.add(transaction.getJobStatus() != null ? transaction.getJobStatus().name()\n\t\t\t\t\t\t\t\t: JobStatus.OPEN.name());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!! \" + e);\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public static void main(String[] args) {\n Module module = ActivatorToolBox.simpleLink(new BaseDBActivator(),\n new ConfigurationActivator(),\n new StandaloneModeActivator(),\n new ModuleHealActivator(),\n new StateServiceActivator(),\n new ChartBaseActivator(),\n new SchedulerActivator(),\n new ReportBaseActivator(),\n new RestrictionActivator(),\n new ReportActivator(),\n new WriteActivator());\n SimpleWork.supply(CommonOperator.class, new CommonOperatorImpl());\n String envpath = \"//Applications//FineReport10_325//webapps//webroot//WEB-INF\";\n SimpleWork.checkIn(envpath);\n I18nResource.getInstance();\n module.start();\n\n\n ResultWorkBook rworkbook = null;\n try {\n // read the workbook\n TemplateWorkBook workbook = TemplateWorkBookIO.readTemplateWorkBook(\"//doc//Primary//Parameter//Parameter.cpt\");\n // get the parameters and set value\n Parameter[] parameters = workbook.getParameters();\n parameters[0].setValue(\"华东\");\n // define a parameter map to execute the workbook\n java.util.Map parameterMap = new java.util.HashMap();\n for (int i = 0; i < parameters.length; i++) {\n parameterMap.put(parameters[i].getName(), parameters[i]\n .getValue());\n }\n\n FileOutputStream outputStream;\n\n // unaltered export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xls\"));\n ExcelExporter excel = new ExcelExporter();\n excel.setVersion(true);\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // unaltered export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xlsx\"));\n StreamExcel2007Exporter excel1 = new StreamExcel2007Exporter();\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xls\"));\n PageExcelExporter page = new PageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n page.setVersion(true);\n page.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xlsx\"));\n PageExcel2007Exporter page1 = new PageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n page1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xls\"));\n PageToSheetExcelExporter sheet = new PageToSheetExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n sheet.setVersion(true);\n sheet.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xlsx\"));\n PageToSheetExcel2007Exporter sheet1 = new PageToSheetExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n sheet1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // Large data volume export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.zip\"));\n LargeDataPageExcelExporter large = new LargeDataPageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())), true);\n\n // Large data volume export to xlsx\n // outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.xlsx\"));\n // LargeDataPageExcel2007Exporter large = new LargeDataPageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook), true);\n large.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n outputStream.close();\n module.stop();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public ItemWriter<WorkingHours> saveWorkingHours();", "@Override\r\n\t\t\tpublic boolean run() throws SQLException {\n\t\t\t\ttry {\r\n\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"######0.00\");\r\n\t\t\t\t\t// 上传文件\r\n\t\t\t\t\tUploadFile file = getFile();\r\n\t\t\t\t\tFile delfile = new File(file.getUploadPath() + \"/\" + file.getFileName());\r\n\t\t\t\t\tString createBy = getPara(\"createBy\");\r\n\t\t\t\t\tString path = delfile.getPath();// 文件的路径\r\n\t\t\t\t\t// 读取文件内容\r\n\t\t\t\t\tReadExcelUtils readExcel = new ReadExcelUtils(path);\r\n\t\t\t\t\t// 读取文件标题(确定几月份的考勤)\r\n\t\t\t\t\tCell title = readExcel.readExcelTitle();\r\n\t\t\t\t\tString str = title.getStringCellValue();\r\n\t\t\t\t\tString[] split = str.split(\":\");\r\n\t\t\t\t\tString attendanceDate = split[1];\r\n\t\t\t\t\tString year = attendanceDate.split(\"-\")[0];\r\n\t\t\t\t\tString month = attendanceDate.split(\"-\")[1];\r\n\t\t\t\t\t// 查询 导入的文件是否已经导入过了\r\n\t\t\t\t\tPage<HrStaffAttendance> list = service.getStaffAttendanceInfo(1, 10, attendanceDate, null);\r\n\t\t\t\t\tif (list.getList().size() != 0) {\r\n\t\t\t\t\t\trenderError(\"不可重复导入同一数据\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tList<HrStaffAttendance> content = readExcel.readExcelContent(Integer.parseInt(year),\r\n\t\t\t\t\t\t\tInteger.parseInt(month));\r\n\r\n\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 从excel员工表导入的数据: \" + content);\r\n\t\t\t\t\tint export = 0;\r\n\t\t\t\t\tfor (HrStaffAttendance hrStaffAttendance : content) {\r\n\t\t\t\t\t\t// 处理考勤时间\r\n\t\t\t\t\t\tDouble actCheckDay = 0.0;\r\n\t\t\t\t\t\t// 实际考勤天数(工作量)\r\n\t\t\t\t\t\tDouble actCheckDay1 = 0.0;\r\n\t\t\t\t\t\tint checkDays = 0;// 打卡日期,即每天打卡2次以上\r\n\t\t\t\t\t\tint laterDay = 0;// 迟到天数\r\n\t\t\t\t\t\tint earlyRetreat = 0;// 早退天数\r\n\t\t\t\t\t\tint singleCheck = 0;// 单边打卡天数\r\n\t\t\t\t\t\tint workDay = hrStaffAttendance.getWorkDay();// 每月需工作天数\r\n\t\t\t\t\t\tJSONObject parse = (JSONObject) JSON.parse(hrStaffAttendance.getCheckRecord());\r\n\t\t\t\t\t\tJSONObject jsonA = (JSONObject) JSON.parse(parse.getString(\"A\"));\r\n\t\t\t\t\t\tString strB = parse.getString(\"B\");\r\n\t\t\t\t\t\tString checkIn = null;\r\n\t\t\t\t\t\tString checkOut = null;\r\n\t\t\t\t\t\tJSONObject workHour = null;\r\n\t\t\t\t\t\tJSONObject workHours = new JSONObject();\r\n\t\t\t\t\t\tJSONObject checkRecord = null;\r\n\t\t\t\t\t\tJSONObject checkRecords = new JSONObject();\r\n\t\t\t\t\t\tSimpleDateFormat simpleFormat = new SimpleDateFormat(\"HH:mm\");\r\n\t\t\t\t\t\t// 本月不存在打卡3次以上的情况\r\n\t\t\t\t\t\tif (strB == null || strB == \"\") {\r\n\t\t\t\t\t\t\tworkHour = new JSONObject();\r\n\t\t\t\t\t\t\tcheckRecords = parse;\r\n\t\t\t\t\t\t\tfor (Entry<String, Object> ent : jsonA.entrySet()) {\r\n\t\t\t\t\t\t\t\tString st = ent.getValue().toString();\r\n\t\t\t\t\t\t\t\tint hours = 0;\r\n\t\t\t\t\t\t\t\t// length > 1 说明今天至少打卡1次,保证checkIn不为空\r\n\t\t\t\t\t\t\t\tif (st.split(\",\").length > 1) {\r\n\t\t\t\t\t\t\t\t\tcheckIn = st.split(\",\")[0].trim();\r\n\t\t\t\t\t\t\t\t\t// checkIn 为空 说明今天未打卡\r\n\t\t\t\t\t\t\t\t\tcheckOut = st.split(\",\")[st.split(\",\").length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t// checkOut 为空 今天只打卡一次,属于单边打卡\r\n\t\t\t\t\t\t\t\t\tif (!StrKit.notBlank(checkOut) || \"0\".equals(checkOut)) {\r\n\t\t\t\t\t\t\t\t\t\tsingleCheck++;\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t} else {// checkOut不为空,说明今天打卡两次\r\n\t\t\t\t\t\t\t\t\t\tcheckDays++;\r\n\t\t\t\t\t\t\t\t\t\tlong from = simpleFormat.parse(checkIn).getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong to = simpleFormat.parse(checkOut).getTime();\r\n\t\t\t\t\t\t\t\t\t\t// 每天的工作时长\r\n\t\t\t\t\t\t\t\t\t\thours = Math.abs((int) ((to - from) / (1000 * 60 * 60)));\r\n\t\t\t\t\t\t\t\t\t\t;\r\n\t\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\t\tlaterDay++;// 迟到\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\t\tearlyRetreat++;// 早退\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (hours >= 9) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 1.0;\r\n\t\t\t\t\t\t\t\t\t\t} else if (hours < 9 && hours >= 4) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.5;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\thours = 0;\r\n\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tworkHour.put(String.valueOf(ent.getKey()), hours);\r\n\t\t\t\t\t\t\t\tactCheckDay1 += actCheckDay;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// 本月存在打卡3次以上的情况\r\n\t\t\t\t\t\t\tJSONObject jsonB = (JSONObject) JSON.parse(strB);\r\n\t\t\t\t\t\t\tworkHour = new JSONObject();\r\n\t\t\t\t\t\t\tcheckRecord = new JSONObject();\r\n\t\t\t\t\t\t\tfor (Entry<String, Object> ent : jsonB.entrySet()) {\r\n\t\t\t\t\t\t\t\tString string = ent.getValue().toString();\r\n\t\t\t\t\t\t\t\tint hours = 0;\r\n\t\t\t\t\t\t\t\tString cr = null;\r\n\t\t\t\t\t\t\t\t// string不为0 说明今天存在打卡3次以上情况 前两次均存在打卡记录\r\n\t\t\t\t\t\t\t\tif (!\"0\".equals(string)) {\r\n\t\t\t\t\t\t\t\t\t// 今天打卡3次以上\r\n\t\t\t\t\t\t\t\t\tcheckDays++;\r\n\t\t\t\t\t\t\t\t\t// 第一次打卡\r\n\t\t\t\t\t\t\t\t\tcheckIn = jsonA.getString(ent.getKey()).split(\",\")[0].trim();\r\n\t\t\t\t\t\t\t\t\t// 今天最后一次打卡\r\n\t\t\t\t\t\t\t\t\tcheckOut = string.split(\",\")[string.split(\",\").length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t// 今天打卡记录合并 如:9:00,12:00,18:00\r\n\t\t\t\t\t\t\t\t\t// checkOut 为空,说明今天只打了3次卡,没有第四次\r\n\t\t\t\t\t\t\t\t\tif (!StrKit.notBlank(checkOut)) {\r\n\t\t\t\t\t\t\t\t\t\tcheckOut = string.split(\",\")[0].trim();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlong from = simpleFormat.parse(checkIn).getTime();\r\n\t\t\t\t\t\t\t\t\tlong to = simpleFormat.parse(checkOut).getTime();\r\n\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\tlaterDay++;// 迟到\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\tearlyRetreat++;// 早退\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\thours = Math.abs((int) ((to - from) / (1000 * 60 * 60)));\r\n\t\t\t\t\t\t\t\t\tif (hours >= 9) {\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 1.0;\r\n\t\t\t\t\t\t\t\t\t} else if (hours < 9 && hours >= 4) {\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.5;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcr = jsonA.getString(ent.getKey()).trim() + \",\" + string.trim();\r\n\t\t\t\t\t\t\t\t} else {// 今天不存在打3次卡以上的情况\r\n\t\t\t\t\t\t\t\t\t// 第一次打卡\r\n\t\t\t\t\t\t\t\t\tcheckIn = jsonA.getString(ent.getKey()).split(\",\")[0].trim();\r\n\t\t\t\t\t\t\t\t\t// 最后一次打卡\r\n\t\t\t\t\t\t\t\t\tcheckOut = jsonA.getString(ent.getKey())\r\n\t\t\t\t\t\t\t\t\t\t\t.split(\",\")[jsonA.getString(ent.getKey()).split(\",\").length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t// checkIn 为空 说明今天未打卡 跳出本次循环\r\n\t\t\t\t\t\t\t\t\tif (!StrKit.notBlank(checkIn) || \"0\".equals(checkIn)) {\r\n\t\t\t\t\t\t\t\t\t\thours = 0;\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t\tworkHour.put(String.valueOf(ent.getKey()), 0);\r\n\t\t\t\t\t\t\t\t\t\tcheckRecord.put(String.valueOf(ent.getKey()), \"0\");\r\n\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// checkOut 为空 或者和checkIn相等 属于单边打卡\r\n\t\t\t\t\t\t\t\t\tif (!StrKit.notBlank(checkOut) || checkIn.equals(checkOut)) {\r\n\t\t\t\t\t\t\t\t\t\tsingleCheck++;\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t// 能走到这里,说明checkIn,checkOut均不为空,说明今天打卡2次\r\n\t\t\t\t\t\t\t\t\t\tcheckDays++;\r\n\t\t\t\t\t\t\t\t\t\tlong from = simpleFormat.parse(checkIn).getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong to = simpleFormat.parse(checkOut).getTime();\r\n\t\t\t\t\t\t\t\t\t\t// 每天的工作时长\r\n\t\t\t\t\t\t\t\t\t\thours = Math.abs((int) ((to - from) / (1000 * 60 * 60)));\r\n\t\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\t\tlaterDay++;// 迟到\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\t\tearlyRetreat++;// 早退\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (hours >= 9) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 1.0;\r\n\t\t\t\t\t\t\t\t\t\t} else if (hours < 9 && hours >= 4) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.5;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcr = jsonA.getString(ent.getKey());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tworkHour.put(String.valueOf(ent.getKey()), hours);\r\n\t\t\t\t\t\t\t\tcheckRecord.put(String.valueOf(ent.getKey()), cr);\r\n\t\t\t\t\t\t\t\tactCheckDay1 += actCheckDay;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcheckRecords.put(\"A\", checkRecord);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tworkHours.put(\"A\", workHour);\r\n\t\t\t\t\t\tInteger checkInNum = hrStaffAttendance.getCheckInNum();\r\n\t\t\t\t\t\thrStaffAttendance.setActCheckDay(actCheckDay1.toString());\r\n\t\t\t\t\t\tDouble allDayNotSca = (1 - (double) checkDays / workDay);\r\n\t\t\t\t\t\tDouble earlyRetreatSca = ((double) earlyRetreat / workDay);\r\n\t\t\t\t\t\tDouble laterDaySca = ((double) laterDay / workDay);\r\n\t\t\t\t\t\tDouble singleCheckSca = ((double) singleCheck / workDay);\r\n\t\t\t\t\t\thrStaffAttendance.setCheckDay(checkDays);\r\n\t\t\t\t\t\thrStaffAttendance.setEarlyRetreat(earlyRetreat);\r\n\t\t\t\t\t\thrStaffAttendance.setSingleCheck(singleCheck);\r\n\t\t\t\t\t\thrStaffAttendance.setLaterDay(laterDay);\r\n\t\t\t\t\t\thrStaffAttendance.setAllDayNotSca(df.format(allDayNotSca));\r\n\t\t\t\t\t\thrStaffAttendance.setEarlyRetreatSca(df.format(earlyRetreatSca));\r\n\t\t\t\t\t\thrStaffAttendance.setLaterDaySca(df.format(laterDaySca));\r\n\t\t\t\t\t\thrStaffAttendance.setSingleCheckSca(df.format(singleCheckSca));\r\n\t\t\t\t\t\t// 通过考勤编号check_in_num去人员列表里找到相关的入场信息\r\n\t\t\t\t\t\tList<Record> personInfo = service.getPersonInfo(checkInNum);\r\n\t\t\t\t\t\t// 保证arrayList>1\r\n\t\t\t\t\t\tif (personInfo.size() == 0) {\r\n\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 考勤编号:\" + checkInNum\r\n\t\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// 先判断一下时间 比如:3月入场,5月转场,导入4月的考勤\r\n\t\t\t\t\t\t// arrayList记录改考勤编号下的所有的入场日期及订单编号\r\n\t\t\t\t\t\tList<String> arrayList = new ArrayList<>();\r\n\t\t\t\t\t\t// array记录本月的入场时间\r\n\t\t\t\t\t\tList<String> array = new ArrayList<>();\r\n\t\t\t\t\t\t// 中间变量 用于排序入场时间\r\n\t\t\t\t\t\tString[] per = new String[personInfo.size() + 1];\r\n\t\t\t\t\t\tper[0] = attendanceDate.substring(0, 10);\r\n\t\t\t\t\t\tint i = 1;\r\n\t\t\t\t\t\tfor (Record record : personInfo) {\r\n\t\t\t\t\t\t\tper[i] = JSON.parseObject(record.get(\"in_field_json\")).getString(\"entry_date\");\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 对入场时间进行排序\r\n\t\t\t\t\t\tArrays.sort(per);\r\n\t\t\t\t\t\tfor (int j = 0; j < per.length; j++) {\r\n\t\t\t\t\t\t\tarrayList.add(per[j]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 本月考勤记录第一天所在所有入场日期的位置\r\n\t\t\t\t\t\tint index = arrayList.indexOf(attendanceDate.substring(0, 10));\r\n\t\t\t\t\t\t// 先判断本月有几条入离场信息的入场时间\r\n\t\t\t\t\t\tfor (int j = 0; j < per.length; j++) {\r\n\t\t\t\t\t\t\tif (per[j].substring(0, 7).equals(attendanceDate.substring(0, 7))) {\r\n\t\t\t\t\t\t\t\tarray.add(per[j]);\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\tif (array.size() == 1) {\r\n\t\t\t\t\t\t\t// 根据入场时间和考勤编号查询入场信息\r\n\t\t\t\t\t\t\tif (index != 0) {\r\n\t\t\t\t\t\t\t\tindex = index - 1;// 该月无转场,直接入场(离场不用管,因为离场后就不会再打卡)(若index=0,说明该人员无入场)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tRecord record = service.getUserInInfo(checkInNum, arrayList.get(index));\r\n\t\t\t\t\t\t\tif (record == null) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tObject object = record.get(\"in_field_json\");\r\n\t\t\t\t\t\t\tJSONObject fromObject = JSON.parseObject(object.toString());\r\n\t\t\t\t\t\t\tString orderNum = fromObject.getString(\"order_num\");\r\n\t\t\t\t\t\t\tString department = fromObject.getJSONObject(\"department\").getString(\"department_name\");\r\n\t\t\t\t\t\t\tString supplierName = fromObject.getString(\"supplier_name\");\r\n\t\t\t\t\t\t\tRecord rec = service.getCBbySupplierName(supplierName);\r\n\t\t\t\t\t\t\tif (rec != null) {\r\n\t\t\t\t\t\t\t\tcreateBy = rec.getStr(\"create_by\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tString personName = fromObject.getString(\"person_name\");\r\n\t\t\t\t\t\t\tString personNature = fromObject.getJSONObject(\"person_nature\")\r\n\t\t\t\t\t\t\t\t\t.getString(\"person_nature_name\");\r\n\t\t\t\t\t\t\tString personLevel = fromObject.getJSONObject(\"person_level\").getString(\"person_level_key\");\r\n\t\t\t\t\t\t\tString personClass = fromObject.getJSONObject(\"person_type\").getString(\"person_type_key\");\r\n\t\t\t\t\t\t\tString changePerson = fromObject.getJSONObject(\"change_person\")\r\n\t\t\t\t\t\t\t\t\t.getString(\"change_person_key\");\r\n\t\t\t\t\t\t\tString orderName = fromObject.getJSONObject(\"order_name\").getString(\"order_name_name\");\r\n\t\t\t\t\t\t\tString entryDate = fromObject.getString(\"entry_date\");\r\n\t\t\t\t\t\t\tString leaveDate = fromObject.getString(\"leave_date\");\r\n\t\t\t\t\t\t\thrStaffAttendance.setPersonLevel(personLevel);\r\n\t\t\t\t\t\t\thrStaffAttendance.setPersonName(personName);\r\n\t\t\t\t\t\t\thrStaffAttendance.setPersonNature(personNature);\r\n\t\t\t\t\t\t\thrStaffAttendance.setSupplierName(supplierName);\r\n\t\t\t\t\t\t\thrStaffAttendance.setDepartment(department);\r\n\t\t\t\t\t\t\thrStaffAttendance.setEntryDate(entryDate);\r\n\t\t\t\t\t\t\thrStaffAttendance.setAttendanceDate(attendanceDate);\r\n\t\t\t\t\t\t\thrStaffAttendance.setPersonClassKey(personClass);\r\n\t\t\t\t\t\t\thrStaffAttendance.setChangePersonKey(changePerson);\r\n\t\t\t\t\t\t\thrStaffAttendance.setCreateBy(createBy);\r\n\t\t\t\t\t\t\thrStaffAttendance\r\n\t\t\t\t\t\t\t\t\t.setCreateTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()));\r\n\t\t\t\t\t\t\tint status = 0;\r\n\t\t\t\t\t\t\tif (\"2\".equals(record.get(\"status_type\"))) {\r\n\t\t\t\t\t\t\t\tstatus = 1;// 1为离场状态\r\n\t\t\t\t\t\t\t\tleaveDate = JSON.parseObject(record.get(\"out_field_json\"))\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"actual_leave_date\");\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tstatus = 0;// 0为入场状态\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thrStaffAttendance.setStatusInorout(status);\r\n\t\t\t\t\t\t\thrStaffAttendance.setOrderNum(orderNum);\r\n\t\t\t\t\t\t\thrStaffAttendance.setOrderName(orderName);\r\n\t\t\t\t\t\t\t// 默认每人每月非开会事由补打卡次数最多为:3次\r\n\t\t\t\t\t\t\thrStaffAttendance.setFillupMaxcounts(3);\r\n\t\t\t\t\t\t\thrStaffAttendance.setLeaveDate(leaveDate);\r\n\t\t\t\t\t\t\thrStaffAttendance.setWorkHours(workHours.toString());\r\n\t\t\t\t\t\t\thrStaffAttendance.setCheckRecord(checkRecords.toString());\r\n\t\t\t\t\t\t\t// 默认工作工作量确认初始值为:0(未确认)\r\n\t\t\t\t\t\t\thrStaffAttendance.setStatus(Constants.STATUS);\r\n\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将数据添加到数据库 \");\r\n\t\t\t\t\t\t\tint m = service.insertstaffAttendance(hrStaffAttendance);\r\n\t\t\t\t\t\t\tif (m < 0) {\r\n\t\t\t\t\t\t\t\trenderError(\"数据添加到数据库:失败\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\trenderSuccess(\"数据成功添加到数据库 \");\r\n\t\t\t\t\t\t} else if (array.size() == 2) {\r\n\t\t\t\t\t\t\tif (index == 0) {\r\n\t\t\t\t\t\t\t\tindex = index + 1;// 该月无转场 在本月入场\r\n\t\t\t\t\t\t\t\tRecord record = service.getUserInInfo(checkInNum, arrayList.get(index));\r\n\t\t\t\t\t\t\t\tif (record == null) {\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\tObject object = record.get(\"in_field_json\");\r\n\t\t\t\t\t\t\t\tJSONObject fromObject = JSON.parseObject(object.toString());\r\n\t\t\t\t\t\t\t\tString orderNum = fromObject.getString(\"order_num\");\r\n\t\t\t\t\t\t\t\tString department = fromObject.getJSONObject(\"department\").getString(\"department_name\");\r\n\t\t\t\t\t\t\t\tString supplierName = fromObject.getString(\"supplier_name\");\r\n\t\t\t\t\t\t\t\tRecord rec = service.getCBbySupplierName(supplierName);\r\n\t\t\t\t\t\t\t\tif (rec != null) {\r\n\t\t\t\t\t\t\t\t\tcreateBy = rec.getStr(\"create_by\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tString personName = fromObject.getString(\"person_name\");\r\n\t\t\t\t\t\t\t\tString personNature = fromObject.getJSONObject(\"person_nature\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_nature_name\");\r\n\t\t\t\t\t\t\t\tString personLevel = fromObject.getJSONObject(\"person_level\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_level_key\");\r\n\t\t\t\t\t\t\t\tString personClass = fromObject.getJSONObject(\"person_type\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_type_key\");\r\n\t\t\t\t\t\t\t\tString changePerson = fromObject.getJSONObject(\"change_person\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"change_person_key\");\r\n\t\t\t\t\t\t\t\tString orderName = fromObject.getJSONObject(\"order_name\").getString(\"order_name_name\");\r\n\t\t\t\t\t\t\t\tString entryDate = fromObject.getString(\"entry_date\");\r\n\t\t\t\t\t\t\t\tString leaveDate = fromObject.getString(\"leave_date\");\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonLevel(personLevel);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonName(personName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonNature(personNature);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSupplierName(supplierName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setDepartment(department);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEntryDate(entryDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAttendanceDate(attendanceDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonClassKey(personClass);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setChangePersonKey(changePerson);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCreateBy(createBy);\r\n\t\t\t\t\t\t\t\thrStaffAttendance\r\n\t\t\t\t\t\t\t\t\t\t.setCreateTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()));\r\n\t\t\t\t\t\t\t\tint status = 0;\r\n\t\t\t\t\t\t\t\tif (\"2\".equals(record.get(\"status_type\"))) {\r\n\t\t\t\t\t\t\t\t\tstatus = 1;// 1为离场状态\r\n\t\t\t\t\t\t\t\t\tleaveDate = JSON.parseObject(record.get(\"out_field_json\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"actual_leave_date\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstatus = 0;// 0为入场状态\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatusInorout(status);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderNum(orderNum);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderName(orderName);\r\n\t\t\t\t\t\t\t\t// 默认每人每月非开会事由补打卡次数最多为:3次\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setFillupMaxcounts(3);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLeaveDate(leaveDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setWorkHours(workHours.toString());\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckRecord(checkRecords.toString());\r\n\t\t\t\t\t\t\t\t// 默认工作工作量确认初始值为:0(未确认)\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatus(Constants.STATUS);\r\n\t\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将数据添加到数据库 \");\r\n\t\t\t\t\t\t\t\tint m = service.insertstaffAttendance(hrStaffAttendance);\r\n\t\t\t\t\t\t\t\tif (m < 0) {\r\n\t\t\t\t\t\t\t\t\trenderError(\"数据添加到数据库:失败\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\trenderSuccess(\"数据成功添加到数据库 \");\r\n\t\t\t\t\t\t\t} else {// 该月有转场\r\n\t\t\t\t\t\t\t\tcheckDays = 0;\r\n\t\t\t\t\t\t\t\tlaterDay = 0;\r\n\t\t\t\t\t\t\t\tearlyRetreat = 0;\r\n\t\t\t\t\t\t\t\tsingleCheck = 0;\r\n\r\n\t\t\t\t\t\t\t\tDouble actCheckDays1 = 0.0;\r\n\t\t\t\t\t\t\t\t// 转场前\r\n\t\t\t\t\t\t\t\tRecord record = service.getUserInInfo(checkInNum, arrayList.get(index - 1));\r\n\t\t\t\t\t\t\t\tif (record == null) {\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\tObject object = record.get(\"in_field_json\");\r\n\t\t\t\t\t\t\t\tJSONObject fromObject = JSON.parseObject(object.toString());\r\n\t\t\t\t\t\t\t\tString orderNum = fromObject.getString(\"order_num\");\r\n\t\t\t\t\t\t\t\tString department = fromObject.getJSONObject(\"department\").getString(\"department_name\");\r\n\t\t\t\t\t\t\t\tString supplierName = fromObject.getString(\"supplier_name\");\r\n\t\t\t\t\t\t\t\tRecord rec = service.getCBbySupplierName(supplierName);\r\n\t\t\t\t\t\t\t\tif (rec != null) {\r\n\t\t\t\t\t\t\t\t\tcreateBy = rec.getStr(\"create_by\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tString personName = fromObject.getString(\"person_name\");\r\n\t\t\t\t\t\t\t\tString personNature = fromObject.getJSONObject(\"person_nature\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_nature_name\");\r\n\t\t\t\t\t\t\t\tString personLevel = fromObject.getJSONObject(\"person_level\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_level_key\");\r\n\t\t\t\t\t\t\t\tString personClass = fromObject.getJSONObject(\"person_type\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_type_key\");\r\n\t\t\t\t\t\t\t\tString changePerson = fromObject.getJSONObject(\"change_person\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"change_person_key\");\r\n\t\t\t\t\t\t\t\tString orderName = fromObject.getJSONObject(\"order_name\").getString(\"order_name_name\");\r\n\t\t\t\t\t\t\t\tString entryDate = fromObject.getString(\"entry_date\");\r\n\t\t\t\t\t\t\t\tString leaveDate = fromObject.getString(\"leave_date\");\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonLevel(personLevel);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonName(personName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonNature(personNature);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSupplierName(supplierName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setDepartment(department);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEntryDate(entryDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAttendanceDate(attendanceDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonClassKey(personClass);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setChangePersonKey(changePerson);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCreateBy(createBy);\r\n\t\t\t\t\t\t\t\thrStaffAttendance\r\n\t\t\t\t\t\t\t\t\t\t.setCreateTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()));\r\n\t\t\t\t\t\t\t\tint status = 0;\r\n\t\t\t\t\t\t\t\tif (\"2\".equals(record.get(\"status_type\"))) {\r\n\t\t\t\t\t\t\t\t\tstatus = 1;\r\n\t\t\t\t\t\t\t\t\tleaveDate = JSON.parseObject(record.get(\"out_field_json\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"actual_leave_date\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstatus = 0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatusInorout(status);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderNum(orderNum);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderName(orderName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLeaveDate(leaveDate);\r\n\t\t\t\t\t\t\t\t// 默认每人每月非开会事由补打卡次数最多为:3次\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setFillupMaxcounts(3);\r\n\t\t\t\t\t\t\t\t// 默认工作工作量确认初始值为:0(未确认)\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatus(Constants.STATUS);\r\n\t\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将数据添加到数据库 \");\r\n\t\t\t\t\t\t\t\tJSONObject wH = new JSONObject();\r\n\t\t\t\t\t\t\t\tJSONObject cR = new JSONObject();\r\n\t\t\t\t\t\t\t\tint co = 1;\r\n\t\t\t\t\t\t\t\tfor (Entry<String, Object> ent : workHour.entrySet()) {\r\n\t\t\t\t\t\t\t\t\tif (Integer.parseInt(ent.getKey()) > Integer.parseInt(leaveDate.substring(8, 10))) {\r\n\t\t\t\t\t\t\t\t\t\twH.put(ent.getKey(), 0);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\twH.put(ent.getKey(), ent.getValue());\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (Integer.parseInt(ent.getValue().toString()) >= 9) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 1.0;\r\n\t\t\t\t\t\t\t\t\t\t} else if (Integer.parseInt(ent.getValue().toString()) < 9\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& Integer.parseInt(ent.getValue().toString()) >= 4) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.5;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tactCheckDays1 += actCheckDay;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tco++;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tco = 1;\r\n\t\t\t\t\t\t\t\tfor (Entry<String, Object> ent : checkRecords.getJSONObject(\"A\").entrySet()) {\r\n\t\t\t\t\t\t\t\t\tif (Integer.parseInt(ent.getKey()) > Integer.parseInt(leaveDate.substring(8, 10))) {\r\n\t\t\t\t\t\t\t\t\t\tcR.put(ent.getKey(), \"0\");\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tcR.put(ent.getKey(), ent.getValue());\r\n\t\t\t\t\t\t\t\t\t\t// 保证上班打卡和下班打卡时间不能同时为空\r\n\t\t\t\t\t\t\t\t\t\tif (!\"0\".equals(ent.getValue())) {\r\n\t\t\t\t\t\t\t\t\t\t\tSimpleDateFormat sim = new SimpleDateFormat(\"HH:mm\");\r\n\t\t\t\t\t\t\t\t\t\t\tString[] split1 = ent.getValue().toString().split(\"\\n\");\r\n\t\t\t\t\t\t\t\t\t\t\tString checkIn1 = split1[0].trim();\r\n\t\t\t\t\t\t\t\t\t\t\tString checkOut1 = split1[split1.length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t\t\tif (!\"\".equals(checkIn) && !\"\".equals(checkOut)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcheckDays++;// 打卡天数\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong from = sim.parse(checkIn1).getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong to = sim.parse(checkOut1).getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"9:00\").getTime()=3600000\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlaterDay++;// 迟到\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tearlyRetreat++;// 早退\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsingleCheck++;// 单边打卡天数\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tco++;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tallDayNotSca = (1 - (double) checkDays / workDay);\r\n\t\t\t\t\t\t\t\tearlyRetreatSca = ((double) earlyRetreat / workDay);\r\n\t\t\t\t\t\t\t\tlaterDaySca = ((double) laterDay / workDay);\r\n\t\t\t\t\t\t\t\tsingleCheckSca = ((double) singleCheck / workDay);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckDay(checkDays);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreat(earlyRetreat);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheck(singleCheck);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDay(laterDay);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAllDayNotSca(df.format(allDayNotSca));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreatSca(df.format(earlyRetreatSca));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDaySca(df.format(laterDaySca));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheckSca(df.format(singleCheckSca));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckDay(checkDays);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreat(earlyRetreat);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDay(laterDay);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheck(singleCheck);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setActCheckDay(actCheckDays1.toString());\r\n\t\t\t\t\t\t\t\tJSONObject jswH = new JSONObject();\r\n\t\t\t\t\t\t\t\tJSONObject jscR = new JSONObject();\r\n\t\t\t\t\t\t\t\tjswH.put(\"A\", wH);\r\n\t\t\t\t\t\t\t\tjscR.put(\"A\", cR);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setWorkHours(jswH.toString());\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckRecord(jscR.toString());\r\n\t\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将【转场前】数据添加到数据库 \");\r\n\t\t\t\t\t\t\t\tint m = service.insertstaffAttendance(hrStaffAttendance);\r\n\t\t\t\t\t\t\t\tif (m < 0) {\r\n\t\t\t\t\t\t\t\t\trenderError(\"数据添加到数据库:失败\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\trenderSuccess(\"数据成功添加到数据库 \");\r\n\t\t\t\t\t\t\t\t// 转场后\r\n\t\t\t\t\t\t\t\tDouble actCheckDaylatter = 0.0;\r\n\t\t\t\t\t\t\t\tDouble actCheckDaylatter1 = 0.0;\r\n\t\t\t\t\t\t\t\tint checkDayslatter = 0;\r\n\t\t\t\t\t\t\t\tint laterDaylatter = 0;\r\n\t\t\t\t\t\t\t\tint earlyRetreatlatter = 0;\r\n\t\t\t\t\t\t\t\tint singleChecklatter = 0;\r\n\t\t\t\t\t\t\t\tRecord recordlatter = service.getUserInInfo(checkInNum, arrayList.get(index + 1));\r\n\t\t\t\t\t\t\t\tif (recordlatter == null) {\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\tObject objectlatter = recordlatter.get(\"in_field_json\");\r\n\t\t\t\t\t\t\t\tJSONObject fromObjectlatter = JSON.parseObject(objectlatter.toString());\r\n\t\t\t\t\t\t\t\tString orderNumlatter = fromObjectlatter.getString(\"order_num\");\r\n\t\t\t\t\t\t\t\tString departmentlatter = fromObjectlatter.getJSONObject(\"department\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"department_name\");\r\n\t\t\t\t\t\t\t\tString supplierNamelatter = fromObjectlatter.getString(\"supplier_name\");\r\n\t\t\t\t\t\t\t\tRecord rec1 = service.getCBbySupplierName(supplierName);\r\n\t\t\t\t\t\t\t\tif (rec1 != null) {\r\n\t\t\t\t\t\t\t\t\tcreateBy = rec1.getStr(\"create_by\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tString personNamelatter = fromObjectlatter.getString(\"person_name\");\r\n\t\t\t\t\t\t\t\tString personNaturelatter = fromObjectlatter.getJSONObject(\"person_nature\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_nature_name\");\r\n\t\t\t\t\t\t\t\tString personLevellatter = fromObjectlatter.getJSONObject(\"person_level\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_level_key\");\r\n\t\t\t\t\t\t\t\tString personClasslatter = fromObjectlatter.getJSONObject(\"person_type\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_type_key\");\r\n\t\t\t\t\t\t\t\tString changePersonlatter = fromObjectlatter.getJSONObject(\"change_person\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"change_person_key\");\r\n\t\t\t\t\t\t\t\tString orderNamelatter = fromObjectlatter.getJSONObject(\"order_name\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"order_name_name\");\r\n\t\t\t\t\t\t\t\tString entryDatelatter = fromObjectlatter.getString(\"entry_date\");\r\n\t\t\t\t\t\t\t\tString leaveDatelatter = fromObjectlatter.getString(\"leave_date\");\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonLevel(personLevellatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonName(personNamelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonNature(personNaturelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSupplierName(supplierNamelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setDepartment(departmentlatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEntryDate(entryDatelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAttendanceDate(attendanceDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonClassKey(personClasslatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setChangePersonKey(changePersonlatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCreateBy(createBy);\r\n\t\t\t\t\t\t\t\thrStaffAttendance\r\n\t\t\t\t\t\t\t\t\t\t.setCreateTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()));\r\n\t\t\t\t\t\t\t\tint statuslatter = 0;\r\n\t\t\t\t\t\t\t\tif (\"2\".equals(recordlatter.get(\"status_type\"))) {\r\n\t\t\t\t\t\t\t\t\tstatuslatter = 1;\r\n\t\t\t\t\t\t\t\t\tleaveDatelatter = JSON.parseObject(recordlatter.get(\"out_field_json\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"actual_leave_date\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstatuslatter = 0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatusInorout(statuslatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderNum(orderNumlatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderName(orderNamelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLeaveDate(leaveDatelatter);\r\n\t\t\t\t\t\t\t\t// 默认每人每月非开会事由补打卡次数最多为:3次\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setFillupMaxcounts(3);\r\n\t\t\t\t\t\t\t\t// 默认工作工作量确认初始值为:0(未确认)\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatus(Constants.STATUS);\r\n\t\t\t\t\t\t\t\tJSONObject wHlatter = new JSONObject();\r\n\t\t\t\t\t\t\t\tJSONObject cRlatter = new JSONObject();\r\n\t\t\t\t\t\t\t\tint colatter = 1;\r\n\t\t\t\t\t\t\t\tfor (Entry<String, Object> entlatter : workHour.entrySet()) {\r\n\t\t\t\t\t\t\t\t\tif (Integer.parseInt(entlatter.getKey()) <= Integer\r\n\t\t\t\t\t\t\t\t\t\t\t.parseInt(entryDatelatter.substring(8, 10))) {\r\n\t\t\t\t\t\t\t\t\t\twHlatter.put(entlatter.getKey(), 0);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t\t\t\twHlatter.put(entlatter.getKey(), entlatter.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (Integer.parseInt(entlatter.getValue().toString()) >= 9) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDaylatter = 1.0;\r\n\t\t\t\t\t\t\t\t\t\t} else if (Integer.parseInt(entlatter.getValue().toString()) < 9\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& Integer.parseInt(entlatter.getValue().toString()) >= 4) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDaylatter = 0.5;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDaylatter = 0.0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tactCheckDaylatter1 += actCheckDaylatter;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tcolatter++;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcolatter = 1;\r\n\t\t\t\t\t\t\t\tfor (Entry<String, Object> entlatter : checkRecords.getJSONObject(\"A\").entrySet()) {\r\n\t\t\t\t\t\t\t\t\tif (Integer.parseInt(entlatter.getKey()) <= Integer\r\n\t\t\t\t\t\t\t\t\t\t\t.parseInt(entryDatelatter.substring(8, 10))) {\r\n\t\t\t\t\t\t\t\t\t\tcRlatter.put(entlatter.getKey(), \"0\");\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tcRlatter.put(entlatter.getKey(), entlatter.getValue());\r\n\r\n\t\t\t\t\t\t\t\t\t\t// 保证上班打卡和下班打卡时间不能同时为空,不能为0\r\n\t\t\t\t\t\t\t\t\t\tif (!\"0\".equals(entlatter.getValue())) {\r\n\t\t\t\t\t\t\t\t\t\t\tSimpleDateFormat si = new SimpleDateFormat(\"HH:mm\");\r\n\t\t\t\t\t\t\t\t\t\t\tString[] splitlatter = entlatter.getValue().toString().split(\"\\n\");\r\n\t\t\t\t\t\t\t\t\t\t\tString checkInlatter = splitlatter[0].trim();\r\n\t\t\t\t\t\t\t\t\t\t\tString checkOutlatter = splitlatter[splitlatter.length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t\t\tif (!\"\".equals(checkInlatter) && !\"\".equals(checkOutlatter)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcheckDayslatter++;// 打卡天数\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong from = si.parse(checkInlatter).getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong to = si.parse(checkOutlatter).getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"9:00\").getTime()=3600000\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlaterDaylatter++;// 迟到\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tearlyRetreatlatter++;// 早退\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsingleChecklatter++;// 单边打卡天数\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcolatter++;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tint workDaylatter = hrStaffAttendance.getWorkDay();\r\n\t\t\t\t\t\t\t\tDouble allDayNotScalatter = (1 - (double) checkDayslatter / workDaylatter);\r\n\t\t\t\t\t\t\t\tDouble earlyRetreatScalatter = ((double) earlyRetreatlatter / workDaylatter);\r\n\t\t\t\t\t\t\t\tDouble laterDayScalatter = ((double) laterDaylatter / workDaylatter);\r\n\t\t\t\t\t\t\t\tDouble singleCheckScalatter = ((double) singleChecklatter / workDaylatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAllDayNotSca(df.format(allDayNotScalatter));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreatSca(df.format(earlyRetreatScalatter));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDaySca(df.format(laterDayScalatter));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheckSca(df.format(singleCheckScalatter));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckDay(checkDayslatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreat(earlyRetreatlatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDay(laterDaylatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheck(singleChecklatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setActCheckDay(actCheckDaylatter1.toString());\r\n\t\t\t\t\t\t\t\tJSONObject jswHlatter = new JSONObject();\r\n\t\t\t\t\t\t\t\tJSONObject jscRlatter = new JSONObject();\r\n\t\t\t\t\t\t\t\tjswHlatter.put(\"A\", wHlatter);\r\n\t\t\t\t\t\t\t\tjscRlatter.put(\"A\", cRlatter);\r\n\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setWorkHours(jswHlatter.toString());\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckRecord(jscRlatter.toString());\r\n\t\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将 【转场后】 数据添加到数据库 \");\r\n\t\t\t\t\t\t\t\tint mlatter = service.insertstaffAttendance(hrStaffAttendance);\r\n\t\t\t\t\t\t\t\tif (mlatter < 0) {\r\n\t\t\t\t\t\t\t\t\trenderError(\"数据添加到数据库:失败\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\trenderSuccess(\"数据成功添加到数据库 \");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\texport++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (export == 0) {\r\n\t\t\t\t\t\trenderError(\"该表中人员均在入场表里找不到相关信息 \");\r\n\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 该表中人员均在入场表里找不到 相关信息\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\trenderError(\"数据导入失败\");\r\n\t\t\t\t\tlogger.error(\"Exception: \", e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}", "public void parsingExcel() {\n theresFile = new File(pathTo).exists();\n if (theresFile) {\n try {\n FileInputStream myxls = new FileInputStream(pathTo);\n Workbook workbook = WorkbookFactory.create(myxls);\n //getting the sheet at index zero\n Sheet sheet = workbook.getSheetAt(0);\n int lastRow = sheet.getLastRowNum();\n System.out.println(\"currentID: \" + currentID);\n Row row2 = sheet.createRow(lastRow + 1);\n Data data = new Data(currentID++, jTextField1.getText(), jTextField2.getText(),\n jTextFieldModel.getText(), jTextFieldSerialN.getText(),\n Integer.parseInt(jTextFieldComments.getText()), jTextAreaDescription.getText());\n\n for (int i = 0; i < 7; i++) {\n Cell cell4 = row2.createCell(i);\n switch (i) {\n case 0:\n cell4.setCellValue(data.getID());\n break;\n case 1:\n cell4.setCellValue((String) data.getName());\n break;\n case 2:\n cell4.setCellValue((String) data.getDevice());\n break;\n case 3:\n cell4.setCellValue((String) data.getDeviceModel());\n break;\n case 4:\n cell4.setCellValue((String) data.getSerialNumber());\n break;\n case 5:\n cell4.setCellValue((int) data.getOptional());\n break;\n case 6:\n cell4.setCellValue((String) data.getDecription());\n break;\n }\n\n }\n FileOutputStream outputStream = new FileOutputStream(pathTo);\n workbook.write(outputStream);\n workbook.close();\n } catch (IOException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n } catch (EncryptedDocumentException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n if (jTextFieldComments.getText().equals(\"\") || jTextFieldComments.getText().equals(null)) {\n JOptionPane.showMessageDialog(null, \"Morate uneti količinu\");\n } else {\n try {\n Data data = new Data(1, jTextField1.getText(), jTextField2.getText(),\n jTextFieldModel.getText(), jTextFieldSerialN.getText(),\n Integer.parseInt(jTextFieldComments.getText()), jTextAreaDescription.getText());\n writtingExcelFile(makingExcelWorkbook(data));\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n\n// try {\n// FileInputStream myxls = new FileInputStream(pathTo);\n// HSSFWorkbook studentsSheet = new HSSFWorkbook(myxls);\n// HSSFSheet worksheet = studentsSheet.getSheetAt(0);\n// int lastRow = worksheet.getLastRowNum();\n// System.out.println(lastRow);\n// Row row = worksheet.createRow(++lastRow);\n// row.createCell(1).setCellValue(\"Dr.Hola\");\n// myxls.close();\n// FileOutputStream output_file =new FileOutputStream(new File(\"poi-testt.xls\")); \n// //write changes\n// studentsSheet.write(output_file);\n// output_file.close();\n// System.out.println(\" is successfully written\");\n// } catch (Exception e) {\n// }\n }", "@RequestMapping(\"/userExcelExport.action\")\r\n @Secured(\"ROLE_ADMIN\")\r\n public void export(HttpServletResponse response) throws IOException {\n \r\n List<User> users = userService.findAll();\r\n\r\n response.setContentType(\"application/vnd.ms-excel\");\r\n response.setHeader(\"extension\", \"xls\");\r\n\r\n OutputStream out = response.getOutputStream();\r\n\r\n Workbook workbook = new HSSFWorkbook();\r\n CreationHelper createHelper = workbook.getCreationHelper();\r\n\r\n CellStyle headerStyle = workbook.createCellStyle();\r\n Font headerFont = workbook.createFont();\r\n headerFont.setFontHeightInPoints((short)10);\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n headerStyle.setFont(headerFont);\r\n\r\n Sheet sheet = workbook.createSheet();\r\n\r\n sheet.setColumnWidth(0, 20 * 256);\r\n sheet.setColumnWidth(1, 20 * 256);\r\n sheet.setColumnWidth(2, 20 * 256);\r\n\r\n Row row = sheet.createRow(0);\r\n\r\n Cell c = row.createCell(0);\r\n c.setCellStyle(headerStyle);\r\n c.setCellValue(createHelper.createRichTextString(\"Username\"));\r\n\r\n c = row.createCell(1);\r\n c.setCellStyle(headerStyle);\r\n c.setCellValue(createHelper.createRichTextString(\"First Name\"));\r\n\r\n c = row.createCell(2);\r\n c.setCellStyle(headerStyle);\r\n c.setCellValue(createHelper.createRichTextString(\"Last Name\"));\r\n\r\n int rowNo = 1;\r\n for (User user : users) {\r\n row = sheet.createRow(rowNo);\r\n\r\n c = row.createCell(0);\r\n c.setCellValue(createHelper.createRichTextString(user.getUserName()));\r\n\r\n c = row.createCell(1);\r\n c.setCellValue(createHelper.createRichTextString(user.getFirstName()));\r\n\r\n c = row.createCell(2);\r\n c.setCellValue(createHelper.createRichTextString(user.getName()));\r\n\r\n rowNo++;\r\n }\r\n\r\n workbook.write(out);\r\n\r\n out.close();\r\n\r\n }", "private void createWinnerScheduleFile() {\n try {\n File scheduleFile = new File(filePath, \"winners.txt\");\n\n OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(scheduleFile), StandardCharsets.UTF_8);\n osw.write(\"WINNERS:\\n\" + winnerSchedule);\n osw.close();\n\n System.out.println(\"winners.txt successfully created.\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void xsetSchedule(org.apache.xmlbeans.XmlString schedule);", "public static void saveIntoExcel(final String fileName, final String sheetName,\n\t\t\tfinal ArrayList<ArrayList<String>> data) {\n\t\ttry {\n\t\t\tfinal HSSFWorkbook wb = new HSSFWorkbook();\n\t\t\tfinal HSSFSheet sheet = wb.createSheet(sheetName);\n\n\t\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\t\tfinal HSSFRow row = sheet.createRow(i);\n\n\t\t\t\tfinal ArrayList<String> columnData = data.get(i);\n\t\t\t\tfor (int j = 0; j < columnData.size(); j++) {\n\t\t\t\t\tfinal Cell cell = row.createCell(j);\n\t\t\t\t\tcell.setCellValue(columnData.get(j));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal FileOutputStream out = new FileOutputStream(new File(fileName));\n\t\t\twb.write(out);\n\t\t\tout.close();\n\n\t\t} catch (final FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (final IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void saveFile(Sheet sheet) throws IOException {\r\n File newFile = new File(\"evidence.ods\");\r\n sheet.getSpreadSheet().saveAs(newFile);\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static void generarXlsx(JRDataSource dataSourSet) throws JRException {\n\t\tJasperPrint jasperPrint = JasperFillManager.fillReport(GeneradorExcel.class.getResourceAsStream(\"/Poblacion.jasper\"), new HashMap<String, Object>() , dataSourSet);\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tExporter exporter = new JRXlsxExporter();\n\t\texporter.setExporterInput(new SimpleExporterInput(jasperPrint));\n\t\tFile exportReportFile = new File(\"C:\\\\Temps\\\\ReporteJsonSOACMC.xlsx\");\n\t\texporter.setExporterOutput(new SimpleOutputStreamExporterOutput(exportReportFile));\n\t\texporter.exportReport();\n\t}", "public static void main(String[] args) throws IOException {\n\t\t \n\t\tFileOutputStream fileOut1 = new FileOutputStream(\"D:\\\\Test9.xls\");\n\t\tWorkbook wb1 = new XSSFWorkbook();\t\t\n\t\t\n\t\tSheet s2=wb1.createSheet(\"Abi\");\n\t\tSystem.out.println(\"File created\");\n\t\tRow r1=s2.createRow(0);\n\t\tCell c1 = r1.createCell(0);\n\t\tc1.setCellValue(\"Java\");\n\t\twb1.write(fileOut1);\n\t\tSystem.out.println(\"Dhandapani Branch\");\n\t\t}" ]
[ "0.66716737", "0.6569554", "0.63727504", "0.63618684", "0.63405466", "0.61958116", "0.61958057", "0.60718656", "0.6034325", "0.5964675", "0.59101284", "0.5894949", "0.5892548", "0.5884467", "0.58587706", "0.58571124", "0.58560544", "0.5837748", "0.57900435", "0.5753126", "0.57256097", "0.569195", "0.5674898", "0.56735", "0.5630734", "0.5609785", "0.55975944", "0.5597282", "0.5584763", "0.5583658", "0.5583528", "0.5579881", "0.5571373", "0.5561585", "0.5555849", "0.5554536", "0.55426145", "0.55391395", "0.5537629", "0.55370504", "0.55156523", "0.55156183", "0.5513909", "0.54784393", "0.5476601", "0.5471232", "0.54672754", "0.5466343", "0.5462986", "0.54427826", "0.5440672", "0.5440058", "0.54362553", "0.54339546", "0.5425235", "0.54206294", "0.5419354", "0.5415176", "0.54100347", "0.5409668", "0.5399933", "0.5395023", "0.538937", "0.5383231", "0.5381455", "0.53664833", "0.53648555", "0.5362046", "0.5361131", "0.5355853", "0.5334376", "0.5331055", "0.532947", "0.5315694", "0.53144985", "0.5302209", "0.52956533", "0.5295224", "0.528043", "0.5277586", "0.52768445", "0.52767605", "0.5273425", "0.5273319", "0.52712697", "0.52670693", "0.526381", "0.5258226", "0.524469", "0.5239119", "0.52365077", "0.5235473", "0.523147", "0.5223497", "0.52217346", "0.5219993", "0.52149713", "0.52084506", "0.5196152", "0.5193164" ]
0.67722297
0
editASLTVSdatetime.setText(date_time + (" "+hourOfDay + ":" + minute));
@Override public void onTimeSet(TimePicker view, int hourOfDay, int minute) { editASLTStime.setText((((hourOfDay < 10) ? "0" + hourOfDay : hourOfDay) + ":" + ((minute < 10) ? "0" + minute : minute) + ":00")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n DateEdit.setText(DateEdit.getText() + \" -\" + hourOfDay + \":\" + minute);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n et_time.setText(et_time.getText() + \"\" + hourOfDay + \":\" + minute);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n txtview_time_result.setText(\"Time : \"+hourOfDay+\":\"+minute);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\t\t\t\t\t\t\t\tcalendar.set(Calendar.HOUR_OF_DAY,hourOfDay);\n\t\t\t\t\t\t\t\tcalendar.set(Calendar.MINUTE,minute);\n\t\t\t\t\t\t\t\tcalendar.set(Calendar.SECOND,0);\n\t\t\t\t\t\t\t\tdate=new SimpleDateFormat(\"yyyy/MM/dd hh:mm\").format(calendar.getTimeInMillis());\n\t\t\t\t\t\t\t\ttv_tiem.setText(date);\n\t\t\t\t\t\t\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }", "@Override\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n Toast.makeText(getApplicationContext(), hourOfDay + \" \" + minute, Toast.LENGTH_SHORT).show();\n time_text.setText(hourOfDay + \" : \" + minute);// set the current time in text view\n\n time= time_text.getText().toString();\n\n\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }", "@Override\r\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n selected_hour = hourOfDay;\r\n selected_minute = minute;\r\n if (hourOfDay>=12){\r\n period=\" PM\";\r\n }\r\n hourOfDay%=12;\r\n if(hourOfDay==0)hourOfDay=12;\r\n s= String.format(\"%02d:%02d %s\", hourOfDay, minute, period);\r\n SpannableString ss1= new SpannableString(s);\r\n ss1.setSpan(new RelativeSizeSpan(3f), 0,5, 0); // set size\r\n tv7.setText(ss1);\r\n //tv7.setText(String.format(\"%02d:%02d\", hourOfDay, minute));\r\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(0, 0, 0, hourOfDay, minute, 0);\n Date date = calendar.getTime();\n SimpleDateFormat sdf = new SimpleDateFormat(\"hh.mm aa\", Locale.getDefault());\n\n mBinding.time.setText(sdf.format(date));\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }", "@Override\n public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute, int second) {\n String time = Integer.toString(hourOfDay) + \"-\" + Integer.toString(minute);\n txtTime.setText(time);\n\n //TODO why get wrong time?\n calendar.set(Calendar.HOUR, hourOfDay);\n calendar.set(Calendar.MINUTE, minute);\n\n }", "public void updateText() {\n\n dateText = dateFormat.format(c.getTime());\n timeText = timeFormat.format(c.getTime());\n dateEt.setText(dateText + \" \"+ timeText);\n}", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }", "@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddRDV.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n editTextHeur.setText(String.format(\"%02d\",selectedHour) + \":\" + String.format(\"%02d\" ,selectedMinute)+\":\"+\"00\");\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select time of your appointment\");\n mTimePicker.show();\n\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n pickupTime.setText(hourOfDay + \":\" + minute);\n// Log.e(TAG,\"Time set: \" + mHour + \",\" + mMinute + \",\");\n }", "@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }", "@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }", "@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n hourN = hourOfDay;\n minuteN = minute;\n\n hourFinal = String.valueOf(hourOfDay);\n minuteFinal = String.valueOf(minute);\n\n if (minuteFinal.length() == 1) {\n minuteFinal = \"0\" + minuteFinal;\n }\n if (hourFinal.length() == 1) {\n hourFinal = \"0\" + hourFinal;\n }\n\n timeFinal = hourFinal + \":\" + minuteFinal;\n btn_dueTime.setText(timeFinal);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n Toast.makeText(Settings.this, \"\"+hourOfDay + \":\" + minute, Toast.LENGTH_SHORT).show();\n hour = hourOfDay;\n minutes = minute;\n switch(v.getId()){\n case R.id.bMorning:\n ed.putInt(\"morningHour\",hour);\n ed.putInt(\"morningMinute\", minutes);\n ed.commit();\n morning.setText(hour + \":\" + minutes);\n break;\n case R.id.bAfternoon:\n ed.putInt(\"afternoonHour\",hour);\n ed.putInt(\"afternoonMinute\", minutes);\n ed.commit();\n afternoon.setText(hour + \":\" + minutes);\n break;\n case R.id.bNight:\n ed.putInt(\"nightHour\",hour);\n ed.putInt(\"nightMinute\", minutes);\n ed.commit();\n night.setText(hour + \":\" + minutes);\n break;\n }\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int hourFinal = hourOfDay;\n\n String format;\n String sHour;\n if(hourFinal >12)\n {\n hourFinal -=12;\n format = \" PM\";\n }else if(hourFinal ==0)\n {\n hourFinal = 12;\n format = \" AM\";\n }else if(hourFinal ==12)\n format = \" PM\";\n else\n format = \" AM\";\n\n sHour = String.valueOf(hourFinal);\n\n if(hourFinal <10)\n sHour = \"0\"+String.valueOf(hourFinal);\n\n if(minute<10)\n fTime.setText(sHour+\" : 0\"+String.valueOf(minute)+format);\n else\n fTime.setText(sHour+\" : \"+String.valueOf(minute)+format);\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }", "@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }" ]
[ "0.77118295", "0.76579964", "0.7650999", "0.7640131", "0.76337695", "0.76007795", "0.7587325", "0.7587146", "0.75779736", "0.75735104", "0.7566715", "0.75430155", "0.7537147", "0.753094", "0.7528864", "0.75263935", "0.7526182", "0.75223035", "0.7519056", "0.75038016", "0.7502006", "0.75011593", "0.7500831", "0.74948764", "0.7494117", "0.74937457", "0.74918604", "0.7488375", "0.74860543", "0.7484863", "0.7483207", "0.74779755", "0.7477714", "0.74737954", "0.7471624", "0.7471309", "0.74680287", "0.746697", "0.7464038", "0.7463747", "0.74586713", "0.74586225", "0.745806", "0.7450738", "0.7447063", "0.74469215", "0.74448884", "0.7436145", "0.7433569", "0.74205613", "0.74197984", "0.7418266", "0.7412209", "0.740889", "0.74058384", "0.73979115", "0.73964286", "0.73858553", "0.73731893", "0.73575383", "0.7356244", "0.7352548", "0.72664845", "0.7248872", "0.7245962", "0.7245781", "0.72257566", "0.72257566", "0.72257566", "0.7223366", "0.7222311", "0.72183585", "0.7217316", "0.7212751", "0.7211907", "0.7211804", "0.7211723", "0.721052", "0.7206813", "0.7205299", "0.7197039", "0.7193462", "0.718826", "0.7185109", "0.71805054", "0.71791965", "0.7175648", "0.7165921", "0.71658415", "0.7165261", "0.7164185", "0.716324", "0.7160464", "0.7158911", "0.71587235", "0.71582395", "0.7156996", "0.715524", "0.71512765", "0.7149345" ]
0.7799375
0
TODO Autogenerated method stub
@Override public int getCount() { return spiele.size(); }
{ "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 Object getItem(int position) { return spiele.get(position); }
{ "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 long getItemId(int position) { return position; }
{ "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
Creates new form TelaSelecionar
public TelaInicio() { initComponents(); //j[0] - Jogador 1 //j[1] - Jogador 2 j[0] = Jogador.getInstance(); j[1] = Jogador.getInstance2(); p[0] = Personagem.getInstance(); String nomeP1 = p[0].getNome(); p[0].GetPersonagem(nomeP1); Icon icon = new ImageIcon("../images/f3.png"); txtNomeJ1.setText(j[0].getNome()); txtApelidoJ1.setText(j[0].getApelido()); J2Nome.setText(j[1].getNome()); J2Apelido.setText(j[1].getApelido()); if(!jRPar.isSelected() && !jRImpar.isSelected()) btnComecar.setEnabled(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public SelecioneTipoImportacao() {\n initComponents();\n }", "public void crearModelo() {\r\n\t\tmodelo = new DefaultComboBoxModel<>();\r\n\t\tmodelo.addElement(\"Rojo\");\r\n\t\tmodelo.addElement(\"Verde\");\r\n\t\tmodelo.addElement(\"Azul\");\r\n\t\tmodelo.addElement(\"Morado\");\r\n\t}", "public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }", "public CrearProductos() {\n initComponents();\n }", "private void jBotonAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBotonAgregarActionPerformed\n // TODO add your handling code here:\n if (this.jnombre.getText().length()!=0){ // validar que jnombre no este vacio\n // otro comentario \n String nombre = this.jnombre.getText();\n boolean activo = this.jactivo.isSelected();\n int tipo = 0;\n if (activo==true) {\n tipo=1;\n }\n JOptionPane.showMessageDialog(rootPane, \"Comuna Ingresada\"); // agregar mensaje\n this.jnombre.setText(\"\");\n this.jactivo.isSelected(); // error falta marcar el select ()\n \n Conexion cn = new Conexion();\n cn.InsertarDatos(nombre,tipo);\n \n IniciarTabla();\n \n \n \n \n \n \n } else {\n \n \n JOptionPane.showMessageDialog(rootPane, \"Tiene que ingresar datos\"); // agregar mensaje \n \n \n \n }//GEN-LAST:event_jBotonAgregarActionPerformed\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public FormInserir() {\n initComponents();\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public TelaSecundaria() {\n initComponents();\n ArrayTexto();\n btpara.setVisible(false);\n btresposta.setVisible(false);\n }", "public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public Seleccion_Multiple_MultipleRespuesta() {\n initComponents();\n }", "public CrearPedidos() {\n initComponents();\n }", "public TelaCidadaoDescarte() {\n initComponents();\n }", "private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }", "public ConsultaEquipo() {\n initComponents();\n }", "public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "public abstract void addSelectorForm();", "public void iniciarUI()\n\t{\n\t\tDefaultTableModel model = new DefaultTableModel(columnas, 1);\n\t\tpasabordos = new JTable(model);\n\n\t\tvuelos = new JComboBox();\n\t\tllenarVuelos();\n\t\t\n\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\tif(v!=null)\n\t\t{\n\t\t\tllenarPasabordos(v.getId());\n\t\t}\n\n\t}", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public telaAddPedidoII() {\n initComponents();\n }", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "public TelaRegistroVendas() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabelMatricula = new javax.swing.JLabel();\n jTextFieldAtividadesMatricula = new javax.swing.JTextField();\n jLabelNome = new javax.swing.JLabel();\n jTextFieldAtividadesNome = new javax.swing.JTextField();\n jComboBoxAtividadesTipo = new javax.swing.JComboBox<>();\n jLabelData = new javax.swing.JLabel();\n jLabelTipo = new javax.swing.JLabel();\n jTextFieldAtividadesData = new javax.swing.JFormattedTextField();\n jLabelLocal = new javax.swing.JLabel();\n jTextFieldAtividadesLocal = new javax.swing.JTextField();\n jLabelDescricao = new javax.swing.JLabel();\n jButtonAtividadesInserir = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaAtividadesDescricao = new javax.swing.JTextArea();\n jButtonLimpar = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Inserir Atividades\");\n addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameActivated(evt);\n }\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameOpened(evt);\n }\n });\n\n jLabelMatricula.setText(\"Matrícula:*\");\n\n jLabelNome.setText(\"Nome:*\");\n\n jComboBoxAtividadesTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecione\", \"Lazer\", \"Trabalho\", \"Escola\", \"Faculdade\", \"Física\" }));\n jComboBoxAtividadesTipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxAtividadesTipoActionPerformed(evt);\n }\n });\n\n jLabelData.setText(\"Data:*\");\n\n jLabelTipo.setText(\"Tipo: *\");\n\n try {\n jTextFieldAtividadesData.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabelLocal.setText(\"Local:*\");\n\n jLabelDescricao.setText(\"Descrição:\");\n\n jButtonAtividadesInserir.setText(\"Inserir\");\n jButtonAtividadesInserir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAtividadesInserirActionPerformed(evt);\n }\n });\n\n jTextAreaAtividadesDescricao.setColumns(20);\n jTextAreaAtividadesDescricao.setRows(5);\n jScrollPane1.setViewportView(jTextAreaAtividadesDescricao);\n\n jButtonLimpar.setText(\"Limpar\");\n jButtonLimpar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonLimparActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelMatricula)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabelNome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesNome))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonAtividadesInserir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonLimpar))\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelTipo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelData)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelLocal)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldAtividadesNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNome))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelMatricula)\n .addComponent(jTextFieldAtividadesMatricula, 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(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelData)\n .addComponent(jLabelTipo)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelLocal)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAtividadesInserir)\n .addComponent(jButtonLimpar))\n .addGap(1, 1, 1))\n );\n\n pack();\n }", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "private void iniFormLectura()\r\n\t{\r\n\t\tboolean permisoNuevoEditar = this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_NUEVO_EDITAR);\r\n\t\tboolean permisoEliminar = this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_BORRAR);\r\n\t\t\r\n\t\tgridDetalle.setSelectionMode(SelectionMode.NONE);\r\n\t\tthis.importeConciliado.setVisible(false);\r\n\t\tthis.lblConciliado.setVisible(false);\r\n\t\tthis.horizontalImportes.setCaption(\"Importe\");\r\n\t\t\r\n\t\t/*Si tiene permisos de editar habilitamos el boton de \r\n\t\t * edicion*/\r\n\t\tif(permisoNuevoEditar){\r\n\t\t\t\r\n\t\t\tthis.btnEditar.setVisible(true);\r\n\t\t\tthis.conciliar.setVisible(false);\r\n\t\t\t//this.enableBotonesLectura();\r\n\t\t\t\r\n\t\t}else{ /*de lo contrario lo deshabilitamos*/\r\n\t\t\t\r\n\t\t\tthis.btnEditar.setVisible(false);\r\n\t\t\tthis.conciliar.setVisible(false);\r\n\t\t\t//this.disableBotonLectura();\r\n\t\t}\r\n\t\t\r\n\t\tif(permisoEliminar){\r\n\t\t\tthis.btnEliminar.setVisible(true);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthis.btnEliminar.setVisible(false);\r\n\t\t}\r\n\t\t\r\n\t\tthis.comboBancos.setEnabled(false);\r\n\t\tthis.comboCuentas.setEnabled(false);\r\n\t\tthis.nroDocum.setEnabled(false);\r\n\t\tthis.impTotMo.setEnabled(false);\r\n\t\tthis.fecDoc.setEnabled(false);\r\n\t\tthis.fecValor.setEnabled(false);\r\n\t\tthis.observaciones.setEnabled(false);\r\n\t\tthis.nroDocum.setVisible(true);\r\n\t\tthis.lblComprobante.setVisible(true);\r\n\t\t\r\n\t\t/*Seteamos la grilla con los formularios*/\r\n\t\tthis.container = \r\n\t\t\t\tnew BeanItemContainer<ConciliacionDetalleVO>(ConciliacionDetalleVO.class);\r\n\t\t\r\n\t\t/*No mostramos las validaciones*/\r\n\t\tthis.setearValidaciones(false);\r\n\t\t\r\n\t\t/*Dejamos todods los campos readonly*/\r\n\t\t//this.readOnlyFields(true);\r\n\t\t\r\n\t\tif(this.lstDetalle != null)\r\n\t\t{\r\n\t\t\tfor (ConciliacionDetalleVO detVO : this.lstDetalle) {\r\n\t\t\t\tcontainer.addBean(detVO);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//this.actualizarGrillaContainer(container);\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t}", "public pInsertar() {\n initComponents();\n }", "public CatProveedores() {\n initComponents();\n cargartabla();\n }", "public DetalleProducto() {\n initComponents();\n }", "public void onSelectionCreate(ActionEvent event) throws SQLException {\n //TODO think about creating league model class to get id easily\n if(chooseAgeGroupCreate.getValue() != null && chooseCityBoxCreate.getValue() != null){\n chooseLeagueBoxCreate.setDisable(false);\n chooseLeagueTeamBoxCreate.getItems().clear();\n chooseLeagueBoxCreate.getItems().clear();\n ObservableList<String> leagueList = DatabaseManager.getLeagues(user, chooseCityBoxCreate.getValue().toString(), chooseAgeGroupCreate.getValue());\n chooseLeagueBoxCreate.getSelectionModel().clearSelection();\n chooseLeagueBoxCreate .setButtonCell(new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty) ;\n if (empty || item == null) {\n setText(\"Choose League\");\n } else {\n setText(item);\n }\n }\n });\n if(leagueList.size() != 0){\n chooseLeagueBoxCreate.getItems().addAll(leagueList);\n }\n }\n }", "public Modello() {\r\n super();\r\n initComponents();\r\n setModalita(APPEND_QUERY);\r\n setFrameTable(tabModello);\r\n setNomeTabella(\"vmodello\");\r\n tMarcaDescrizione.setEnabled(false);\r\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void selecionarCliente() {\n int cod = tabCliente.getSelectionModel().getSelectedItem().getCodigo();\n cli = cli.buscar(cod);\n\n cxCPF.setText(cli.getCpf());\n cxNome.setText(cli.getNome());\n cxRua.setText(cli.getRua());\n cxNumero.setText(Integer.toString(cli.getNumero()));\n cxBairro.setText(cli.getBairro());\n cxComplemento.setText(cli.getComplemento());\n cxTelefone1.setText(cli.getTelefone1());\n cxTelefone2.setText(cli.getTelefone2());\n cxEmail.setText(cli.getEmail());\n btnSalvar.setText(\"Novo\");\n bloquear(false);\n }", "public VistaTrabaja() {\n initComponents();\n }", "private void initFormEditMode() {\n initSpinnerSelectionChamps();\n //encodage de la chaine de caracteres correspondant au nom du produit pour etre passé dans l'URL\n String urlCategorieName = null;\n try {\n urlCategorieName = URLEncoder.encode(this.nomCategorie, ENCODING);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n //preparation de l'URL\n String[] params = {urlCategorieName};\n final String url = WebService.buildUrlForRequest(Metier.DOMAIN, Metier.NOM_MODELE_CATEGORIES, WebService.ACTION_GET, params);\n\n //requete pour recuperer la categorie a editer (asynchrone)\n asyncHttpClient.get(getActivity(), url, new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n String response = null;\n try {\n response = new String(responseBody, ENCODING);\n JSONObject jsonObject = new JSONObject(response);\n //TODO PAUSE\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n Log.e(\"CATEGORIE_EDIT\", \"fail to connect: \" + url + \" \" + statusCode);\n }\n });\n }", "@Override\n\tpublic void selecciona() {\n\t\tClienteProxy bean = grid.getSelectionModel().getSelectedObject();\n\t\tif(bean!=null){\t\t\t\t\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(\"Devolpay\");\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\t\t\n\t\tuiHomePrestamo.getUIMantPrestamoImpl().setBeanCliente(bean);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\t\t\n\t\t}else{\n\t\t\t//Dialogs.alert(constants.alerta(), constants.seleccioneCliente(), null);\n\t\t\t//Window.alert(constants.seleccioneCliente());\n\t\t\tNotification not=new Notification(Notification.ALERT,constants.seleccioneCliente());\n\t\t\tnot.showPopup();\n\t\t}\n\t}", "private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }", "public VistaArticulosBajas() {\r\n\t\tsetTitle(\"Baja_Art\\u00EDculos\");\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 367, 208);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\t// Definir el Diálogo Confirmar Baja Artículo\r\n\t\tdlgConfBaja.setLayout(new FlowLayout());\r\n\t\tdlgConfBaja.add(lblConfBaja);\r\n\t\tdlgConfBaja.add(btnConfBajaSi);\r\n\t\tdlgConfBaja.add(btnConfBajaNo);\r\n\t\tdlgConfBaja.setSize(200, 150);\r\n\t\tdlgConfBaja.setLocationRelativeTo(null);\r\n\t\tdlgConfBaja.addWindowListener(this);\r\n\t\tbtnConfBajaSi.addActionListener(this);\r\n\t\tbtnConfBajaNo.addActionListener(this);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"Escoge un Art\\u00EDculo\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblNewLabel.setBounds(10, 23, 147, 23);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\r\n\t\tchcArticuloBajas = new Choice();\r\n\t\tchcArticuloBajas.setBounds(10, 46, 169, 20);\r\n\t\tcontentPane.add(chcArticuloBajas);\r\n\t\t// Mostrar los artículos en el choice chcArticuloBajas conectando con la BD\r\n\t\tResultSet articulos = null;\r\n\t\tConnection conArticulo = null;\r\n\t\tconArticulo = modelo.conectar();\r\n\t\tarticulos = modelo.consultaArticulos(conArticulo);\r\n\t\ttry {\r\n\t\t\tString id;\r\n\t\t\tString descripcion;\r\n\t\t\twhile(articulos.next()) {\r\n\t\t\t\tid = articulos.getInt(\"idArticulos\")+\"\";\r\n\t\t\t\tdescripcion = articulos.getString(\"descripcionArticulo\");\r\n\t\t\t\tchcArticuloBajas.add(id+\" - \"+descripcion);\r\n\t\t\t}\r\n\t\t\tmodelo.desconectar(conArticulo);\r\n\t\t}catch(SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Botón Volver. Acción --> vuelve al Menú Principal\r\n\t\tJButton btnVolverBajas = new JButton(\"VOLVER\");\r\n\t\tbtnVolverBajas.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVolverBajas.setBounds(252, 46, 89, 23);\r\n\t\tcontentPane.add(btnVolverBajas);\r\n\r\n\t\t// Botón Eliminar. Acción --> abre el Diálogo Confirmar_Baja \r\n\t\tJButton btnEliminarBajas = new JButton(\"ELIMINAR\");\r\n\t\tbtnEliminarBajas.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdlgConfBaja.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnEliminarBajas.setBounds(252, 126, 89, 23);\r\n\t\tcontentPane.add(btnEliminarBajas);\r\n\r\n\t}", "public ArticulosAdd() {\n initComponents();\n Sistema.lblNotificacion.setText(\"Ingreso Artítuclos\");\n this.setLocationRelativeTo(null);\n\n Date date = new Date();\n\n dtDesde.setDate(date);\n dtHasta.setDate(date);\n\n articulos.searchArticulo(cboArticulos, \"\", 0, 1000, 0);\n }", "public JIFrameAtividadesInserir() {\n initComponents();\n this.selecionaDadosCategoria(conn);\n }", "public FrmInsertar() {\n initComponents();\n }", "public telaCadastro() {\n initComponents();\n populaTabela();\n }", "public void verSeleccionarCaracterisiticasEscalaId()\r\n\t{\r\n\t\tseleccionarcaract = new SeleccionarCaracterisiticasEscalaId(this);\r\n\t\tseleccionarcaract.setVisible(true);\r\n\t}", "public VentanaPrincipal() {\n \n initComponents();\n DefaultComboBoxModel dcm = new DefaultComboBoxModel();\n for (LookAndFeelInfo lfi : UIManager.getInstalledLookAndFeels()){\n dcm.addElement(lfi.getName());\n }\n jComboBoxTema.setModel(dcm); \n\n String tema=UIManager.getLookAndFeel().getName(); //selecciono en el jComboBox el tema que tiene aplicado\n jComboBoxTema.setSelectedItem(tema); \n jLabelAplicado.setText(\"Tema Aplicado: \" + UIManager.getInstalledLookAndFeels()[jComboBoxTema.getSelectedIndex()].getClassName());\n\n }", "@FXML\n\tpublic void buttonCreateProductType(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtProductTypeName.getText();\n\t\tif (!name.equals(empty)) {\n\t\t\tProductType obj = new ProductType(txtProductTypeName.getText());\n\t\t\ttry {\n\t\t\t\tboolean found = restaurant.addProductType(obj, empleadoUsername); // Se añade a la lista de tipos de\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// producto DEL RESTAURANTE\n\t\t\t\tif (found == false) {\n\t\t\t\t\ttypeOptions.add(name);// Se añade a la lista de tipos de producto para ser mostrada en los combobox\n\t\t\t\t}\n\t\t\t\ttxtProductTypeName.setText(\"\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El tipo de producto a crear debe tener un nombre \");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\n\t\t}\n\t}", "public TelaContaUnica() {\n initComponents();\n }", "public Locar() {\n \n initComponents();\n \n \n comboCliente.addItem(\"\");\n comboVeiculo.addItem(\"\");\n \n for (int i=0; i < LocadoraDados.getClientes().size(); i++) { \n comboCliente.addItem(LocadoraDados.getClientes().get(i).getNome()+ \" | \" + String.valueOf(LocadoraDados.getClientes().get(i).getID())); \n \n }\n \n for (int i=0; i < LocadoraDados.getVeiculos().size(); i++) { \n comboVeiculo.addItem(LocadoraDados.getVeiculos().get(i).getDescricao()+ \" | \" + String.valueOf(LocadoraDados.getVeiculos().get(i).getCodigoAuto())); \n \n }\n telaVeiculos = new Veiculos(-1);\n telaVeiculos.setVisible(false);\n \n listarLocacoes = new ListarLocacoes();\n listarLocacoes.setVisible(false);\n \n \n \n \n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "public TelaListaOS() {\n initComponents();\n ConfigTelas ct = new ConfigTelas(this);\n ct.carregarConfig(this);\n \n this.jComboBoxOS.setVisible(false);\n }", "public CadastrarProduto() {\n initComponents();\n }", "public TelaEscolhaAssento() {\n initComponents();\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "public TelaBagunca() {\n initComponents();\n addCheckBox();\n jRadioButton1.setSelected(true);\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 etiquetaTitulo = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaCuentas = new javax.swing.JTable();\n etiquetaLeyenda = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n etiquetaCodigo = new javax.swing.JLabel();\n campoCodigo = new javax.swing.JTextField();\n etiquetaDescripcion = new javax.swing.JLabel();\n campoDescripcion = new javax.swing.JTextField();\n comboCuentaTitulo = new javax.swing.JComboBox<>();\n etiquetaCuentaTitulo = new javax.swing.JLabel();\n botonAceptar = new javax.swing.JButton();\n etiquetaNivel = new javax.swing.JLabel();\n campoNivel = new javax.swing.JTextField();\n etiquetaTitulo2 = new javax.swing.JLabel();\n botonVolver = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n etiquetaTitulo.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n etiquetaTitulo.setText(\"Crear una nueva Cuenta o Titulo\");\n\n tablaCuentas = new javax.swing.JTable() {\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tablaCuentas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"Descripcion\", \"Tipo\", \"Nro Cuenta\"\n }\n ));\n jScrollPane1.setViewportView(tablaCuentas);\n\n etiquetaLeyenda.setText(\"Seleccione bajo que titulo se crea la nueva cuenta o titulo\");\n\n etiquetaCodigo.setText(\"Codigo:\");\n\n etiquetaDescripcion.setText(\"Descripcion:\");\n\n comboCuentaTitulo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Titulo\", \"Cuenta\" }));\n\n etiquetaCuentaTitulo.setText(\"Cuenta o Titulo:\");\n\n botonAceptar.setText(\"Aceptar\");\n\n etiquetaNivel.setText(\"Nivel:\");\n\n campoNivel.setEnabled(false);\n\n etiquetaTitulo2.setText(\"Datos de la nueva Cuenta\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(botonAceptar)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaCodigo)\n .addComponent(etiquetaDescripcion)\n .addComponent(etiquetaCuentaTitulo))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addComponent(etiquetaNivel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(etiquetaTitulo2)))\n .addContainerGap(38, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(etiquetaTitulo2)\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigo))\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(etiquetaDescripcion)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(59, 59, 59)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCuentaTitulo)\n .addComponent(etiquetaNivel)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(61, 61, 61)\n .addComponent(botonAceptar)\n .addContainerGap(52, Short.MAX_VALUE))\n );\n\n botonVolver.setText(\"Volver\");\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 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaLeyenda)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addComponent(botonVolver))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(317, 317, 317)\n .addComponent(etiquetaTitulo)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(etiquetaTitulo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addComponent(etiquetaLeyenda)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 531, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonVolver)\n .addGap(67, 67, 67))))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public TelaCadasroProjeto() {\n initComponents();\n }", "public ConsultasRecibos() {\n initComponents();\n cargar_todos_recibos();//LLAMADA A MOSTRAR TODOS LOS RECIBOS\n jDateChooser1.setEnabled(false);//OPCION DE FECHA BLOQUEADA \n }", "public ConsultarVeiculo() {\n initComponents();\n }", "public vistaEjemplo() {\n initComponents();\n con=new Conexion();\n data = new Datas(con);\n usuario = new Usuario();\n jTApellido.setEnabled(false);\n jTMail.setEnabled(false);\n jTNombre.setEnabled(false);\n jTPassword.setEnabled(false);\n JdcFechaDeEntrada.setEnabled(false);\n jBPdf.setEnabled(false);\n }", "VentanaPrincipal(InterfazGestorFF principal, InterfazEsquema estructura) {\n initComponents();\n setTitle(BufferDeRegistro.titulo);\n this.principal=principal;\n this.estructura=estructura;\n cargar_campos(); \n cargar_menu_listados();\n \n botones=new javax.swing.JButton[]{\n jBAbrirSGFF,jBActualizarRegistro,jBAyuda,jBBorrarRegistro,\n jBComenzarConsulta,jBGuardarSGFF,jBGuardarSGFF,jBImportarSGFF,\n jBInsertarRegistro,jBIrAlHV,jBIrAlHijo,\n jBIrAlPV,jBIrAlPadre,jBNuevaFicha,jBRegistroAnterior,jBRegistroSiguiente,jBSSGFF,jBCaracteres, jBAccInv, jBListar\n };\n combos=new javax.swing.JComboBox[]{\n jCBArchivos, jCBHijos, jCBPadresV, jCBHijosV\n };\n abrir(false);//Pongo en orden la barra de herramientas\n \n }", "public CadastrarMarcasModelos() {\n initComponents();\n }", "public frmVerzamelingBeheer() {\n try {\n initComponents();\n \n lblId.setVisible(false);\n\n pnlEdit.setVisible(false);\n\n for (VerzamelingsType type : TypeService.GetAllTypes()) {\n cmbType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n cmbEditType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n }\n\n \n for (Categorie categorie : CategorieService.GetAllCategories()) {\n cmbCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n cmbEditCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n }\n \n //vertaling voor JOptionpane\n UIManager.put(\"OptionPane.cancelButtonText\", \"Annuleren\");\n UIManager.put(\"OptionPane.noButtonText\", \"Nee\");\n UIManager.put(\"OptionPane.okButtonText\", \"Oke\");\n UIManager.put(\"OptionPane.yesButtonText\", \"Ja\");\n \n this.setTitle(\"Verzamelingen beheren - Verzamelingenbeheer\");\n \n ShowEditItems(false);\n RefreshList();\n }\n catch (ExceptionInInitializerError ex)\n {\n JOptionPane.showMessageDialog(null, \"Er kan geen verbinding worden gemaakt met de database (\" + ex.getMessage() + \").\", \"Fout\", ERROR_MESSAGE);\n System.exit(1);\n }\n\n }", "private void srediFormu() {\n List<PoslovniPartner> lpp = new ArrayList<>();\n try {\n lpp = Kontroler.vratiInstancu().vratiPoslovnePartnere();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<NačinPlaćanja> lnp = new ArrayList<>();\n try {\n lnp = Kontroler.vratiInstancu().vratiNačinePlaćanja();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<Proizvod> lp = new ArrayList<>();\n try {\n lp = Kontroler.vratiInstancu().vratiProizvode();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n jcbPartner.setModel(new DefaultComboBoxModel(lpp.toArray()));\n jcbNačinPlaćanja.setModel(new DefaultComboBoxModel(lnp.toArray()));\n\n Faktura izabranaFaktura = (Faktura) Util.vratiInstancu().vrati(\"izabrana_faktura\");\n if (izabranaFaktura != null) {\n jcbPartner.setSelectedItem(izabranaFaktura.getPoslovniPartner());\n jcbNačinPlaćanja.setSelectedItem(izabranaFaktura.getNačinPlaćanja());\n jtxtNapomena.setText(izabranaFaktura.getNapomena());\n if (izabranaFaktura.getDatumFakturisanja() != null) {\n jtxtDatumFakturisanja.setText(df.format(izabranaFaktura.getDatumFakturisanja()));\n }\n if (izabranaFaktura.getRok() != null) {\n jtxtRok.setText(df.format(izabranaFaktura.getRok()));\n }\n jlbKompletirana.setText(izabranaFaktura.getKompletirana() ? \"(KOMPLETIRANA)\" : \"(DRAFT)\");\n jlblBrojFakture1.setText(izabranaFaktura.getBrojFakture());\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel((izabranaFaktura)));\n Double netoIznos = 0d;\n for (StavkaFakture stavkaFakture : izabranaFaktura.getStavke()) {\n netoIznos += stavkaFakture.getJediničnaCena() * stavkaFakture.getKoličina();\n }\n jtxtNetoVrednost.setText(String.valueOf(Math.round(netoIznos * 1000.0) / 1000.0));\n jbtnKreirajNovuFakturu.setVisible(false);\n jbtnSačuvajFakturu.setText(\"Izmeni fakturu\");\n if (izabranaFaktura.getKompletirana()) {\n enableAllComponents(false);\n jtxtUkupnaVrednost.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanIznos() * 1000) / 1000));\n jtxtPDV.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanPorez() * 1000) / 1000));\n jtxtFakturisao.setText(slavko.baze2.procesnabavke.gui.util.Util.vratiInstancu().vrati(\"prijavljeni_korisnik\").toString());\n }\n Util.vratiInstancu().obriši(\"izabrana_faktura\");\n\n } else {\n jlblBrojFakture1.setText(\"\");\n jlbKompletirana.setVisible(false);\n jcbPartner.setSelectedItem(null);\n jcbNačinPlaćanja.setSelectedItem(null);\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel(new Faktura()));\n jtxtNetoVrednost.setText(\"0.0\");\n enableAllComponents(false);\n }\n\n }", "public ServerskaForma() {\n initComponents();\n \n \n \n }", "public TelaPesquisa() {\n initComponents();\n }", "public NewConsultasS() {\n initComponents();\n limpiar();\n bloquear();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public ViewProveedores() {\n initComponents();\n }", "public TELA_DE_CARREGAMENTO() {\n initComponents();\n }", "public InstrutorCadastrarTela() {\n initComponents();\n //Limite de caracateres e apenas caracteres permitidos\n jTextFieldNome.setDocument(new classesBasicas.CaracterLimitePermitido(60));\n //Limitando os caracteres para (N), independende de ser numero ou letras\n jTextFieldRg.setDocument(new classesBasicas.JTextFieldLimite(20)); \n }", "public jHistorialSeleccionarVoluntario() {\n initComponents();\n \n \n }", "private void btn_cadActionPerformed(java.awt.event.ActionEvent evt) {\n \n CDs_dao c = new CDs_dao();\n TabelaCDsBean p = new TabelaCDsBean();\n \n TabelaGeneroBean ge = (TabelaGeneroBean) g_box.getSelectedItem();\n TabelaArtistaBean au = (TabelaArtistaBean) g_box2.getSelectedItem();\n\n //p.setId(Integer.parseInt(id_txt.getText()));\n p.setTitulo(nm_txt.getText());\n p.setPreco(Double.parseDouble(vr_txt.getText()));\n p.setGenero(ge);\n p.setArtista(au);\n c.create(p);\n\n nm_txt.setText(\"\");\n //isqn_txt.setText(\"\");\n vr_txt.setText(\"\");\n cd_txt.setText(\"\");\n g_box.setSelectedIndex(0);\n g_box2.setSelectedIndex(0);\n \n }", "public FormEmpresa() {\n initComponents();\n this.getComboBox();\n this.buscaDadosEmpresa();\n \n }", "public TelaValores() {\n initComponents();\n }", "private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }", "private void btnEntrarActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n Alumno.Aula = jcbAula.getSelectedItem().toString();\n Alumno.Materia = \"\";\n Info_Computo a1 = new Info_Computo();\n a1.setVisible(true);\n }", "public ingresarLecturas() {\n initComponents();\n }", "public frmCadastrarProduto() {\n initComponents();\n\n this.cmbCategoria.setEnabled(false);\n this.cmbFornecedor.setEnabled(false);\n this.txtNome.setEnabled(false);\n this.txtDescricao.setEnabled(false);\n this.txtEstoque.setEnabled(false);\n this.txtId.setEnabled(false);\n this.txtPreco.setEnabled(false);\n this.txtPrecoCusto.setEnabled(false);\n this.txtCodBarras.setEnabled(false);\n\n }", "public frm_tutor_subida_prueba() {\n }", "public Form_soal() {\n initComponents();\n tampil_soal();\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 jLabel7 = new javax.swing.JLabel();\n lblTit = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n sexo = new javax.swing.JComboBox<String>();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n txtNombre = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n TxtSue = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtFun = new javax.swing.JTextArea();\n btnGuardar = new javax.swing.JButton();\n lblId = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"L\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 130, 20, -1));\n\n lblTit.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n lblTit.setText(\"REGISTRO CARGO\");\n jPanel1.add(lblTit, new org.netbeans.lib.awtextra.AbsoluteConstraints(128, 4, -1, -1));\n\n jLabel2.setText(\"Tipo Cargo\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 62, -1, -1));\n\n sexo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sexoActionPerformed(evt);\n }\n });\n jPanel1.add(sexo, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 59, 231, -1));\n\n jLabel1.setText(\"Nombre Cargo\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 93, -1, -1));\n\n jLabel3.setText(\"Sueldo Cargo\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 131, -1, -1));\n\n txtNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNombreActionPerformed(evt);\n }\n });\n txtNombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtNombreKeyTyped(evt);\n }\n });\n jPanel1.add(txtNombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 90, 231, -1));\n\n jLabel4.setText(\"Funciones\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 166, -1, -1));\n\n TxtSue.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n TxtSue.setMinimumSize(new java.awt.Dimension(1, 20));\n TxtSue.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TxtSueKeyTyped(evt);\n }\n });\n jPanel1.add(TxtSue, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 128, 231, -1));\n\n txtFun.setColumns(20);\n txtFun.setRows(5);\n txtFun.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtFunKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtFunKeyTyped(evt);\n }\n });\n jScrollPane1.setViewportView(txtFun);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 166, 231, -1));\n\n btnGuardar.setText(\"GUARDAR\");\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n jPanel1.add(btnGuardar, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 290, 100, 34));\n\n lblId.setText(\"1\");\n jPanel1.add(lblId, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 34, 81, -1));\n\n jLabel5.setText(\"Id\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 34, -1, -1));\n\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/fondo2.jpg\"))); // NOI18N\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 430, 340));\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {\n Seleccion_Insertar insert = new Seleccion_Insertar();\n insert.setVisible(true);\n this.setVisible(false);\n }", "public CadastrarCategoria() {\n initComponents();\n }", "public registro() {\n initComponents();\n }", "public void confirmerButtonHandler(ActionEvent actionEvent) throws Exception {\n if(tableOffres.getSelectionModel().getSelectedItem()!=null){\n Offre selectedOffre=new Offre();\n selectedOffre=(Offre)tableOffres.getSelectionModel().getSelectedItem();\n System.out.println(selectedOffre);\n if(selectedOffre.getDisponible().equals(\"non\")){\n showAlert(\"L'offre doit etre disponible !\");\n }else {\n //Now we navigate to the form page\n\n //Getting a reference to the primary stage\n\n Stage primaryStage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n System.out.println(primaryStage);\n //Navigating by switching the scene\n //Loading the scene\n FXMLLoader loader = new FXMLLoader(\n getClass().getResource(\n \"FormScene.fxml\"\n ));\n //Hiding the stage temporarily to configurate the scene\n primaryStage.hide();\n primaryStage.setScene(new Scene(loader.load(), 800, 600));\n FormController formController = loader.<FormController>getController();\n System.out.println(formController);\n formController.initData(selectedOffre);\n // Here where the scene changes and the form screen shows\n primaryStage.show();\n }\n }else{\n showAlert(\"Offre non sélectionnée\");\n }\n }", "public Sistema() {\n initComponents();\n //Codigo de Configuracion\n _radio = new ArrayList();\n _radio.add(RadioButtonDollar);\n _radio.add(RadioButtonSol);\n _radio.add(RadioButtonPeso);\n \n }", "private void btnAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarActionPerformed\n \n camino=null;\n \n int status = fileChooser.showOpenDialog (null);\n if (status == JFileChooser.APPROVE_OPTION){\n File selectedFile = fileChooser.getSelectedFile();\n camino = selectedFile.getAbsolutePath();\n }\n else{ \n if (status == JFileChooser.CANCEL_OPTION){\n System.out.println(\"CANCELAR\");\n }\n \n }\n try {\n cancion.agregarCancion(camino);\n } catch (IOException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedTagException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InvalidDataException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n }\n String[] test = cancion.mostrarCancion(i);\n lista.addElement(\" \"+test[0]);\n libCancion.setModel(lista);\n i++;\n }", "public void iniciar_combo() {\n try {\n Connection cn = DriverManager.getConnection(mdi_Principal.BD, mdi_Principal.Usuario, mdi_Principal.Contraseña);\n PreparedStatement psttt = cn.prepareStatement(\"select nombre from proveedor \");\n ResultSet rss = psttt.executeQuery();\n\n cbox_proveedor.addItem(\"Seleccione una opción\");\n while (rss.next()) {\n cbox_proveedor.addItem(rss.getString(\"nombre\"));\n }\n \n PreparedStatement pstt = cn.prepareStatement(\"select nombre from sucursal \");\n ResultSet rs = pstt.executeQuery();\n\n \n cbox_sucursal.addItem(\"Seleccione una opción\");\n while (rs.next()) {\n cbox_sucursal.addItem(rs.getString(\"nombre\"));\n }\n \n PreparedStatement pstttt = cn.prepareStatement(\"select id_compraE from compra_encabezado \");\n ResultSet rsss = pstttt.executeQuery();\n\n \n cbox_compra.addItem(\"Seleccione una opción\");\n while (rsss.next()) {\n cbox_compra.addItem(rsss.getString(\"id_compraE\"));\n }\n \n PreparedStatement ps = cn.prepareStatement(\"select nombre_moneda from moneda \");\n ResultSet r = ps.executeQuery();\n\n \n cbox_moneda.addItem(\"Seleccione una opción\");\n while (r.next()) {\n cbox_moneda.addItem(r.getString(\"nombre_moneda\"));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "public InformeCobranzasView() {\n super();\n setLocationRelativeTo(this);\n initComponents();\n estadoInicial();\n\n estilosFecha();\n Utilidad.soloNumeros(txHasta);\n Utilidad.soloNumeros(txDesde);\n \n cbOpcion.setSelectedIndex(0);\n\n }", "private FenetreCreation() {\n\t\tsuper(\"Machine de Turing - Creation\");\n\t\tsetSize(1000, 450);\n\t\tsetLocation(100, 100);\n\t\tsetResizable(false);\n\t\t//Pas possible de fermer par le bouton fermer de fenetre\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\t\n\t\t//Initialisation de toutes les composantes\n\t\tlabelEtat = new JLabel(\"Etats :\");\n\t\tlabelSym = new JLabel(\"Symboles :\");\n\t\tlabelConsigne = new JLabel(\"<html>Le premier etat ajoute sera l'etat initial.<br>\"\n\t\t\t\t+ \"# signifie des cases vides.<br>\"\n\t\t\t\t+ \"Pas d'espace pour des symboles et etats.</html>\");\n\n\t\tok = new JButton(\"OK\");\n\t\tannuler = new JButton(\"Annuler\");\n\t\tajoutEtat = new JButton(\"+\");\n\t\tsuppEtat = new JButton(\"-\");\n\t\tajoutSym = new JButton(\"+\");\n\t\tsuppSym = new JButton(\"-\");\n\n\t\ttextEtat = new JTextField();\n\t\ttextSym = new JTextField();\n\n\t\tmodelEtat = new DefaultListModel<String>();\n\t\tetats = new JList<String>(modelEtat);\n\t\tetats.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tetats.setVisibleRowCount(10);\n\t\tscrollEtat = new JScrollPane(etats);\n\n\t\tmodelSym = new DefaultListModel<String>();\n\t\tsymboles = new JList<String>(modelSym);\n\t\tsymboles.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tsymboles.setVisibleRowCount(10);\n\t\tscrollSym = new JScrollPane(symboles);\n\n\t\tselSym = new JComboBox<String>();\n\t\tselEtat = new JComboBox<String>();\n\t\tselDeplace = new JComboBox<String>();\n\t\t//ajouter l'etat finale et symbole speciale pour simuler ruban infini\n\t\tselEtat.addItem(\"eFinale\");\n\t\tselSym.addItem(\"#\");\n\t\t//etiquettes de deplacement\n\t\tselDeplace.addItem(\"Gauche\");\n\t\tselDeplace.addItem(\"Droite\");\n\t\tselDeplace.addItem(\"Statique\");\n\n\t\ttabModel = new HashMap<String, DefaultTableModel>();\n\t\tString[] colId = {\"Etat\", \"Vue\", \"Changer à\", \"Prochain Etat\", \"Deplacement\"};\n\t\temptyMod = new DefaultTableModel(0, 5);\n\t\temptyMod.setColumnIdentifiers(colId);\n\t\ttab = new JTable(emptyMod);\n\t\tscrollTab = new JScrollPane(tab);\n\n\t\ttabSym = new ArrayList<String>();\n\t\ttabEtat = new ArrayList<String>();\n\t\t\n\t\t//rendre visible symbole speciale a l'initialisation\n\t\ttabSym.add(\"#\");\n\t\tmodelSym.addElement(\"#\");\n\t\t\n\t\t//ajout de fonctionnement des boutons\n\t\tajoutEtat.addActionListener(e -> {\n\t\t\tString data = textEtat.getText();\n\t\t\tif (!modelEtat.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"eFinale\")) {\n\t\t\t\tmodelEtat.addElement(data);\n\t\t\t\ttabEtat.add(data);\n\t\t\t\ttabModel.put(data, new DefaultTableModel(0, 4) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t\t\treturn !(column == 0 || column == 1);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\ttabModel.get(data).setColumnIdentifiers(colId);\n\t\t\t\ttabModel.get(data).addRow(new Object[]{data, \"\", \"\", \"\", \"\"});\n\t\t\t\tfor (int i = 0; i < modelSym.size(); i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\ttabModel.get(data).setValueAt(modelSym.get(i), i, 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttabModel.get(data).addRow(new Object[]{\"\", modelSym.get(i), \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselEtat.addItem(data);\n\t\t\t}\n\t\t\ttextEtat.setText(null);\n\t\t});\n\n\t\tsuppEtat.addActionListener(e -> {\n\t\t\tint index = etats.getSelectedIndex();\n\t\t\tif (index != -1) {\n\t\t\t\tString data = etats.getSelectedValue();\n\t\t\t\tmodelEtat.remove(index);\n\t\t\t\ttabEtat.remove(index);\n\t\t\t\ttabModel.remove(data);\n\t\t\t\tselEtat.removeItem(data);\n\t\t\t}\n\t\t});\n\n\t\tajoutSym.addActionListener(e -> {\n\t\t\tString data = textSym.getText();\n\t\t\tif (!modelSym.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"#\")) {\n\t\t\t\tmodelSym.addElement(data);\n\t\t\t\ttabSym.add(data);\n\t\t\t\tif (modelSym.size() == 1) {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).setValueAt(data, 0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).addRow(new Object[]{\"\", data, \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselSym.addItem(data);\n\t\t\t}\n\t\t\ttextSym.setText(null);\n\t\t});\n\n\t\tsuppSym.addActionListener(e -> {\n\t\t\tint index = symboles.getSelectedIndex();\n\t\t\tif (index != -1 && !modelSym.getElementAt(index).equals(\"#\")) {\n\t\t\t\tselSym.removeItem(modelSym.getElementAt(index));\n\t\t\t\ttabSym.remove(index);\n\t\t\t\tmodelSym.remove(index);\n\t\t\t\tfor (DefaultTableModel d : tabModel.values()) {\n\t\t\t\t\td.removeRow(index);\n\t\t\t\t\tif (index == 0 && d.getRowCount() == 0) {\n\t\t\t\t\t\td.addRow(new Object[]{etats.getSelectedValue(), \"\", \"\", \"\", \"\"});\n\t\t\t\t\t} else if (index == 0) {\n\t\t\t\t\t\td.setValueAt(etats.getSelectedValue(), 0, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//seul moyen de fermer la fenetre\n\t\tannuler.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tbarrier.await();\n\t\t\t} catch (Exception ex) {\n\t\t\t}\n\t\t\tthis.dispose();\n\t\t});\n\t\t\n\t\t//finaliser les parametres d'entree pour la creation\n\t\t//verification qu'aucun champ n'est null, sinon erreur\n\t\tok.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tif (tabEtat.isEmpty() || tabSym.isEmpty()) {\n\t\t\t\t\tthrow new Exception();\n\t\t\t\t} else {\n\t\t\t\t\ttabAct = new int[tabEtat.size()][tabSym.size()][3];\n\t\t\t\t\tfor (int i = 0; i < tabAct.length; i++) {\n\t\t\t\t\t\tString etat = tabEtat.get(i);\n\t\t\t\t\t\tfor (int j = 0; j < tabAct[i].length; j++) {\n\t\t\t\t\t\t\tString newSym = (String) tabModel.get(etat).getValueAt(j, 2);\n\t\t\t\t\t\t\tString newEtat = (String) tabModel.get(etat).getValueAt(j, 3);\n\t\t\t\t\t\t\tString dep = (String) tabModel.get(etat).getValueAt(j, 4);\n\n\t\t\t\t\t\t\tif (newSym == \"\" || newEtat == \"\" || dep == \"\") {\n\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\ttabAct[i][j][0] = tabSym.indexOf(newSym);\n\n\t\t\t\t\t\t\tif (newEtat.equals(\"eFinale\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = -1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = tabEtat.indexOf(newEtat);\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif (dep.equals(\"Gauche\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.GAUCHE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Droite\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.DROITE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Statique\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.RESTER;\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\tthis.dispose();\n\t\t\t\t\tmachine = new Turing_Machine(tabAct, tabEtat, tabSym);\n\t\t\t\t\tbarrier.await();\n\t\t\t\t}\n\t\t\t} catch (Exception n) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Veuillez remplir tous les champs de saisie!\", \"\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//changement de tableau par selection d'etat\n\t\tetats.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent evt) {\n\t\t\t\tif (!evt.getValueIsAdjusting()) {\n\t\t\t\t\tif (!modelEtat.isEmpty() && etats.getSelectedIndex() != -1) {\n\t\t\t\t\t\ttab.setModel(tabModel.get(etats.getSelectedValue()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttab.setModel(emptyMod);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttab.getColumnModel().getColumn(2).setCellEditor(new DefaultCellEditor(selSym));\n\t\t\t\ttab.getColumnModel().getColumn(3).setCellEditor(new DefaultCellEditor(selEtat));\n\t\t\t\ttab.getColumnModel().getColumn(4).setCellEditor(new DefaultCellEditor(selDeplace));\n\t\t\t}\n\t\t});\n\t\t\n\t\t//positionnement des composantes\n\t\tentryPanel = new JPanel(new GridBagLayout());\n\t\tmainPanel = new JPanel(new BorderLayout());\n\t\tboutonVal = new JPanel(new GridLayout(1, 2, 0, 0));\n\t\tboutonEtat = new JPanel(new GridLayout(1, 2, 10, 0));\n\t\tboutonSym = new JPanel(new GridLayout(1, 2, 10, 0));\n\n\t\tboutonEtat.add(ajoutEtat);\n\t\tboutonEtat.add(suppEtat);\n\t\tboutonSym.add(ajoutSym);\n\t\tboutonSym.add(suppSym);\n\n\t\tc = new GridBagConstraints();\n\t\tc.gridheight = 1;\n\t\tc.gridwidth = 1;\n\t\tc.insets = new Insets(5, 10, 5, 10);\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\t\n\t\tentryPanel.add(labelConsigne, c);\n\t\t\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.gridwidth = 1;\n\t\tentryPanel.add(labelEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(labelSym, c);\n\n\t\tc.gridy = 3;\n\t\tc.gridx = 0;\n\t\tc.gridwidth = 2;\n\t\tentryPanel.add(boutonEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(boutonSym, c);\n\n\t\tc.gridy = 4;\n\t\tc.gridx = 0;\n\t\tentryPanel.add(textEtat, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollEtat, c);\n\n\t\tc.gridx = 2;\n\t\tc.gridy = 4;\n\t\tentryPanel.add(textSym, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollSym, c);\n\n\t\tboutonVal.add(ok);\n\t\tboutonVal.add(annuler);\n\t\tmainPanel.add(entryPanel, BorderLayout.WEST);\n\t\tmainPanel.add(scrollTab, BorderLayout.EAST);\n\t\tmainPanel.add(boutonVal, BorderLayout.SOUTH);\n\t\tsetContentPane(mainPanel);\n\t\tpack();\n\t\tsetVisible(true);\n\t}", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public tambah() {\n initComponents();\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public Producto_Insertar() {\n initComponents();\n this.setLocationRelativeTo(null);\n setResizable(false);\n actualizarJTabale();\n }", "public Tela() {\n initComponents();\n }", "public TelaInicial() {\n initComponents();\n }" ]
[ "0.6876106", "0.6839721", "0.6545506", "0.6373543", "0.62878245", "0.62678933", "0.6261554", "0.6251916", "0.62385917", "0.6221975", "0.62180763", "0.6216996", "0.6212647", "0.6205487", "0.6191795", "0.6188694", "0.6166265", "0.61372113", "0.6135834", "0.61097515", "0.60901654", "0.6078641", "0.60756606", "0.6061227", "0.6043332", "0.6041246", "0.6037905", "0.60358614", "0.6027641", "0.6024487", "0.6020828", "0.60120374", "0.60108995", "0.6002337", "0.599581", "0.5995331", "0.5993267", "0.5985595", "0.59854925", "0.5969808", "0.596302", "0.5957461", "0.5955494", "0.5953351", "0.59457165", "0.59414", "0.5937845", "0.5929544", "0.5924317", "0.5915803", "0.59154826", "0.59125066", "0.5904786", "0.59012735", "0.5896973", "0.5893171", "0.5891906", "0.5890833", "0.5886405", "0.58839643", "0.5879714", "0.58593893", "0.58557385", "0.585573", "0.5854634", "0.5853272", "0.5852548", "0.58457905", "0.5835077", "0.5827966", "0.58275807", "0.5826114", "0.58236915", "0.5822416", "0.58152896", "0.5809546", "0.58062905", "0.5798851", "0.578764", "0.57827127", "0.57817143", "0.57717866", "0.5768701", "0.5767708", "0.5767552", "0.5764903", "0.5764705", "0.5759087", "0.57577527", "0.5756804", "0.5755795", "0.5754464", "0.5753776", "0.5747321", "0.573991", "0.5739748", "0.57391787", "0.5735023", "0.5731443", "0.5731086", "0.5723699" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { btnComeca = new javax.swing.ButtonGroup(); jLayeredPane1 = new javax.swing.JLayeredPane(); Sortear = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); label = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); btnComecar = new javax.swing.JButton(); txtNomeJ1 = new javax.swing.JLabel(); txtApelidoJ1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); txtNomeJ2 = new javax.swing.JLabel(); J2Nome = new javax.swing.JLabel(); J2Apelido = new javax.swing.JLabel(); jRPar = new javax.swing.JRadioButton(); jLabel5 = new javax.swing.JLabel(); jRImpar = new javax.swing.JRadioButton(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); jMenu3 = new javax.swing.JMenu(); javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1); jLayeredPane1.setLayout(jLayeredPane1Layout); jLayeredPane1Layout.setHorizontalGroup( jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); jLayeredPane1Layout.setVerticalGroup( jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Jogador 1"); setResizable(false); jPanel1.setBackground(new java.awt.Color(255, 255, 255)); jPanel1.setBorder(null); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel1.setText("Jogador 1:"); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel2.setText("Nome:"); label.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N label.setText("Apelido:"); jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/quiz.png"))); // NOI18N btnComecar.setBackground(new java.awt.Color(255, 18, 61)); btnComecar.setFont(new java.awt.Font("sansserif", 1, 24)); // NOI18N btnComecar.setText("Sortear"); btnComecar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnComecarActionPerformed(evt); } }); txtNomeJ1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N txtApelidoJ1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel3.setText("Jogador 2:"); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel4.setText("Nome:"); txtNomeJ2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N txtNomeJ2.setText("Apelido:"); J2Nome.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N J2Apelido.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jRPar.setBackground(new java.awt.Color(255, 255, 255)); Sortear.add(jRPar); jRPar.setText("Par"); jRPar.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jRParStateChanged(evt); } }); jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel5.setText("Jogador 1 selecione uma opção:"); jRImpar.setBackground(new java.awt.Color(255, 255, 255)); Sortear.add(jRImpar); jRImpar.setText("Impar"); jRImpar.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jRImparStateChanged(evt); } }); jRImpar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRImparActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(31, 31, 31) .addComponent(jRPar) .addGap(47, 47, 47) .addComponent(jRImpar)) .addComponent(jLabel1) .addComponent(jLabel5)) .addGap(305, 305, 305)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup() .addComponent(label) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtApelidoJ1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtNomeJ1, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE) .addGap(201, 201, 201))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addComponent(txtNomeJ2))) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jLabel3) .addGap(12, 12, 12))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(6, 6, 6) .addComponent(J2Apelido, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(J2Nome, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(105, 105, 105))) .addComponent(jLabel7) .addGap(165, 165, 165)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(27, 27, 27) .addComponent(btnComecar, javax.swing.GroupLayout.PREFERRED_SIZE, 243, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(74, 990, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(19, 19, 19) .addComponent(jLabel7)) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jLabel3)) .addGap(60, 60, 60)) .addComponent(J2Nome, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jLabel2) .addComponent(txtNomeJ1, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(43, 43, 43) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(47, 47, 47) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtNomeJ2) .addComponent(J2Apelido, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(label) .addComponent(txtApelidoJ1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(63, 63, 63))) .addComponent(jLabel5) .addGap(32, 32, 32))) .addGap(21, 21, 21) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRPar) .addComponent(jRImpar)) .addGap(200, 200, 200) .addComponent(btnComecar, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(193, 193, 193)) ); jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/house (1).png"))); // NOI18N jMenu1.setText("Principal"); jMenuBar1.add(jMenu1); jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/info.png"))); // NOI18N jMenu2.setText("Sobre"); jMenuBar1.add(jMenu2); jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/power.png"))); // NOI18N jMenu3.setText("Sair"); jMenuBar1.add(jMenu3); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); pack(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73195875", "0.7291065", "0.7291065", "0.7291065", "0.7286258", "0.7248489", "0.7213822", "0.7208757", "0.7195916", "0.7190243", "0.7184025", "0.71591616", "0.7148041", "0.70930153", "0.7080625", "0.7056986", "0.6987694", "0.69770867", "0.6955136", "0.69538426", "0.69452894", "0.6942365", "0.6935255", "0.69317245", "0.6928022", "0.6924961", "0.6924691", "0.6911908", "0.6911051", "0.6892464", "0.6892285", "0.6890819", "0.6890592", "0.688895", "0.6882979", "0.68822217", "0.688142", "0.68779635", "0.68758005", "0.6873809", "0.6871587", "0.68597937", "0.6855975", "0.68553025", "0.685517", "0.68546903", "0.6853679", "0.6852941", "0.6852941", "0.68433666", "0.6837067", "0.68358743", "0.6828493", "0.68284714", "0.6826015", "0.6824099", "0.68229824", "0.68168867", "0.6816564", "0.6810073", "0.68090576", "0.6808398", "0.68083", "0.68070155", "0.6803015", "0.6794736", "0.67938805", "0.6792195", "0.6790488", "0.67894924", "0.67889225", "0.6787931", "0.67813647", "0.6766285", "0.676601", "0.6765171", "0.67574227", "0.6755563", "0.6752438", "0.6752084", "0.6742885", "0.67392796", "0.6737635", "0.6736323", "0.67334515", "0.67276573", "0.67266935", "0.6719731", "0.6715714", "0.6715036", "0.67141175", "0.6708368", "0.6707287", "0.6703903", "0.67010856", "0.6700051", "0.6698535", "0.66982317", "0.66940516", "0.6691627", "0.6689702" ]
0.0
-1
============== Save Student Info =============//
@RequestMapping(value = "saveStudentInfo", method = RequestMethod.POST) public ModelAndView saveStudentInfo(@ModelAttribute Student student, HttpSession session, final RedirectAttributes redirectAttributes, HttpServletRequest request) { //System.out.println("entrance"); if (session.getAttribute("logonSuccessYN") == "Y") { //System.out.println("name " + student.getStudentName()); //System.out.println("mobile " + student.getMobileNo()); //System.out.println("email " + student.getEmailId()); //System.out.println("photo " + student.getStudentAttachmentFile()); try { String attachmentPath = ""; String attachmentName = ""; MultipartFile attachment = student.getStudentAttachmentFile(); //System.out.println("attachmentFile " + student.getStudentAttachmentFile()); //System.out.println("attachment.getSize " + attachment.getSize()); if (attachment.getSize() > 614400) { redirectAttributes.addFlashAttribute("message", "File Must be less than 600 kb !!!"); redirectAttributes.addFlashAttribute("mCode", "0000"); } else { String fileExt = FilenameUtils.getExtension(attachment.getOriginalFilename()); if (attachment.getSize() <= 614400) { student.setStudentAttachmentName("student"); student.setStudentAttachmentExt(fileExt); } Student oStudent = new Student(); oStudent = studentService.saveStudentInfo(student); redirectAttributes.addFlashAttribute("message", oStudent.getMessage()); redirectAttributes.addFlashAttribute("mCode", oStudent.getMessageCode()); InputStream inputStream = null; OutputStream outputStream = null; if (attachment.getSize() <= 614400 && oStudent.getMessageCode().equals("1111")) { if (attachment.getSize() > 0) { inputStream = attachment.getInputStream(); attachmentPath = "/resources/attachment/studentPhoto"; String path = request.getSession().getServletContext().getRealPath(attachmentPath); //System.out.println("path " + path); File uploadRootDir = new File(path); // Create directory if it not exists. if (!uploadRootDir.exists()) { //System.out.println("uploadRootDir " + uploadRootDir); uploadRootDir.mkdirs(); } if (oStudent.getStudentId() != null) { outputStream = new FileOutputStream(uploadRootDir.getAbsolutePath() + File.separator + student.getStudentAttachmentName() + "_" + student.getStudentName() + "_" + oStudent.getStudentId() + "." + fileExt); // System.out.println("outputStream 1 " + // outputStream); } else { outputStream = new FileOutputStream(uploadRootDir.getAbsolutePath() + File.separator + student.getStudentAttachmentName() + "_" + student.getStudentName() + "_" + oStudent.getStudentId() + "." + fileExt); // System.out.println("outputStream 2 " + // outputStream); } int readBytes = 0; byte[] buffer = new byte[8192]; while ((readBytes = inputStream.read(buffer, 0, 8192)) != -1) { outputStream.write(buffer, 0, readBytes); } outputStream.close(); inputStream.close(); } } } redirectAttributes.addFlashAttribute("student", student); return new ModelAndView("redirect:/student/studentInfo"); } catch (Exception e) { e.printStackTrace(); redirectAttributes.addFlashAttribute("mCode", "0000"); redirectAttributes.addFlashAttribute("message", "Error occured!!"); redirectAttributes.addFlashAttribute("student", student); return new ModelAndView("redirect:/student/studentInfo"); } } else { return new ModelAndView("redirect:/login"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveStudent() {\n // Check that every required field has been filled in with valid parameters\n if (!checkUserInputValidity()) {\n return;\n }\n\n // Insert the new student info into the database\n if (isEditStudent) {\n updateStudentOnFirebaseDatabase();\n } else {\n // Make a unique id for the student\n String studentId = UUID.randomUUID().toString();\n saveNewStudentToFirebaseDatabase(studentId);\n }\n }", "private void SaveStudentInfo() {\n EditText _fullName = (EditText) findViewById(R.id.editTextFullName);\n EditText _birthdate = (EditText) findViewById(R.id.dateBirthday);\n EditText _fullStreetAddress = (EditText) findViewById(R.id.editTextFullAddress);\n EditText _contactPhone = (EditText) findViewById(R.id.editTextContactPhone);\n EditText _contactEmail = (EditText) findViewById(R.id.editTextContactEmail);\n EditText _parentNames = (EditText) findViewById(R.id.editTextParentNames);\n EditText _defaultRate = (EditText) findViewById(R.id.numberRate);\n EditText _notes = (EditText) findViewById(R.id.editTextNotes);\n\n // ***** Create the Student Object\n Student _student = new Student();\n\n // ***** Set the field values\n _student.fullName = String.valueOf(_fullName.getText());\n _student.birthDate = String.valueOf(_birthdate.getText());\n _student.fullAddress = String.valueOf(_fullStreetAddress.getText());\n _student.contactPhone = String.valueOf(_contactPhone.getText());\n _student.contactEmail = String.valueOf(_contactEmail.getText());\n _student.parentNames = String.valueOf(_parentNames.getText());\n\n // ***** Convert to a double to store in database for calulations\n _student.defaultRate = Double.valueOf(String.valueOf(_defaultRate.getText()));\n\n _student.notes = String.valueOf(_notes.getText());\n\n // **** Save the student information\n _myDb.setStudentInfo(_student);\n\n\n }", "private void saveStudent(){\n StudentGroupThrift group = mainWindow.getStudentClient().getStudentGroupByName\n (this.group.getSelectedItem().toString());\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n String birthDate = format.format(jDateChooser.getDate());\n StudentThrift studentThrift = new StudentThrift(\n id,\n getTextID(FIRST_NAME),\n getTextID(LAST_NAME),\n getTextID(MIDDLE_NAME),\n birthDate,\n getTextID(ADDRESS),\n group\n );\n mainWindow.getStudentClient().saveStudent(studentThrift);\n closeDialog();\n }", "void save(Student student);", "private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }", "@Override\n\t\tpublic void saveStudent(Student stu) {\n\t\t\tsessionFactory.getCurrentSession().save(stu);\n\t\t\tSystem.out.println(\"DATA HAS BEEN SAVED.........\");\n\t\t}", "@Override\n\tpublic void saveStudent(StudentForm student) {\n\t\t\n\t}", "@Override\r\n\tpublic void save() {\n\t\tif (section != null && !section.isEmpty()) {\r\n\t\t\tif (gradeLevel == null || gradeLevel.isEmpty()) {\r\n\t\t\t\tSection sec = (Section) Section.extractObject(Section.class.getSimpleName(), section);\r\n\t\t\t\tgradeLevel = sec.gradeLevel;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (course == null && gradeLevel != null && !gradeLevel.isEmpty()) {\r\n\t\t\tGradeLevel lvl = (GradeLevel) GradeLevel.extractObject(GradeLevel.class.getSimpleName(), gradeLevel);\r\n\t\t\tcollege = lvl.college;\r\n\t\t\tcourse = lvl.course;\r\n\t\t}\r\n\t\tif (course!=null && course.startsWith(\"B\")) {\r\n\t\t\tcollege = true;\r\n\t\t}\r\n\t\tif (!isEmptyKey()) {\r\n//\t\t\twe can get the latest enrollment schoolyear\r\n\t\t\ttry {\r\n\t\t\t\tif (\"ENROLLED\".equals(status)) {\r\n\t\t\t\t\tString sc = DBClient.getSingleColumn(BeanUtil.concat(\"SELECT a.schoolYear FROM Enrollment a WHERE a.studentId=\",personId,\" ORDER BY a.schoolYear DESC\")).toString();\r\n\t\t\t\t\tlatestSchoolYear = sc;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (schoolYear==null || schoolYear.isEmpty()) {\r\n\t\t\tschoolYear = AppConfig.getSchoolYear();\r\n\t\t}\r\n\t\tpersonType = \"STUDENT\";\r\n\t\tif (isEmptyKey()) {\r\n\t\t\tsuper.save();\r\n new springbean.SchoolDefaultProcess().createAllSubjects(this);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuper.save();\r\n\t\t}\r\n\t}", "public void save() {\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(\"studentData.dat\");\n\n\t\t\tObjectOutputStream oos;\n\t\t\ttry {\n\t\t\t\toos = new ObjectOutputStream(fos);\n\n\t\t\t\toos.writeObject(studentList);\n\t\t\t\toos.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"File is finished writing to the hard drive\");\n\t}", "public void save() {\n sessionBean.saveStudent();\n success = true;\n }", "@Override\n\tpublic boolean saveStudentInfo(Student student) throws Exception {\n\t\ttry {\n\t\t\t registerMapper.saveStudentInfo(student);\n\t\t\t return true ;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t\n\t\t throw new RunTimeException(e.getMessage()) ;\n\t\t} \n\t}", "private void updateStudentProfileInfo() {\n\t\t\n\t\tstudent.setLastName(sLastNameTF.getText());\n\t\tstudent.setFirstName(sFirstNameTF.getText());\n\t\tstudent.setSchoolName(sSchoolNameTF.getText());\n\t\t\n\t\t//Update Student profile information in database\n\t\t\n\t}", "@Override\n\tpublic void saveStudent(Student student) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\tif (student.getId() != 0) {\n\t\t// update the student\n\t\t\tcurrentSession.update(student);\n\t\t}\n\t\telse {\n\t\t\t// save the student\n\t\tcurrentSession.save(student);\n\t\t}\n\n\t}", "public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}", "public void saveStudent(sust.paperlessexm.entity.Student model) throws GenericBusinessException {\n // We have to create an object:\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n // Now update the data.\n hibernateTemplate.update(model);\n } finally {\n log.debug(\"finished saveStudent(sust.paperlessexm.entity.Student model)\");\n }\n }", "private static void saveChanges() throws IOException{\n\t\twriteToStudentsFile(); //copy all the StudentDetails objects in ALL_STUDENTS and write them to the students.txt file\n\t\twriteToBooksFile(); //copy all the BookDetails objects in ALL_BOOKS and write them to the books.txt file\n\t\tSystem.out.println(\"All Changes Successfully Saved!\");\n\t\tSystem.out.println(\"Thanks for using the Library Management System\");\n\t}", "public int save(Student stud) {\r\n\t\tint status = 0;\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\r\n\t\t\t\t\t\"insert into student(first_name,last_name,email,gender,date_of_birth,address,contact_no) values(?,?,?,?,?,?,?)\");\r\n\t\t\tps.setString(1, stud.getFname());\r\n\t\t\tps.setString(2, stud.getLname());\r\n\t\t\tps.setString(3, stud.getEmail());\r\n\t\t\tps.setString(4, stud.getGender());\r\n\t\t\tps.setString(5, stud.getDOB());\r\n\t\t\tps.setString(6, stud.getAddress());\r\n\t\t\tps.setString(7, stud.getContact());\r\n\r\n\t\t\tstatus = ps.executeUpdate();\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\t\treturn status;\r\n\t}", "private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}", "private void updateStudentSecurityInfo() {\n\t\t\n\t\tstudent.setPassword(sPasswordPF1.getPassword());\n\t\tstudent.setSecuirtyAnswer1(sSecurityQ1TF.getText());\n\t\tstudent.setSecurityQuestion1((String)sSecurityList1.getSelectedItem());\n\t\tstudent.setSecurityAnswer2(sSecurityQ2TF.getText());\n\t\tstudent.setSecurityQuestion2((String)sSecurityList1.getSelectedItem());\n\t\t\n\t\t//Update Student security information in database\n\t\t\n\t}", "private void saveInfoFields() {\n\n\t\tString name = ((EditText) getActivity().findViewById(R.id.profileTable_name))\n\t\t\t\t.getText().toString();\n\t\tint weight = Integer\n\t\t\t\t.parseInt(((EditText) getActivity().findViewById(R.id.profileTable_weight))\n\t\t\t\t\t\t.getText().toString());\n\t\tboolean isMale = ((RadioButton) getActivity().findViewById(R.id.profileTable_male))\n\t\t\t\t.isChecked();\n\t\tboolean smoker = ((CheckBox) getActivity().findViewById(R.id.profileTable_smoker))\n\t\t\t\t.isChecked();\n\t\tint drinker = (int) ((RatingBar) getActivity().findViewById(R.id.profileTable_drinker))\n\t\t\t\t.getRating();\n\n\t\tif (!name.equals(storageMan.PrefsName)) {\n\t\t\tstorageMan = new StorageMan(getActivity(), name);\n\t\t}\n\n\t\tstorageMan.saveProfile(new Profile(weight, drinker, smoker, isMale));\n\t\t\n\t\ttoast(\"pref saved\");\n\t}", "@Override\r\n\tpublic Student saveStudent(Student student) {\n\t\treturn studentRepository.save(student);\r\n\t}", "public void save() {\t\n\t\n\t\n\t}", "void saveStudents(ArrayList<Student> studentList) throws SQLException {\n clearTable(\"Students\");\n Connection conn = getConnection();\n String setStatement, studentName, prefRole;\n double attendance;\n int studentID, groupID;\n for (int i = 0; i < studentList.size(); i++) {\n Student currentStudent = studentList.get(i);\n studentName = currentStudent.getName();\n prefRole = currentStudent.getPrefRole();\n attendance = currentStudent.getAttendance();\n studentID = currentStudent.getStudentID();\n groupID = currentStudent.getGroupID();\n setStatement = \"INSERT INTO Students(studentID, studentName, prefRole, attendance, groupID) VALUES ('\"\n + studentID + \"', '\"\n + studentName + \"', '\"\n + prefRole + \"', '\"\n + attendance + \"', '\"\n + groupID + \"')\";\n Statement stm = conn.createStatement();\n stm.execute(setStatement);\n }\n }", "public Student saveStudent(Student student) {\n\t\tlog.info(\"Add Student Name = \" + student.getFirstname() + \" \"\n\t\t\t\t+ student.getLastname());\n\t\tlog.debug(\"Initialise SQL Parameters\");\n\t\tfinal Object[] param = new Object[] { student.getMatnr(),\n\t\t\t\tstudent.getFirstname(), student.getLastname(), student.getEmail() };\n\t\tlog.debug(\"Initialise Transaction Manager\");\n\t\tTransactionTemplate tt = new TransactionTemplate(transactionManager);\n\t\tObject result = tt.execute(new TransactionCallback() {\n\t\t\tpublic Object doInTransaction(TransactionStatus status) {\n\t\t\t\t// The transaction is run from here\n\t\t\t\tlog.debug(\"Start Transaction\");\n\t\t\t\tquery_insertStudent.update(param);\n\n\t\t\t\t/*\n\t\t\t\t * activate the following error line to create an Error which\n\t\t\t\t * terminates this method. One will see, that the complete\n\t\t\t\t * transaction is rolled back, hence the insert statement above\n\t\t\t\t * is not executed, alternatively the second rollback statement\n\t\t\t\t * can be activated with the same result which in that case is a\n\t\t\t\t * manual rollback of the transaction\n\t\t\t\t */\n\n\t\t\t\t// if (true) throw new Error(\"Test Exception\");\n\t\t\t\t// or\n\t\t\t\t// status.setRollbackOnly();\n\t\t\t\t/*\n\t\t\t\t * result from query is a list, actually containing only one row\n\t\t\t\t * and one column\n\t\t\t\t */\n\t\t\t\tList<?> results = query_getStudentId.execute();\n\t\t\t\tInteger id = (Integer) results.get(0);\n\t\t\t\tlog.debug(\"End Transaction\");\n\t\t\t\treturn id;\n\t\t\t\t/*\n\t\t\t\t * and the transaction ends here! if no error occurs the\n\t\t\t\t * transaction is committed by Spring otherwise it is rolled\n\t\t\t\t * back\n\t\t\t\t */\n\t\t\t}\n\t\t});\n\t\tInteger id = (Integer) result;\n\t\tstudent.setId(id);\n\t\tlog.info(\"Return ID from inserted dataset = \" + id);\n\t\treturn id!=0 ? student : null;\n\t}", "private void addStudent(Student student) {\n\t\tSystem.out.println(\"Add Student\");\n\t\tsmb.saveStudent(student);\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public static void createRecord() throws IOException {\r\n\t\tstudRecs.add(new Student());\r\n\t\tint i = studRecs.size() - 1;\r\n\t\tStudent tempRecord = studRecs.get(i);\r\n\t\tSystem.out.println(\"Creating Student \" + i + \" (\" + tempRecord.getStudentID() + \")\");\r\n\t\ttempRecord.setFirstName(StudentInput.firstName());\r\n\t\ttempRecord.setLastName(StudentInput.lastName());\r\n\t\ttempRecord.setStreetAddress(StudentInput.streetAddress());\r\n\t\ttempRecord.setCity(StudentInput.city());\r\n\t\ttempRecord.setProvince(StudentInput.province());\r\n\t\ttempRecord.setPostalCode(StudentInput.postalCode());\r\n\t\ttempRecord.setPhoneNumber(StudentInput.phoneNumber());\r\n\t\ttempRecord.setBirthDate(StudentInput.birthDate());\r\n\t\tSystem.out.println(\"Student \" + i + \" (\" + tempRecord.getStudentID() + \")\" + \" Created!\");\r\n\t}", "public void setStuData() {\n\n System.out.print(\"Enter The Name : \"); \t String Entered_Name = Scan.next();\n\n System.out.print(\"Enter User Name : \");\t String Entered_User = Scan.next();\n\n System.out.print(\"Enter Password : \");\t int Entered_Pass = Scan.nextInt();\n\n System.out.print(\"Enter Feild : \");\t\t String Entered_Feild = Scan.next();\n\n Students_list.add(new Student(Entered_User , Entered_Name , Entered_Pass , Entered_Feild));\n\n System.out.print(\"Data Has been Saved!\");\n\n }", "private static void writeToStudentsFile() throws IOException{\n\t\tFileWriter fw = new FileWriter(STUDENTS_FILE, false); //overwrites the students.txt file\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\n\t\tIterator<StudentDetails> iter = ALL_STUDENTS.listIterator(1); //Get all StudentDetails objects from index 1 of ALL_STUDENTS. This is because the value at index 0 is just a dummy student\n\t\twhile(iter.hasNext()){\n\t\t\tStudentDetails student = iter.next();\n\t\t\tbw.write(student.ParseForTextFile()); //writes the Parsed Form of the StudentDetails object to the students.txt file\n\t\t}\n\t\t\n\t\tbw.close();\n\t}", "public void saveRecord(IStudentUnitRecord studentUnitRecord)\n {\n for (Element element : (List<Element>)\n XmlManager.getInstance().getDocument().getRootElement()\n .getChild(\"studentUnitRecordTable\")\n .getChildren(\"record\")) {\n Integer studentId = studentUnitRecord.getStudentId();\n String recordStudentId = element.getAttributeValue(\"sid\");\n\n String unitCode = studentUnitRecord.getUnitCode();\n String recordUnitCode = element.getAttributeValue(\"uid\");\n\n if (studentId.toString().equals(recordStudentId) &&\n unitCode.equals(recordUnitCode)) {\n String assignment1Mark =\n new Float(studentUnitRecord.getAssignment1Mark()).toString();\n String assignment2Mark =\n new Float(studentUnitRecord.getAssignment2Mark()).toString();\n String examMark =\n new Float(studentUnitRecord.getExamMark()).toString();\n\n element.setAttribute(\"asg1\", assignment1Mark);\n element.setAttribute(\"asg2\", assignment2Mark);\n element.setAttribute(\"exam\", examMark);\n\n //write out the XML file for continuous save\n XmlManager.getInstance().saveDocument();\n\n return;\n }\n }\n\n throw new RuntimeException(\"DBMD: saveRecord : \" +\n \"no such student record in data\");\n }", "private void save() {\n Toast.makeText(ContactActivity.this, getString(R.string.save_contact_toast), Toast.LENGTH_SHORT).show();\n\n String nameString = name.getText().toString();\n String titleString = title.getText().toString();\n String emailString = email.getText().toString();\n String phoneString = phone.getText().toString();\n String twitterString = twitter.getText().toString();\n \n if (c != null) {\n datasource.editContact(c, nameString, titleString, emailString, phoneString, twitterString);\n }\n else {\n \tc = datasource.createContact(nameString, titleString, emailString, phoneString, twitterString);\n }\n }", "void save(Exam exam);", "@Override\n\tpublic boolean saveStudentByPst(final Student s) {\n\t\tString query=\"insert into student values(?,?,?)\";\n\t\treturn jdbcTemplate.execute(query,new PreparedStatementCallback<Boolean>() {\n\t\tpublic Boolean doInPreparedStatement(PreparedStatement ps) throws SQLException ,DataAccessException\n\t\t{\n\t\t\tps.setInt(1,s.getId());\n\t\t\tps.setString(2,s.getName());\n\t\t\tps.setInt(3,s.getAge());\n\t\t\treturn ps.execute();\n\t\t}\n\t\t});\n\t\n\t}", "public void save(T t) {\n\t\tif (t instanceof Student) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tController<Person> controller = ControllerFactory.getInstance(ControllerFactory.PERSON);\n\t\t\tcontroller.save(((Student) t).getFather());\n\t\t\tcontroller.save(((Student) t).getMother());\n\t\t}\n\t\tif (t.getId() == -1) {\n\t\t\tt.setId(this.nextID++);\n\t\t}\n\t\tthis.data.put(t.getId(), t);\n\t}", "public void save(SystenLogInfo osInfo, String string) {\n\t\t\n\t}", "public void update(){\n\t\tif ( crm.addedNewStudent()){\n\t\t\tList<Student> students = crm.getStudents();\n\t\t\tStudent newest = students.get(students.size()-1);\n\t\t\tint ID = newest.ID();\n\t\t\tString name = newest.name();\n\t\t\tint GradYear = newest.GradYear();\n\t\t\tsv.addStudent(ID, name, GradYear);\n\t\t}\n\t}", "protected void addStuInfo(HttpServletRequest request, HttpServletResponse response)\n\tthrows ServletException, IOException {\n\t\tStudent stu = new Student();\n\t\tstu.setStudentNo(request.getParameter(\"studentNo\"));\n\t\tstu.setStudentName(request.getParameter(\"studentName\"));\n\t\tstu.setSex(request.getParameter(\"sex\"));\n\t\tstu.setGradeId(Integer.parseInt(request.getParameter(\"gradeId\")));\n\t\tstu.setBorndate(request.getParameter(\"borndate\"));\n\t\tstu.setEmail(request.getParameter(\"email\"));\n\t\tint count = biz.addStuInfo(stu);\n\t\tif(count > 0){\n\t\t\tout.print(\"<script>alert('新增成功!!!');window.location.href='StudentServlet.do';</script>\");\n\t\t}else{\n\t\t\tout.print(\"<script>alert('新增失败!!!');window.location.href='StudentServlet.do';</script>\");\n\t\t}\n\t}", "private void saveNewStudentToFirebaseDatabase(String studentId) {\n // Extract Student information from the edit text views\n String studentName = mStudentNameEditText.getText().toString().toLowerCase().trim();\n int studentSex = mStudentSex;\n long studentBirthdate = mStudentBirthdate;\n int studentGrade = Integer.parseInt(mStudentGradeEditText.getText().toString());\n\n if (mViewModel.studentPicBitmap != null) {\n // Save photo to Firebase Storage using AsyncTask\n saveStudentPhotoToFirebaseStorage(studentId);\n } else {\n Student newStudent = new Student(studentName, studentSex, studentBirthdate, studentGrade,\n mChosenClassesList, null, studentId);\n\n mStudentsDatabaseReference.child(studentId).setValue(newStudent);\n }\n\n // Close activity\n finish();\n }", "public void save();", "public void save();", "public void save();", "public void save();", "public void saveToFile(Student entity) throws Exception{\n Document document = DocumentBuilderFactory\n .newInstance()\n .newDocumentBuilder()\n .parse(XMLfile);\n Element root = document.getDocumentElement();\n Element studentElement = document.createElement(\"student\");\n studentElement.setAttribute(\"serialNumber\",entity.getSerialNumber());\n root.appendChild(studentElement);\n\n appendChildWithText(document, studentElement, \"name\", entity.getName());\n appendChildWithText(document, studentElement, \"group\", String.valueOf(entity.getGroup()));\n appendChildWithText(document, studentElement, \"id\", entity.getId().toString());\n\n Transformer transformer =\n TransformerFactory.newInstance().newTransformer();\n transformer.transform(new DOMSource(root),\n new StreamResult(new FileOutputStream(\n XMLfile)));\n }", "private void saveData() {\r\n\t\tif(mFirstname.getText().toString().trim().length() > 0 &&\r\n\t\t\t\tmLastname.getText().toString().trim().length() > 0 &&\r\n\t\t\t\tmEmail.getText().toString().trim().length() > 0) {\r\n\t\t\tmPrefs.setFirstname(mFirstname.getText().toString().trim());\r\n\t\t\tmPrefs.setLastname(mLastname.getText().toString().trim());\r\n\t\t\tmPrefs.setEmail(mEmail.getText().toString().trim());\r\n\t\t\tif(mMaleBtn.isChecked())\r\n\t\t\t\tmPrefs.setGender(0);\r\n\t\t\telse if(mFemaleBtn.isChecked())\r\n\t\t\t\tmPrefs.setGender(1);\r\n\t\t\tif(!mCalendarSelected.after(mCalendarCurrent)) \r\n\t\t\t\tmPrefs.setDateOfBirth(mCalendarSelected.get(Calendar.YEAR), \r\n\t\t\t\t\t\tmCalendarSelected.get(Calendar.MONTH), \r\n\t\t\t\t\t\tmCalendarSelected.get(Calendar.DAY_OF_MONTH));\r\n\t\t\tToast.makeText(getActivity(), R.string.msg_changes_saved, Toast.LENGTH_LONG).show();\r\n\t\t} else \r\n\t\t\tToast.makeText(getActivity(), R.string.msg_registration_empty_field, Toast.LENGTH_LONG).show();\r\n\t}", "void save();", "void save();", "void save();", "public Student internalSaveStudent(HealthUserContext userContext, Student student, Map<String,Object> options) throws Exception\n\t{\n\n\n\t\tsynchronized(student){\n\t\t\t//will be good when the student loaded from this JVM process cache.\n\t\t\t//also good when there is a ram based DAO implementation\n\t\t\t//make changes to Student.\n\t\t\tif (student.isChanged()){\n\t\t\t\n\t\t\t}\n\t\t\tstudent = saveStudent(userContext, student, options);\n\t\t\treturn student;\n\n\t\t}\n\n\t}", "private void saveData(){\n\t\tdataBase=mHelper.getWritableDatabase();\n\t\tContentValues values=new ContentValues();\n\t\t\n\t\tvalues.put(DbHelper.KEY_NNAME,nname);\n\t\t//values.put(DbHelper.KEY_LNAME,lname );\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tif(isUpdate)\n\t\t{ \n\t\t\t//update database with new data \n\t\t\tdataBase.update(DbHelper.TABLE_NOTE, values, DbHelper.KEY_ID+\"=\"+id, null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//insert data into database\n\t\t\tdataBase.insert(DbHelper.TABLE_NOTE, null, values);\n\t\t}\n\t\t//close database\n\t\tdataBase.close();\n\t\tfinish();\n\t\t\n\t\t\n\t}", "int insert(StudentInfo record);", "public void saveNewRollManager()\n\t{\n\t JFileChooser chooser = new JFileChooser(); //allows the user to choose a file\n\t chooser.setCurrentDirectory(new File(\"/home/me/Documents\"));\t//sets the directory of where to find the file\n\t int retrival = chooser.showSaveDialog(null);\n\t if (retrival == JFileChooser.APPROVE_OPTION) {\n\t try \n\t {\n\t FileWriter fw = new FileWriter(chooser.getSelectedFile()+\".txt\");\n\t fw.write (getCourseToFileString ( ));\n\t for(Student b : getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t \t;\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t }\n\t \n\t}", "void save(Teacher teacher);", "@Override\r\n\tpublic void saveCourse(int studentid) {\n\t\tint courseid =0;\r\n\t\tSystem.out.println(\"输入课程编号:\");\r\n courseid = input.nextInt();\r\n\t\tStudentDAO dao = new StudentDAOimpl();\r\n\t\tint a = dao.saveCourse(studentid,courseid);\r\n\t\tif (a!=0){\r\n\t\t\tSystem.out.println(\"选课成功\");\r\n\t\t}else\r\n\t\t\tSystem.out.println(\"选课失败\");\r\n\t}", "public void saveFormData() {\r\n if(!saveRequired) return;\r\n if(cvHierarchyData != null && cvHierarchyData.size()>0) {\r\n SponsorHierarchyBean sponsorHierarchyBean;\r\n for(int index=0; index<cvHierarchyData.size(); index++) {\r\n try {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvHierarchyData.get(index);\r\n if(sponsorHierarchyBean.getAcType() != null) {\r\n if(sponsorHierarchyBean.getAcType() == TypeConstants.UPDATE_RECORD) {\r\n queryEngine.update(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.INSERT_RECORD) {\r\n queryEngine.insert(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.DELETE_RECORD) {\r\n queryEngine.delete(queryKey,sponsorHierarchyBean);\r\n }\r\n }\r\n }catch(CoeusException coeusException){\r\n coeusException.printStackTrace();\r\n }\r\n }\r\n }\r\n saveRequired = false;\r\n }", "private void fillInCurrentStudentInfo() {\n // Extract info from Student object\n String name = WordUtils.capitalizeFully(mCurrentStudent.getName());\n int sex = mCurrentStudent.getSex();\n mStudentBirthdate = mCurrentStudent.getBirthdate();\n int grade = mCurrentStudent.getGrade();\n mChosenClassesList = (ArrayList<String>) mCurrentStudent.getClasses();\n String classes = TextUtils.join(\", \", mChosenClassesList);\n String photoUrl = mCurrentStudent.getPhotoUrl();\n\n // Populate views with the current student's information\n mStudentNameEditText.setText(name);\n mStudentBirthdateTextView.setText(DateUtils.convertDateLongToString(mStudentBirthdate));\n mStudentGradeEditText.setText(String.valueOf(grade));\n mStudentClassesTextView.setText(classes);\n mStudentClassesTextView.setVisibility(View.VISIBLE);\n\n // Set student photo (if it exists)\n if (!TextUtils.isEmpty(photoUrl)) {\n Glide.with(mAddPhotoView.getContext())\n .load(photoUrl)\n .into(mAddPhotoView);\n studentHasPhoto = true;\n }\n\n // Set student sex spinner\n switch (sex) {\n case SEX_MALE_INT:\n mStudentSexSpinner.setSelection(SEX_MALE_INT);\n break;\n case SEX_FEMALE_INT:\n mStudentSexSpinner.setSelection(SEX_FEMALE_INT);\n break;\n default:\n throw new IllegalArgumentException(\"Invalid sex\");\n }\n }", "private void saveData() {\n }", "private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic Student createOrUpdateStudentRecord(Student student) {\r\n\t\t\tstudentDAO.addStudent(student);\r\n\t\treturn student;\r\n\t}", "public void SaveInfo() {\n if (NameSurname_enter.getText() != null && validateString(NameSurname_enter.getText())) {\n patient.setName(NameSurname_enter.getText());\n } else {\n JOptionPane.showMessageDialog(null, \"Please, enter a valid name and surname. It should only contain characters and spaces. \", \"Warning\", JOptionPane.INFORMATION_MESSAGE);\n }\n if (Age_enter.getText() != null && validateInt(Age_enter.getText())) {\n patient.setAge(Integer.parseInt(Age_enter.getText()));\n } else {\n JOptionPane.showMessageDialog(null, \"Please, enter a valid age. It should be a number. \", \"Warning\", JOptionPane.INFORMATION_MESSAGE);\n }\n if (Sex_box.getSelectedItem().equals(\"Male\")) {\n patient.setSex(\"MALE\");\n } else {\n patient.setSex(\"FEMALE\");\n }\n\n }", "private void save() {\n Saver.saveTeam(team);\n }", "public void updateStudentDetails(Student student) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DatabaseHelper.STUDENT_NAME, student.getName());\n contentValues.put(DatabaseHelper.STUDENT_ADDRESS, student.getAddress());\n sqLiteDatabase.update(DatabaseHelper.TABLE_NAME, contentValues, \"id = \" + student.getId(), null);\n }", "public boolean saveData() throws FileNotFoundException, IOException {\n\t\t\n\t\tFile f = new File(FILE_SAVE_PATH);\n\t\t\n\t\tboolean wasSaved = false;\n\t\t\n\t\tif(f.exists()) {\n\t\t\t\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(FILE_SAVE_PATH));\n\t\t\toos.writeObject(students);\n\t\t\toos.close();\n\t\t\twasSaved = true;\n\t\t}\n\t\t\n\t\treturn wasSaved;\n\t}", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "public static void save() throws IOException {\n String output = Main.currentUser.toString();\n output += DatabaseTranslator.getUserLocations(currentUser.getName());\n DatabaseTranslator.storeUserData(currentUser.getName(), output);\n }", "private void save(){\n\n this.title = mAssessmentTitle.getText().toString();\n String assessmentDueDate = dueDate != null ? dueDate.toString():\"\";\n Intent intent = new Intent();\n if (update){\n assessment.setTitle(this.title);\n assessment.setDueDate(assessmentDueDate);\n assessment.setType(mAssessmentType);\n intent.putExtra(MOD_ASSESSMENT,assessment);\n } else {\n intent.putExtra(NEW_ASSESSMENT, new Assessment(course.getId(),this.title,mAssessmentType,assessmentDueDate));\n }\n setResult(RESULT_OK,intent);\n finish();\n }", "public void saveDetails() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.update(event, timelineUpdater);\n\n\t\tFacesMessage msg =\n\t\t new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking details \" + getRoom() + \" have been saved\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "public void createStudent(String name, String ID){}", "public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }", "public static void saveStudentCourses(ArrayList<StudentCourse> CourseToUpdate) throws IOException {\n\t\tArrayList <String> courseList = new ArrayList<String>() ;// to store Courses data\n\n for (int i = 0 ; i < CourseToUpdate.size() ; i++) {\n\t\t\t\tStudentCourse course = CourseToUpdate.get(i);\n\t\t\t\tStringBuilder stringBuild = new StringBuilder();\n\t\t\t\tstringBuild.append(course.getUserid().trim());\n\t\t\t\tstringBuild.append(SEPARATOR);\n\t\t\t\tstringBuild.append(course.getUsername().trim());\n\t\t\t\tstringBuild.append(SEPARATOR);\n\t\t\t\tstringBuild.append(course.getCourseID().trim());\n\t\t\t\tstringBuild.append(SEPARATOR);\n\t\t\t\tstringBuild.append(course.getIndexID());\n\t\t\t\tstringBuild.append(SEPARATOR);\n\t\t\t\tstringBuild.append(course.getRegisterStatus());\n\t\t\t\t\n\t\t\t\tcourseList.add(stringBuild.toString()) ;\n\t\t\t}\n\t\t\tIO.write(Main.studentcoursepath.toString(), courseList);\n\t}", "public void savePerson()\r\n { \r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\taddress = tfAddress.getText();\r\n\tphone = Integer.parseInt(tfPhone.getText());\r\n\temail = tfEmail.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null, \"Please enter person name.\");\r\n\t}else\r\n {\r\n\r\n\t /*create a new PersonInfo object and pass it to PersonDAO to save it*/\r\n\t PersonInfo person = new PersonInfo(name, address, phone, email);\r\n\t pDAO.savePerson(person);\r\n\r\n\t JOptionPane.showMessageDialog(null, \"Record added\");\r\n }\r\n }", "public void saveUsers() {\n\t\ttry {\n\t\t\t\n\t\t\tFile xmlFile = new File(\"Users.xml\");\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument document = builder.parse(xmlFile);\n\t\t\tElement users = document.getDocumentElement();\n\t\t\t\n\t\t\tArrayList<Student> u = ManageUsers.getActiveList();\n\t\t\tfor (int i = 0; i < u.size(); i++) {\n\t\t\t\t// Grab the info for a specific student\n\t\t\t\tStudent s = u.get(i);\n\t\t\t\tString fName = s.getFirstName();\n\t\t\t\tString lName = s.getLastName();\n\t\t\t\tint ucid = s.getUcid();\n\t\t\t\tint currentBorrowing = s.getCurrentBorrowing();\n\t\t\t\tboolean isActive = true;\n\t\t\t String username = s.getUsername();\n\t\t\t String password = s.getPassword();\n\t\t\t boolean isLibrarian = s.getIsLibrarian();\n\t\t\t \n\t\t\t Element student = document.createElement(\"student\");\n\t\t\t \n\t\t\t // Make a new element <student>\n\t\t\t // Add the element to the xml as a child of <Users>\n\t\t\t // Add the above fields (fName, etc.) as child nodes to the new student node\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Something went wrong with writing to the xml\");\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public void save() {\n }", "public void saveStudentRegistrationDetails()\n {\n\n MyStudentRegistrationHandler refrence = new MyStudentRegistrationHandler(student_id,student_name,student_email,student_password);\n\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n DatabaseReference dr1 = firebaseDatabase.getReference(\"Student_Details\");\n dr1.child(student_id).child(\"Personal_Details\").setValue(refrence);\n Toast.makeText(this, \"Registration Successfull\", Toast.LENGTH_SHORT).show();\n student_name_et.setText(\"\");\n student_id_et.setText(\"\");\n student_password_et.setText(\"\");\n student_email_et.setText(\"\");\n\n }", "public void saveProfileEditData() {\r\n\r\n }", "public void addStudent(Student InStudent)\n\t{\n\t\tclassRoll.add (InStudent);\n\t\tthis.saveNeed = true;\n\n\t\t\n\t}", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "Accessprofile save(Accessprofile accessprofile);", "public void setStudent(Student s) {\r\n student = s;\r\n }", "private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}", "public static void save()\n\t{\n writeMap();\n\t}", "private static void saveStudentsList(List<Student> students, File file) throws IOException {\n saveStudentsList(students, new FileOutputStream(file));\n }", "public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }", "public void handleStudents() {\n students.forEach(System.out::println);\n producer.saveAttendance(students, course);\n }", "public void savePerson() {\n\t\tSystem.out.println(\"save--person\");\n\t}", "public void saveInformation(){\n market.saveInformationOfMarket();\n deckProductionCardOneBlu.saveInformationOfProductionDeck();\n deckProductionCardOneGreen.saveInformationOfProductionDeck();\n deckProductionCardOneViolet.saveInformationOfProductionDeck();\n deckProductionCardOneYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeBlu.saveInformationOfProductionDeck();\n deckProductionCardThreeGreen.saveInformationOfProductionDeck();\n deckProductionCardThreeYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoBlu.saveInformationOfProductionDeck();\n deckProductionCardTwoGreen.saveInformationOfProductionDeck();\n deckProductionCardTwoViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoYellow.saveInformationOfProductionDeck();\n\n\n }", "public void saveProfileCreateData() {\r\n\r\n }", "@Override\n public void Save() {\n\t \n }", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "public sust.paperlessexm.entity.Student addStudent(sust.paperlessexm.entity.Student model) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n hibernateTemplate.save(model);\n return getStudent(model.getPrimaryKey());\n } finally {\n log.debug(\"finished addStudent(sust.paperlessexm.entity.Student model)\");\n }\n }", "public void savePerson() {\n\t\tSystem.out.println(\"save person\");\n\t}", "public void savePerson() {\n\t\tSystem.out.println(\"save person\");\n\t}", "@Override\n\tpublic Student addStudent(Student std)\n\t {\n\t\t return studentrepo.save(std);\t\t \n\t }", "void save(Employee employee);", "public void AddToStudent(){\n\n try {\n\n String addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN + \", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Margaret', 'Elkins', '555-555-1212')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN +\", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Scott', 'Sivad', '555-555-1313')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN +\", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Sarah', 'Kwabi', '555-555-1414')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN +\", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Caleb', 'Mohammad', '555-555-1515')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n }\n catch (SQLException se){\n System.out.println(se);\n se.printStackTrace();\n }\n }", "@Override\r\n\t@Transactional\r\n\tpublic StudentProfileDetail saveStudent(DtoStudentRegistration dtoStudentRegistration) throws ParseException, MessagingException {\r\n\t\t\r\n\t\tStudentProfileDetail studentProfileDetail=daoStudentProfileDetail.getStudentProfileByStudentId(dtoStudentRegistration.getUserId());\r\n\t\tif(studentProfileDetail==null){\r\n\t\t\tstudentProfileDetail=new StudentProfileDetail();\r\n\t\t}\r\n\t\t\r\n\t\tString key = new RandomKeyUtil().nextRandomKey();\r\n\t\t\r\n\t\tUser user=daoUser.get(dtoStudentRegistration.getUserId());\r\n\t\t\r\n\t\t\r\n\t\tif(dtoStudentRegistration.getParentEmail()!=null){\r\n\t\t\r\n\t\tstudentProfileDetail.setParent_Email(dtoStudentRegistration.getParentEmail());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tstudentProfileDetail.setCareer(dtoStudentRegistration.getCareer());\r\n\t\t\r\n\t\tstudentProfileDetail.setCountryMaster(daoCountryMaster.get(dtoStudentRegistration.getCountry()));\r\n\t\tstudentProfileDetail.setEducationTypeMaster(daoEducationTypeMaster.get(dtoStudentRegistration.getEducationType()));\r\n\t\tstudentProfileDetail.setGrade(dtoStudentRegistration.getGrades());\r\n\t\tstudentProfileDetail.setZone(daoZone.get(dtoStudentRegistration.getTimeZone()));\r\n\t\tstudentProfileDetail.setFirst_Name(dtoStudentRegistration.getFirstName());\r\n\t\tstudentProfileDetail.setLast_Name(dtoStudentRegistration.getLastName());\r\n\t\t\r\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yy\");\r\n\t\tString dateInString = dtoStudentRegistration.getBirthDate();\r\n\t\tDate birthDate = formatter.parse(dateInString);\r\n\t\t\r\n\t\tstudentProfileDetail.setBirthDate(birthDate);\r\n\t\t\r\n\t\tstudentProfileDetail.setUser(user);\r\n\t\t\r\n\t\t//promotional 30 min at student sign up\r\n\t\t\r\n\t\tstudentProfileDetail.setMin_Balance(\"30\");\r\n\t\t\r\n\t\t\r\n\t\tStudentProfileDetail studentProfileDetail2=daoStudentProfileDetail.saveOrUpdate(studentProfileDetail);\r\n\t\t\r\n\t\r\n\t\tuser.setFirebase_username(user.getUsername());\r\n\t\tuser.setFirebase_password(key);\r\n\t\tuser.setIs_Verified(\"Y\");\r\n\t\tuser.setLogin_status(\"N\");\r\n\t\tuser=daoUser.saveOrUpdate(user);\r\n\t\t\r\n\t\tList<ParentStudentRelationship> parentStudentRelationshipList=daoParentStudentRelationship.getRelationListByStudentEmail(user.getUsername());\r\n\t\tif(parentStudentRelationshipList!=null && parentStudentRelationshipList.size()>0)\r\n\t\t{\r\n\t\t\tfor(ParentStudentRelationship parentStudentRelationship2:parentStudentRelationshipList){\r\n\t\t\t\tparentStudentRelationship2.setStudentProfileDetail(studentProfileDetail2);\r\n\t\t\t\tdaoParentStudentRelationship.saveOrUpdate(parentStudentRelationship2);\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(dtoStudentRegistration.getParentEmail()!=null && dtoStudentRegistration.getParentEmail()!=\"\"){\r\n\t\t\t\r\n\t\tParentStudentRelationship parentStudentRelationship = daoParentStudentRelationship.getRelationRecordByParentStudentEmail(dtoStudentRegistration.getParentEmail(),user.getUsername());\r\n\t\t\t//int flag=0;\r\n\t\t\tString isVerified=\"Y\";\r\n\t\t\tString addedBy=\"parent\";\r\n\t\t\tUser userParent=daoUser.getUserByEmail(dtoStudentRegistration.getParentEmail(),RoleMaster.PARENT.getIndex());\r\n\t\t\tParentProfileDetail parentProfileDetail=null;\r\n\t\t\tif(userParent!=null)\r\n\t\t\t{\r\n\t\t\t\tparentProfileDetail=new ParentProfileDetail();\r\n\t\t\t\tparentProfileDetail=daoParentProfileDetail.getParentProfileDetailByUserID(userParent.getUser_Id());\r\n\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t\t\tif(parentStudentRelationship == null){\r\n\t\t\t\t\tparentStudentRelationship = new ParentStudentRelationship();\r\n\t\t\t\t\tisVerified=\"N\";\r\n\t\t\t\t\taddedBy=\"student\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\tString parentEmail = dtoStudentRegistration.getParentEmail();\r\n\t\t\t\t\tparentStudentRelationship.setParentEmail(parentEmail);\r\n\t\t\t\t\tparentStudentRelationship.setStudentEmail(user.getUsername());\r\n\t\t\t\t\tparentStudentRelationship.setIs_Verified(isVerified);\r\n\t\t\t\t\tparentStudentRelationship.setParentProfileDetail(parentProfileDetail);\r\n\t\t\t\t\tparentStudentRelationship.setStudentProfileDetail(studentProfileDetail2);\r\n\t\t\t\t\tparentStudentRelationship.setAddedBy(addedBy);\r\n\t\t\t\t\t\r\n\t\t\t\t\tdaoParentStudentRelationship.saveOrUpdate(parentStudentRelationship);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(userParent!=null){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tEmailTemplate emailTemplate=daoEmailTemplate.get(EmailTemplateConstant.studentapprovalbylogin.getIndex());\r\n\t\t\t\t\t\tif(emailTemplate!=null){\r\n\t\t\t\t\t\t\tString parentName=parentProfileDetail.getFirstName()+\" \"+parentProfileDetail.getLastName();\r\n\t\t\t\t\t\t\tString studentName=studentProfileDetail2.getFirst_Name()+\" \"+studentProfileDetail2.getLast_Name();\r\n\t\t\t\t\t\t\tString loginUrl=appUrl+\"/login\";\r\n\t\t\t\t\t\tString emailString=emailTemplate.getTemplate_Text();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailString = emailString.replaceAll(\"##PARENTNAME##\", parentName).replaceAll(\"##STUDENTNAME##\", studentName).replaceAll(\"##LOGINURL##\", loginUrl);\r\n\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\temailManager.sendMessageEmail(\"Solicitud AlóProfe\",dtoStudentRegistration.getParentEmail(),emailString);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tEmailTemplate emailTemplate=daoEmailTemplate.get(EmailTemplateConstant.studentapprovalbysignup.getIndex());\r\n\t\t\t\t\t\tif(emailTemplate!=null){\r\n\t\t\t\t\t\t\tString parentemail=dtoStudentRegistration.getParentEmail();\r\n\t\t\t\t\t\t\tString studentName=studentProfileDetail2.getFirst_Name()+\" \"+studentProfileDetail2.getLast_Name();\r\n\t\t\t\t\t\t\tString signUpUrl=appUrl+\"/signup\";\r\n\t\t\t\t\t\tString emailString=emailTemplate.getTemplate_Text();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailString = emailString.replaceAll(\"##PARENTEMAIL##\", parentEmail).replaceAll(\"##STUDENTNAME##\", studentName).replaceAll(\"##SIGNUPURL##\", signUpUrl);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\temailManager.sendMessageEmail(\"Solicitud AlóProfe\",parentemail,emailString);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\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}\r\n\t\t\t\t\t\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\treturn studentProfileDetail2;\r\n\t}" ]
[ "0.8167717", "0.7832637", "0.78118956", "0.7800495", "0.76738006", "0.76116186", "0.7462039", "0.7393063", "0.7367881", "0.72912693", "0.7283701", "0.71449333", "0.698789", "0.6859585", "0.6801905", "0.6792916", "0.6746338", "0.6713152", "0.6649404", "0.66047996", "0.6570883", "0.6561476", "0.6560434", "0.65485275", "0.65218943", "0.650524", "0.64950985", "0.64877486", "0.64825666", "0.6464875", "0.6454224", "0.643589", "0.64309365", "0.6429649", "0.6426485", "0.64259255", "0.6422027", "0.641503", "0.63892436", "0.63892436", "0.63892436", "0.63892436", "0.63704413", "0.6361798", "0.635744", "0.635744", "0.635744", "0.6356597", "0.63465536", "0.6340992", "0.6336367", "0.63263416", "0.63122874", "0.6299263", "0.6256151", "0.6249858", "0.6247971", "0.624717", "0.62442243", "0.6232838", "0.6229271", "0.62277305", "0.62273604", "0.6226915", "0.621691", "0.6209009", "0.62029797", "0.6201933", "0.6197888", "0.61861604", "0.6173873", "0.6165372", "0.615914", "0.6148118", "0.61210203", "0.6116554", "0.611009", "0.610488", "0.6091603", "0.6091603", "0.609025", "0.6084483", "0.60710204", "0.60696584", "0.6067556", "0.60675395", "0.6060585", "0.605379", "0.605295", "0.60500544", "0.6043289", "0.60419023", "0.6037976", "0.6035736", "0.6029477", "0.60278547", "0.60278547", "0.60231173", "0.6019964", "0.6019184", "0.60092837" ]
0.0
-1
start fired when the animation starts
public interface TitaniumUIAnimationStartHandler { /** * <b>start</b> * <p> * fired when the animation starts * @param source the source object that fired the event * @param type the name of the event fired */ void start(JavaScriptObject source, JavaScriptObject type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onAnimationStart();", "void startAnimation();", "public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }", "public abstract void animationStarted();", "@Override\n protected void animStart() {\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "public void startAnimation() {\r\n\t\tani.start();\r\n\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t}", "public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "public void startAnimation() {\n timer.start();\n }", "public void onAnimationStart(Animation arg0) {\n\t}", "@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}", "@Override\n public void onAnimationStart(Animation arg0) {\n \n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "public void onAnimationStart(Animation animation) {\n }", "@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t}", "@Override\n\t public void onAnimationStart(Animation animation) {\n\t \n\t }", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onAnimationStart(Animation animation) {\n\t }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "@Override\n\tpublic void onAnimationStart(Animation animation) {\n\n\t}", "@Override\n public void onAnimationStart(Animation animation) {\n }", "public void onAnimationStart(Animation animation) {\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "@Override\n public void onAnimationStart(Animator animation) {\n }", "public void start() {\n if(mCancelAnim){\n setCancelAnimator(false);\n onEnd();\n return;\n }\n if (count <= 0) {\n setCancelNext(true);\n onEnd();\n return; //end\n }\n //start once now\n /* Logger.d(\"AnimateHelper\",\"start_before_start\",\"count = \" + count +\n \",already started ?=\" + anim.isStarted());*/\n --count;\n anim.start();\n }", "public void onAnimationStart(Animation animation) {\n }", "@Override public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "public void anim() {\n // start the timer\n t.start();\n }", "public void onAnimationStart(Animation animation) {\n\r\n }", "@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }", "public void start() {\n animator.start();\n setVisible(true);\n requestFocus();\n }", "@Override\n public void run() {\n runAnimation();\n }", "public void start() {\n if (animationTimer != null) {\n animationTimer.cancel();\n }\n animationTimer = new Timer();\n animationTimer.scheduleAtFixedRate(new AnimationTask(), 0, 25);\n }", "private void startAnimation()\n\t{\n\t\tActionListener timerListener = new TimerListener();\n\t\tTimer timer = new Timer(DELAY, timerListener);\n\t\ttimer.start();\n\t}", "public void start()\n {\n animator = new Thread(this);\n animator.start();\n }", "private void startAnimation(){\n\t TimerActionListener taskPerformer = new TimerActionListener();\n\t new Timer(DELAY, taskPerformer).start();\n \t}", "public void startAnimating() {\n\t\tif (!mAnimating) {\n\t\t\tmAnimating = true;\n\t\t\tmAnimationProgress = mProgress;\n\t\t\tmAnimationHandler.sendEmptyMessage(0);\n\t\t}\n\t}", "public void start() {\n\t\tcurrentFrameIndex = 0;\n\t}", "@Override\n public void animate() {\n }", "protected void startAnimation(final S state) {\r\n currentAnimation.stop();\r\n animations.get(state).run();\r\n }", "public void start(float delta) {\n\t\t\n\t}", "public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }", "public void start(){\n\t\tthis.lastUpdate = System.currentTimeMillis();\n\t\tthis.millisIntoFrame=0;\n\t\tthis.currentFrame=0;\n\t}", "private void doStartAnimation(){\n TranslateAnimation trans = new TranslateAnimation(Animation.RELATIVE_TO_PARENT,1\n ,Animation.ABSOLUTE,circleImageView.getLeft()\n ,Animation.RELATIVE_TO_SELF,0,Animation.RELATIVE_TO_SELF,0);\n trans.setDuration(3000);\n trans.setInterpolator(new BounceInterpolator());\n circleImageView.startAnimation(trans);\n }", "public void startAnimation()\n {\n if ( animationTimer == null )\n {\n currentImage = 0; // display first image\n \n // Create timer\n animationTimer = new Timer ( ANIMATION_DELAY, new TimerHandler() );\n \n animationTimer.start(); // start Timer\n } // end if statement\n else // animationTimer already exists, restart animation\n {\n if ( ! animationTimer.isRunning() )\n animationTimer.restart();\n } // end else statement\n }", "@Override\n public void onStart() {\n super.onStart();\n getWidgets(getView());\n loadAnimation();\n }", "public void animate()\n\t{\n\t\tanimation.read();\n\t}", "protected abstract void onAnimStart(boolean isCancelAnim);", "public StartAnimationHandler(SceneRenderer initRenderer)\r\n {\r\n renderer = initRenderer;\r\n }", "public void start() {\n\t\t setVisible(true);\n\t}", "public void start() {\n enemyTimeline.play();\n }", "@Override\n public void Start() {\n\n }", "@Override\n public void Start() {\n\n }", "@Override\n public void Start() {\n\n }", "@Override\n public void run() {\n AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();\n frameAnimation.start();\n }", "public void userStart(View view){\n\n glay.animate().alpha(1).start();\n wlay.animate().alpha(0).start();\n\n\n started = true;\n\n\n\n ilay.animate().alpha(0).start();\n //Defining the score and total of exercises\n score = total = 0;\n\n //set the time\n sec = 60;\n start.animate().alpha(0).start();\n appRun();\n\n }", "public void start()\n {\n mover.start();\n }", "public StartAnimationHandler(SceneRenderer initRenderer) {\n // KEEP THIS FOR LATER\n renderer = initRenderer;\n }", "void onStart(int duration);", "void animationFinished();", "public void startAnimation() {\n int delay = 50; // milliseconds\n ActionListener taskPerformer = new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (counter < points.length - 1) {\n counter += 20;\n if (counter > points.length) {\n counter = points.length - 1;\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n validate();\n repaint();\n } else {\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n }\n };\n new Timer(delay, taskPerformer, getFreeColClient()).start();\n }", "void moveToStart();", "public void start(){\n }", "public void drawAnimationAtStart(){\n animationThread = new AnimationThread(this.getGraphics(), getWidth(), getHeight());\n animationThread.start();\n music.playAudio(\"LoadingScreenMusic\");\n musicName = \"LoadingScreenMusic\";\n }", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "public void start() {\n\r\n }", "@Override\r\n\tpublic void start() {\n\t\tsuper.start();\r\n\t\t\r\n\t}", "public void start(){\n\t\tsuper.start();\n\t}", "public void start() {\n \tthis.currentState = this.initialState;\n \tstop=false; //indica que el juego no se ha detenido\n \tnotifyObservers(new GameEvent<S, A>(EventType.Start,null,currentState,\n \t\t\t\t\tnull,\"The game started\"));\n\n }", "public void Start();" ]
[ "0.8362959", "0.82307315", "0.8122204", "0.808208", "0.8030803", "0.7990519", "0.7990519", "0.79727066", "0.7963709", "0.7955258", "0.78907055", "0.78907055", "0.78885573", "0.78837013", "0.78325546", "0.78325546", "0.7820402", "0.7787406", "0.77766913", "0.7754004", "0.7716481", "0.7716481", "0.770711", "0.770711", "0.770711", "0.770711", "0.770609", "0.76902324", "0.76898164", "0.7687761", "0.7687761", "0.76805174", "0.76802325", "0.76802325", "0.76802325", "0.76741874", "0.7649223", "0.7644382", "0.7644382", "0.7644382", "0.7644382", "0.7639036", "0.76336324", "0.7631908", "0.7629867", "0.76150066", "0.7569639", "0.7566359", "0.7538984", "0.7511863", "0.750678", "0.75038874", "0.75033903", "0.7497696", "0.7479818", "0.7476264", "0.74619615", "0.7449235", "0.738617", "0.7355711", "0.735106", "0.72802407", "0.7251344", "0.72194654", "0.71777135", "0.70837367", "0.7069101", "0.7049997", "0.7020313", "0.70056987", "0.6989076", "0.69600767", "0.68894744", "0.68681026", "0.6835429", "0.6825102", "0.68021923", "0.67753994", "0.67576593", "0.67480713", "0.67411673", "0.67411673", "0.67411673", "0.6739357", "0.6714596", "0.67113006", "0.6707905", "0.6686221", "0.66713846", "0.66618884", "0.66613567", "0.66526115", "0.6640586", "0.66287804", "0.6625419", "0.6625419", "0.661116", "0.6596247", "0.65944934", "0.6592692", "0.6582559" ]
0.0
-1
start fired when the animation starts
void start(JavaScriptObject source, JavaScriptObject type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onAnimationStart();", "void startAnimation();", "public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }", "public abstract void animationStarted();", "@Override\n protected void animStart() {\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "public void startAnimation() {\r\n\t\tani.start();\r\n\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t}", "public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "public void startAnimation() {\n timer.start();\n }", "public void onAnimationStart(Animation arg0) {\n\t}", "@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}", "@Override\n public void onAnimationStart(Animation arg0) {\n \n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "public void onAnimationStart(Animation animation) {\n }", "@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t}", "@Override\n\t public void onAnimationStart(Animation animation) {\n\t \n\t }", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onAnimationStart(Animation animation) {\n\t }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "@Override\n\tpublic void onAnimationStart(Animation animation) {\n\n\t}", "@Override\n public void onAnimationStart(Animation animation) {\n }", "public void onAnimationStart(Animation animation) {\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "@Override\n public void onAnimationStart(Animator animation) {\n }", "public void start() {\n if(mCancelAnim){\n setCancelAnimator(false);\n onEnd();\n return;\n }\n if (count <= 0) {\n setCancelNext(true);\n onEnd();\n return; //end\n }\n //start once now\n /* Logger.d(\"AnimateHelper\",\"start_before_start\",\"count = \" + count +\n \",already started ?=\" + anim.isStarted());*/\n --count;\n anim.start();\n }", "public void onAnimationStart(Animation animation) {\n }", "@Override public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "public void anim() {\n // start the timer\n t.start();\n }", "public void onAnimationStart(Animation animation) {\n\r\n }", "@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }", "public void start() {\n animator.start();\n setVisible(true);\n requestFocus();\n }", "@Override\n public void run() {\n runAnimation();\n }", "public void start() {\n if (animationTimer != null) {\n animationTimer.cancel();\n }\n animationTimer = new Timer();\n animationTimer.scheduleAtFixedRate(new AnimationTask(), 0, 25);\n }", "private void startAnimation()\n\t{\n\t\tActionListener timerListener = new TimerListener();\n\t\tTimer timer = new Timer(DELAY, timerListener);\n\t\ttimer.start();\n\t}", "public void start()\n {\n animator = new Thread(this);\n animator.start();\n }", "private void startAnimation(){\n\t TimerActionListener taskPerformer = new TimerActionListener();\n\t new Timer(DELAY, taskPerformer).start();\n \t}", "public void startAnimating() {\n\t\tif (!mAnimating) {\n\t\t\tmAnimating = true;\n\t\t\tmAnimationProgress = mProgress;\n\t\t\tmAnimationHandler.sendEmptyMessage(0);\n\t\t}\n\t}", "public void start() {\n\t\tcurrentFrameIndex = 0;\n\t}", "@Override\n public void animate() {\n }", "protected void startAnimation(final S state) {\r\n currentAnimation.stop();\r\n animations.get(state).run();\r\n }", "public void start(float delta) {\n\t\t\n\t}", "public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }", "public void start(){\n\t\tthis.lastUpdate = System.currentTimeMillis();\n\t\tthis.millisIntoFrame=0;\n\t\tthis.currentFrame=0;\n\t}", "private void doStartAnimation(){\n TranslateAnimation trans = new TranslateAnimation(Animation.RELATIVE_TO_PARENT,1\n ,Animation.ABSOLUTE,circleImageView.getLeft()\n ,Animation.RELATIVE_TO_SELF,0,Animation.RELATIVE_TO_SELF,0);\n trans.setDuration(3000);\n trans.setInterpolator(new BounceInterpolator());\n circleImageView.startAnimation(trans);\n }", "public void startAnimation()\n {\n if ( animationTimer == null )\n {\n currentImage = 0; // display first image\n \n // Create timer\n animationTimer = new Timer ( ANIMATION_DELAY, new TimerHandler() );\n \n animationTimer.start(); // start Timer\n } // end if statement\n else // animationTimer already exists, restart animation\n {\n if ( ! animationTimer.isRunning() )\n animationTimer.restart();\n } // end else statement\n }", "@Override\n public void onStart() {\n super.onStart();\n getWidgets(getView());\n loadAnimation();\n }", "public void animate()\n\t{\n\t\tanimation.read();\n\t}", "protected abstract void onAnimStart(boolean isCancelAnim);", "public StartAnimationHandler(SceneRenderer initRenderer)\r\n {\r\n renderer = initRenderer;\r\n }", "public void start() {\n\t\t setVisible(true);\n\t}", "public void start() {\n enemyTimeline.play();\n }", "@Override\n public void Start() {\n\n }", "@Override\n public void Start() {\n\n }", "@Override\n public void Start() {\n\n }", "@Override\n public void run() {\n AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();\n frameAnimation.start();\n }", "public void userStart(View view){\n\n glay.animate().alpha(1).start();\n wlay.animate().alpha(0).start();\n\n\n started = true;\n\n\n\n ilay.animate().alpha(0).start();\n //Defining the score and total of exercises\n score = total = 0;\n\n //set the time\n sec = 60;\n start.animate().alpha(0).start();\n appRun();\n\n }", "public void start()\n {\n mover.start();\n }", "public StartAnimationHandler(SceneRenderer initRenderer) {\n // KEEP THIS FOR LATER\n renderer = initRenderer;\n }", "void onStart(int duration);", "void animationFinished();", "public void startAnimation() {\n int delay = 50; // milliseconds\n ActionListener taskPerformer = new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (counter < points.length - 1) {\n counter += 20;\n if (counter > points.length) {\n counter = points.length - 1;\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n validate();\n repaint();\n } else {\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n }\n };\n new Timer(delay, taskPerformer, getFreeColClient()).start();\n }", "void moveToStart();", "public void start(){\n }", "public void drawAnimationAtStart(){\n animationThread = new AnimationThread(this.getGraphics(), getWidth(), getHeight());\n animationThread.start();\n music.playAudio(\"LoadingScreenMusic\");\n musicName = \"LoadingScreenMusic\";\n }", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "public void start() {\n\r\n }", "@Override\r\n\tpublic void start() {\n\t\tsuper.start();\r\n\t\t\r\n\t}", "public void start(){\n\t\tsuper.start();\n\t}", "public void start() {\n \tthis.currentState = this.initialState;\n \tstop=false; //indica que el juego no se ha detenido\n \tnotifyObservers(new GameEvent<S, A>(EventType.Start,null,currentState,\n \t\t\t\t\tnull,\"The game started\"));\n\n }", "public void Start();" ]
[ "0.83634377", "0.8231095", "0.81226224", "0.8082246", "0.80315846", "0.79908615", "0.79908615", "0.79733557", "0.7964018", "0.7955639", "0.78908837", "0.78908837", "0.7888877", "0.7884171", "0.7832847", "0.7832847", "0.78208095", "0.77873427", "0.7777213", "0.77544177", "0.7717057", "0.7717057", "0.7707832", "0.7707832", "0.7707832", "0.7707832", "0.77064794", "0.76907194", "0.76903987", "0.76882786", "0.76882786", "0.76810586", "0.7680707", "0.7680707", "0.7680707", "0.767477", "0.7649776", "0.7645013", "0.7645013", "0.7645013", "0.7645013", "0.7639617", "0.7633932", "0.763217", "0.76304567", "0.76154834", "0.757012", "0.75666684", "0.7539485", "0.7512341", "0.7507281", "0.7504359", "0.750371", "0.749798", "0.74800915", "0.7476564", "0.746257", "0.74494976", "0.7386647", "0.7355943", "0.7351978", "0.7280935", "0.7251009", "0.7219699", "0.7177606", "0.70841616", "0.70694107", "0.7050779", "0.70208555", "0.70058846", "0.69891727", "0.69601804", "0.6889812", "0.68681824", "0.683632", "0.68254", "0.680279", "0.67752707", "0.6757642", "0.674817", "0.6741716", "0.6741716", "0.6741716", "0.67405075", "0.6714813", "0.6710923", "0.67078704", "0.66867584", "0.66713464", "0.6661857", "0.66614515", "0.6653085", "0.66405094", "0.6629061", "0.662566", "0.662566", "0.6611525", "0.6597326", "0.65955245", "0.65922356", "0.65829784" ]
0.0
-1
get the bookings where arrival and departure are between the already booked dates
public ArrayList<RoomBooking> findRoomBookingsWithDates(int arrival, int departure, boolean retrieveAssociation) { ArrayList<RoomBooking> rbList = new ArrayList<>(); rbList=miscWhere("arrivalDate<="+arrival+" AND departureDate>="+arrival+ " OR arrivalDate<="+departure+" AND departureDate>="+departure, retrieveAssociation); return rbList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Query(value = FIND_BOOKED_DATES)\n\tpublic List<BookingDate> getBooking(Date startDate, Date endDate);", "@Query(\"select reservation from Reservation reservation where reservation.endBorrowing>=:endBorrowing\")\n List<Reservation> findByEndBorrowingAfter(@Param(\"endBorrowing\")Date endBorrowing);", "public static int room_booking(int start, int end){\r\n\r\n\t\tint selected_room = -1;\r\n\t\t// booking_days list is to store all the days between start and end day\r\n\t\tList<Integer> booking_days = new ArrayList<>();\r\n\t\tfor(int i=start;i<=end; i++) {\r\n\t\t\tbooking_days.add(i);\r\n\t\t}\r\n\r\n\t\tfor(int roomNo : hotel_size) {\r\n\r\n\t\t\tif(room_bookings.keySet().contains(roomNo)) {\r\n\t\t\t\tfor (Map.Entry<Integer, Map<Integer,List<Integer>>> entry : room_bookings.entrySet()) {\r\n\r\n\t\t\t\t\tList<Integer> booked_days_for_a_room = new ArrayList<Integer>();\r\n\t\t\t\t\tif(roomNo == entry.getKey()) {\r\n\t\t\t\t\t\tentry.getValue().forEach((bookingId, dates)->{\r\n\t\t\t\t\t\t\tbooked_days_for_a_room.addAll(dates);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tList<Integer> check_elements = new ArrayList<Integer>();\r\n\t\t\t\t\t\tfor(int element : booking_days) {\r\n\t\t\t\t\t\t\tif(booked_days_for_a_room.contains(element)) {\r\n\t\t\t\t\t\t\t\tstatus = false;\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\telse {\r\n\t\t\t\t\t\t\t\tcheck_elements.add(element);\r\n\t\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\t\tstatus = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(status) {\r\n\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\treturn selected_room;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tselected_room = roomNo;\r\n\t\t\t\tstatus = true;\r\n\t\t\t\treturn selected_room;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn selected_room;\r\n\t}", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "public List<Integer> getBookedRooms(Date fromDate, Date toDate)\r\n {\r\n String fDate = DateFormat.getDateInstance(DateFormat.SHORT).format(fromDate);\r\n String tDate = DateFormat.getDateInstance(DateFormat.SHORT).format(toDate);\r\n \r\n List<Integer> bookedRooms = new LinkedList<>();\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n String bookingFromDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getFromDate());\r\n \r\n String bookingToDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getToDate());\r\n \r\n if(!booking.getCancelled() && !(fDate.compareTo(bookingToDate) == 0) \r\n && fDate.compareTo(bookingToDate) <= 0 &&\r\n bookingFromDate.compareTo(fDate) <= 0 && bookingFromDate.compareTo(tDate) <= 0)\r\n { \r\n List<Integer> b = booking.getRoomNr();\r\n bookedRooms.addAll(b);\r\n }\r\n }// End of while\r\n \r\n return bookedRooms;\r\n }", "@Test\n public void findReservationBetweenTest() {\n Collection<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n expected.add(reservation3);\n expected.add(reservation4);\n Mockito.when(reservationDao.findReservationBetween(Mockito.any(LocalDate.class), Mockito.any(LocalDate.class)))\n .thenReturn(expected);\n Collection<Reservation> result = reservationService.findReservationsBetween(LocalDate.now().minusDays(4),\n LocalDate.now().plusDays(15));\n Assert.assertEquals(result.size(), 4);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n Assert.assertTrue(result.contains(reservation3));\n Assert.assertTrue(result.contains(reservation4));\n }", "ObservableList<Booking> getUpcomingBookingList();", "@CrossOrigin(origins = \"http://campsiteclient.herokuapp.com\", maxAge = 3600)\n\t@GetMapping\n\tpublic JSONArray checkAvaibility(@RequestParam(value = \"from\") Optional<String> from,\n\t\t\t@RequestParam(value = \"to\") Optional<String> to) throws java.text.ParseException {\n\n\t\tString startDateStringFormat = from\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(1, new Date())));\n\t\tString endDateStringFormat = to\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(31, new Date())));\n\n\t\tDate startDate = bookingServiceImpl.formatDate(startDateStringFormat);\n\t\tDate endDate = dateUtils.formatDate(endDateStringFormat);\n\n\t\tList<BookingDate> bookedDates = bookingDateRepository.getBooking(startDate, endDate);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (BookingDate bookingDate : bookedDates) {\n\t\t\tDate date = bookingDate.getBookingDate();\n\t\t\tString dateToString = dateUtils.formatDate(date);\n\t\t\tlist.add(dateToString);\n\t\t}\n\n\t\tJSONArray result = bookingServiceImpl\n\t\t\t\t.getAvailableDates(new HashSet<BookingDate>(bookedDates), startDate, endDate);\n\t\treturn result;\n\t}", "public List<TblReservation>getAllDataReservationByPeriode(Date startDate,Date endDate,\r\n RefReservationStatus reservationStatus,\r\n TblTravelAgent travelAgent,\r\n RefReservationOrderByType reservationType,\r\n TblReservation reservation);", "public List<Book> getBooksFilteredByDate(GregorianCalendar startDate, GregorianCalendar endDate)\r\n\t{\r\n\t\tList<Book> books = new ArrayList<Book>();\r\n\t\tif(startDate.compareTo(endDate) != -1) {\r\n\t\t\tbooks = null;\r\n\t\t}\r\n\t\tfor(Book book : items) {\r\n\t\t\tGregorianCalendar date = book.getPubDate();\r\n\t\t\tboolean beforeEnd = true;\r\n\t\t\tif(endDate != null) {\r\n\t\t\t\tbeforeEnd = date.compareTo(endDate) == -1;\r\n\t\t\t}\r\n\t\t\tboolean afterStart = date.compareTo(startDate) > -1;\r\n\t\t\tif(beforeEnd && afterStart) {\r\n\t\t\t\tbooks.add(book);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn books;\r\n\t}", "private void twoDateOccupancyQuery(String startDate, String endDate){\n List<String> emptyRooms = findEmptyRoomsInRange(startDate, endDate);\n List<String> fullyOccupiedRooms = findOccupiedRoomsInRange(startDate, endDate, emptyRooms);\n List<String> partiallyOccupiedRooms = \n (generateListOfAllRoomIDS().removeAll(emptyRooms)).removeAll(fullyOccupiedRooms);\n\n occupancyColumns = new Vector<String>();\n occupancyData = new Vector<Vector<String>>();\n occupancyColumns.addElement(\"RoomId\");\n occupancyColumns.addElement(\"Occupancy Status\");\n\n for(String room: emptyRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Empty\");\n occupancyData.addElement(row);\n }\n for(String room: fullyOccupiedRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Fully Occupied\");\n occupancyData.addElement(row);\n }\n for(String room: partiallyOccupiedRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Partially Occupied\");\n occupancyData.addElement(row);\n }\n return;\n}", "public void allBookings() {\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint roomNum; //Room number\r\n\t\t\tint buffNum; //buff room number\r\n\t\t\tint index = 0; //saves the index of the date stored in the arraylist dateArray\r\n\t\t\tBooking buff; //Booking buffer to use\r\n\t\t\tRooms roomCheck;\r\n\t\t\tArrayList<LocalDate> dateArray = new ArrayList<LocalDate>(); //Saves the booking dates of a room\r\n\t\t\tArrayList<Integer> nights = new ArrayList<Integer>(); //Saves the number of nights a room is booked for\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //Looping Room Number-wise\r\n\t\t\t\troomCheck = RoomDetails.get(i);\r\n\t\t\t\troomNum = roomCheck.getRoomNum();\r\n\t\t\t\tSystem.out.print(this.Name + \" \" + roomNum);\r\n\t\t\t\twhile(k < Bookings.size()) { //across all bookings\r\n\t\t\t\t\tbuff = Bookings.get(k);\r\n\t\t\t\t\twhile(j < buff.getNumOfRoom()) { //check each booked room\r\n\t\t\t\t\t\tbuffNum = buff.getRoomNumber(j);\r\n\t\t\t\t\t\tif(buffNum == roomNum) { //If a booking is found for a specific room (roomNum)\r\n\t\t\t\t\t\t\tdateArray.add(buff.getStartDate()); //add the date to the dateArray\r\n\t\t\t\t\t\t\tCollections.sort(dateArray); //sort the dateArray\r\n\t\t\t\t\t\t\tindex = dateArray.indexOf(buff.getStartDate()); //get the index of the newly add date\r\n\t\t\t\t\t\t\tnights.add(index, buff.getDays()); //add the number of nights to the same index as the date\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\t\t\t\t\tj=0;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t\tprintOccupancy(dateArray, nights); //print the occupancy of the room\r\n\t\t\t\tk=0;\r\n\t\t\t\tdateArray.clear(); //cleared to be used again\r\n\t\t\t\tnights.clear(); //cleared to be used again\r\n\t\t\t}\r\n\t\t}", "@Query(\n value = \"SELECT d\\\\:\\\\:date\\n\" +\n \"FROM generate_series(\\n\" +\n \" :startDate\\\\:\\\\:timestamp without time zone,\\n\" +\n \" :endDate\\\\:\\\\:timestamp without time zone,\\n\" +\n \" '1 day'\\n\" +\n \" ) AS gs(d)\\n\" +\n \"WHERE NOT EXISTS(\\n\" +\n \" SELECT\\n\" +\n \" FROM bookings\\n\" +\n \" WHERE bookings.date_range @> d\\\\:\\\\:date\\n\" +\n \" );\",\n nativeQuery = true)\n List<Date> findAvailableDates(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate);", "void setTripDates(Calendar departureDate, Calendar arrivalDate);", "boolean overlap(Reservation other);", "public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }", "@RequestMapping(path = \"/availability\", method = RequestMethod.GET)\n public List<ReservationDTO> getAvailability(\n @RequestParam(value = \"start_date\", required = false)\n @DateTimeFormat(iso = ISO.DATE) LocalDate startDate,\n @RequestParam(value = \"end_date\", required = false)\n @DateTimeFormat(iso = ISO.DATE) LocalDate endDate) {\n\n Optional<LocalDate> optStart = Optional.ofNullable(startDate);\n Optional<LocalDate> optEnd = Optional.ofNullable(endDate);\n\n if (!optStart.isPresent() && !optEnd.isPresent()) {\n //case both are not present, default time is one month from now\n startDate = LocalDate.now();\n endDate = LocalDate.now().plusMonths(1);\n } else if (optStart.isPresent() && !optEnd.isPresent()) {\n //case only start date is present, default time is one month from start date\n endDate = startDate.plusMonths(1);\n } else if (!optStart.isPresent()) {\n //case only end date is present, default time is one month before end date\n startDate = endDate.minusMonths(1);\n } // if both dates are present, do nothing just use them\n\n List<Reservation> reservationList = this.service\n .getAvailability(startDate, endDate);\n\n return reservationList.stream().map(this::parseReservation).collect(Collectors.toList());\n }", "private static boolean availabilityQuery(String roomid, String date1, String date2)\n {\n String query = \"SELECT status\"\n + \" FROM (\"\n + \" SELECT DISTINCT ro.RoomId, 'occupied' AS status\"\n + \" FROM myReservations re JOIN myRooms ro ON (re.Room = ro.RoomId)\"\n + \" WHERE (DATEDIFF(CheckIn, DATE(\" + date1 + \")) <= 0\"\n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) > 0)\" \n + \" OR (DATEDIFF(CheckIn, DATE(\" + date1 + \")) > 0\" \n + \" AND DATEDIFF(CheckIn, DATE(\" + date2 + \")) <= 0)\" \n + \" OR (DATEDIFF(CheckOut, DATE(\" + date1 + \")) > 0\" \n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) < 0)\"\n + \" UNION\"\n + \" SELECT DISTINCT RoomId, 'empty' AS status\"\n + \" FROM myRooms\"\n + \" WHERE RoomId NOT IN (\"\n + \" SELECT DISTINCT re.Room\"\n + \" FROM myReservations re JOIN myRooms ro ON (re.Room = ro.RoomId)\"\n + \" WHERE (DATEDIFF(CheckIn, DATE(\" + date1 + \")) <= 0\"\n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) > 0)\"\n + \" OR (DATEDIFF(CheckIn, DATE(\" + date1 + \")) > 0\"\n + \" AND DATEDIFF(CheckIn, DATE(\" + date2 + \")) <= 0)\" \n + \" OR (DATEDIFF(CheckOut, DATE(\" + date1 + \")) > 0\" \n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) < 0)\" \n + \" )) AS tb\"\n + \" WHERE RoomId = '\" + roomid + \"'\";\n\n PreparedStatement stmt = null;\n ResultSet rset = null;\n\n try\n {\n stmt = conn.prepareStatement(query);\n rset = stmt.executeQuery();\n rset.next();\n if(rset.getString(\"status\").equals(\"empty\"))\n return true;\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n finally {\n try {\n stmt.close();\n }\n catch (Exception ex) {\n ex.printStackTrace( ); \n } \t\n }\n \n return false;\n\n }", "@Test(expected = IllegalDateException.class)\n\tpublic void testBookStartDateAfterEndDate() throws Exception {\n\t\t// switched end and start\n\t\tbookingManagement.book(USER_ID, Arrays.asList(room1.getId()), validEndDate, validStartDate);\n\t}", "public ArrayList<Booking> getBookings(int time,String date){\n ArrayList<Booking>Hours=new ArrayList<>();\n for(int i=0;i<Schedule.size();++i){\n Booking temp=Schedule.get(i); \n String Day=temp.getDate();\n int Datevalue=Integer.parseInt(Day.substring(8,10));\n int Value=Integer.parseInt(date);\n if(time<10) {\n if (temp.getTime().substring(0, 2).equals(\"0\"+time) && Datevalue==Value){\n Hours.add(temp);\n }\n }\n else{\n if (temp.getTime().substring(0, 2).equals(\"\"+time) && Datevalue==Value){\n Hours.add(temp);\n }\n }\n }\n return Hours;\n }", "public void showBookingsByDates(JTextArea output, Date fromDate, Date toDate)\r\n {\r\n output.setText(\"Bookinger mellom \" \r\n + (DateFormat.getDateInstance(DateFormat.MEDIUM).format(fromDate)) \r\n + \" og \" + (DateFormat.getDateInstance(DateFormat.MEDIUM).format(toDate)) + \"\\n\\n\");\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n \r\n if((booking.getToDate().compareTo(toDate) >= 0 &&\r\n booking.getFromDate().compareTo(fromDate) <= 0) ||\r\n (booking.getToDate().compareTo(toDate) <= 0) && \r\n booking.getFromDate().compareTo(fromDate) >= 0)\r\n {\r\n output.append(booking.toString() \r\n + \"\\n*******************************************************\\n\");\r\n }//End of if\r\n }// End of while\r\n }", "List<Map<String, Object>> betweenDateFind(String date1, String date2) throws ParseException;", "@Override\n public List<LocalTime> getAvailableTimesForServiceAndDate(final com.wellybean.gersgarage.model.Service service, LocalDate date) {\n\n LocalTime garageOpening = LocalTime.of(9,0);\n LocalTime garageClosing = LocalTime.of(17, 0);\n\n // List of all slots set as available\n List<LocalTime> listAvailableTimes = new ArrayList<>();\n for(LocalTime slot = garageOpening; slot.isBefore(garageClosing); slot = slot.plusHours(1)) {\n listAvailableTimes.add(slot);\n }\n\n Optional<List<Booking>> optionalBookingList = bookingService.getAllBookingsForDate(date);\n\n // This removes slots that are occupied by bookings on the same day\n if(optionalBookingList.isPresent()) {\n List<Booking> bookingsList = optionalBookingList.get();\n for(Booking booking : bookingsList) {\n int bookingDurationInHours = booking.getService().getDurationInMinutes() / 60;\n // Loops through all slots used by the booking and removes them from list of available slots\n for(LocalTime bookingTime = booking.getTime();\n bookingTime.isBefore(booking.getTime().plusHours(bookingDurationInHours));\n bookingTime = bookingTime.plusHours(1)) {\n\n listAvailableTimes.remove(bookingTime);\n }\n }\n }\n\n int serviceDurationInHours = service.getDurationInMinutes() / 60;\n\n // To avoid concurrent modification of list\n List<LocalTime> listAvailableTimesCopy = new ArrayList<>(listAvailableTimes);\n\n // This removes slots that are available but that are not enough to finish the service. Example: 09:00 is\n // available but 10:00 is not. For a service that takes two hours, the 09:00 slot should be removed.\n for(LocalTime slot : listAvailableTimesCopy) {\n boolean isSlotAvailable = true;\n // Loops through the next slots within the duration of the service\n for(LocalTime nextSlot = slot.plusHours(1); nextSlot.isBefore(slot.plusHours(serviceDurationInHours)); nextSlot = nextSlot.plusHours(1)) {\n if(!listAvailableTimes.contains(nextSlot)) {\n isSlotAvailable = false;\n break;\n }\n }\n if(!isSlotAvailable) {\n listAvailableTimes.remove(slot);\n }\n }\n\n return listAvailableTimes;\n }", "@Override\n public List<LocalDate> getAvailableDatesForService(final com.wellybean.gersgarage.model.Service service) {\n // Final list\n List<LocalDate> listAvailableDates = new ArrayList<>();\n\n // Variables for loop\n LocalDate tomorrow = LocalDate.now().plusDays(1);\n LocalDate threeMonthsFromTomorrow = tomorrow.plusMonths(3);\n\n // Loop to check for available dates in next three months\n for(LocalDate date = tomorrow; date.isBefore(threeMonthsFromTomorrow); date = date.plusDays(1)) {\n // Pulls bookings for specific date\n Optional<List<Booking>> optionalBookingList = bookingService.getAllBookingsForDate(date);\n /* If there are bookings for that date, check for time availability for service,\n if not booking then date available */\n if(optionalBookingList.isPresent()) {\n if(getAvailableTimesForServiceAndDate(service, date).size() > 0) {\n listAvailableDates.add(date);\n }\n } else {\n listAvailableDates.add(date);\n }\n }\n return listAvailableDates;\n }", "private boolean compareBookings(Iterable<Booking> bookings,\n\t\t\tBookingRequest booking) {\n\t\tfor (Booking book : bookings) {\n\t\t\tif (book.getPerformer().equals(booking.getPerformer())\n\t\t\t\t\t&& book.getVenueName().equals(booking.getVenueName())\n\t\t\t\t\t&& booking.getOpen().equals(book.getOpen())\n\t\t\t\t\t&& booking.getClose().equals(book.getClose())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private void checking() {\n try {\n ResultSet rs;\n Statement st;\n Connection con = db.getDBCon();\n st = con.createStatement();\n String sql = \"select * from trainset_reservation where train_no='\" + Integer.parseInt(no.getText()) + \"'\";\n rs = st.executeQuery(sql);\n boolean b = false;\n String dat0 = null;\n String dat1 = null;\n\n while (rs.next()) {\n dat0 = rs.getString(\"start_date\");\n dat1 = rs.getString(\"end_date\");\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"E MMM dd HH:mm:ss z yyyy\");\n Date f_dbdate = sdf.parse(dat0);\n Date s_dbdate = sdf.parse(dat1);\n Date f_date = s_date.getDate();\n Date s_date = e_date.getDate();\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() < f_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && f_date.getTime() < s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n\n if (f_date.getTime() > s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n\n long diffIn = Math.abs(s_date.getTime() - f_date.getTime());\n long diff = TimeUnit.DAYS.convert(diffIn, TimeUnit.MILLISECONDS);\n // t2.setText(String.valueOf(diff));\n b = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findReservationBetweenNullsTest() {\n // null, null\n Collection<Reservation> expected1 = new HashSet<>();\n expected1.add(reservation1);\n expected1.add(reservation2);\n expected1.add(reservation3);\n expected1.add(reservation4);\n Mockito.when(reservationDao.findReservationBetween(null, null)).thenReturn(expected1);\n Collection<Reservation> result1 = reservationService.findReservationsBetween(null, null);\n Assert.assertEquals(result1.size(), 4);\n Assert.assertTrue(result1.contains(reservation1));\n Assert.assertTrue(result1.contains(reservation2));\n Assert.assertTrue(result1.contains(reservation3));\n Assert.assertTrue(result1.contains(reservation4));\n // from, null\n Collection<Reservation> expected2 = new HashSet<>();\n expected2.add(reservation3);\n expected2.add(reservation4);\n LocalDate from = LocalDate.now().minusDays(2);\n Mockito.when(reservationDao.findReservationBetween(from, null)).thenReturn(expected2);\n Collection<Reservation> result2 = reservationService.findReservationsBetween(from, null);\n Assert.assertEquals(result2.size(), 2);\n Assert.assertTrue(result2.contains(reservation3));\n Assert.assertTrue(result2.contains(reservation4));\n // null, to\n Collection<Reservation> expected3 = new HashSet<>();\n expected3.add(reservation1);\n expected3.add(reservation2);\n LocalDate to = LocalDate.now().minusDays(3);\n Mockito.when(reservationDao.findReservationBetween(null, to)).thenReturn(expected3);\n Collection<Reservation> result3 = reservationService.findReservationsBetween(null, to);\n Assert.assertEquals(result3.size(), 2);\n Assert.assertTrue(result3.contains(reservation1));\n Assert.assertTrue(result3.contains(reservation2));\n }", "@Query(\"select dailyReservation from DailyReservation dailyReservation where dailyReservation.date between :startDate and :endDate\")\n List<DailyReservation> findAllDailyReservation(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate );", "public List<Reservation>reporteFechas(String date1, String date2){\n\n\t\t\tSimpleDateFormat parser = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\tDate dateOne = new Date();\n\t\t\tDate dateTwo = new Date();\n\n\t\t\ttry {\n\t\t\t\tdateOne = parser.parse(date1);\n\t\t\t\tdateTwo = parser.parse(date2);\n\t\t\t} catch (ParseException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(dateOne.before(dateTwo)){\n\t\t\t\treturn repositoryR.reporteFechas(dateOne, dateTwo);\n\t\t\t}else{\n\t\t\t\treturn new ArrayList<>();\n\t\t\t}\n\n\t \t\n\t }", "private List<Leg> getLegs(Schedule schedule, LocalDateTime departureDateTime, LocalDateTime arrivalDateTime, String airportFrom, String airportTo) {\n\t\tList<Leg> legs = new ArrayList<Leg>();\n\t\tfor (Day day : schedule.getDays()) {\n\t\t\tlog.debug(\"Checking day\");\n\t\t\tif (day.getDay() >= departureDateTime.getDayOfMonth() && day.getDay() <= arrivalDateTime.getDayOfMonth()) {\n\t\t\t\tfor (Flight flight : day.getFlights()) {\n\t\t\t\t\tlog.debug(\"Checking flight time\");\n\t\t\t\t\tString[] departureTime = flight.getDepartureTime().split(\":\");\n\t\t\t\t\tLocalDateTime flightDepartureDateTime = LocalDateTime.of(departureDateTime.getYear(), schedule.getMonth(), day.getDay(), Integer.parseInt(departureTime[0]), Integer.parseInt(departureTime[1]));\n\t\t\t\t\t\n\t\t\t\t\tString[] arrivalTime = flight.getArrivalTime().split(\":\");\n\t\t\t\t\tLocalDateTime flightArrivalDateTime = LocalDateTime.of(arrivalDateTime.getYear(), schedule.getMonth(), day.getDay(), Integer.parseInt(arrivalTime[0]), Integer.parseInt(arrivalTime[1]));\n\t\t\t\t\t\n\t\t\t\t\tif ((flightDepartureDateTime.isAfter(departureDateTime) || flightDepartureDateTime.isEqual(departureDateTime)) \n\t\t\t\t\t\t\t&& (flightArrivalDateTime.isBefore(arrivalDateTime) || flightArrivalDateTime.isEqual(arrivalDateTime))) {\n\t\t\t\t\t\tlog.debug(\"Valid flight. Creating leg.\");\n\t\t\t\t\t\tLeg leg = new Leg();\n\t\t\t\t\t\tleg.setDepartureAirport(airportFrom);\n\t\t\t\t\t\tleg.setArrivalAirport(airportTo);\n\t\t\t\t\t\t\n\t\t\t\t\t\tLocalDateTime auxDateTime = LocalDateTime.of(departureDateTime.getYear(), schedule.getMonth(), day.getDay(), flightDepartureDateTime.getHour(), flightDepartureDateTime.getMinute());\n\t\t\t\t\t\tString formattedAuxDateTime = auxDateTime.format(DateTimeFormatter.ISO_DATE_TIME);\n\t\t\t\t\t\tleg.setDepartureDateTime(formattedAuxDateTime);\n\t\t\t\t\t\t\n\t\t\t\t\t\tauxDateTime = LocalDateTime.of(arrivalDateTime.getYear(), schedule.getMonth(), day.getDay(), flightArrivalDateTime.getHour(), flightArrivalDateTime.getMinute());\n\t\t\t\t\t\tformattedAuxDateTime = auxDateTime.format(DateTimeFormatter.ISO_DATE_TIME);\n\t\t\t\t\t\tleg.setArrivalDateTime(formattedAuxDateTime);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlegs.add(leg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn legs;\n\t}", "public int checkRooms(LocalDate bookdate, int stay, int type, int req, ArrayList<Integer> array) {\n\t\t\t\r\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint count = 0;\r\n\t\t\tBooking bookChecker = null; //Saves the bookings of a hotel to be checked\r\n\t\t\tRooms roomChecker = null; //Saves the rooms of the hotel\r\n\t\t\tLocalDate endBook = bookdate.plusDays(stay); //booking start date + number of nights\r\n\t\t\tboolean booked = false;\r\n\r\n\t\t\tif(req == 0) return 0; //if theres no need for single/double/triple room\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //checking room-wise order\r\n\t\t\t\troomChecker = RoomDetails.get(i);\r\n\t\t\t\tif(type == roomChecker.getCapacity()) { //only check if its the same room type as needed\r\n\t\t\t\t\tk = 0;\r\n\t\t\t\t\twhile(k < Bookings.size()) { //check for bookings of a room\r\n\t\t\t\t\t\tbookChecker = Bookings.get(k);\r\n\t\t\t\t\t\tj=0;\r\n\t\t\t\t\t\tbooked = false;\r\n\t\t\t\t\t\twhile(j < bookChecker.getNumOfRoom()) { //To check if a booked room have clashing schedule with new booking\r\n\t\t\t\t\t\t\tif(roomChecker.getRoomNum() == bookChecker.getRoomNumber(j)) { //if there is a booking for the room\r\n\t\t\t\t\t\t\t\tif(bookdate.isEqual(bookChecker.endDate()) || endBook.isEqual(bookChecker.getStartDate())) {\r\n\t\t\t\t\t\t\t\t\t//New booking starts at the same day where another booking ends\r\n\t\t\t\t\t\t\t\t\tbooked = false; //No clash\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(bookdate.isAfter(bookChecker.endDate()) || endBook.isBefore(bookChecker.getStartDate())) {\r\n\t\t\t\t\t\t\t\t\t//New booking starts days after other booking ends, or new booking ends before other booking starts\r\n\t\t\t\t\t\t\t\t\tbooked = false; //no clash\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse { //Any other way means that it clashes and hence room cant be booked\r\n\t\t\t\t\t\t\t\t\tbooked = true;\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\tif(booked == true) break; //if booked and clash , break\r\n\t\t\t\t\t\t\tj++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(booked == true) break; //if booked and clash , break\r\n\t\t\t\t\t\tk++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tif(booked == false) {\r\n\t\t\t\t\t\tarray.add(roomChecker.getRoomNum()); //if no clashing dates, book the room for new cust\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (count == req) break; //if there is enough room already, finish\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn count; //returns the number of available rooms acquired\r\n\t\t}", "public List<Reserva> getReservasPeriod(String dateOne, String dateTwo){\n /**\n * Instancia de SimpleDateFormat para dar formato correcto a fechas.\n */\n SimpleDateFormat parser = new SimpleDateFormat(\"yyyy-MM-dd\");\n /**\n * Crear nuevos objetos Date para recibir fechas fomateadas.\n */\n Date dateOneFormatted = new Date();\n Date dateTwoFormatted = new Date();\n /**\n * Intentar convertir las fechas a objetos Date; mostrar registro de\n * la excepción si no se puede.\n */\n try {\n dateOneFormatted = parser.parse(dateOne);\n dateTwoFormatted = parser.parse(dateTwo);\n } catch (ParseException except) {\n except.printStackTrace();\n }\n /**\n * Si la fecha inicial es anterior a la fecha final, devuelve una lista\n * de Reservas creadas dentro del intervalo de fechas; si no, devuelve\n * un ArrayList vacío.\n */\n if (dateOneFormatted.before(dateTwoFormatted)){\n return repositorioReserva.findAllByStartDateAfterAndStartDateBefore\n (dateOneFormatted, dateTwoFormatted);\n } else {\n return new ArrayList<>();\n }\n }", "public ArrayList getBookingList(String arrival, String departure, Connection con) {\n ArrayList b = null;\n try {\n b = new BookingMapper().getBookingList(arrival, departure, con);\n } catch (Exception e) {\n System.out.println(\"fail in UnitOfWork - getBookingList\");\n System.err.println(e);\n }\n return b;\n }", "Set<StewardSimpleDTO> getAllAvailable(Date from, Date to);", "public Set<Booking> getBooking() {\n return booking;\n }", "public Booking makeBooking(Customer customer, Airline flight, int baggage, String type, Date date);", "ObservableList<Booking> getFilteredBookingList();", "@Test(expected = IllegalDateException.class)\n\tpublic void testBookStartDateInPast() throws Exception {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.HOUR, -2);\n\t\t// start is current date - 2\n\t\tDate invalidStartDate = cal.getTime();\n\t\tbookingManagement.book(USER_ID, Arrays.asList(room1.getId()), invalidStartDate, validEndDate);\n\t}", "public boolean isBookable(String enteredDate) {\n\t\t\n\t\tfor(int a = 0; a < datesBooked.size(); a++) { // Checks the whole list...\n\t\t\t\n\t\t\tif(datesBooked.get(a).equals(enteredDate)) { // If there is a date which matches our date...\n\t\t\t\t\t\n\t\t\t\treturn false; // ... it's not available for booking!\n\t\t\t\t\n\t\t\t}\n\n\t\t} \n\n\t\treturn true; // ... make it available for booking!\n\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic JSONCalendar availableHouses(String startDate, String endDate) {\n\t\t// Create a new list with house ID'sz\n\t\tList<String> houseIDs = new ArrayList<>();\n\t\tList<Calendar> dates = null;\n\t\tList<String> housed = null;\n\t\tList<Calendar> d = null;\n\t\tJSONCalendar ca = new JSONCalendar();\n\t\tEntityManager em = JPAResource.factory.createEntityManager();\n\t\tEntityTransaction tx = em.getTransaction();\n\t\ttx.begin();\n\t\t\n\t\t// Find the houses id's\n\t\t\n\t\tQuery q1 = em.createQuery(\"SELECT h.houseID from House h\");\n\t\t// It has all the houseIDs\n\t\thoused = q1.getResultList();\n\t\t//System.out.println(housed);\n\t\t\n\t\tQuery q = em.createNamedQuery(\"Calendar.findAll\");\n\t\tdates = q.getResultList();\n\t\t\n\t\tfor( int i = 0; i < housed.size(); i++ ) {\n\t\t\t// Select all the dates for every house\n\t\t\tint k = 0;\n\t\t\tQuery q2 = em.createQuery(\"SELECT c from Calendar c WHERE c.houseID = :id AND c.date >= :startDate AND c.date < :endDate\");\n\t\t\tq2.setParameter(\"id\", housed.get(i));\n\t\t\tq2.setParameter(\"startDate\", startDate);\n\t\t\tq2.setParameter(\"endDate\", endDate);\n\t\t\td = q2.getResultList();\n\t\t\t\n\t\t\tlong idHouse = 0;\n\t\t\tfor(int j = 0; j < d.size(); j++) {\n\t\t\t\t//System.out.println(d.get(j).getHouseID());\n\t\t\t\tidHouse = d.get(j).getHouseID();\n\t\t\t\tif(d.get(j).getAvailable() == true) {\n\t\t\t\t\tk++;\n\t\t\t\t\t// System.out.println(k);\n\t\t\t\t}\n\t\t\t\t// Find out if the houses are available these days\n\t\t\t\t\n\t\t\t}\n\t\t\tif(k == d.size() && k != 0) {\n\t\t\t\t// System.out.println(k);\n\t\t\t\thouseIDs.add(String.valueOf(idHouse));\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t// Select all the houses\n\t\t\n\t\tca.setResults(houseIDs);\n\t\tca.setNumDates(d.size());\n\t\t// System.out.println(startDate + \" \" + endDate);\n\t\t// System.out.println(houseIDs);\n\t\t\n\t\t\n\t\treturn ca;\n\t}", "public void CheckAvail(LocalDate indate, LocalDate outdate)\r\n {\n if (Days.daysBetween(lastupdate, outdate).getDays() > 30)\r\n {\r\n System.out.println(\"more than 30\");\r\n return;\r\n }//Check if checkin date is before today\r\n if (Days.daysBetween(lastupdate, indate).getDays() < 0)\r\n {\r\n System.out.println(\"Less than 0\");\r\n return;\r\n }\r\n int first = Days.daysBetween(lastupdate, indate).getDays();\r\n int last = Days.daysBetween(lastupdate, outdate).getDays();\r\n for (int i = 0; i < roomtypes.size(); i++)\r\n {\r\n boolean ispossible = true;\r\n for (int j = first; j < last; j++)\r\n {\r\n if (roomtypes.get(i).reserved[j] >= roomtypes.get(i).roomcount)\r\n {\r\n ispossible = false;\r\n }\r\n } \r\n \r\n if (ispossible)\r\n System.out.println(roomtypes.get(i).roomname);\r\n }\r\n }", "private List<String> findEmptyRoomsInRange(String startDate, String endDate) {\n /* startDate indices = 1,3,6 \n endDate indices = 2,4,5 */\n String emptyRoomsQuery = \"select r1.roomid \" +\n \"from rooms r1 \" +\n \"where r1.roomid NOT IN (\" +\n \"select roomid\" +\n \"from reservations\" + \n \"where roomid = r1.roomid and ((checkin <= to_date('?', 'DD-MON-YY') and\" +\n \"checkout > to_date('?', 'DD-MON-YY')) or \" +\n \"(checkin >= to_date('?', 'DD-MON-YY') and \" +\n \"checkin < to_date('?', 'DD-MON-YY')) or \" +\n \"(checkout < to_date('?', 'DD-MON-YY') and \" +\n \"checkout > to_date('?', 'DD-MON-YY'))));\";\n\n try {\n PreparedStatement erq = conn.prepareStatement(emptyRoomsQuery);\n erq.setString(1, startDate);\n erq.setString(3, startDate);\n erq.setString(6, startDate);\n erq.setString(2, endDate);\n erq.setString(4, endDate);\n erq.setString(5, endDate);\n ResultSet emptyRoomsQueryResult = erq.executeQuery();\n List<String> emptyRooms = getEmptyRoomsFromResultSet(emptyRoomsQueryResult);\n return emptyRooms;\n } catch (SQLException e) {\n System.out.println(\"Empty rooms query failed.\")\n }\n return null;\n}", "public void searchHotelReservations(Connection connection, String hotel_name, int branchID, LocalDate checkIn, LocalDate checkOut) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT c_id, res_num, check_in, check_out FROM Booking WHERE hotel_name = ? AND branch_ID = ? AND check_in >= to_date(?, 'YYYY-MM-DD') AND check_out <= to_date(?, 'YYYY-MM-DD')\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branchID);\n pStmt.setInt(2, getBranchID());\n\n if (checkIn == null && checkOut == null){\n pStmt.setString(3, LocalDate.parse(\"2000-01-01\").toString());\n pStmt.setString(4, LocalDate.parse(\"3000-01-01\").toString());\n }\n else if (checkIn == null){\n pStmt.setString(3, checkIn.toString());\n pStmt.setString(4, LocalDate.parse(\"3000-01-01\").toString());\n }\n else if (checkOut == null){\n pStmt.setString(3, LocalDate.parse(\"2000-01-01\").toString());\n pStmt.setString(4, checkOut.toString());\n }\n else {\n pStmt.setString(3, checkIn.toString());\n pStmt.setString(4, checkOut.toString());\n }\n\n try {\n\n System.out.printf(\" Reservations for %S, branch ID (%d): \\n\", getHotelName(), getBranchID());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(\" \" + rs.getString(1) + \" \" + rs.getInt(2));\n System.out.println(\" Reservation DATES: \" + rs.getDate(3) + \" TO \" + rs.getDate(4));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }", "boolean bookingListIsNotFull(Book book);", "private static List<DateRange> transformeAdvancedCase(\n final ZonedDateTime startRange,\n final ZonedDateTime endRange,\n final List<DateRange> reservedRanges) {\n\n final List<DateRange> availabilityRanges = new ArrayList<>();\n final List<DateRange> reservedRangesExtended = new ArrayList<>(reservedRanges);\n\n // if first DateRange starts after startRange\n if (reservedRanges.get(0).getStartDate().isAfter(startRange)) {\n // add a synthetic range that ends at startRange. Its startDate is not important\n final DateRange firstSyntheticDateRange = new DateRange(startRange.minusDays(1), startRange);\n reservedRangesExtended.add(0, firstSyntheticDateRange);\n }\n\n // if last DateRange ends before endRange\n if (reservedRanges.get(reservedRanges.size() - 1).getEndDate().isBefore(endRange)) {\n // add a synthetic range that starts at endRange. Its endDate is not important\n final DateRange lastSyntheticDateRange = new DateRange(endRange, endRange.plusDays(1));\n reservedRangesExtended.add(lastSyntheticDateRange);\n }\n\n Iterator<DateRange> iterator = reservedRangesExtended.iterator();\n DateRange current = null;\n DateRange next = null;\n\n while (iterator.hasNext()) {\n\n // On the first run, take the value from iterator.next(), on consecutive runs,\n // take the value from 'next' variable\n current = (current == null) ? iterator.next() : next;\n\n final ZonedDateTime startDate = current.getEndDate();\n\n if (iterator.hasNext()) {\n next = iterator.next();\n final ZonedDateTime endDate = next.getStartDate();\n DateRange availabilityDate = new DateRange(startDate, endDate);\n availabilityRanges.add(availabilityDate);\n }\n }\n\n return availabilityRanges;\n }", "protected boolean isValidReturnDate(final Map<String, Map<String, TransportOfferingModel>> transportOfferings)\n\t{\n\t\tif (transportOfferings.size() < NdcservicesConstants.RETURN_FLIGHT_LEG_NUMBER)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tZonedDateTime arrivalUtcTime = TravelDateUtils.getUtcZonedDateTime(getTimeService().getCurrentTime(),\n\t\t\t\tZoneId.systemDefault());\n\n\t\tfor (final Map.Entry<String, TransportOfferingModel> transportOffering : transportOfferings\n\t\t\t\t.get(String.valueOf(NdcservicesConstants.OUTBOUND_FLIGHT_REF_NUMBER)).entrySet())\n\t\t{\n\t\t\tfinal ZonedDateTime offeringDepartureUtc = getNdcTransportOfferingService()\n\t\t\t\t\t.getArrivalZonedDateTimeFromTransportOffering(transportOffering.getValue());\n\t\t\tif (arrivalUtcTime.isBefore(offeringDepartureUtc))\n\t\t\t{\n\t\t\t\tarrivalUtcTime = offeringDepartureUtc;\n\t\t\t}\n\t\t}\n\n\t\tarrivalUtcTime = arrivalUtcTime.plus(TravelfacadesConstants.MIN_BOOKING_ADVANCE_TIME, ChronoUnit.HOURS);\n\n\t\tfor (final Map.Entry<String, TransportOfferingModel> transportOffering : transportOfferings\n\t\t\t\t.get(String.valueOf(NdcservicesConstants.INBOUND_FLIGHT_REF_NUMBER)).entrySet())\n\t\t{\n\t\t\tfinal ZonedDateTime offeringDepartureUtc = getNdcTransportOfferingService()\n\t\t\t\t\t.getDepartureZonedDateTimeFromTransportOffering(transportOffering.getValue());\n\t\t\tif (arrivalUtcTime.isAfter(offeringDepartureUtc))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public static boolean isInBetweenDates(LocalDate startingDate,LocalDate endingDate,LocalDate currentDate) {\n //compareTo is used to compare 2 dates\n if(currentDate.compareTo(startingDate) * currentDate.compareTo(endingDate) <0)\n {\n return true;\n }\n else\n {\n return false;\n }\n\n }", "@Override\n public List<Event> searchByInterval(Date leftDate, Date rightDate) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin BETWEEN :leftDate and :rightDate \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"leftDate\", leftDate)\n .setParameter(\"rightDate\", rightDate);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "public static void book(Table<Flight> fTable, Table<Seat> sTable, Table<Passenger> pTable, Table<Reservation> rTable){\n \tTable<Seat> freeSeats = new Table<Seat>();\n\t\t\t\n \t\tint randomPassenger = (int) (Math.random()*pTable.size());\t\t\t\t\t\t\t\t\t\t// choosing random passenger [index] from passengers table\n \t\tint randomFlight = (int) (Math.random()*fTable.size());\t\t\t\t\t\t\t\t\t\t\t// choosing random flight [index] from flights table\n \t\t\n \t for(int f = 0; f < sTable.size(); f++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// check for all seats in sTable\n \t \tif((sTable.get(f).flightId() == randomFlight+1) && (!sTable.get(f).isBooked())){\t\t\t// if seat belongs to chosen flight and is not booked then\n \t \t\tfreeSeats.add(sTable.get(f));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add seats to the freeSeats list\n \t \t}\n \t }\n \t \n \t if (freeSeats.size() > 0){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is free seats then\n \t \tint randomFreeSeat = (int) (Math.random()*freeSeats.size());\t\t\t\t\t\t\t\t// choose random seat from free seats list\n \t \tif(freeSeats.size() == 1){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is only one free seat\n \t \t\trandomFreeSeat = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then take that seat\n \t \t}\n \t \t\n \t\t\tReservation res = new Reservation(pTable.get(randomPassenger), freeSeats.get(randomFreeSeat));\t// create reservation\n\n \t \tif (rTable.isEmpty()){ \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is empty\n \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\n \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add reservation to reservation table\n \t \t} else { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is NOT empty and\n\t \t\t\t\tif( exists(res, rTable) ){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if seat is booked or seat exists in rTable\n\t \t\t\t\t\t//continue;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exit this loop\n\t \t\t\t\t} else {\n\t \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\t\t\t\t\t\t\t\t\t\t// else book that seat\n\t \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add to reservation table\n\t \t\t\t\t}\n\t \t\t }\n \t }\n\t\t\n\t}", "private Collection<SubscriberAuxiliaryService> getAssociationsToBeProvisioned(final Context ctx,\r\n final Date runningDate)\r\n {\r\n Collection<SubscriberAuxiliaryService> result = null;\r\n try\r\n {\r\n final And predicate = new And();\r\n predicate.add(new LTE(SubscriberAuxiliaryServiceXInfo.START_DATE, CalendarSupportHelper.get(ctx).getEndOfDay(runningDate)));\r\n predicate.add(new GT(SubscriberAuxiliaryServiceXInfo.END_DATE, CalendarSupportHelper.get(ctx).getEndOfDay(runningDate)));\r\n predicate.add(new EQ(SubscriberAuxiliaryServiceXInfo.PROVISIONED, Boolean.FALSE));\r\n \r\n result = HomeSupportHelper.get(ctx).getBeans(ctx, SubscriberAuxiliaryService.class, predicate);\r\n }\r\n catch (final Throwable t)\r\n {\r\n new MajorLogMsg(this, \"Failed to look-up AuxiliaryService associations for startDate= \" + runningDate, t)\r\n .log(ctx);\r\n }\r\n return result;\r\n }", "public boolean overlap(Timestamp arrivalTime, Timestamp departureTime) {\n\t\tif ((arrivalTime.after(this.arrivalTime) || arrivalTime.equals(this.arrivalTime))\n\t\t\t\t&& (arrivalTime.before(this.departureTime) || arrivalTime.equals(this.departureTime))) {\n\t\t\treturn true;\n\t\t}\n\t\tif ((departureTime.after(this.arrivalTime) || departureTime.equals(this.arrivalTime))\n\t\t\t\t&& (departureTime.before(this.departureTime) || departureTime.equals(this.departureTime))) {\n\t\t\treturn true;\n\t\t}\n\t\tif (arrivalTime.before(this.arrivalTime) && departureTime.after(this.departureTime)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "List<Restaurant> queryByShippingFeeBetween(BigDecimal initialFee, BigDecimal finalFee);", "@Test\n\tpublic void testListReservationsOfFacilityInInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\n\t\t// first reservation is from now +1 to now +3\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()),\n\t\t\t\treservation1StartDate, reservation1EndDate);\n\n\t\t// second reservation is from now +4 to now +5\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2StartDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2EndDate = cal.getTime();\n\n\t\tReservation reservation2 = dataHelper.createPersistedReservation(USER_ID,\n\t\t\t\tArrays.asList(room1.getId(), infoBuilding.getId()), reservation2StartDate, reservation2EndDate);\n\n\t\t// should find both above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertEquals(2, reservationsOfFacility.size());\n\t\tassertTrue(reservationsOfFacility.contains(reservation1));\n\t\tassertTrue(reservationsOfFacility.contains(reservation2));\n\t}", "public List<Room> getReservedOn(LocalDate of) {\r\n\t\tList<Room> l= new ArrayList<>(new HashSet<Room>(this.roomRepository.findByReservationsIn(\r\n\t\t\t\tthis.reservationService.getFromTo(of, of))));\r\n\t\treturn l;\r\n\t}", "@GetMapping(\"/fechaBetween/{fecha1}/{fecha2}\")\n\tList<ReservasEntity> findByFechaBetween(@PathVariable(\"fecha1\") @DateTimeFormat(pattern = \"yyyy-MM-dd\") Date fecha1,\n\t\t\t@PathVariable(\"fecha2\") @DateTimeFormat(pattern = \"yyyy-MM-dd\") Date fecha2) {\n\t\treturn reservaRepo.findByFechaBetween(fecha1, fecha2);\n\t}", "public void completeBooking(){\r\n\t\tbookings.putAll(tempBookings);\r\n\t\ttempBookings.clear();\r\n\t}", "public Collection<ReservationHistoryDTO> getReservationsHistory() throws ResourceNotFoundException{\n\t\tRegisteredUser currentUser = (RegisteredUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\t\n\t\t\n\t\tRegisteredUser currentUserFromBase = registeredUserRepository.getOne(currentUser.getId());\n\t\t\n\t\tCollection<Reservation> reservations = currentUserFromBase.getReservations();\n\t\t\n\t\tif(reservations==null) {\n\t\t\tthrow new ResourceNotFoundException(\"User \"+currentUserFromBase.getUsername()+\" made non reservation!\");\n\t\t}\n\n\t\tHashSet<ReservationHistoryDTO> reservationsDTO = new HashSet<ReservationHistoryDTO>();\n\t\t\n\t\t\n\t\t\n\t\tfor(Reservation reservation : reservations) {\n\t\t\tif(reservation.getHasPassed()) {\n\t\t\t\n\t\t\t\tReservationHistoryDTO reservationDTO = new ReservationHistoryDTO();\n\t\t\t\t\n\t\t\t\tFlightReservation flightReservation = reservation.getFlightReservation();\n\t\t\t\tRoomReservation roomReservation = reservation.getRoomReservation();\n\t\t\t\tVehicleReservation vehicleReservation = reservation.getVehicleReservation();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightReservationId(flightReservation.getId());\n\t\t\t\t\n\t\t\t\tFlight flight = flightReservation.getSeat().getFlight();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLong reservationId = reservation.getId();\n\t\t\t\tLong flightId = flight.getId();\n\t\t\t\tString departureName = flight.getDeparture().getName();\n\t\t\t\tString destinationName = flight.getDestination().getName();\n\t\t\t\tDate departureDate = flight.getDepartureDate();\n\t\t\t\tLong airlineId = flight.getAirline().getId();\n\t\t\t\t\n\t\t\t\treservationDTO.setReservationId(reservationId);\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightId(flightId);\n\t\t\t\treservationDTO.setDepartureName(departureName);\n\t\t\t\treservationDTO.setDestinationName(destinationName);\n\t\t\t\treservationDTO.setDepartureDate(departureDate);\n\t\t\t\treservationDTO.setAirlineId(airlineId);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(roomReservation != null) {\n\t\t\t\t\tRoomType roomType = reservation.getRoomReservation().getRoom().getRoomType();\n\t\t\t\t\treservationDTO.setRoomReservationId(roomReservation.getId());\n\t\t\t\t\tif(roomType!= null) {\n\t\t\t\t\t\treservationDTO.setRoomTypeId(roomType.getId());\n\t\t\t\t\t\treservationDTO.setHotelId(roomReservation.getRoom().getHotel().getId());\n\t\t\t\t\t\t//Long hotelId videcemo kako\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(vehicleReservation != null) {\n\t\t\t\t\tVehicle vehicle = reservation.getVehicleReservation().getReservedVehicle();\n\t\t\t\t\treservationDTO.setVehicleReservationId(vehicleReservation.getId());\n\t\t\t\t\tif(vehicle != null) {\n\t\t\t\t\t\treservationDTO.setVehicleId(vehicle.getId());\n\t\t\t\t\t\treservationDTO.setRentACarId(vehicle.getBranchOffice().getMainOffice().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationsDTO.add(reservationDTO);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn reservationsDTO;\n\t\t\n\t}", "Between createBetween();", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "public void GetAvailableDates()\n\t{\n\t\topenDates = new ArrayList<TimePeriod>(); \n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\t\n\t\t\tString query = \"SELECT startDate, endDate FROM Available WHERE available_hid = '\"+hid+\"'\"; \n\t\t\tResultSet rs = con.stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tTimePeriod tp = new TimePeriod(); \n\t\t\t\ttp.stringStart = rs.getString(\"startDate\"); \n\t\t\t\ttp.stringEnd = rs.getString(\"endDate\"); \n\t\t\t\ttp.StringToDate();\n\t\t\t\t\n\t\t\t\topenDates.add(tp); \n\t\t\t}\n\t\t\tcon.closeConnection(); \n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public ArrayList<Booking> getFutureBookingsHistory() throws NoBookingsException, NoFutureBookingsException {\n return profile.getFutureBookingsHistory(currentUser);\n }", "@Override\n\tpublic List<Besoin> BesionByDate (String dateStart, String dateEnd) {\n\t\treturn dao.BesionByDate(dateStart, dateEnd);\n\t}", "List<BookingSlot> getSlotsByDateTime(LocalDateTime dateTime);", "public final List<Appointment> getAppointmentsBetween(Interval interval) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n return interval.intersects(a.getInterval());\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "public List<String> getAccountBetweenDate(String first_date, String second_date) throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<String> accountList= session.createQuery(\"select account_no from Account where date(opening_date) BETWEEN '\"+first_date+\"' AND '\"+second_date+\"'\",String.class).list();\n return AccountDto.AccountBtwDate(accountList);\n }", "@Transactional\r\n\tpublic List<Room> getReservedFromTo(LocalDate from, LocalDate to){\r\n\t\treturn this.roomRepository.findByReservationsIn(\r\n\t\t\t\tthis.reservationService.getFromTo(from, to));\r\n\t}", "public void getBookAvailability() {\n getBookReservationEligibility();\n }", "@Transactional\r\n\tpublic List<Room> getFreeFromTo(LocalDate from, LocalDate to){\r\n\t\tList<Room> l= this.roomRepository.findByReservationsNotIn(\r\n\t\t\t\tthis.reservationService.getFromTo(from, to));\r\n\t\tl.addAll(this.roomRepository.findByReservationsIsNull());\r\n\t\treturn l;\r\n\t}", "public List<CreditBookingResponse<?>> getScheduledBookingsByUuuid(String uuid, Long startTime, Long endTime) {\n\t\tList<CreditBookingResponse<?>> result = new ArrayList<CreditBookingResponse<?>>();\n\t\ttry {\n\t\t\t//LocalDate fromDate = SessionUtil.convertToLocalDate(startTime);\n\t\t\tLocalDate fromDate = Instant.ofEpochSecond(startTime ).atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t\tLocalDate toDate = Instant.ofEpochSecond(endTime ).atZone(ZoneId.systemDefault()).toLocalDate();\n\n\t\t\tList<CreditBookingEntity> bookingEntities = new ArrayList<CreditBookingEntity>();\n\t\t\tBasicUserEntity user = userRepo.findOneByUuid(uuid).get();\n\t\t\tif (user.getUserType().equalsIgnoreCase(\"PT\")) {\n\t\t\t\tbookingEntities = creditBookingRepo.getPTScheduledBookings(fromDate, toDate, uuid);\n\t\t\t} else {\n\t\t\t\tbookingEntities = creditBookingRepo.getEUScheduledBookings(fromDate, toDate, uuid);\n\t\t\t}\n\n\t\t\tfor (CreditBookingEntity creditBookingEntity : bookingEntities) {\n\t\t\t\tswitch (creditBookingEntity.getBookingType()) {\n\t\t\t\tcase CLASS:\n\t\t\t\t\tCreditBookingResponse<CreditClassBookingResponse> classBookingResponse = new CreditBookingResponse<CreditClassBookingResponse>();\n\t\t\t\t\tCreditClassBookingResponse classBooking = new CreditClassBookingResponse(creditBookingEntity);\n\t\t\t\t\tclassBookingResponse.setServiceType(BookingServiceType.CLASS);\n\t\t\t\t\tclassBookingResponse.setBookingData(classBooking);\n\n\t\t\t\t\tresult.add(classBookingResponse);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ETICKET:\n\t\t\t\t\tCreditBookingResponse<CreditETicketBookingResponse> eticketBookingResponse = new CreditBookingResponse<CreditETicketBookingResponse>();\n\t\t\t\t\tCreditETicketBookingResponse eticketBooking = new CreditETicketBookingResponse(creditBookingEntity);\n\t\t\t\t\teticketBookingResponse.setServiceType(BookingServiceType.ETICKET);\n\t\t\t\t\teticketBookingResponse.setBookingData(eticketBooking);\n\n\t\t\t\t\tresult.add(eticketBookingResponse);\n\t\t\t\t\tbreak;\n\t\t\t\tcase SESSION:\n\t\t\t\t\tBasicUserInfo userInfo = null;\n\t\t\t\t\tBasicUserInfo trainerInfo = null;\n\t\t\t\t\tCreditSessionBookingEntity session = creditBookingEntity.getSessions().get(0);\n\t\t\t\t\tBasicUserEntity userEntity = userRepo.findOneByUuid(session.getUserUuid()).get();\n\t\t\t\t\tif (userEntity != null) {\n\t\t\t\t\t\tuserInfo = BasicUserInfo.convertFromEntity(userEntity);\n\t\t\t\t\t}\n\t\t\t\t\tBasicUserEntity trainerEntity = userRepo.findOneByUuid(session.getPtUuid()).get();\n\t\t\t\t\tif (trainerEntity != null) {\n\t\t\t\t\t\ttrainerInfo = BasicUserInfo.convertFromEntity(trainerEntity);\n\t\t\t\t\t}\n\t\t\t\t\tCreditSessionBookingResponseDTO sessionBookingDTO = new CreditSessionBookingResponseDTO(\n\t\t\t\t\t\t\tcreditBookingEntity, userInfo, trainerInfo);\n\t\t\t\t\tCreditBookingResponse<CreditSessionBookingResponseDTO> sessionBookingResponse = new CreditBookingResponse<CreditSessionBookingResponseDTO>();\n\t\t\t\t\tsessionBookingResponse.setServiceType(BookingServiceType.SESSION);\n\t\t\t\t\tsessionBookingResponse.setBookingData(sessionBookingDTO);\n\n\t\t\t\t\tresult.add(sessionBookingResponse);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t}\n\n\t\treturn result;\n\t}", "public RequestedDatesForAvailability getRequestedDatesForAvailability(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.requesteddatesforavailability.v1.RequestedDatesForAvailability res){\n\t\tRequestedDatesForAvailability requestedDatesForAvailability = new RequestedDatesForAvailability();\n\t\t\n\t\trequestedDatesForAvailability.setNoOfRooms( res.getNoOfRooms() );\n\t\trequestedDatesForAvailability.setBookingDate( res.getBookingDate() );\t\n\t\trequestedDatesForAvailability.setBookingDuration( res.getBookingDuration() );\n\t\trequestedDatesForAvailability.setRoomDescription( res.getRoomDescription() );\n\t\trequestedDatesForAvailability.setRoomStatus( res.getRoomStatus() );\n\t\trequestedDatesForAvailability.setMaterialNumber( res.getMaterialNumber() );\n\t\t\n\t\trequestedDatesForAvailability.setReqDates( res.getReqDates() );\n\t\t\n\t\treturn requestedDatesForAvailability;\n\t}", "public ArrayList<Reservering> getReserveringenTussen(java.util.Date begin, java.util.Date eind){\r\n\t\tArrayList<Reservering> terug = new ArrayList<Reservering>();\r\n\t\ttry{\r\n\t\t\tjava.sql.Date beginDat = new java.sql.Date(begin.getTime());\r\n\t\t\tjava.sql.Date eindDat = new java.sql.Date(eind.getTime());\r\n\t\t\tString sql = \"SELECT * FROM Reservering WHERE (beginDat BETWEEN'\" + beginDat + \"' AND '\"\r\n\t\t\t\t\t+ eindDat + \"') OR (eindDat BETWEEN '\" + beginDat + \"' AND '\" + beginDat + \"')\";\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(sql);\r\n\t\t\twhile (rs.next()) { // rs.next() geeft false als er niets meer is\u000b \r\n\t\t\t\tint id = rs.getInt(\"reserveringid\");\r\n\t\t\t\tint dP = rs.getInt(\"deParkeerplek\");\r\n\t\t\t\tjava.sql.Date bdat = rs.getDate(\"beginDat\");\r\n\t\t\t\tjava.util.Date bD = new Date(bdat.getTime());\r\n\t\t\t\tjava.sql.Date edat = rs.getDate(\"eindDat\");\r\n\t\t\t\tjava.util.Date eD = new Date(edat.getTime());\r\n\t\t\t\tint autoid = rs.getInt(\"autoid\");\r\n\t\t\t\tString isGeweest = rs.getString(\"isGeweest\");\r\n\t\t\t\tConnectDBAuto autoconn = new ConnectDBAuto(con);\r\n\t\t\t\tAuto a = autoconn.zoekAuto(autoid);\r\n\t\t\t\tReservering nieuw = new Reservering(a, id, bD, eD, dP);\r\n\t\t\t\tif(isGeweest.equals(\"t\")){\r\n\t\t\t\t\tnieuw.setGeweest(true);\r\n\t\t\t\t}\r\n\t\t\t\tterug.add(nieuw);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tSystem.out.println(\"Probleem bij reserveringen tussen data ophalen \" + ex);\r\n\t\t}\r\n\t\treturn terug;\r\n\t}", "public ArrayList<RdV> afficherRdV(LocalDate d1, LocalDate d2) {\n ArrayList<RdV> plage_RdV = new ArrayList();\n if (this.getAgenda() != null) {\n for (RdV elem_agenda : this.getAgenda()) {\n //si le rdv inscrit dans l'agenda est compris entre d1 et d2\n //d1<elem_agenda<d2 (OU d2<elem_agenda<d1 si d2<d1)\n if ((elem_agenda.getDate().isAfter(d1) && elem_agenda.getDate().isBefore(d2))\n || (elem_agenda.getDate().isAfter(d2) && elem_agenda.getDate().isBefore(d1))) {\n plage_RdV.add(elem_agenda);\n }\n }\n //on print la liste de rdv avant tri\n System.out.print(plage_RdV);\n //on print la liste de rdv avant tri\n System.out.print(\"\\n\");\n Collections.sort(plage_RdV);\n System.out.print(plage_RdV);\n\n }\n\n return plage_RdV;\n\n }", "static void presentBookingHistory(User booker) {\r\n\t\tBooking bookings = new Booking();\r\n\t\tResultSet historyRs = null;\r\n\r\n\t\tSystem.out.printf(\"*%14s%10s%18s%28s%28s%15s%11s\\n\", \"Booking No\", \"Lot No\", \"Car No\", \"Start Time\", \"End Time\", \"Cost\", \"*\");\r\n\t\tSystem.out.println(\"*****************************************************************************************************************************\");\r\n\t\ttry {\r\n\t\t\tDbConnection historyConn = new DbConnection();\r\n\t\t\thistoryRs = historyConn.fetchSelectUserByUNameBookings(booker.getUName());\r\n\t\t\twhile (historyRs.next()) {\r\n\t\t\t\tjava.sql.Timestamp endTime = historyRs.getTimestamp(6);\r\n\t\t\t\t/**\r\n\t\t\t\t*\tTo show only the ones which are not checked out yet\r\n\t\t\t\t*\tIf a record with end time as 0 is found, it will be considered as not booked and shown\r\n\t\t\t\t*/\r\n\t\t\t\tif (endTime.getTime() != 0) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tString bookingNo = historyRs.getString(1);\r\n\t\t\t\tint lotNo = historyRs.getInt(3);\r\n\t\t\t\tString carNo = historyRs.getString(4);\r\n\t\t\t\tjava.sql.Timestamp startTime = historyRs.getTimestamp(5);\r\n\t\t\t\tint cost = historyRs.getInt(7);\r\n\t\t\t\tbookings.setAllValues(bookingNo, lotNo, carNo, startTime, endTime, cost);\r\n\r\n\t\t\t\tbookings.showBookHistory();\r\n\t\t\t}\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"No records with the given booking number found\");\r\n\t\t\t//SqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} catch (NullPointerException npExcep) {\r\n\t\t\tnpExcep.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t}", "public static boolean CheckOverlap(int Customer_ID, LocalDate date, LocalTime start, LocalTime end, int Appointment_ID) {\n\n ObservableList<Appointment> AList = DBAppointments.GetAllAppointment();\n ObservableList<Appointment> FList = AList.filtered(A -> {\n if (A.getAppointment_ID() != Appointment_ID /*&& A.getCustomerid() == Customer_ID*/) {\n return true;\n\n }\n return false;\n });\n\n LocalDateTime ps = LocalDateTime.of(date, start);\n LocalDateTime pe = LocalDateTime.of(date, end);\n for (Appointment a : FList) {\n LocalDateTime as = LocalDateTime.of(a.getDate(), a.getStartTime());\n LocalDateTime ae = LocalDateTime.of(a.getDate(), a.getEndTime());\n\n if ((as.isAfter(ps) || as.isEqual(ps)) && as.isBefore(pe)) {\n return true;\n }\n if (ae.isAfter(ps) && (ae.isBefore(pe) || ae.isEqual(pe))) {\n return true;\n }\n if ((as.isBefore(ps) || as.isEqual(ps)) && (ae.isAfter(pe) || ae.isEqual(pe))) {\n return true;\n }\n }\n\n return false;\n }", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "@Test\n public void getBetweenDaysTest(){\n\n Date bDate = DateUtil.parse(\"2021-03-01\", DatePattern.NORM_DATE_PATTERN);//yyyy-MM-dd\n System.out.println(\"bDate = \" + bDate);\n Date eDate = DateUtil.parse(\"2021-03-15\", DatePattern.NORM_DATE_PATTERN);\n System.out.println(\"eDate = \" + eDate);\n List<DateTime> dateList = DateUtil.rangeToList(bDate, eDate, DateField.DAY_OF_YEAR);//创建日期范围生成器\n List<String> collect = dateList.stream().map(e -> e.toString(\"yyyy-MM-dd\")).collect(Collectors.toList());\n System.out.println(\"collect = \" + collect);\n\n }", "@When(\"^the user enters the departure and arrival destinations$\")\n\tpublic void enter_departure_arrival_dates() throws InterruptedException {\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.findElement(By.name(\"Departure airport\")).sendKeys(\"DXB\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.findElement(By.name(\"Arrival airport\")).sendKeys(\"LHR\");\n\t\tdriver.findElement(By.linkText(\"Continue\")).click();\n\t}", "@Test\n\tpublic void testListReservationsOfUserInInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\n\t\t// first reservation is from now +1 to now +3\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\treservation1StartDate, reservation1EndDate);\n\n\t\t// second reservation is from now +4 to now +5\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2StartDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2EndDate = cal.getTime();\n\n\t\tReservation reservation2 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\treservation2StartDate, reservation2EndDate);\n\n\t\t// should find both above reservation\n\t\tCollection<Reservation> reservationsOfUser;\n\t\treservationsOfUser = bookingManagement.listReservationsOfUser(USER_ID, listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfUser);\n\t\tassertEquals(2, reservationsOfUser.size());\n\t\tassertTrue(reservationsOfUser.contains(reservation1));\n\t\tassertTrue(reservationsOfUser.contains(reservation2));\n\t}", "private void showCourtBookings()\n {\n ArrayList<Court> courtList = new ArrayList<Court>();\n ArrayList<Booking> bookingList = new ArrayList<Booking>();\n for(Sport sObj : sportsClub.sportList)\n {\n System.out.println(\"Displaying Courts for : \" + sObj.getSportName());\n courtList = sObj.getCourtList();\n for(Court cObj : courtList)\n { \n if(cObj.getCourtBookings().size()==0)\n System.out.println(\"Booking are not yet started for sport :\" + sObj.getSportName() + \" on Court : \" + cObj.getCourtId());\n else\n { \n\n Collections.sort(cObj.getCourtBookings());\n System.out.println(cObj.getCourtBookings().toString());\n\n } \n }\n } \n }", "public Event validateBooking(RequestContext context) {\n\tBooking booking = (Booking) context.getFlowScope().get(\"booking\");\n\tCalendar calendar = Calendar.getInstance();\n\tcalendar.add(Calendar.DAY_OF_MONTH, -1);\n\tif (booking.getCheckinDate().before(calendar.getTime())) {\n\t context.getMessageContext().addMessage(\n\t\t Messages.text(\"checkinDate\", \"Check in date must be a future date\", Severity.ERROR));\n\t return error();\n\t} else if (!booking.getCheckinDate().before(booking.getCheckoutDate())) {\n\t context.getMessageContext().addMessage(\n\t\t Messages.text(\"checkoutDate\", \"Check out date must be later than check in date\", Severity.ERROR));\n\t return error();\n\t}\n\treturn success();\n }", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "public void addBookings(String name, ArrayList<Integer> roomToUse, int month, int date, int stay) {\n\t\t\t\r\n\t\t\tBooking newCust = new Booking();\r\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint roomCap = 0; //Roomtype / capacity\r\n\t\t\tint roomNum; //Room Number\r\n\t\t\tRooms buffer; //used to store the rooms to add to the bookings\r\n\t\t\t\r\n\t\t\twhile(i < roomToUse.size()) { //add all rooms from the available list\r\n\t\t\t\troomNum = roomToUse.get(i); //get Room number of the avalable, non-clashing room to be booked\r\n\t\t\t\twhile(k < RoomDetails.size()) { //Looping through all rooms in a hotel\r\n\t\t\t\t\tbuffer = RoomDetails.get(k); \r\n\t\t\t\t\tif (buffer.getRoomNum() == roomNum) { //To get the capacity of the matching room\r\n\t\t\t\t\t\troomCap = buffer.getCapacity();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tnewCust.addRoom(roomNum, roomCap); //Add those rooms to the bookings with room number and type filled in\r\n\t\t\t\ti++;\r\n\t\t\t\tk=0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tnewCust.addName(name); //add customer name to booking\r\n\t\t\tnewCust.addDates(month, date, stay); //add dates to the booking\r\n\t\t\t\r\n\t\t\tBookings.add(newCust); //adds the new booking into the hotel bookings list\r\n\t\t}", "public ArrayList<Booking> getPastBookingsHistory() throws NoBookingsException, NoPastBookingsException {\n return profile.getPastBookingsHistory(currentUser);\n }", "public List<FlightSchedule> getFlightsAvailables(ScheduleRepository scheduleFinderService, String from, String to,\n\t\t\tLocalDateTime startDateTime, LocalDateTime endDateTime) {\n\t\tList<FlightSchedule> flightsAvailables = new ArrayList<FlightSchedule>();\n\t\tint day = 0;\n\t\tint month = 0;\n\t\tint year = startDateTime.getYear();\n\t\tLocalDateTime departureDateTime, arrivalDateTime;\n\t\tFlightSchedule flightResult;\n\t\tList<Schedule> schedules = getSchedules(scheduleFinderService, from, to, startDateTime, endDateTime);\n\t\tif (!schedules.isEmpty()) {\n\t\t\tList<DayFlight> flightsDays = schedules.stream().flatMap(schedule -> schedule.getDays().stream()).collect(Collectors.toList());\n\t\t\tList<DayFlight> flightsOfDay = flightsDays.stream().filter(getDay(startDateTime)).collect(Collectors.toList());\n\t\t\tList<Flight> flights = flightsOfDay.stream().flatMap(flight -> flight.getFlights().stream()).collect(Collectors.toList());\n\t\t\tmonth = startDateTime.getMonthValue();\n\t\t\tday = startDateTime.getDayOfMonth();\n\t\t\tfor (Flight flight : flights) {\n\t\t\t\tdepartureDateTime = createLocalDateTime(year, month, day, flight.getDepartureTime());\n\t\t\t\tarrivalDateTime = createLocalDateTime(year, month, day, flight.getArrivalTime());\n\t\t\t\tif (validFlight(startDateTime, endDateTime, departureDateTime, arrivalDateTime)) {\n\t\t\t\t\tlog.info(String.format(\"Create Fligt Result: from %s, to %s, departureTime %s, arrivalTime %s\",\n\t\t\t\t\t\t\tfrom, to, departureDateTime, arrivalDateTime));\n\t\t\t\t\tflightResult = createFlightResult(from, to, departureDateTime, arrivalDateTime);\n\t\t\t\t\tflightsAvailables.add(flightResult);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn flightsAvailables;\n\t}", "@Test\n public void testCreateBookingReportJob() throws Exception {\n LocalDate currentDate = LocalDate.parse(\"2018-05-28\");\n LocalDate endDate = LocalDate.parse( \"2018-10-23\" );\n while ( currentDate.isBefore( endDate ) ) {\n BookingReportJob workerJob = new BookingReportJob();\n workerJob.setStatus( JobStatus.submitted );\n workerJob.setStartDate( currentDate );\n workerJob.setEndDate( currentDate.plusDays( 4 ) );\n dao.insertJob( workerJob );\n currentDate = currentDate.plusDays( 5 ); // dates are inclusive, +1\n }\n }", "public static void bookAllSeats(Table<Flight> fTable, Table<Seat> sTable, Table<Passenger> pTable, Table<Reservation> rTable){\n\t\t\n\tdo {\n\n\t // temp table for free seats\n \tTable<Seat> freeSeats = new Table<Seat>();\n\t\t\t\n \t\tint randomPassenger = (int) (Math.random()*pTable.size());\t\t\t\t\t\t\t\t\t\t// choosing random passenger [index] from passengers table\n \t\tint randomFlight = (int) (Math.random()*fTable.size());\t\t\t\t\t\t\t\t\t\t\t// choosing random flight [index] from flights table\n \t\t\n \t for(int f = 0; f < sTable.size(); f++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// check for all seats in sTable\n \t \tif((sTable.get(f).flightId() == randomFlight+1) && (!sTable.get(f).isBooked())){\t\t\t// if seat belongs to chosen flight and is not booked then\n \t \t\tfreeSeats.add(sTable.get(f));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add seats to the freeSeats list\n \t \t}\n \t }\n \t \n \t if (freeSeats.size() > 0){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is free seats then\n \t \tint randomFreeSeat = (int) (Math.random()*freeSeats.size());\t\t\t\t\t\t\t\t// choose random seat from free seats list\n \t \tif(freeSeats.size() == 1){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is only one free seat\n \t \t\trandomFreeSeat = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then take that seat\n \t \t}\n \t \t\n \t\t\tReservation res = new Reservation(pTable.get(randomPassenger), freeSeats.get(randomFreeSeat));\t// create reservation\n\n \t \tif (rTable.isEmpty()){ \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is empty\n \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\n \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add reservation to reservation table\n \t \t} else { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is NOT empty and\n\t \t\t\t\tif( exists(res, rTable) ){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if seat is booked or seat exists in rTable\n\t \t\t\t\t\tcontinue;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exit this loop\n\t \t\t\t\t} else {\n\t \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\t\t\t\t\t\t\t\t\t\t// else book that seat\n\t \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add to reservation table\n\t \t\t\t\t}\n\t \t\t }\n \t }\n\t\t}\n\t\twhile( !(sTable.size() == rTable.size()) );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// keep booking until reservations table size is equal to seats table size\n\t}", "public List<TimeSheet> getTimeSheetsBetweenTwoDateForAllEmp(LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheets(startDate, endDate);\n }", "@GetMapping(\"/get\")\n public List<Task> getTasksBetweenDateAndTime(@RequestParam(\"dstart\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateStart,\n @RequestParam(\"dend\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateEnd,\n @RequestParam(value = \"number\", required = false, defaultValue = \"0\") int number) {\n return taskService.filterTasks(dateStart, dateEnd, number);\n }", "public static ArrayList<String> checkWaitlist(boolean byRoom, int seats, Date date){\r\n con = DBConnection.getConnection();\r\n ArrayList<String> open = new ArrayList<>();\r\n\r\n if(byRoom){\r\n try{\r\n PreparedStatement retrieve = con.prepareStatement(\"SELECT * from Waitlist where SEATS <= ?\");\r\n retrieve.setInt(1, seats);\r\n ResultSet res = retrieve.executeQuery();\r\n \r\n while(res.next()){\r\n if(open.indexOf(res.getString(2)) >= 0){\r\n continue;\r\n }\r\n open.add(res.getString(1));\r\n open.add(res.getString(2));\r\n open.add(res.getString(3));\r\n }\r\n return open;\r\n }catch(SQLException e){\r\n e.printStackTrace();\r\n }\r\n return open;\r\n } else {\r\n try{\r\n PreparedStatement retrieve = con.prepareStatement(\"SELECT * from Waitlist where Date = ? and SEATS <= ?\"\r\n + \"ORDER by Timestamp\");\r\n retrieve.setDate(1, date);\r\n retrieve.setInt(2, seats);\r\n ResultSet res = retrieve.executeQuery();\r\n \r\n if(res.next()){\r\n open.add(res.getString(1));\r\n open.add(res.getString(3));\r\n }\r\n }catch(SQLException e){\r\n e.printStackTrace();\r\n }\r\n return open;\r\n }\r\n }", "public Collection<ReservationHistoryDTO> getCurrentReservations() throws ResourceNotFoundException{\n\t\tRegisteredUser currentUser = (RegisteredUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\t\n\t\t\n\t\tRegisteredUser currentUserFromBase = registeredUserRepository.getOne(currentUser.getId());\n\t\t\n\t\tCollection<Reservation> reservations = currentUserFromBase.getReservations();\n\t\t\n\t\tif(reservations==null) {\n\t\t\tthrow new ResourceNotFoundException(\"User \"+currentUserFromBase.getUsername()+\" made non reservation!\");\n\t\t}\n\n\t\tHashSet<ReservationHistoryDTO> reservationsDTO = new HashSet<ReservationHistoryDTO>();\n\t\t\n\t\t\n\t\t\n\t\tfor(Reservation reservation : reservations) {\n\t\t\tif(!reservation.getHasPassed()) {\n\t\t\t\n\t\t\t\tReservationHistoryDTO reservationDTO = new ReservationHistoryDTO();\n\t\t\t\t\n\t\t\t\tFlightReservation flightReservation = reservation.getFlightReservation();\n\t\t\t\tRoomReservation roomReservation = reservation.getRoomReservation();\n\t\t\t\tVehicleReservation vehicleReservation = reservation.getVehicleReservation();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFlight flight = flightReservation.getSeat().getFlight();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLong reservationId = reservation.getId();\n\t\t\t\tLong flightId = flight.getId();\n\t\t\t\tString departureName = flight.getDeparture().getName();\n\t\t\t\tString destinationName = flight.getDestination().getName();\n\t\t\t\tDate departureDate = flight.getDepartureDate();\n\t\t\t\tLong airlineId = flight.getAirline().getId();\n\t\t\t\t\n\t\t\t\treservationDTO.setReservationId(reservationId);\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightId(flightId);\n\t\t\t\treservationDTO.setDepartureName(departureName);\n\t\t\t\treservationDTO.setDestinationName(destinationName);\n\t\t\t\treservationDTO.setDepartureDate(departureDate);\n\t\t\t\treservationDTO.setAirlineId(airlineId);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(roomReservation != null) {\n\t\t\t\t\tRoomType roomType = reservation.getRoomReservation().getRoom().getRoomType();\n\t\t\t\t\tif(roomType!= null) {\n\t\t\t\t\t\treservationDTO.setRoomTypeId(roomType.getId());\n\t\t\t\t\t\treservationDTO.setHotelId(roomReservation.getRoom().getHotel().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(vehicleReservation != null) {\n\t\t\t\t\tVehicle vehicle = reservation.getVehicleReservation().getReservedVehicle();\n\t\t\t\t\tif(vehicle != null) {\n\t\t\t\t\t\treservationDTO.setVehicleId(vehicle.getId());\n\t\t\t\t\t\treservationDTO.setRentACarId(vehicle.getBranchOffice().getMainOffice().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationsDTO.add(reservationDTO);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn reservationsDTO;\n\t\t\n\t}", "public boolean checkBooking(int id, Calendar start, int nights) {\r\n\t\t//gets the keys for the bookings and tempbookings data structure\r\n\t\tSet<Integer> lb = listBookings();\r\n\t\tSet<Integer> lbt = tempBookings.keySet();\r\n\t\t\r\n\t\t//sets up new calendar to determine end date of booking wanting to be made\r\n\t\tCalendar end = new GregorianCalendar();\r\n\t\tend.set(2015, start.get(Calendar.MONTH), start.get(Calendar.DAY_OF_MONTH));\r\n\t\tend.add(Calendar.DAY_OF_YEAR, nights-1);\r\n\t\t\r\n\t\t//looks up if the current booking is already inside the temp booking\r\n\t\tfor (Integer i: lbt){\r\n\t\t\tBooking t = tempBookings.get(i);\r\n\t\t\tif (t.getBookingID() == id) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//looks through the bookings,if there is one of the id it is skipped as irrelevant - only used in change\r\n\t\t//should a clash occur, booking cannot be made\r\n\t\tfor (Integer i: lb){\r\n\t\t\tBooking b = bookings.get(i);\r\n\t\t\tif (b.getBookingID() == id){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (start.before(b.end()) && (b.start().before(end))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//sets up booking and places it in the tempbooking data structure waiting to be made if everything\r\n\t\t//in the booking is successful\r\n\t\tBooking nb = new Booking();\r\n\t\tnb.setBookingID(id);\r\n\t\tnb.setStart(start);\r\n\t\tnb.setStayTime(nights);\r\n\t\ttempBookings.put(id, nb);\r\n\t\treturn true;\r\n\t}", "@Test\n\tpublic void testBook() throws Exception {\n\t\tString createdReservationID = bookingManagement.book(USER_ID, Arrays.asList(room1.getId()),\n\t\t\t\tvalidStartDate, validEndDate);\n\t\t// a reservation must be returned\n\t\tassertNotNull(\"Reservation id is null\", createdReservationID);\n\t\tassertFalse(\"Reservation id is emtpy\", createdReservationID.isEmpty());\n\t\t// check if returned reservation is correct\n\t\tReservation createdReservation = bookingManagement.getReservation(createdReservationID);\n\t\tassertNotNull(\"Reservation of returned id was not found\", createdReservation);\n\n\t\tassertEquals(USER_ID, createdReservation.getBookingUserId());\n\n\t\tassertEquals(1, createdReservation.getBookedFacilityIds().size());\n\t\tassertTrue(createdReservation.getBookedFacilityIds().contains(room1.getId()));\n\t\tassertEquals(validStartDate, createdReservation.getStartTime());\n\t\tassertEquals(validEndDate, createdReservation.getEndTime());\n\t}", "private void addBookings(List<Bookings> newBookings) {\n IController<Bookings> bookingController = new Controller<>();\n IController<Students> studentController = new Controller<>();\n IController<Staff> staffController = new Controller<>();\n\n // Get all bookings\n List<Bookings> allBookings = bookingController.readAll(Bookings.class);\n\n\n // Check if any booking clashes.\n int count = 0;\n for (Bookings b : newBookings) {\n System.out.println(\"Checking availability of booking #\" + count);\n for (Bookings booking : allBookings) {\n if (b.conflictsWith(booking)) {\n throw new IllegalArgumentException(\"That booking conflicts with another booking.\");\n }\n }\n\n Modules relatedModule = b.getModule();\n\n if (!b.getRooms().isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"That room is unavailable at the time (\" + b.getTime() + \").\");\n }\n for (Students student : relatedModule.getStudents()) {\n student = studentController.readById(Students.class, student.getStudentID(), true);\n if (!student.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A student is unavailable at this time. [\" + b.getTime() + \"] (\" + student.getStudentID() + \")\");\n }\n }\n for (Staff staff : relatedModule.getStaff()) {\n staff = staffController.readById(Staff.class, staff.getStaffID(), true);\n\n if (!staff.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A staff member is unavailable at this time. [\" + b.getTime() + \"] (\" + staff.getStaffID() + \")\");\n }\n }\n\n count++;\n }\n\n // Create the bookings\n for (Bookings b : newBookings) {\n bookingController.create(b);\n System.out.println(b.confirmation() + \"\\n\");\n }\n }", "private boolean overlaps(ThingTimeTriple a, ThingTimeTriple b)\r\n/* 227: */ {\r\n/* 228:189 */ return (a.from < b.to) && (a.to > b.from);\r\n/* 229: */ }", "List<Bill> findBillsForReservation(long reservationId);", "public int betweenDates() {\n return Period.between(arrivalDate, departureDate).getDays();\n }", "List<FlightResponse> getConnectingFlights(String departure, String arrival, LocalDateTime departureDate,\n LocalDateTime arrivalDate, List<Route> allRoutes) throws ValidationException, ServiceException {\n\n List<ConnectionRoute> connectionRoutes = routeService.getConnectionRoutes(departure, arrival, allRoutes);\n List<FlightResponse> responses = new ArrayList<>();\n\n for (ConnectionRoute cr : connectionRoutes) {\n String depFrom = cr.getDeparture().getAirportFrom();\n String depTo = cr.getDeparture().getAirportTo();\n List<Leg> departureLegs = getDirectFlights(depFrom, depTo, departureDate, arrivalDate).getLegs();\n\n String arrFrom = cr.getArrival().getAirportFrom();\n String arrTo = cr.getArrival().getAirportTo();\n List<Leg> arrivalLegs = getDirectFlights(arrFrom, arrTo, departureDate, arrivalDate).getLegs();\n\n for (Leg depLeg : departureLegs) {\n LocalDateTime depFromConnection = depLeg.getArrivalDateTime().plusHours(2);\n List<Leg> filteredArrivalLegs = arrivalLegs.stream()\n .filter(leg -> leg.getDepartureDateTime().isAfter(depFromConnection))\n .filter(leg -> leg.getDepartureAirport().equals(depLeg.getArrivalAirport()))\n .collect(Collectors.toList());\n\n for (Leg leg : filteredArrivalLegs) {\n responses.add(new FlightResponse(1, Stream.of(depLeg, leg).collect(Collectors.toList())));\n }\n }\n }\n\n return responses;\n }", "@Test(expected = ValidationException.class)\n\tpublic void testFailedBooking_OverlappedBookings2() throws ParseException {\n\t\t// Preparing booking data\n\t\tBooking booking = getExpectedBookingEntity();\n\t\t\n\t\tcom.paypal.bfs.test.bookingserv.service.model.Booking bookingServiceLayer \n\t\t = getServiceLayerBooking();\n\n\t\tMockito.when(bookingRepository.save(Mockito.any())).thenReturn(booking);\n\t\t\n\t\tbookingClient.createBooking(bookingServiceLayer);\n\t\t\n\t\tMockito.when(bookingRepository.findExistingBookings(booking.getFirstName(), \n\t\t\t\tbooking.getLastName(), booking.getDateOfBirth(), \n\t\t\t\tbooking.getAddress().getZipCode())).thenReturn(Arrays.asList(booking));\n\t\tMockito.when(messageUtil.getLocalizedMessage(Mockito.anyString())).thenReturn(\"Test message\");\n\t\t//Try to persist same booking again\n\t\tbookingServiceLayer.setCheckOut(bookingServiceLayer.getCheckOut()-2);\n\t\tbookingClient.createBooking(bookingServiceLayer);\n\t\t\n\t}", "public Map<String, List<Reservation>> findReservationsFor(List<Class> points){\n\t\tMap<String, List<Reservation>> reservations = new HashMap<>();\n\t\tpoints\n\t\t\t.forEach(point ->\n\t\t\t\treservations.put(point.getSimpleName(), this.sortByDate(this.findByClass(point)))\n\t\t\t);\n\t\treturn reservations;\n\t}", "@Transactional\r\n\tpublic List<Room> getReservable(Integer posti, LocalDate from, LocalDate to){\r\n\t\tList<Room> l= this.getPosti(posti);\r\n\t\tl.removeAll(this.getReservedFromTo(from, to));\r\n\t\treturn l;\r\n\t}" ]
[ "0.65587837", "0.61064965", "0.6070297", "0.5901533", "0.5887722", "0.58494645", "0.5824118", "0.5779483", "0.5772586", "0.575915", "0.5632489", "0.5621542", "0.5620328", "0.55621654", "0.55568707", "0.5536737", "0.5524586", "0.5522533", "0.55121934", "0.54891235", "0.5487694", "0.5486249", "0.5479891", "0.5425137", "0.5416669", "0.53916866", "0.5388736", "0.53828776", "0.537925", "0.5368298", "0.53401107", "0.5258319", "0.52551055", "0.52488", "0.52461606", "0.5226912", "0.5217615", "0.5191007", "0.51906973", "0.5164298", "0.51641655", "0.5151399", "0.5147015", "0.51288784", "0.5122851", "0.5115393", "0.51044405", "0.50986767", "0.5093125", "0.50921845", "0.5088015", "0.5082534", "0.50740016", "0.50718933", "0.50640285", "0.504132", "0.50410014", "0.5037101", "0.50357854", "0.5034587", "0.503081", "0.5020827", "0.50166655", "0.501468", "0.5014426", "0.49963596", "0.49922562", "0.49880898", "0.49864313", "0.49859336", "0.49812186", "0.4964839", "0.49524996", "0.4938197", "0.4937891", "0.4937219", "0.49171075", "0.49032432", "0.4884165", "0.48833686", "0.4882695", "0.48723572", "0.48713538", "0.48660856", "0.48636335", "0.48633817", "0.48627156", "0.48600793", "0.48539186", "0.48473418", "0.48469356", "0.48468295", "0.482873", "0.48246288", "0.48219538", "0.4821635", "0.48158658", "0.4809986", "0.48092413", "0.4809134" ]
0.7114759
0
Generated method Getter of the MyCustomer.email attribute.
public String getEmail(final SessionContext ctx) { return (String)getProperty( ctx, EMAIL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public String getEmail()\n {\n return emailAddress;\n }", "@Override\r\n\tpublic String getEmail() {\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public java.lang.String getEmail() {\r\n return email;\r\n }", "public String getEmail()\r\n {\r\n return email;\r\n }", "public String getCustomerEmailAddress() { return customerEmailAddress; }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public final String getEmail() {\n return email;\n }", "public String getEmail()\n {\n return this.email;\n }", "public String getEmail()\n {\n return email;\n }", "public String getEmail()\n {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {return email; }", "public String getEmail() { return email; }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public String getEmail()\n\t{\n\t\treturn this._email;\n\t}", "public String getEmail() {\n return _email;\n }", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail()\n\t{\n\t\treturn this.email;\n\t}", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public String getEmailAddress() {\n return email;\n }", "public String getEmailAddress() {\r\n return email;\r\n }", "public String getEmail() {\n return email;\n }", "public String getEmail()\r\n {\r\n return getAttribute(\"email\");\r\n }", "@java.lang.Override\n public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n return s;\n }\n }", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {return email;}", "public Email getEmail() {\n return email;\n }", "public final String getEmail() {\n\t\treturn email;\n\t}", "public java.lang.String getEmail () {\n\t\treturn email;\n\t}" ]
[ "0.8566995", "0.8242252", "0.81075466", "0.80507237", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.8016991", "0.8016529", "0.8006505", "0.8003671", "0.8003671", "0.80022764", "0.8000362", "0.80000025", "0.80000025", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.7990466", "0.798364", "0.798364", "0.798364", "0.798364", "0.7982184", "0.7978645", "0.7964648", "0.7964648", "0.7964648", "0.7964648", "0.79535997", "0.79466057", "0.7945857", "0.7945857", "0.79363036", "0.793112", "0.793112", "0.793112", "0.793112", "0.793112", "0.793112", "0.7925378", "0.79227453", "0.79167277", "0.7910922", "0.79071736", "0.7891985", "0.7891985", "0.7891985", "0.7878655", "0.78713787", "0.7868758", "0.7855806" ]
0.0
-1
Generated method Getter of the MyCustomer.email attribute.
public String getEmail() { return getEmail( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public String getEmail()\n {\n return emailAddress;\n }", "@Override\r\n\tpublic String getEmail() {\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public java.lang.String getEmail() {\r\n return email;\r\n }", "public String getEmail()\r\n {\r\n return email;\r\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public final String getEmail() {\n return email;\n }", "public String getCustomerEmailAddress() { return customerEmailAddress; }", "public String getEmail()\n {\n return this.email;\n }", "public String getEmail()\n {\n return email;\n }", "public String getEmail()\n {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {return email; }", "public String getEmail() { return email; }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public String getEmail()\n\t{\n\t\treturn this._email;\n\t}", "public String getEmail() {\n return _email;\n }", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail()\n\t{\n\t\treturn this.email;\n\t}", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public String getEmailAddress() {\n return email;\n }", "public String getEmailAddress() {\r\n return email;\r\n }", "public String getEmail() {\n return email;\n }", "public String getEmail()\r\n {\r\n return getAttribute(\"email\");\r\n }", "@java.lang.Override\n public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n return s;\n }\n }", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {return email;}", "public Email getEmail() {\n return email;\n }", "public final String getEmail() {\n\t\treturn email;\n\t}", "public java.lang.String getEmail () {\n\t\treturn email;\n\t}" ]
[ "0.8566315", "0.8241811", "0.81085956", "0.8051756", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.8018798", "0.80178076", "0.80051637", "0.80051637", "0.80042726", "0.8004099", "0.80015725", "0.800135", "0.800135", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7992257", "0.7985329", "0.7985329", "0.7985329", "0.7985329", "0.7983319", "0.7979683", "0.7966568", "0.7966568", "0.7966568", "0.7966568", "0.79555523", "0.79483044", "0.79477364", "0.79477364", "0.79382056", "0.7932151", "0.7932151", "0.7932151", "0.7932151", "0.7932151", "0.7932151", "0.79265434", "0.7923977", "0.79187554", "0.79115117", "0.79085445", "0.78942704", "0.78942704", "0.78942704", "0.78796345", "0.7872687", "0.78709394", "0.7857838" ]
0.0
-1
Generated method Setter of the MyCustomer.email attribute.
public void setEmail(final SessionContext ctx, final String value) { setProperty(ctx, EMAIL,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setEmail(java.lang.String email) {\n _entityCustomer.setEmail(email);\n }", "@Override\n public void setEmail(String email) {\n\n }", "public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }", "public void setEmail(Email email) { this.email = email; }", "void setEmail(String email);", "void setEmail(String email);", "public void setEmail(String email);", "public void setEmail_address(String email_address);", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmailAddress(String emailAddress);", "public void set_email(String Email)\n {\n email =Email;\n }", "public void setEmail(String aEmail) {\n email = aEmail;\n }", "public void setEmail(String email) { this.email = email; }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "public void setEmailAddressOfCustomer(final String value)\n\t{\n\t\tsetEmailAddressOfCustomer( getSession().getSessionContext(), value );\n\t}", "public void setEmail( String email )\r\n {\r\n this.email = email;\r\n }", "public void setEmail(String email){\r\n this.email = email;\r\n }", "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "public String getCustomerEmailAddress() { return customerEmailAddress; }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public void setEmail(final String e)\n {\n this.email = e;\n }", "public void setEmailAddress(java.lang.String newEmailAddress);", "public void setEmail(java.lang.String value) {\n\t\tsetValue(org.jooq.example.jaxrs.db.routines.GenerateKey.EMAIL, value);\n\t}", "public void setEmail(String string) {\n\t\tthis.email = string;\n\t}", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public void setEmail(String email)\n {\n this.email = email;\n }", "private void setEmail(String email) {\n this.email = StringExtension.nullFilter(email);\n }", "public void setEmailAddress(String email_address){\n this.email_address = email_address;\n }", "@Override\n\tpublic void setEmail(String email) {\n\t\tsuper.setEmail(email);\n\t}", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n email_ = value;\n onChanged();\n return this;\n }", "public void setEmailAddressOfCustomer(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, EMAILADDRESSOFCUSTOMER,value);\n\t}", "public void setCustomerEmailAddress(String customerEmailAddress) {\n this.customerEmailAddress = customerEmailAddress;\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmailAddress(String email) {\n this.email = email;\n }", "@ApiModelProperty(value = \"Email of the customer associated with this gift certificate.\")\n public String getEmail() {\n return email;\n }", "public void setContact(String email){ contact = email; }", "public void setEmail(String email)\n {\n String regex = \"^[\\\\w!#$%&'*+/=?`{|}~^-]+(?:\\\\.[\\\\w!#$%&'*+/=?`{|}~^-]+)*@(?:[a-zA-Z0-9-]+\\\\.)+[a-zA-Z]{2,6}$\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(email);\n if(matcher.matches())\n {\n this.email=email;\n }\n else \n {\n this.email=\"\";\n }\n }", "@Override\r\n\tpublic void setEmail(String email) {\n\t\tif (email == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (email.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.email = email;\r\n\t}", "public void setEmail(final String value)\n\t{\n\t\tsetEmail( getSession().getSessionContext(), value );\n\t}", "public void setEmail(final String value)\n\t{\n\t\tsetEmail( getSession().getSessionContext(), value );\n\t}", "public String getEmail() { return email; }", "public Builder setUserEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userEmail_ = value;\n onChanged();\n return this;\n }", "public String getEmail()\n {\n return this.email;\n }", "public String getEmail(){\r\n return this.email;\r\n }", "public void setEmail(String email)\n\t{\n\t\tthis._email=email;\n\t}", "@Override\r\n\tpublic String getEmail() {\n\t\treturn email;\r\n\t}", "public void setEmail(java.lang.String email) {\r\n this.email = email;\r\n }", "public void setEmail( final String email )\n\t{\n\t\tthis.email = email;\n\t}", "public String getEmail() {return email;}", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public Builder setEmail(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\temail_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public String getEmail() {return email; }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public String getEmailAddress() {\r\n return email;\r\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }" ]
[ "0.7948876", "0.78858054", "0.78694934", "0.77320004", "0.76599526", "0.76599526", "0.76509404", "0.7600703", "0.75433964", "0.74545056", "0.7428741", "0.73873365", "0.7370707", "0.7365634", "0.7334015", "0.7317234", "0.72878605", "0.7261201", "0.72383744", "0.7236771", "0.72140896", "0.7201501", "0.7192033", "0.71912956", "0.7183052", "0.71775573", "0.71775573", "0.7174214", "0.7169184", "0.7164342", "0.71577275", "0.7155099", "0.7134831", "0.7082728", "0.70728266", "0.70728266", "0.70728266", "0.70728266", "0.70728266", "0.70728266", "0.7071372", "0.7042873", "0.70192605", "0.7009229", "0.69982135", "0.6982484", "0.6982484", "0.6981681", "0.69757277", "0.6963399", "0.6959945", "0.6959218", "0.6956046", "0.69519204", "0.6946737", "0.69418293", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69335055", "0.6932155", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.691052", "0.6903885", "0.6903885", "0.6903885", "0.6903885" ]
0.0
-1
Generated method Setter of the MyCustomer.email attribute.
public void setEmail(final String value) { setEmail( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setEmail(java.lang.String email) {\n _entityCustomer.setEmail(email);\n }", "@Override\n public void setEmail(String email) {\n\n }", "public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }", "public void setEmail(Email email) { this.email = email; }", "void setEmail(String email);", "void setEmail(String email);", "public void setEmail(String email);", "public void setEmail_address(String email_address);", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmailAddress(String emailAddress);", "public void set_email(String Email)\n {\n email =Email;\n }", "public void setEmail(String aEmail) {\n email = aEmail;\n }", "public void setEmail(String email) { this.email = email; }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "public void setEmailAddressOfCustomer(final String value)\n\t{\n\t\tsetEmailAddressOfCustomer( getSession().getSessionContext(), value );\n\t}", "public void setEmail( String email )\r\n {\r\n this.email = email;\r\n }", "public void setEmail(String email){\r\n this.email = email;\r\n }", "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "public String getCustomerEmailAddress() { return customerEmailAddress; }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public void setEmail(final String e)\n {\n this.email = e;\n }", "public void setEmailAddress(java.lang.String newEmailAddress);", "public void setEmail(java.lang.String value) {\n\t\tsetValue(org.jooq.example.jaxrs.db.routines.GenerateKey.EMAIL, value);\n\t}", "public void setEmail(String string) {\n\t\tthis.email = string;\n\t}", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public void setEmail(String email)\n {\n this.email = email;\n }", "private void setEmail(String email) {\n this.email = StringExtension.nullFilter(email);\n }", "public void setEmailAddress(String email_address){\n this.email_address = email_address;\n }", "@Override\n\tpublic void setEmail(String email) {\n\t\tsuper.setEmail(email);\n\t}", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n email_ = value;\n onChanged();\n return this;\n }", "public void setEmailAddressOfCustomer(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, EMAILADDRESSOFCUSTOMER,value);\n\t}", "public void setCustomerEmailAddress(String customerEmailAddress) {\n this.customerEmailAddress = customerEmailAddress;\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmailAddress(String email) {\n this.email = email;\n }", "@ApiModelProperty(value = \"Email of the customer associated with this gift certificate.\")\n public String getEmail() {\n return email;\n }", "public void setContact(String email){ contact = email; }", "public void setEmail(String email)\n {\n String regex = \"^[\\\\w!#$%&'*+/=?`{|}~^-]+(?:\\\\.[\\\\w!#$%&'*+/=?`{|}~^-]+)*@(?:[a-zA-Z0-9-]+\\\\.)+[a-zA-Z]{2,6}$\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(email);\n if(matcher.matches())\n {\n this.email=email;\n }\n else \n {\n this.email=\"\";\n }\n }", "@Override\r\n\tpublic void setEmail(String email) {\n\t\tif (email == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (email.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.email = email;\r\n\t}", "public String getEmail() { return email; }", "public Builder setUserEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userEmail_ = value;\n onChanged();\n return this;\n }", "public String getEmail()\n {\n return this.email;\n }", "public String getEmail(){\r\n return this.email;\r\n }", "public void setEmail(String email)\n\t{\n\t\tthis._email=email;\n\t}", "@Override\r\n\tpublic String getEmail() {\n\t\treturn email;\r\n\t}", "public void setEmail(java.lang.String email) {\r\n this.email = email;\r\n }", "public void setEmail( final String email )\n\t{\n\t\tthis.email = email;\n\t}", "public String getEmail() {return email;}", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public Builder setEmail(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\temail_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public String getEmail() {return email; }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public String getEmailAddress() {\r\n return email;\r\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }" ]
[ "0.7948876", "0.78858054", "0.78694934", "0.77320004", "0.76599526", "0.76599526", "0.76509404", "0.7600703", "0.75433964", "0.74545056", "0.7428741", "0.73873365", "0.7370707", "0.7365634", "0.7334015", "0.7317234", "0.72878605", "0.7261201", "0.72383744", "0.7236771", "0.72140896", "0.7201501", "0.7192033", "0.71912956", "0.7183052", "0.71775573", "0.71775573", "0.7174214", "0.7169184", "0.7164342", "0.71577275", "0.7155099", "0.7134831", "0.7082728", "0.70728266", "0.70728266", "0.70728266", "0.70728266", "0.70728266", "0.70728266", "0.7071372", "0.7042873", "0.70192605", "0.7009229", "0.69982135", "0.6981681", "0.69757277", "0.6963399", "0.6959945", "0.6959218", "0.6956046", "0.69519204", "0.6946737", "0.69418293", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69364834", "0.69335055", "0.6932155", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.69310796", "0.691052", "0.6903885", "0.6903885", "0.6903885", "0.6903885" ]
0.6982484
46
Generated method Getter of the MyCustomer.firstName attribute.
public String getFirstName(final SessionContext ctx) { return (String)getProperty( ctx, FIRSTNAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "public String getFirstName(){\n return(this.firstName);\n }", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName(){\n\t\treturn this.firstName;\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\n {\n return this.firstName;\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName(){\n\t\treturn firstName;\n\t}", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName.getModelObjectAsString();\r\n\t}", "public String getFirstName() { return firstName; }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public java.lang.String getFirstName() {\r\n return firstName;\r\n }", "public java.lang.String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName()\n {\n return firstName;\n }", "public String getFirstName()\n {\n return firstName;\n }", "public java.lang.String getFirstName();", "public String getFirstName() {\r\n\t\treturn this.firstName;\r\n\t}", "public java.lang.String getFirstName() {\n return firstName;\n }", "public java.lang.String getFirstName() {\n return firstName;\n }", "public String getFirstName() \r\n {\r\n return firstName;\r\n }", "public String getFirstName()\n\t{\n\t\treturn firstName;\n\t}", "public String getFirstName()\n\t{\n\t\treturn firstName;\n\t}", "public String getFirstName()\n {\n return firstName;\n }", "public static String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String firstName() { return firstName; }", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\t\t\r\n\t}", "public final String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n\t\treturn this.firstName;\n\t}", "public String getFirstName() {\n\t\treturn myFirstName;\n\t}", "public final String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n return fName;\n }", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public String getFirstName() {\n\t\treturn this.FirstName ;\n\t}", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "public String getFirstName() {\n\t\t System.out.println(\"method getFirstName() called.\");\n\t\t return firstName;\n\t\t}", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "public java.lang.CharSequence getFirstName() {\n return first_name;\n }", "public String getFirstName() {\n\t\tthis.setFirstName(this.firstName);\n\t\treturn this.firstName;\n\t}", "@Column(length = 100, nullable = false)\n\tpublic String getFirstName() {\n\t\treturn firstName;\n\t}", "public java.lang.CharSequence getFirstName() {\n return first_name;\n }", "public String getFirstName();", "public String getFirstName() {\r\n // Bouml preserved body begin 00040B02\r\n\t System.out.println(firstName);\r\n\t return firstName;\r\n // Bouml preserved body end 00040B02\r\n }", "public String getFirstName()\n\t{\n\t\t//local consants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the firstName.\n\t\treturn firstName;\n\n\t}", "public String getFirstName() {\n\t\treturn getfirstName.getText();\n\t}" ]
[ "0.8742406", "0.84536105", "0.83862764", "0.8374953", "0.8374953", "0.83725077", "0.83725077", "0.83725077", "0.83699", "0.8368032", "0.83677685", "0.836113", "0.836113", "0.836113", "0.8358224", "0.83573705", "0.8343316", "0.8336508", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83325", "0.83285743", "0.8325979", "0.83235717", "0.83228326", "0.8321932", "0.8321932", "0.8312439", "0.8312439", "0.82979447", "0.82979447", "0.82705325", "0.82601464", "0.8256159", "0.8256159", "0.8239196", "0.8232649", "0.8232649", "0.8197869", "0.8197822", "0.819757", "0.8196675", "0.8196675", "0.8192814", "0.8192791", "0.8185933", "0.8181262", "0.8178331", "0.8150862", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.81391627", "0.80905855", "0.8066277", "0.8066277", "0.80528027", "0.800467", "0.79994345", "0.79853874", "0.79853874", "0.798204", "0.7960655", "0.7945357", "0.7938716", "0.792394", "0.79082215", "0.7895031", "0.7882122" ]
0.0
-1
Generated method Getter of the MyCustomer.firstName attribute.
public String getFirstName() { return getFirstName( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "public String getFirstName(){\n return(this.firstName);\n }", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName(){\n\t\treturn this.firstName;\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\n {\n return this.firstName;\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName(){\n\t\treturn firstName;\n\t}", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName.getModelObjectAsString();\r\n\t}", "public String getFirstName() { return firstName; }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public java.lang.String getFirstName() {\r\n return firstName;\r\n }", "public java.lang.String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName()\n {\n return firstName;\n }", "public String getFirstName()\n {\n return firstName;\n }", "public java.lang.String getFirstName();", "public String getFirstName() {\r\n\t\treturn this.firstName;\r\n\t}", "public java.lang.String getFirstName() {\n return firstName;\n }", "public java.lang.String getFirstName() {\n return firstName;\n }", "public String getFirstName() \r\n {\r\n return firstName;\r\n }", "public String getFirstName()\n\t{\n\t\treturn firstName;\n\t}", "public String getFirstName()\n\t{\n\t\treturn firstName;\n\t}", "public String getFirstName()\n {\n return firstName;\n }", "public String firstName() { return firstName; }", "public static String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\t\t\r\n\t}", "public String getFirstName() {\n\t\treturn firstName;\r\n\t}", "public final String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n\t\treturn this.firstName;\n\t}", "public String getFirstName() {\n\t\treturn myFirstName;\n\t}", "public final String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n return fName;\n }", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public String getFirstName() {\n\t\treturn this.FirstName ;\n\t}", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "public String getFirstName() {\n\t\t System.out.println(\"method getFirstName() called.\");\n\t\t return firstName;\n\t\t}", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "public java.lang.CharSequence getFirstName() {\n return first_name;\n }", "public String getFirstName() {\n\t\tthis.setFirstName(this.firstName);\n\t\treturn this.firstName;\n\t}", "@Column(length = 100, nullable = false)\n\tpublic String getFirstName() {\n\t\treturn firstName;\n\t}", "public java.lang.CharSequence getFirstName() {\n return first_name;\n }", "public String getFirstName();", "public String getFirstName() {\r\n // Bouml preserved body begin 00040B02\r\n\t System.out.println(firstName);\r\n\t return firstName;\r\n // Bouml preserved body end 00040B02\r\n }", "public String getFirstName()\n\t{\n\t\t//local consants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the firstName.\n\t\treturn firstName;\n\n\t}", "public String getFirstName() {\n\t\treturn getfirstName.getText();\n\t}" ]
[ "0.8742407", "0.84530693", "0.8385525", "0.8374112", "0.8374112", "0.83716005", "0.83716005", "0.83716005", "0.83691204", "0.83671844", "0.8366927", "0.83605015", "0.83605015", "0.83605015", "0.8357485", "0.8356837", "0.8342887", "0.83355135", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.8331674", "0.83277375", "0.83248085", "0.8322983", "0.8322604", "0.83213437", "0.83213437", "0.8311252", "0.8311252", "0.82973826", "0.82973826", "0.8269312", "0.82588506", "0.82549983", "0.82549983", "0.8238897", "0.82314116", "0.82314116", "0.81975985", "0.81975865", "0.8196353", "0.8195348", "0.8195348", "0.81915534", "0.8191524", "0.8184654", "0.8179934", "0.8176823", "0.8149575", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.8137816", "0.80894136", "0.8064875", "0.8064875", "0.80517364", "0.8002933", "0.79983056", "0.79835635", "0.79835635", "0.7980848", "0.79590887", "0.7944248", "0.793751", "0.792318", "0.79083085", "0.7893734", "0.7880813" ]
0.0
-1
Generated method Setter of the MyCustomer.firstName attribute.
public void setFirstName(final SessionContext ctx, final String value) { setProperty(ctx, FIRSTNAME,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setFirstName(java.lang.String firstName) {\n _entityCustomer.setFirstName(firstName);\n }", "public void setFirstName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer first name can't be null.\" );\r\n else \r\n\t this.firstName = name; \r\n }", "public void setFirstName(String fname){ firstName.set(fname); }", "public void setFirstName(String firstName);", "public void setFirstName( String first )\r\n {\r\n firstName = first;\r\n }", "protected void setFirstName(String first)\n {\n firstName = first;\n }", "public void setFirstName(String firstName)\r\n {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String newFirstName) {\n this.firstName = newFirstName;\n }", "void setFirstName(String firstName);", "public void setFirstName(String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String newFirstName) {\n _firstName = newFirstName;\n }", "public void setFirstName(String newFirstName)\r\n {\r\n firstName = newFirstName;\r\n }", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName){\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String s) {\r\n\t\tfirstName = s;\t\r\n\t}", "public void setFirstName(java.lang.String newFirstName);", "public final void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String fName) {\n this.firstName = fName;\n }", "public void setFirstName(java.lang.String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(java.lang.String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(final String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n if(firstName.length()>0)\n this.firstName = firstName;\n else this.firstName =\"undefined\";\n }", "public void setFirstName(String firstName) {\n String old = this.firstName;\n this.firstName = firstName;\n firePropertyChange(FIRST_NAME_PROPERTY, old, firstName);\n }", "public final void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String firstName)\n\t{\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName() {\n\n\t}", "public void setFirst_name(String first_name);", "@Override\n\tpublic void FirstName(String firstName) {\n\t\t\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n if (firstName.length() >= 3 && firstName.length() <= 20)\n this.firstName = firstName;\n }", "public void setFirstName(java.lang.CharSequence value) {\n this.first_name = value;\n }", "public void setFirstName(String firstName) {\r\n this.firstName = doTrim(firstName);\r\n }", "public void setFirstName(String firstName) {\n\t\tif (firstName == null)\n\t\t\tfirstName = \"\";\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String value) {\n setAttributeInternal(FIRSTNAME, value);\n }", "public void setFirstName(String fn)\n\t{\n\t\tfirstName = fn;\n\t}", "Employee setFirstname(String firstname);", "void firstName( String key, String value ){\n developer.firstName = value;\n }", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public com.politrons.avro.AvroPerson.Builder setFirstName(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.first_name = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public void setFirstName(String firstName) {\n\t\tthis.firstName = StringUtils.trimString( firstName );\n\t}", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public void setFirstName(String firstName) {\n this.firstName = Objects.requireNonNull(firstName,\n \"First name can't be null.\");\n }", "public void setStudentFirstName(String studentFirstName){\r\n this.studentFirstName.set(studentFirstName);\r\n }", "public void setFirstName(String firstName) {\r\n this.firstName = firstName == null ? null : firstName.trim();\r\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName == null ? null : firstName.trim();\n }", "public void setFirstName(String fname) {\n\t\t System.out.println(\"method setFirstName(String fname) called.\");\n\t\t}", "@Override\n\tpublic void setFirstName(java.lang.String firstName) {\n\t\t_candidate.setFirstName(firstName);\n\t}", "public void setFirstname(String firstname) {\r\n\t\tthis.firstname = firstname;\r\n\t}", "public void setUserFirstName(java.lang.String userFirstName) {\r\n this.userFirstName = userFirstName;\r\n }", "void setFirstName(String firstName) throws IllegalArgumentException;", "public void setFirstName(String fname) {\n firstNameField.setText(fname);\n }", "public void setFirstName(String inFirst)\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Set firstName to inFirst.\n\t\tfirstName = inFirst;\n\n\t}", "public static void setFirstName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyFName, name);\n }", "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "public void setFirstNameFieldName(final String value) {\n setProperty(FIRST_NAME_FIELD_NAME_KEY, value);\n }", "public void setUserFirstName(String firstName) {\n profile.setFirstName(currentUser, firstName);\n }", "public Builder setFirstName(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tfirstName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public String getFirstName()\n {\n return this.firstName;\n }", "public void setFirst_name(String first_name) {\n this.first_name = first_name;\n }", "public String getFirstName() { return firstName; }", "@ApiModelProperty(required = true, value = \"User's first name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getFirstName() {\n return firstName;\n }", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public void setFirstName(StringFilter firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setName(String firstName, String lastName){\r\n this.firstname = firstName;\r\n this.lastname = lastName;\r\n }", "public String getFirstName(){\n\t\treturn firstName;\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName() {\n return firstName;\n }" ]
[ "0.84286875", "0.8041329", "0.8031002", "0.79811144", "0.79790187", "0.7946858", "0.794638", "0.79261005", "0.79178125", "0.7916446", "0.79033715", "0.785977", "0.7859083", "0.78412366", "0.78412366", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.7825283", "0.7813647", "0.7805904", "0.77944", "0.77791995", "0.77749264", "0.77749264", "0.77691823", "0.77556527", "0.77330154", "0.7724468", "0.769018", "0.769018", "0.76607907", "0.7659546", "0.7641023", "0.7589752", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75718683", "0.75266165", "0.75136995", "0.75075907", "0.74670905", "0.74649465", "0.74445367", "0.73993385", "0.73872507", "0.73872507", "0.7358088", "0.73573124", "0.73471004", "0.73302805", "0.73302805", "0.7309202", "0.7292511", "0.72826636", "0.72766864", "0.72640145", "0.7243059", "0.72081906", "0.7203703", "0.71969396", "0.71949965", "0.71898216", "0.7185743", "0.7178195", "0.7148331", "0.7134478", "0.7115217", "0.7078953", "0.7059128", "0.70577234", "0.7054373", "0.705236", "0.7013712", "0.7013712", "0.70126706", "0.70126706", "0.70126706", "0.7000586", "0.7000586", "0.7000586", "0.69947743", "0.6983492", "0.69807094", "0.69802296", "0.6966955", "0.6965446" ]
0.0
-1
Generated method Setter of the MyCustomer.firstName attribute.
public void setFirstName(final String value) { setFirstName( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setFirstName(java.lang.String firstName) {\n _entityCustomer.setFirstName(firstName);\n }", "public void setFirstName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer first name can't be null.\" );\r\n else \r\n\t this.firstName = name; \r\n }", "public void setFirstName(String fname){ firstName.set(fname); }", "public void setFirstName(String firstName);", "public void setFirstName( String first )\r\n {\r\n firstName = first;\r\n }", "protected void setFirstName(String first)\n {\n firstName = first;\n }", "public void setFirstName(String firstName)\r\n {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String newFirstName) {\n this.firstName = newFirstName;\n }", "void setFirstName(String firstName);", "public void setFirstName(String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String newFirstName) {\n _firstName = newFirstName;\n }", "public void setFirstName(String newFirstName)\r\n {\r\n firstName = newFirstName;\r\n }", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName){\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String s) {\r\n\t\tfirstName = s;\t\r\n\t}", "public void setFirstName(java.lang.String newFirstName);", "public final void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String fName) {\n this.firstName = fName;\n }", "public void setFirstName(java.lang.String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(java.lang.String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(final String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n if(firstName.length()>0)\n this.firstName = firstName;\n else this.firstName =\"undefined\";\n }", "public void setFirstName(String firstName) {\n String old = this.firstName;\n this.firstName = firstName;\n firePropertyChange(FIRST_NAME_PROPERTY, old, firstName);\n }", "public final void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String firstName)\n\t{\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName() {\n\n\t}", "public void setFirst_name(String first_name);", "@Override\n\tpublic void FirstName(String firstName) {\n\t\t\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n if (firstName.length() >= 3 && firstName.length() <= 20)\n this.firstName = firstName;\n }", "public void setFirstName(java.lang.CharSequence value) {\n this.first_name = value;\n }", "public void setFirstName(String firstName) {\r\n this.firstName = doTrim(firstName);\r\n }", "public void setFirstName(String firstName) {\n\t\tif (firstName == null)\n\t\t\tfirstName = \"\";\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String value) {\n setAttributeInternal(FIRSTNAME, value);\n }", "public void setFirstName(String fn)\n\t{\n\t\tfirstName = fn;\n\t}", "Employee setFirstname(String firstname);", "void firstName( String key, String value ){\n developer.firstName = value;\n }", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public com.politrons.avro.AvroPerson.Builder setFirstName(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.first_name = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public void setFirstName(String firstName) {\n\t\tthis.firstName = StringUtils.trimString( firstName );\n\t}", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public void setFirstName(String firstName) {\n this.firstName = Objects.requireNonNull(firstName,\n \"First name can't be null.\");\n }", "public void setStudentFirstName(String studentFirstName){\r\n this.studentFirstName.set(studentFirstName);\r\n }", "public void setFirstName(String firstName) {\r\n this.firstName = firstName == null ? null : firstName.trim();\r\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName == null ? null : firstName.trim();\n }", "public void setFirstName(String fname) {\n\t\t System.out.println(\"method setFirstName(String fname) called.\");\n\t\t}", "@Override\n\tpublic void setFirstName(java.lang.String firstName) {\n\t\t_candidate.setFirstName(firstName);\n\t}", "public void setFirstname(String firstname) {\r\n\t\tthis.firstname = firstname;\r\n\t}", "public void setUserFirstName(java.lang.String userFirstName) {\r\n this.userFirstName = userFirstName;\r\n }", "void setFirstName(String firstName) throws IllegalArgumentException;", "public void setFirstName(String fname) {\n firstNameField.setText(fname);\n }", "public void setFirstName(String inFirst)\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Set firstName to inFirst.\n\t\tfirstName = inFirst;\n\n\t}", "public static void setFirstName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyFName, name);\n }", "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "public void setFirstNameFieldName(final String value) {\n setProperty(FIRST_NAME_FIELD_NAME_KEY, value);\n }", "public void setUserFirstName(String firstName) {\n profile.setFirstName(currentUser, firstName);\n }", "public Builder setFirstName(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tfirstName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public String getFirstName()\n {\n return this.firstName;\n }", "public void setFirst_name(String first_name) {\n this.first_name = first_name;\n }", "public String getFirstName() { return firstName; }", "@ApiModelProperty(required = true, value = \"User's first name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getFirstName() {\n return firstName;\n }", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public void setFirstName(StringFilter firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setName(String firstName, String lastName){\r\n this.firstname = firstName;\r\n this.lastname = lastName;\r\n }", "public String getFirstName(){\n\t\treturn firstName;\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName() {\n return firstName;\n }" ]
[ "0.84286875", "0.8041329", "0.8031002", "0.79811144", "0.79790187", "0.7946858", "0.794638", "0.79261005", "0.79178125", "0.7916446", "0.79033715", "0.785977", "0.7859083", "0.78412366", "0.78412366", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.7825283", "0.7813647", "0.7805904", "0.77944", "0.77791995", "0.77749264", "0.77749264", "0.77691823", "0.77556527", "0.77330154", "0.7724468", "0.769018", "0.769018", "0.76607907", "0.7659546", "0.7641023", "0.7589752", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75745237", "0.75718683", "0.75266165", "0.75136995", "0.75075907", "0.74670905", "0.74649465", "0.74445367", "0.73993385", "0.73872507", "0.73872507", "0.7358088", "0.73573124", "0.73471004", "0.73302805", "0.73302805", "0.7309202", "0.7292511", "0.72826636", "0.72766864", "0.72640145", "0.7243059", "0.72081906", "0.7203703", "0.71969396", "0.71949965", "0.71898216", "0.7185743", "0.7178195", "0.7148331", "0.7134478", "0.7115217", "0.7078953", "0.7059128", "0.70577234", "0.7054373", "0.705236", "0.7013712", "0.7013712", "0.70126706", "0.70126706", "0.70126706", "0.7000586", "0.7000586", "0.7000586", "0.69947743", "0.6983492", "0.69807094", "0.69802296", "0.6966955", "0.6965446" ]
0.0
-1
Generated method Getter of the MyCustomer.lastName attribute.
public String getLastName(final SessionContext ctx) { return (String)getProperty( ctx, LASTNAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public String getLastName()\n {\n return this.lastName;\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName() { return lastName; }", "public String getLastName() {\n return this.lastName;\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName(){\n\t\treturn this.lastName;\n\t}", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName(){\n return(this.lastName);\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n return lastName;\r\n }", "@XmlElement\n public String getLastName() {\n return lastName;\n }", "public CustomerLastNameElements getCustomerLastNameAccess() {\n\t\treturn pCustomerLastName;\n\t}", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName()\r\n\t{\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\n\t\treturn this.lastName;\n\t}", "public String getLastName(){\n\t\treturn lastName;\n\t}", "public String getLastName()\r\n\t{\r\n\t\treturn lastName.getModelObjectAsString();\r\n\t}", "public java.lang.CharSequence getLastName() {\n return lastName;\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 String getContactLastName() {\n return contactLastName;\n }", "public String getLastName() {\r\n\t\treturn lastName;\t\t\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public synchronized String getLastName()\r\n {\r\n return lastName;\r\n }", "public java.lang.CharSequence getLastName() {\n return lastName;\n }", "public String getLastName() {\n\t\treturn lastName;\r\n\t}", "public String getContactLastName() {\n\n \n return contactLastName;\n\n }", "public String getLastName()\n\t{\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\tthis.setLastName(this.lastName);\n\t\treturn this.lastName;\n\t}", "@ApiModelProperty(required = true, value = \"User's last name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getLastName() {\n return lastName;\n }", "public java.lang.String getLastName() {\r\n return lastName;\r\n }", "public final String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLast_name() {\r\n return last_name;\r\n }", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLast_name() {\n return last_name;\n }", "public java.lang.String getUserLastName() {\r\n return userLastName;\r\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "public java.lang.String getLastName() {\n return lastName;\n }", "public final String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n return lastNameField.getText();\n }", "public String getLastNameFieldName() {\n return getStringProperty(LAST_NAME_FIELD_NAME_KEY);\n }", "public String getLastname() {\n return (String) get(\"lastname\");\n }", "@Column(length = 50, nullable = false)\n public String getLastName() {\n return lastName;\n }", "public String getLastName(){\r\n return lastname;\r\n }", "public String returnLastName() {\n\t\treturn this.registration_lastname.getAttribute(\"value\");\r\n\t}", "public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }", "public java.lang.String getLastName() {\n\t\t\t\tjava.lang.Object ref = lastName_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tlastName_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "public java.lang.String getLast_name() {\n return last_name;\n }", "public java.lang.String getLast_name() {\n return last_name;\n }", "public java.lang.CharSequence getLastName() {\n return last_name;\n }", "@Column(length = 100, nullable = false)\n\tpublic String getLastName() {\n\t\treturn lastName;\n\t}", "public java.lang.String getLastName() {\n\t\t\tjava.lang.Object ref = lastName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tlastName_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getLastname() {\n return lastname;\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.CharSequence getLastName() {\n return last_name;\n }", "public String getAuthorLastName() {\r\n return author.getLastName();\r\n }", "@JsonProperty( \"lastname\" )\n\tpublic String getLastname()\n\t{\n\t\treturn m_lastname;\n\t}", "public java.lang.String getLastName();", "public String getLastName() {\n return userItem.getLastName();\n }", "public String getLastName();", "public String getLastname() {\r\n\t\treturn lastname;\r\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\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 lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.803231", "0.80141634", "0.7961379", "0.79045314", "0.78814113", "0.78251326", "0.7821773", "0.7820196", "0.7817071", "0.7817071", "0.7817071", "0.78104156", "0.7804572", "0.7804572", "0.7803594", "0.77665", "0.77533567", "0.77465916", "0.77462775", "0.77393687", "0.77074736", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7689645", "0.7677123", "0.76644677", "0.7658443", "0.76537764", "0.765346", "0.7646962", "0.75988835", "0.7595964", "0.7591017", "0.7591017", "0.7573645", "0.75594765", "0.755898", "0.755836", "0.75388795", "0.75333565", "0.75324285", "0.7527687", "0.7514053", "0.7511332", "0.7493475", "0.7493475", "0.7493475", "0.7493475", "0.7493475", "0.7493475", "0.7493475", "0.7493475", "0.7485531", "0.74746937", "0.7472089", "0.7472089", "0.7457944", "0.74418765", "0.7441822", "0.74343735", "0.74202776", "0.7416404", "0.7409932", "0.7407744", "0.7387221", "0.73696214", "0.7353584", "0.73340875", "0.73340875", "0.73199004", "0.73161256", "0.7314788", "0.72638106", "0.726239", "0.72384304", "0.72384304", "0.7237943", "0.7177662", "0.7172454", "0.71574426", "0.7147872", "0.7131784", "0.7120182", "0.7113841" ]
0.0
-1
Generated method Getter of the MyCustomer.lastName attribute.
public String getLastName() { return getLastName( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public String getLastName()\n {\n return this.lastName;\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName() { return lastName; }", "public String getLastName() {\n return this.lastName;\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName(){\n\t\treturn this.lastName;\n\t}", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName(){\n return(this.lastName);\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n return lastName;\r\n }", "@XmlElement\n public String getLastName() {\n return lastName;\n }", "public CustomerLastNameElements getCustomerLastNameAccess() {\n\t\treturn pCustomerLastName;\n\t}", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName()\r\n\t{\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\n\t\treturn this.lastName;\n\t}", "public String getLastName(){\n\t\treturn lastName;\n\t}", "public String getLastName()\r\n\t{\r\n\t\treturn lastName.getModelObjectAsString();\r\n\t}", "public java.lang.CharSequence getLastName() {\n return lastName;\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 String getContactLastName() {\n return contactLastName;\n }", "public String getLastName() {\r\n\t\treturn lastName;\t\t\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public synchronized String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getContactLastName() {\n\n \n return contactLastName;\n\n }", "public java.lang.CharSequence getLastName() {\n return lastName;\n }", "public String getLastName() {\n\t\treturn lastName;\r\n\t}", "public String getLastName()\n\t{\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\tthis.setLastName(this.lastName);\n\t\treturn this.lastName;\n\t}", "@ApiModelProperty(required = true, value = \"User's last name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getLastName() {\n return lastName;\n }", "public java.lang.String getLastName() {\r\n return lastName;\r\n }", "public final String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLast_name() {\r\n return last_name;\r\n }", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLast_name() {\n return last_name;\n }", "public java.lang.String getUserLastName() {\r\n return userLastName;\r\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "public final String getLastName() {\n\t\treturn lastName;\n\t}", "public java.lang.String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastNameField.getText();\n }", "public String getLastNameFieldName() {\n return getStringProperty(LAST_NAME_FIELD_NAME_KEY);\n }", "public String getLastname() {\n return (String) get(\"lastname\");\n }", "@Column(length = 50, nullable = false)\n public String getLastName() {\n return lastName;\n }", "public String getLastName(){\r\n return lastname;\r\n }", "public String returnLastName() {\n\t\treturn this.registration_lastname.getAttribute(\"value\");\r\n\t}", "public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }", "public java.lang.String getLastName() {\n\t\t\t\tjava.lang.Object ref = lastName_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tlastName_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "public java.lang.String getLast_name() {\n return last_name;\n }", "public java.lang.String getLast_name() {\n return last_name;\n }", "public java.lang.CharSequence getLastName() {\n return last_name;\n }", "@Column(length = 100, nullable = false)\n\tpublic String getLastName() {\n\t\treturn lastName;\n\t}", "public java.lang.String getLastName() {\n\t\t\tjava.lang.Object ref = lastName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tlastName_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getLastname() {\n return lastname;\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.CharSequence getLastName() {\n return last_name;\n }", "public String getAuthorLastName() {\r\n return author.getLastName();\r\n }", "@JsonProperty( \"lastname\" )\n\tpublic String getLastname()\n\t{\n\t\treturn m_lastname;\n\t}", "public java.lang.String getLastName();", "public String getLastName() {\n return userItem.getLastName();\n }", "public String getLastName();", "public String getLastname() {\r\n\t\treturn lastname;\r\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\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 lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.8032125", "0.801402", "0.79607177", "0.79035765", "0.7880476", "0.7824299", "0.7820606", "0.7819335", "0.7815888", "0.7815888", "0.7815888", "0.78094", "0.78034604", "0.78034604", "0.7802934", "0.77656096", "0.7752301", "0.77453417", "0.7745052", "0.7738919", "0.77078205", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.7688455", "0.76756734", "0.7663434", "0.7657224", "0.7652566", "0.76518726", "0.7646389", "0.75983214", "0.7594623", "0.7589615", "0.7589615", "0.7573028", "0.75586784", "0.75578296", "0.7557596", "0.75374055", "0.7532168", "0.7531447", "0.7526212", "0.7512614", "0.7510083", "0.74920833", "0.74920833", "0.74920833", "0.74920833", "0.74920833", "0.74920833", "0.74920833", "0.74920833", "0.74842834", "0.74730176", "0.74705803", "0.74705803", "0.7456455", "0.7440396", "0.7440332", "0.74329984", "0.74186885", "0.741498", "0.7408405", "0.74068695", "0.73861617", "0.73687947", "0.7352116", "0.73325986", "0.73325986", "0.7318322", "0.7314389", "0.7313303", "0.72621626", "0.7260607", "0.72367275", "0.72367275", "0.72363615", "0.7176828", "0.71711373", "0.7155225", "0.7146732", "0.712975", "0.7118196", "0.71125877" ]
0.0
-1
Generated method Setter of the MyCustomer.lastName attribute.
public void setLastName(final SessionContext ctx, final String value) { setProperty(ctx, LASTNAME,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setLastName(java.lang.String lastName) {\n _entityCustomer.setLastName(lastName);\n }", "public void setLastName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer last name can't be null.\" );\r\n else \r\n\t this.lastName = name; \r\n }", "public void setLastName(java.lang.CharSequence value) {\n this.lastName = value;\n }", "public void setLastName(String lastName) {\n if(lastName.length()>0)\n this.lastName = lastName;\n else this.lastName =\"undefined\";\n\n }", "public void setLastName(String lastName);", "public void setLastName( String last )\r\n {\r\n lastName = last;\r\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n if (lastName.length() >= 3 && lastName.length() <= 20)\n this.lastName = lastName;\n }", "public void setLastName(String newLastName) {\n this.lastName = newLastName;\n }", "public void setLastName(String newLastName) {\n _lastName = newLastName;\n }", "public void setLastName(String lastName){\r\n\t\tthis.lastName = lastName;\r\n\t}", "protected void setLastName(String last)\n {\n lastName = last;\n }", "public void setLastName(final String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\r\n this.lastName = doTrim(lastName);\r\n }", "public void setLastName(java.lang.String newLastName);", "public void setLastName(String s) {\r\n\t\tlastName = s;\t\t\r\n\t}", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public final void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String newLastName)\r\n {\r\n lastName = newLastName;\r\n }", "public void setLastName(java.lang.String lastName) {\r\n this.lastName = lastName;\r\n }", "public void setLastName(String lastName){\n //this keyword refers to the instance\n //is the local variable/argument\n //this is called shadowing\n\n lastName = this.lastName;\n\n }", "public final void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "void lastName( String key, String value ){\n developer.lastName = value;\n }", "public void setLastName(java.lang.String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(java.lang.CharSequence value) {\n this.last_name = value;\n }", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName) {\n String old = this.lastName;\n this.lastName = lastName;\n firePropertyChange(LAST_NAME_PROPERTY, old, lastName);\n }", "public void setLastName(String lastName)\n\t{\n\t\tthis.lastName = lastName;\n\t}", "public com.politrons.avro.AvroPerson.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.last_name = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.lastName = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setLastName() {\n\t}", "public void setLastName(String lastName) {\n\t\tif (lastName == null)\n\t\t\tlastName = \"\";\n\t\tthis.lastName = lastName;\n\t}", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = StringUtils.trimString( lastName );\n\t}", "public void setLastName(String value) {\n setAttributeInternal(LASTNAME, value);\n }", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public static void setLastName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyLName,name);\n }", "public Builder setLastName(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tlastName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public void setLastNameFieldName(final String value) {\n setProperty(LAST_NAME_FIELD_NAME_KEY, value);\n }", "public void setlastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "public void setLastName(String lName) {\n this.lastName = lName;\n }", "public void setLast_name(String last_name);", "public void setLastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "@Override\n\tpublic void LastName(String lastName) {\n\t\t\n\t}", "Employee setLastname(String lastname);", "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "void setLastName(String lastName) throws IllegalArgumentException;", "public void setLastname(String lastname);", "public void setLastName(String inLast)\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Set the value of lastName.\n\t\tlastName = inLast;\n\n\t}", "public void setLastName(String lastName) {\n this.lastName = Objects.requireNonNull(lastName,\n \"Last name can't be null.\");\n }", "@Override\n\tpublic void setLastName(java.lang.String lastName) {\n\t\t_candidate.setLastName(lastName);\n\t}", "public void setLastName(StringFilter lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void changeLastName(String newName) throws IOException {\n\t\t// update the customer's last name instance variable\n\t\tthis.lastName = newName;\n\t\t// write the changes to the customer's file\n\t\tthis.write();\n\t\t// update the custome's user name\n\t\tthis.updateUserName();\n\t}", "@ApiModelProperty(required = true, value = \"User's last name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getLastName() {\n return lastName;\n }", "public void setLastName(final String value)\n\t{\n\t\tsetLastName( getSession().getSessionContext(), value );\n\t}", "public void setLastName(final String value)\n\t{\n\t\tsetLastName( getSession().getSessionContext(), value );\n\t}", "public String getLastName() { return lastName; }", "@Override\n public void setSecondLastName(java.lang.String secondLastName) {\n _entityCustomer.setSecondLastName(secondLastName);\n }", "@XmlElement\n public String getLastName() {\n return lastName;\n }", "public String getLastName()\n {\n return this.lastName;\n }", "public void setStudentLastName(String studentLastName){\r\n this.studentLastName.set(studentLastName);\r\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName(){\n return(this.lastName);\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "public void setLastName(String lname) {\n lastNameField.setText(lname);\n }", "public void setName(String firstName, String lastName){\r\n this.firstname = firstName;\r\n this.lastname = lastName;\r\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public void setLastName(String lastName) throws Exception {\n if (!lastName.matches(\"[a-zA-Z]{1,45}\")) {\n throw new Exception(\"Last name can only contain letters of length 1-45.\");\n }\n this.lastName = lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public void getLastName() {\n\n\t}", "public String getLastName() {\r\n return lastName;\r\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public String getLastName() {\n return _lastName;\n }", "public void setUserLastName(java.lang.String userLastName) {\r\n this.userLastName = userLastName;\r\n }", "public String getLastName(){\n\t\treturn this.lastName;\n\t}" ]
[ "0.82246983", "0.8084397", "0.80172896", "0.7834927", "0.7805669", "0.7797227", "0.7786226", "0.778122", "0.77714044", "0.76917064", "0.7685369", "0.7677049", "0.76770186", "0.7675557", "0.7673601", "0.76722056", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76501215", "0.76435953", "0.76386255", "0.76255494", "0.75604826", "0.75585824", "0.7556521", "0.75470054", "0.75425315", "0.75425315", "0.7538489", "0.7486848", "0.748229", "0.7475187", "0.7467322", "0.7455242", "0.74222803", "0.7414031", "0.7414031", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7387833", "0.7363771", "0.7313921", "0.7313921", "0.73105395", "0.7291813", "0.72894275", "0.72840804", "0.7281004", "0.72773707", "0.72506887", "0.72389156", "0.7223995", "0.7189263", "0.7181531", "0.7149131", "0.71062684", "0.7090168", "0.7081385", "0.7056403", "0.70128304", "0.7012254", "0.70071393", "0.70071393", "0.69973725", "0.6965301", "0.696352", "0.6954659", "0.6897141", "0.6891848", "0.6883194", "0.68533367", "0.68533367", "0.68533367", "0.685214", "0.68446344", "0.68426657", "0.68405026", "0.682997", "0.6821418", "0.6810865", "0.6810865", "0.6793665", "0.678281", "0.67803586", "0.67801726", "0.67681867", "0.67581356" ]
0.0
-1
Generated method Setter of the MyCustomer.lastName attribute.
public void setLastName(final String value) { setLastName( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setLastName(java.lang.String lastName) {\n _entityCustomer.setLastName(lastName);\n }", "public void setLastName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer last name can't be null.\" );\r\n else \r\n\t this.lastName = name; \r\n }", "public void setLastName(java.lang.CharSequence value) {\n this.lastName = value;\n }", "public void setLastName(String lastName) {\n if(lastName.length()>0)\n this.lastName = lastName;\n else this.lastName =\"undefined\";\n\n }", "public void setLastName(String lastName);", "public void setLastName( String last )\r\n {\r\n lastName = last;\r\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n if (lastName.length() >= 3 && lastName.length() <= 20)\n this.lastName = lastName;\n }", "public void setLastName(String newLastName) {\n this.lastName = newLastName;\n }", "public void setLastName(String newLastName) {\n _lastName = newLastName;\n }", "public void setLastName(String lastName){\r\n\t\tthis.lastName = lastName;\r\n\t}", "protected void setLastName(String last)\n {\n lastName = last;\n }", "public void setLastName(final String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\r\n this.lastName = doTrim(lastName);\r\n }", "public void setLastName(java.lang.String newLastName);", "public void setLastName(String s) {\r\n\t\tlastName = s;\t\t\r\n\t}", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public final void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String newLastName)\r\n {\r\n lastName = newLastName;\r\n }", "public void setLastName(java.lang.String lastName) {\r\n this.lastName = lastName;\r\n }", "public void setLastName(String lastName){\n //this keyword refers to the instance\n //is the local variable/argument\n //this is called shadowing\n\n lastName = this.lastName;\n\n }", "public final void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "void lastName( String key, String value ){\n developer.lastName = value;\n }", "public void setLastName(java.lang.String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(java.lang.CharSequence value) {\n this.last_name = value;\n }", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName) {\n String old = this.lastName;\n this.lastName = lastName;\n firePropertyChange(LAST_NAME_PROPERTY, old, lastName);\n }", "public void setLastName(String lastName)\n\t{\n\t\tthis.lastName = lastName;\n\t}", "public com.politrons.avro.AvroPerson.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.last_name = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.lastName = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setLastName() {\n\t}", "public void setLastName(String lastName) {\n\t\tif (lastName == null)\n\t\t\tlastName = \"\";\n\t\tthis.lastName = lastName;\n\t}", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = StringUtils.trimString( lastName );\n\t}", "public void setLastName(String value) {\n setAttributeInternal(LASTNAME, value);\n }", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public static void setLastName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyLName,name);\n }", "public Builder setLastName(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tlastName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public void setLastNameFieldName(final String value) {\n setProperty(LAST_NAME_FIELD_NAME_KEY, value);\n }", "public void setlastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "public void setLastName(String lName) {\n this.lastName = lName;\n }", "public void setLast_name(String last_name);", "public void setLastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "@Override\n\tpublic void LastName(String lastName) {\n\t\t\n\t}", "Employee setLastname(String lastname);", "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "void setLastName(String lastName) throws IllegalArgumentException;", "public void setLastname(String lastname);", "public void setLastName(String inLast)\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Set the value of lastName.\n\t\tlastName = inLast;\n\n\t}", "public void setLastName(String lastName) {\n this.lastName = Objects.requireNonNull(lastName,\n \"Last name can't be null.\");\n }", "@Override\n\tpublic void setLastName(java.lang.String lastName) {\n\t\t_candidate.setLastName(lastName);\n\t}", "public void setLastName(StringFilter lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void changeLastName(String newName) throws IOException {\n\t\t// update the customer's last name instance variable\n\t\tthis.lastName = newName;\n\t\t// write the changes to the customer's file\n\t\tthis.write();\n\t\t// update the custome's user name\n\t\tthis.updateUserName();\n\t}", "@ApiModelProperty(required = true, value = \"User's last name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getLastName() {\n return lastName;\n }", "public String getLastName() { return lastName; }", "@Override\n public void setSecondLastName(java.lang.String secondLastName) {\n _entityCustomer.setSecondLastName(secondLastName);\n }", "@XmlElement\n public String getLastName() {\n return lastName;\n }", "public String getLastName()\n {\n return this.lastName;\n }", "public void setStudentLastName(String studentLastName){\r\n this.studentLastName.set(studentLastName);\r\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName(){\n return(this.lastName);\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "public void setLastName(String lname) {\n lastNameField.setText(lname);\n }", "public void setName(String firstName, String lastName){\r\n this.firstname = firstName;\r\n this.lastname = lastName;\r\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public void setLastName(String lastName) throws Exception {\n if (!lastName.matches(\"[a-zA-Z]{1,45}\")) {\n throw new Exception(\"Last name can only contain letters of length 1-45.\");\n }\n this.lastName = lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public void getLastName() {\n\n\t}", "public String getLastName() {\r\n return lastName;\r\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public String getLastName() {\n return _lastName;\n }", "public void setUserLastName(java.lang.String userLastName) {\r\n this.userLastName = userLastName;\r\n }", "public String getLastName(){\n\t\treturn this.lastName;\n\t}" ]
[ "0.82246983", "0.8084397", "0.80172896", "0.7834927", "0.7805669", "0.7797227", "0.7786226", "0.778122", "0.77714044", "0.76917064", "0.7685369", "0.7677049", "0.76770186", "0.7675557", "0.7673601", "0.76722056", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.76501215", "0.76435953", "0.76386255", "0.76255494", "0.75604826", "0.75585824", "0.7556521", "0.75470054", "0.75425315", "0.75425315", "0.7538489", "0.7486848", "0.748229", "0.7475187", "0.7467322", "0.7455242", "0.74222803", "0.7414031", "0.7414031", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7411987", "0.7387833", "0.7363771", "0.7313921", "0.7313921", "0.73105395", "0.7291813", "0.72894275", "0.72840804", "0.7281004", "0.72773707", "0.72506887", "0.72389156", "0.7223995", "0.7189263", "0.7181531", "0.7149131", "0.71062684", "0.7090168", "0.7081385", "0.7056403", "0.70128304", "0.7012254", "0.69973725", "0.6965301", "0.696352", "0.6954659", "0.6897141", "0.6891848", "0.6883194", "0.68533367", "0.68533367", "0.68533367", "0.685214", "0.68446344", "0.68426657", "0.68405026", "0.682997", "0.6821418", "0.6810865", "0.6810865", "0.6793665", "0.678281", "0.67803586", "0.67801726", "0.67681867", "0.67581356" ]
0.70071393
76
Generated method Getter of the MyCustomer.phone attribute.
public String getPhone(final SessionContext ctx) { return (String)getProperty( ctx, PHONE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public String getCustomerPhone() {\n return customerPhone;\n }", "public final String getPhone() {\n return phone;\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public String getPhone() {\n return _phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "public String getPhone() {\n return mPhone;\n }", "public String getPhone() {\n return mPhone;\n }", "public String getPhone() {\n return phone;\n }", "public java.lang.String getPhone() {\n return phone;\n }", "public String getPhone() {\n\t\treturn phone;\n\t}", "public String getPhone(){\n\t\treturn phone;\n\t}", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "public java.lang.String getPhone () {\n\t\treturn phone;\n\t}", "public long getPhone() {\n return phone;\n }", "public Phone getPhone() {\n\t\treturn phone;\n\t}", "public String getPhone(){\n return phone;\n }", "public String getPhone(){\n return phone;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "public String getaPhone() {\n return aPhone;\n }", "public String getMobilePhone() {\n return mobilePhone;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "public String getContactPhone() {\n return contactPhone;\n }", "public String getContactPhone() {\n return contactPhone;\n }", "java.lang.String getPhone();", "public String getPhone()\r\n/* 41: */ {\r\n/* 42:54 */ return this.phone;\r\n/* 43: */ }", "public String getTelephone() {\n return (String) get(\"telephone\");\n }", "public String getUserPhone() {\r\n return userPhone;\r\n }", "public String getPhoneNum()\r\n {\r\n return phoneNum;\r\n }", "@AutoEscape\n\tpublic String getPhone();", "public java.lang.String getMobilePhone() {\r\n return mobilePhone;\r\n }", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "@Override\n public java.lang.String getCellPhone() {\n return _entityCustomer.getCellPhone();\n }", "@ApiModelProperty(value = \"Phone number of customer\")\n public String getCustomerPhoneNumber() {\n return customerPhoneNumber;\n }", "public String getPhoneNum()\r\n {\r\n\treturn phoneNum;\r\n }", "public String getUserPhone()\n {\n return userPhone;\n }", "public String getPhone() {\r\n // Bouml preserved body begin 00040C82\r\n\t return phoneNumber;\r\n // Bouml preserved body end 00040C82\r\n }", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\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 phone_ = s;\n }\n return s;\n }\n }", "public String getPhone_number() {\n return phone_number;\n }", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\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 phone_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPatientPhone() {\n return patientPhone;\n }", "public String getPhoneNumber() {\r\n return phoneNumber;\r\n }", "public String getPhoneNumber(){\r\n\t\treturn phoneNumber;\r\n\t}", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getUserphone() {\n return userphone;\n }", "@ApiModelProperty(value = \"手机\")\n\tpublic String getPhone() {\n\t\treturn phone;\n\t}", "public String getPhoneNumber() {\n return this.phoneNumber;\n }", "public java.lang.String getPhone_number() {\n return phone_number;\n }", "public com.google.protobuf.ByteString\n getPhoneBytes() {\n java.lang.Object ref = phone_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n phone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getPhoneBytes() {\n java.lang.Object ref = phone_;\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 phone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getTelephoneNumber() {\n return telephoneNumber;\n }", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "@XmlElement\n public String getMobilePhone() {\n return mobilePhone;\n }", "public String getTelephoneNumber(){\n return telephoneNumber;\n }", "public Long getMobile_phone();", "public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}", "public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }", "public String getphoneNum() {\n\t\treturn _phoneNum;\n\t}", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "public String getPhoneNumber(){\n return phone_number;\n }", "public int getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}", "public String getUserTelephone() {\n return userTelephone;\n }" ]
[ "0.86266136", "0.86070484", "0.82619333", "0.82418036", "0.82418036", "0.82418036", "0.82418036", "0.82418036", "0.82418036", "0.82261366", "0.81989694", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8191013", "0.8182772", "0.8182772", "0.8151401", "0.8141526", "0.8120583", "0.8104132", "0.8074423", "0.8018276", "0.7933781", "0.79289573", "0.78987813", "0.78987813", "0.78985137", "0.7889644", "0.788028", "0.7876133", "0.78615487", "0.78615487", "0.7835449", "0.7835449", "0.7813506", "0.7721904", "0.7713921", "0.77059823", "0.769151", "0.76341134", "0.7633377", "0.76296276", "0.7626136", "0.7626136", "0.7626136", "0.7609827", "0.7604703", "0.7580817", "0.7573729", "0.7572258", "0.75617754", "0.75366044", "0.7485753", "0.7475165", "0.7466173", "0.74415994", "0.7440126", "0.7440126", "0.7440126", "0.7440126", "0.7440126", "0.7440126", "0.7440126", "0.7440126", "0.7440126", "0.7438893", "0.74212384", "0.74212384", "0.74212384", "0.7420442", "0.7405763", "0.73905075", "0.7379478", "0.7370366", "0.7356921", "0.73517793", "0.73510015", "0.7340415", "0.73249465", "0.7324758", "0.72926444", "0.72802526", "0.72704476", "0.7270173", "0.72660094", "0.7265847", "0.72655153" ]
0.0
-1
Generated method Getter of the MyCustomer.phone attribute.
public String getPhone() { return getPhone( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public String getCustomerPhone() {\n return customerPhone;\n }", "public final String getPhone() {\n return phone;\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public String getPhone() {\n return _phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "public String getPhone() {\n return mPhone;\n }", "public String getPhone() {\n return mPhone;\n }", "public String getPhone() {\n return phone;\n }", "public java.lang.String getPhone() {\n return phone;\n }", "public String getPhone() {\n\t\treturn phone;\n\t}", "public String getPhone(){\n\t\treturn phone;\n\t}", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "public java.lang.String getPhone () {\n\t\treturn phone;\n\t}", "public long getPhone() {\n return phone;\n }", "public Phone getPhone() {\n\t\treturn phone;\n\t}", "public String getPhone(){\n return phone;\n }", "public String getPhone(){\n return phone;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "public String getaPhone() {\n return aPhone;\n }", "public String getMobilePhone() {\n return mobilePhone;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "public String getContactPhone() {\n return contactPhone;\n }", "public String getContactPhone() {\n return contactPhone;\n }", "java.lang.String getPhone();", "public String getPhone()\r\n/* 41: */ {\r\n/* 42:54 */ return this.phone;\r\n/* 43: */ }", "public String getTelephone() {\n return (String) get(\"telephone\");\n }", "public String getUserPhone() {\r\n return userPhone;\r\n }", "public String getPhoneNum()\r\n {\r\n return phoneNum;\r\n }", "@AutoEscape\n\tpublic String getPhone();", "public java.lang.String getMobilePhone() {\r\n return mobilePhone;\r\n }", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "@Override\n public java.lang.String getCellPhone() {\n return _entityCustomer.getCellPhone();\n }", "@ApiModelProperty(value = \"Phone number of customer\")\n public String getCustomerPhoneNumber() {\n return customerPhoneNumber;\n }", "public String getPhoneNum()\r\n {\r\n\treturn phoneNum;\r\n }", "public String getUserPhone()\n {\n return userPhone;\n }", "public String getPhone() {\r\n // Bouml preserved body begin 00040C82\r\n\t return phoneNumber;\r\n // Bouml preserved body end 00040C82\r\n }", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\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 phone_ = s;\n }\n return s;\n }\n }", "public String getPhone_number() {\n return phone_number;\n }", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\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 phone_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPatientPhone() {\n return patientPhone;\n }", "public String getPhoneNumber() {\r\n return phoneNumber;\r\n }", "public String getPhoneNumber(){\r\n\t\treturn phoneNumber;\r\n\t}", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getUserphone() {\n return userphone;\n }", "@ApiModelProperty(value = \"手机\")\n\tpublic String getPhone() {\n\t\treturn phone;\n\t}", "public String getPhoneNumber() {\n return this.phoneNumber;\n }", "public java.lang.String getPhone_number() {\n return phone_number;\n }", "public com.google.protobuf.ByteString\n getPhoneBytes() {\n java.lang.Object ref = phone_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n phone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getPhoneBytes() {\n java.lang.Object ref = phone_;\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 phone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getTelephoneNumber() {\n return telephoneNumber;\n }", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "@XmlElement\n public String getMobilePhone() {\n return mobilePhone;\n }", "public Long getMobile_phone();", "public String getTelephoneNumber(){\n return telephoneNumber;\n }", "public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}", "public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }", "public String getphoneNum() {\n\t\treturn _phoneNum;\n\t}", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "public int getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}", "public String getPhoneNumber(){\n return phone_number;\n }", "public String getUserTelephone() {\n return userTelephone;\n }" ]
[ "0.8626331", "0.86071444", "0.8264226", "0.82440007", "0.82440007", "0.82440007", "0.82440007", "0.82440007", "0.82440007", "0.82278675", "0.8201415", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81934905", "0.8184626", "0.8184626", "0.81538755", "0.814365", "0.8123054", "0.8106077", "0.80735326", "0.80199224", "0.7936049", "0.79319423", "0.79001135", "0.79001135", "0.78989553", "0.7890744", "0.78816307", "0.7876652", "0.78621644", "0.78621644", "0.7836124", "0.7836124", "0.78132993", "0.77220416", "0.7713677", "0.7707079", "0.7692586", "0.76351744", "0.7634844", "0.76303184", "0.76278067", "0.76278067", "0.76278067", "0.76095", "0.7604727", "0.7581935", "0.7574151", "0.75730073", "0.7563543", "0.7538008", "0.7487625", "0.7477102", "0.74680674", "0.7443232", "0.7442052", "0.7442052", "0.7442052", "0.7442052", "0.7442052", "0.7442052", "0.7442052", "0.7442052", "0.7442052", "0.74406195", "0.7421916", "0.7421916", "0.7421916", "0.74215597", "0.74077", "0.7392619", "0.7380948", "0.7373589", "0.73600894", "0.7352438", "0.7351248", "0.73415565", "0.73248696", "0.7324841", "0.7294704", "0.72811645", "0.7272536", "0.72709733", "0.72673947", "0.7266696", "0.72652847" ]
0.0
-1
Generated method Setter of the MyCustomer.phone attribute.
public void setPhone(final SessionContext ctx, final String value) { setProperty(ctx, PHONE,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public void setPhone(String phone);", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }", "public void setPhone(String phone) {\n this.mPhone = phone;\n }", "public void setPhone(String phone)\n {\n this.phone = phone;\n }", "public void setPhone(String mPhone) {\n this.mPhone = mPhone;\n }", "public void setPhone(String phone) {\r\n this.phone = phone;\r\n }", "public void set_phone(String Phone)\n {\n phone =Phone;\n }", "public void setPhone( String phone ) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\r\n // Bouml preserved body begin 00041002\r\n\t this.phoneNumber = phone;\r\n // Bouml preserved body end 00041002\r\n }", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void setPhone(String phone){\n\t\tthis.phone = phone;\n\t}", "public void setPhone(final String phone) {\n this.phone = phone;\n }", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void setPhone(java.lang.String phone) {\n this.phone = phone;\n }", "void setPhone(int phone);", "public void setPhone(long phone) {\n this.phone = phone;\n }", "public void setPhone (java.lang.String phone) {\n\t\tthis.phone = phone;\n\t}", "public void setPhone(String phone) {\n\t\tthis.phone = StringUtils.trimString( phone );\n\t}", "public void setPhone(String newPhone) {\r\n\t\tthis.phone = newPhone;\r\n\t}", "public String getCustomerPhone() {\n return customerPhone;\n }", "@Generated(hash = 1187165439)\n public void setPhone(Phone phone) {\n synchronized (this) {\n this.phone = phone;\n phoneId = phone == null ? null : phone.getId();\n phone__resolvedKey = phoneId;\n }\n }", "public void setPhone(String phone) {\n\t\tthis.phone = phone == null ? null : phone.trim();\n\t}", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setMobilePhone(String mobilePhone) {\n this.mobilePhone = mobilePhone;\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "@Override\r\n\tpublic void setPhone(String phone) {\n\t\tif (phone == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (phone.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.phone = phone;\r\n\t}", "void setPhone(String phone) throws IllegalArgumentException;", "public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}", "public void setUserPhone( String userPhone )\n {\n this.userPhone = userPhone;\n }", "@Override\n public void setCellPhone(java.lang.String cellPhone) {\n _entityCustomer.setCellPhone(cellPhone);\n }", "public void setContactPhone(String contactPhone) {\n this.contactPhone = contactPhone;\n }", "public final void setPhone(final String phoneNew) {\n this.phone = phoneNew;\n }", "public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }", "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n phone_ = value;\n onChanged();\n return this;\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public String getPhone() {\n return _phone;\n }", "public com.politrons.avro.AvroPerson.Builder setPhoneNumber(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.phone_number = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public GoldenContactBuilder phone(String value) {\n phone = value;\n return this;\n }", "public void setPhoneNum(String phoneNum) {\n this.phoneNum = phoneNum;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone(){\n\t\treturn phone;\n\t}", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public String getPhone() {\n\t\treturn phone;\n\t}", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public void setMobilePhone(java.lang.String mobilePhone) {\r\n this.mobilePhone = mobilePhone;\r\n }", "public void setMobile_phone(Long mobile_phone);", "public abstract void setPhone1(String sValue);", "public abstract void setPhone2(String sValue);", "public void setphoneNum(String phoneNum) {\n\t\t_phoneNum = phoneNum;\n\t}", "public void setPhoneNumber(java.lang.CharSequence value) {\n this.phone_number = value;\n }", "public void setPhoneNo(String value) {\n setAttributeInternal(PHONENO, value);\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public final String getPhone() {\n return phone;\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }" ]
[ "0.8314917", "0.8153204", "0.80994797", "0.80439866", "0.7993954", "0.7949552", "0.7939556", "0.79392177", "0.78836554", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.7850312", "0.78299904", "0.7800849", "0.77806425", "0.7764007", "0.7739968", "0.7690581", "0.7598162", "0.7551752", "0.7546304", "0.75126517", "0.7496256", "0.7482813", "0.7441937", "0.7438835", "0.7423666", "0.7423666", "0.7423666", "0.7423666", "0.7423666", "0.7423666", "0.7423666", "0.7399397", "0.73985386", "0.73985386", "0.73985386", "0.73985386", "0.73832417", "0.73678726", "0.73169434", "0.7311738", "0.729871", "0.72739774", "0.7272442", "0.7245848", "0.72359467", "0.72109354", "0.72109354", "0.72109354", "0.72109354", "0.72109354", "0.72109354", "0.720732", "0.71990645", "0.71953434", "0.71862197", "0.71826893", "0.71675736", "0.7148871", "0.7137839", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.71304333", "0.7113845", "0.71076626", "0.71076626", "0.7102501", "0.7091724", "0.7080199", "0.7070232", "0.706394", "0.7054804", "0.7047262", "0.7037692", "0.7033748", "0.7030538", "0.7030538" ]
0.0
-1
Generated method Setter of the MyCustomer.phone attribute.
public void setPhone(final String value) { setPhone( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public void setPhone(String phone);", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }", "public void setPhone(String phone) {\n this.mPhone = phone;\n }", "public void setPhone(String phone)\n {\n this.phone = phone;\n }", "public void setPhone(String mPhone) {\n this.mPhone = mPhone;\n }", "public void setPhone(String phone) {\r\n this.phone = phone;\r\n }", "public void set_phone(String Phone)\n {\n phone =Phone;\n }", "public void setPhone( String phone ) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\r\n // Bouml preserved body begin 00041002\r\n\t this.phoneNumber = phone;\r\n // Bouml preserved body end 00041002\r\n }", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void setPhone(String phone){\n\t\tthis.phone = phone;\n\t}", "public void setPhone(final String phone) {\n this.phone = phone;\n }", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void setPhone(java.lang.String phone) {\n this.phone = phone;\n }", "void setPhone(int phone);", "public void setPhone(long phone) {\n this.phone = phone;\n }", "public void setPhone (java.lang.String phone) {\n\t\tthis.phone = phone;\n\t}", "public void setPhone(String phone) {\n\t\tthis.phone = StringUtils.trimString( phone );\n\t}", "public void setPhone(String newPhone) {\r\n\t\tthis.phone = newPhone;\r\n\t}", "public String getCustomerPhone() {\n return customerPhone;\n }", "@Generated(hash = 1187165439)\n public void setPhone(Phone phone) {\n synchronized (this) {\n this.phone = phone;\n phoneId = phone == null ? null : phone.getId();\n phone__resolvedKey = phoneId;\n }\n }", "public void setPhone(String phone) {\n\t\tthis.phone = phone == null ? null : phone.trim();\n\t}", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setMobilePhone(String mobilePhone) {\n this.mobilePhone = mobilePhone;\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "@Override\r\n\tpublic void setPhone(String phone) {\n\t\tif (phone == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (phone.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.phone = phone;\r\n\t}", "void setPhone(String phone) throws IllegalArgumentException;", "public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}", "public void setUserPhone( String userPhone )\n {\n this.userPhone = userPhone;\n }", "@Override\n public void setCellPhone(java.lang.String cellPhone) {\n _entityCustomer.setCellPhone(cellPhone);\n }", "public void setContactPhone(String contactPhone) {\n this.contactPhone = contactPhone;\n }", "public final void setPhone(final String phoneNew) {\n this.phone = phoneNew;\n }", "public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }", "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n phone_ = value;\n onChanged();\n return this;\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public String getPhone() {\n return _phone;\n }", "public com.politrons.avro.AvroPerson.Builder setPhoneNumber(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.phone_number = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public GoldenContactBuilder phone(String value) {\n phone = value;\n return this;\n }", "public void setPhoneNum(String phoneNum) {\n this.phoneNum = phoneNum;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone(){\n\t\treturn phone;\n\t}", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public String getPhone() {\n\t\treturn phone;\n\t}", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public void setMobilePhone(java.lang.String mobilePhone) {\r\n this.mobilePhone = mobilePhone;\r\n }", "public void setMobile_phone(Long mobile_phone);", "public abstract void setPhone1(String sValue);", "public abstract void setPhone2(String sValue);", "public void setphoneNum(String phoneNum) {\n\t\t_phoneNum = phoneNum;\n\t}", "public void setPhoneNumber(java.lang.CharSequence value) {\n this.phone_number = value;\n }", "public void setPhoneNo(String value) {\n setAttributeInternal(PHONENO, value);\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public final String getPhone() {\n return phone;\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }" ]
[ "0.8314917", "0.8153204", "0.80994797", "0.80439866", "0.7993954", "0.7949552", "0.7939556", "0.79392177", "0.78836554", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.7850312", "0.78299904", "0.7800849", "0.77806425", "0.7764007", "0.7739968", "0.7690581", "0.7598162", "0.7551752", "0.7546304", "0.75126517", "0.7496256", "0.7482813", "0.7441937", "0.7438835", "0.7423666", "0.7423666", "0.7423666", "0.7423666", "0.7423666", "0.7423666", "0.7423666", "0.7399397", "0.73985386", "0.73985386", "0.73985386", "0.73985386", "0.73832417", "0.73678726", "0.73169434", "0.7311738", "0.729871", "0.72739774", "0.7272442", "0.7245848", "0.72359467", "0.72109354", "0.72109354", "0.72109354", "0.72109354", "0.72109354", "0.72109354", "0.720732", "0.71990645", "0.71953434", "0.71862197", "0.71826893", "0.71675736", "0.7148871", "0.7137839", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.7132107", "0.71304333", "0.7113845", "0.71076626", "0.71076626", "0.7102501", "0.7091724", "0.7080199", "0.7070232", "0.706394", "0.7054804", "0.7047262", "0.7037692", "0.7033748", "0.7030538", "0.7030538" ]
0.0
-1
get list by condition
List<Area> list();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getResult(String conditing) {\n\t\treturn null;\r\n\t}", "public List<DomainObject> getListByCondition(String condition) {\r\n Session session = getSession();\r\n List<DomainObject> lst = null;\r\n try {\r\n if (condition == null || \"null\".equals(condition)) {\r\n condition = \" \";\r\n }\r\n lst = session.createQuery(\"from \" + getPersistentClass().getName() + \" \" + condition).list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByCondition Method:\" + e, e);\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n return lst;\r\n }", "List<Room> selectRoomListWithSearchCondition(@Param(\"condition\") String condition);", "List<Item> list(ItemCriteria itemCriteria);", "io.dstore.values.StringValue getConditionList();", "public List getResult(String conditing, int begin, int max) {\n\t\treturn null;\r\n\t}", "@NotNull\r\n default List<Object> getMatchingElements(@NotNull Condition c) {\r\n return new ArrayList<>();\r\n }", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter2, Predicate<DeviceDetails> deviceFilter3);", "public List<Course> getByCondition(List<SimpleExpression> list) {\n\t\treturn null;\n\t}", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter1);", "@Override\n\tpublic List<Order> getList(String[] conditions) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<DeviceData> getList(DeviceData condition) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List getListByConditions(Integer groupId,Integer resid) {\n\t\tString sql = \"from GroupFunres a where 1=1\";\n\t\tif(groupId!=null && !groupId.equals(\"\")){\n\t\t\tsql+=\"and a.groupid='\"+groupId+\"'\";\n\t\t}\n\t\tif(resid!=null && !resid.equals(\"\")){\n\t\t\tsql+=\"and a.resid='\"+resid+\"'\";\n\t\t}\n\t\tList list = this.queryForList(sql);\n\t\tif (list != null && list.size() > 0) {\n\t\t\treturn list;\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Profit> get(Map<String, String> condition) throws Exception {\n\t\t\r\n\t\treturn null;\r\n\t}", "public abstract <T> List<T> list(List<Criteria> criterias, Class<T> aClass);", "public List getValidarSapExistencia(Map criteria);", "@Override\r\n\tpublic List<Criterion> getCriterions(ParamCondition paramCondition) {\n\t\tList<Criterion> criterions = new ArrayList<Criterion>();\r\n\t\treturn criterions;\r\n\t}", "private Collection<Object> getOrderedTestNamesByCondition(String condition,String labId)\n {\n ArrayList<Object> dtList = null;\n HashMap<Object,Object> ofMap = null;\n if(cachedConditionCdFacilityList != null)\n {\n ofMap = (HashMap<Object,Object>) cachedConditionCdFacilityList.get(condition);\n\n if (ofMap != null)\n dtList = (ArrayList<Object> ) ofMap.get(labId);\n\n }\n return dtList;\n }", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter);", "List<PortEntity> getPorts(Map<String, Object> condition);", "List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);", "public List getBeneficioDeudaList(Map criteria);", "public List getGestionStockList(Map criteria);", "List<Condition> composeFilterConditions(F filter);", "List<E> list(String field, String contains);", "public List<Privilege> get(String cond) throws Exception {\n\t\tif(! dirty && (cond==this.cond || cond!=null && cond.equalsIgnoreCase(this.cond))){\r\n\t\t\treturn this.list;\r\n\t\t}\r\n\t\tCommandGetPrivilege com=new CommandGetPrivilege(AuthModel.getInstance().getUser(),cond);\r\n\t\tClient.getInstance().write(com);\r\n\t\tObject obj=Client.getInstance().read();\r\n\t\tif(obj instanceof Command){\r\n\t\t\tdirty=true;\r\n\t\t\tlist=((CommandGetPrivilege)obj).getList();\r\n\t\t\t\r\n\t\t\treturn list;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tthis.dirty=false;\r\n\t\tthis.cond =cond;\r\n\t\treturn list;\r\n\t}", "private static List<Car> getCarsByCriteria(Iterable<Car> iter, CarCriteria criteria) {\n List<Car> returnCars = new ArrayList<>();\n\n for (Car c : iter) {\n\n //Passing the criteria based on the users input\n if (criteria.test(c)) {\n returnCars.add(c);\n }\n }\n return returnCars;\n }", "public List getValidarCuvExistencia(Map criteria);", "public List<Cuenta> buscarCuentasList(Map filtro);", "public List<EvaluetingListDO> findWithCondition(EvaluetingListDO evaluetingList, long limitStart, long pageSize) throws DataAccessException;", "boolean hasConditionList();", "public SearchCondition[] getConditions();", "@SuppressWarnings ( \"unchecked\" )\n private static List<LogEntry> getWhere ( final List<Criterion> where ) {\n return (List<LogEntry>) getWhere( LogEntry.class, where );\n }", "List<Receta> getAll(String filter);", "List<Basicinfo> selectByExample(BasicinfoCriteria example);", "public List<Element> filter(Predicate<Element> p)\n\t{\n\t\treturn recursive_filter(new ArrayList<Element>(), p, group);\n\t}", "List<Online> selectByExample(OnlineExample example);", "@Override\n public List<Object> getGroupMember(Map<String, Object> condition) {\n return null;\n }", "List<Accessprofile> listWithCritera(SearchCriteria searchCriteria);", "ArrayList<Match> getMatchList( Filter filter ) {\n return list;\n }", "List<T> findByCriteria(Criteria criteria) ;", "public ArrayList get(typeFU T) {\n ArrayList<FunctionalUnit> valueParent = new ArrayList<>(); \n ArrayList<FunctionalUnit> filtered = new ArrayList<>();\n valueParent = FU.get(T);\n for (int i = 0; i < valueParent.size(); i++) {\n if (valueParent.get(i).isActive() == true) {\n filtered.add(valueParent.get(i));\n }\n } \n return filtered;\n }", "public List<Appointment> getAppointmentByStatus(AppointmentStatus a){\n List<Appointment> appList = new ArrayList();\n try{\n appointments.stream().filter((app) -> (app.getStatus()==a)).forEachOrdered((app) -> {\n appList.add(app);\n });\n return appList;\n }\n catch(Exception e){\n return appList;\n }\n }", "List<E> list(Predicate<E> predicate);", "private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }", "public List getFeriadoZona(Map criteria);", "public List<JsonNode> findAllCriteria(JsonNode element) {\n List<JsonNode> criteria = new ArrayList<>();\n Stack<JsonNode> fringe = new Stack<>();\n fringe.push(element);\n\n while (!fringe.isEmpty()) {\n JsonNode currentElement = fringe.pop();\n if (currentElement.get(\"content\").get(\"type\").asText().equals(Type.SECTION.toString())) {\n for (JsonNode e: currentElement.get(\"children\")) {\n fringe.push(e);\n }\n } else {\n criteria.add(currentElement);\n }\n }\n\n return criteria;\n }", "List<ChronicCheck> selectByExample(ChronicCheckExample example);", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<Dummy> getIt() {\n\n \tCriterion cr = Restrictions.conjunction().add(Restrictions.gt(\"a\", 9));\n \tList<Dummy> dummies = BaseModel.getInstance().findByCriteria(Dummy.class, cr);\n \treturn dummies;\n\n }", "abstract List<String> filterByStartingWithA();", "boolean get(List<T> datas);", "public List<IndicatorCriteria> getIndicatorCriterias();", "static public ArrayList<Mascota> filtroLugar(String pLugar){\n ArrayList<Mascota> resul = new ArrayList<>(); \n for(Mascota mascota : mascotas){\n if(mascota.getUbicacion().equals(pLugar)){\n resul.add(mascota); \n }\n }\n return resul;\n }", "@Override\n\tpublic String listByCondition(Familynames c, Model m) throws Exception {\n\t\treturn null;\n\t}", "@VTID(38)\n boolean getList();", "List<JSONObject> getFilteredItems();", "List<Boolean> listarestados(Integer fcdcId);", "List<Schedule> selectByExample(ScheduleCriteria example);", "ObservableList<Booking> getFilteredBookingList();", "List<Customers> selectByCustomers(Customers customers);", "List<ConfigData> selectByExample(ConfigDataExample example);", "@Override\n public List<Object> getModemSearchGrid2(Map<String, Object> condition) {\n return null;\n }", "List<Student> selectByExample(StudentCriteria example);", "List<StatusByUser> selectByExample(StatusByUserExample example);", "public static <T> Splitted<T> split(Collection<T> list, Predicate<? super T> predicate) {\n final Splitted<T> splitted = new Splitted<>();\n\n for (T elem : list) {\n if (predicate.test(elem)) {\n splitted.inCondition.add(elem);\n } else {\n splitted.others.add(elem);\n }\n }\n return splitted;\n }", "ObservableList<Task> getFilteredTaskList();", "List<T> selectByExample(E example);", "List<PageItemCfg> selectByExample(PageItemCfgExample example);", "List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);", "public abstract List<Course> getByFilter(HashMap<String, String> filter);", "@Override\n\tpublic String listByCondition(Familybranch c, Model m) throws Exception {\n\t\t\t\treturn null;\n\t}", "ObservableList<Person> getFilteredPersonList();", "List<Prueba> selectByExample(PruebaExample example);", "List<Car> getByBrandAndColor(String brand, String color);", "List<Trueorfalse> selectByExample(RowBounds rowBounds);", "public List search(Veranstaltung veranstatung) throws RuntimeException;", "@Override\n public List<Object> getBatteryLogDetailList(Map<String, Object> condition,\n boolean isCount) {\n return null;\n }", "private List<moneda> filter(List<moneda> p1, String query)\n {\n query = query.toLowerCase();\n final List<moneda> filteredModeList = new ArrayList<>();\n for (moneda model:p1)\n {\n final String text = model.getNombre().toLowerCase();\n if(text.startsWith(query))\n {\n filteredModeList.add(model);\n }\n }\n return filteredModeList;\n }", "public List<CustomersListSearchConditionsDTO> getListSearchConditions(Long customerListId);", "ObservableList<Patient> getFilteredPatientList();", "@Override\n public List<Object> getBatteryLogList(Map<String, Object> condition,\n boolean isCount) {\n return null;\n }", "ObservableList<Doctor> getFilteredDoctorList();", "List<MVoucherDTO> selectByExample(MVoucherDTOCriteria example);", "@Override\n public List<UserInfo> findList(UserListFilterDto dto) {\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<UserInfo> criteriaQuery = criteriaBuilder.createQuery(UserInfo.class);\n Root<UserInfo> root = criteriaQuery.from(UserInfo.class);\n Predicate predicate1\n = criteriaBuilder.equal(root.get(\"office\").get(\"id\"), dto.getOfficeId());\n Predicate finalPredicate = criteriaBuilder.and(predicate1);\n if (dto.getFirstName() != null) {\n Predicate predicate2\n = criteriaBuilder.equal(root.get(\"firstName\"), dto.getFirstName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate2);\n }\n if (dto.getSecondName() != null) {\n Predicate predicate3\n = criteriaBuilder.equal(root.get(\"secondName\"), dto.getSecondName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate3);\n }\n if (dto.getMiddleName() != null) {\n Predicate predicate4\n = criteriaBuilder.equal(root.get(\"middleName\"), dto.getMiddleName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate4);\n }\n if (dto.getPosition() != null) {\n Predicate predicate5\n = criteriaBuilder.equal(root.get(\"position\"), dto.getPosition());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate5);\n }\n if (dto.getDocCode() != null) {\n Predicate predicate6\n = criteriaBuilder.equal(root.get(\"userDoc\").get(\"doc\").get(\"code\"), dto.getDocCode());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate6);\n }\n if (dto.getCitizenshipCode() != null) {\n Predicate predicate7\n = criteriaBuilder.equal(root.get(\"country\").get(\"code\"), dto.getCitizenshipCode());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate7);\n }\n criteriaQuery.select(root).where(finalPredicate);\n return entityManager.createQuery(criteriaQuery).getResultList();\n }", "@Override\n public List<Object> getModemSearchGrid(Map<String, Object> condition) {\n return null;\n }", "List<Resource> selectByExample(ResourceExample example);", "public java.util.List<IdDt> getCondition() { \n\t\tif (myCondition == null) {\n\t\t\tmyCondition = new java.util.ArrayList<IdDt>();\n\t\t}\n\t\treturn myCondition;\n\t}", "@Override\r\n\tpublic List<Log> findLogByCreatedTime(LogCond cond) throws RuntimeException {\n\t\treturn logMapper.findLogByCreatedTime(cond);\r\n\t}", "boolean getConditionListNull();", "List<JzAct> selectByExample(JzActExample example);", "public List getTravelGroupList(Map conditions, int pageNo, int pageSize, TravelGroupQueryOrder order, boolean descend);", "public static <T> List<T> filter(List<T> list, Predicate<T> p) {\n\t\tList<T> result = new ArrayList<>();\n\t\tfor (T t : list) {\n\t\t\tif (p.test(t)) {\n\t\t\t\tresult.add(t);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "List<Abum> selectByExample(AbumExample example);", "List<IceApp> selectByExample(IceAppExample example);", "List<ActivityHongbaoPrize> selectByExample(ActivityHongbaoPrizeExample example);", "List<DashboardGoods> selectByExample(DashboardGoodsExample example);", "public List getList(int start, int pernum, SearchParam param);", "List<HomeWork> selectByExample(HomeWorkExample example);", "io.dstore.values.StringValueOrBuilder getConditionListOrBuilder();", "private Set<Condition> getConditions(List<RuleInstance> rules)\n{\n Set<Condition> conds = new HashSet<Condition>();\n\n getTimeConditions(rules,conds);\n getSensorConditions(rules,conds);\n getCalendarConditions(rules,conds);\n\n return null;\n}", "@Override\r\n\tpublic List<Map<String, String>> getShopClassList(Map<String, String> condition) {\n\t\treturn shopClassMapperSelf.getShopClassList(condition);\r\n\t}" ]
[ "0.70522803", "0.6694403", "0.6537534", "0.6292337", "0.6236361", "0.6229989", "0.6199344", "0.61476713", "0.614058", "0.6101537", "0.60998064", "0.60600674", "0.6046834", "0.6034358", "0.5951065", "0.5942348", "0.59293115", "0.5880448", "0.58767545", "0.58291906", "0.58199406", "0.5795645", "0.5778308", "0.5750615", "0.5735529", "0.57196563", "0.57187474", "0.5715291", "0.5703774", "0.5689344", "0.5684857", "0.5677372", "0.56738627", "0.56371737", "0.5619571", "0.5611825", "0.56107175", "0.56086296", "0.558867", "0.5550411", "0.55478597", "0.55349433", "0.55339986", "0.5531949", "0.55233806", "0.5522402", "0.55173045", "0.55042857", "0.54946756", "0.5482023", "0.5458444", "0.5450872", "0.5440585", "0.5439636", "0.5416581", "0.5413596", "0.5409086", "0.540776", "0.5407232", "0.5401583", "0.5400504", "0.5398376", "0.5394861", "0.5389897", "0.5389769", "0.53876245", "0.53867936", "0.53860044", "0.53773165", "0.5352861", "0.5344303", "0.53433585", "0.5342812", "0.5341334", "0.5339282", "0.5335501", "0.53351283", "0.5332248", "0.5329305", "0.53275067", "0.5326388", "0.5325744", "0.53245115", "0.53242224", "0.5322514", "0.5315629", "0.5311666", "0.5304217", "0.52942514", "0.52893037", "0.52877057", "0.5287662", "0.52740693", "0.5273487", "0.5259915", "0.52585775", "0.52542984", "0.5250596", "0.52476543", "0.52474797", "0.5247075" ]
0.0
-1
/ / Extended API
public Iterator<JacksonJrValue> elements() { return _values.iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "private ExtendedOperations(){}", "@Override\n protected void prot() {\n }", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "void extend();", "@Override\n\tprotected void getExras() {\n\n\t}", "public API() {}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "public api() {}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "API createAPI();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "Operations operations();", "private Aliyun() {\n\t\tsuper();\n\t}", "private stendhal() {\n\t}", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "private Fts5ExtensionApi(){}", "private WAPIHelper() { }", "public interface AccountExtraInfo {\n\n public IndexResponse save(String id, BasicDocModel model);\n\n /**\n * @param id 指的是用户的imei码(0.9.0版本及其之前的头机)\n * @param keyValueArgs\n * @return\n */\n public IndexResponse save(String id, Object... keyValueArgs);\n\n public UpdateResponse update(String id, BasicDocModel model);\n\n public UpdateResponse upsert(String id, BasicDocModel model) throws DocumentMissingException,InterruptedException,ExecutionException;\n\n}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void getData() {\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 public void perish() {\n \n }", "private GetMyInfo()\r\n/* 13: */ {\r\n/* 14:13 */ super(new APITag[] { APITag.INFO }, new String[0]);\r\n/* 15: */ }", "public void mo55254a() {\n }", "@Override\n public void get() {}", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private Get() {}", "private Get() {}", "@Override\n public void memoria() {\n \n }", "public void request() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract Object mo1771a();", "private ApiInfo apiInfo() {\n\t\treturn new ApiInfo(\"Langton ant app\", \"rest api for langton ant app\", version, null,\n\t\t\t\tnew Contact(\"leclerc\", \"N/A\", \"[email protected]\"), null, null, Collections.EMPTY_LIST);\n\t}", "public Class<?> api() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote addNewGetQuote();", "public interface StatusCodePropertiesEditionPart {\n\n\t/**\n\t * @return the number\n\t * \n\t */\n\tpublic String getNumber();\n\n\t/**\n\t * Defines a new number\n\t * @param newValue the new number to set\n\t * \n\t */\n\tpublic void setNumber(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "private PortletRequestUtils() {\r\n\t\tthrow new UnsupportedOperationException();\r\n\t}", "public abstract Object mo26777y();", "@Override\n\tpublic void einkaufen() {\n\t}", "public interface BasicAPI {\r\n\r\n UserAccount confirmCredentials(String username, String password) throws NonExistentAccountException, FrozenAccountException;\r\n\r\n double checkBalance(int userID, int acctId) throws NonExistentAccountException;\r\n\r\n void withdraw(int acctId, double amount) throws InsufficientFundsException, NonExistentAccountException, FrozenAccountException;\r\n\r\n void deposit(int acctId, double amount) throws InsufficientFundsException, NonExistentAccountException, FrozenAccountException;\r\n\r\n void transfer(int userIDFrom, int acctIdToWithdrawFrom, int userIDTo, int acctIdToDepositTo, double amount) throws InsufficientFundsException, NonExistentAccountException, FrozenAccountException;\r\n\r\n String transactionHistory(int acctId);\r\n\r\n}", "public interface TwoversePublicApi {\n /**\n * Creates a new account.\n * \n * @param user\n * the user to create. Must have a hashed password set and must\n * NOT have an ID set. The ID will be set when returning from\n * this method.\n * @return the ID for new account\n * @throws ExistingUserException\n * if an account with this username already exists\n * @throws UnsetPasswordException\n * if the hashed password is not set\n */\n public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;\n\n /**\n * Add a new object to the universe.\n * \n * These functions modify galaxy, but over XML-RPC that doesn't really work.\n * So, we must explicitly return the new object\n * \n * @param body\n * the object to add. The ID must NOT be set, and will be set on\n * returning from this method.\n * @return the ID for the new object\n * @throws UnhandledCelestialBodyException\n */\n public CelestialBody add(CelestialBody body)\n throws UnhandledCelestialBodyException;\n\n /**\n * Updates an object in the universe with the one provided, overwriting any\n * previous values.\n * \n * @param body\n * the body to update. The ID must be set and it must be known by\n * the server.\n * @return the updated object\n */\n public CelestialBody update(CelestialBody body);\n\n /**\n * Add a new link to the universe.\n * \n * @param link\n * the object to add. The ID must NOT be set, and will be set on\n * returning from this method.\n * @return the ID for the new object\n * @throws UnhandledCelestialBodyException\n */\n public Link add(Link link);\n}", "Context mo1490b();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public interface RestCall {\n\n String query();\n\n String delete();\n\n String put();\n\n String get();\n\n String keys();\n\n}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public abstract String getInfo();", "public abstract String getInfo();", "@Override\n\tprotected void setupInfoKeys()\n\t{\n\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\n\t}", "public interface Meta {\r\n\r\n\t/**\r\n\t * Lists method names exposed by endpoint.\r\n\t *\r\n\t * @return method name list\r\n\t */\r\n\t@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();\r\n\r\n\t/**\r\n\t * Provides help/usage information for a method.\r\n\t *\r\n\t * @param methodName\r\n\t * name of the method\r\n\t * @return help/usage information for a method\r\n\t */\r\n\t@XRMethod(value = \"system.help\", help = \"Returns usage information for a method\")\r\n\tString help(String methodName);\r\n\r\n\t// @XRMethod(\"system.multicall\")\r\n\t// List multicall(List calls);\r\n\r\n\t/**\r\n\t * Checks if method is supported by endpoint or not.\r\n\t *\r\n\t * @param methodName\r\n\t * name of the method\r\n\t * @return true if method is supported by endpoint, false otherwise\r\n\t */\r\n\t@XRMethod(value = \"system.supports\", help = \"Returns true if method is supported, false otherwise\")\r\n\tboolean supports(String methodName);\r\n}", "public abstract void operation();", "public interface ApiMethod\n{\n\tpublic void func(ApiContext ac) throws JSONException, LibException;\n}", "private ApiInfo apiInfo()\r\n\t {\r\n\t ApiInfo apiInfo = new ApiInfo(\r\n\t \"My Project's REST API\",\r\n\t \"This is a description of your API.\",\r\n\t \"version-1\",\r\n\t \"API TOS\",\r\n\t \"[email protected]\",\r\n\t \"API License\",\r\n\t \"API License URL\"\r\n\t );\r\n\t return apiInfo;\r\n\t }", "protected void __register()\n {\n }", "protected void __register()\n {\n }", "public APIOperation()\n {\n super();\n }", "private ApiInfo metadata() {\n\t\treturn new ApiInfoBuilder().title(\"# Online Home Decor Store #\")\n\t\t\t\t.description(\"Suppliers and Categories operations are present\").build();\t\n\t}", "public interface ISpecial\n{\n\tJSONObject generate();\n\n\tString getName();\n}", "public abstract Object getCustomData();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public abstract Object mo1185b();", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "private TwitterAPI(){\n\t\t\n\t}", "public abstract String use();", "OperationCallExp createOperationCallExp();", "public abstract void mo35054b();", "abstract int patch();", "public void GetDataBaseData() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void setupConvenienceObjects();", "private Response() {\n initFields();\n }", "ResourceAPI createResourceAPI();", "@Override\n\tpublic void getDetail() {\n\t\t\n\t}", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "private ApiInfo apiInfo() {\n Contact contact = new Contact(\"Hanchuanjun\", \"\", \"[email protected]\");\n ApiInfo apiInfo = new ApiInfo(\n \"GEHC SmartX SSO-OAuth模块api\",\n \"GEHC SmartX SSO-OAuth模块服务api\",\n \"v0.0.1\",\n \"初始化版本\",\n contact,\n \"\",\n \"\");\n return apiInfo;\n }", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "@Override\r\n\tpublic void NroAccount() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private GetAccount()\r\n/* 19: */ {\r\n/* 20:18 */ super(new APITag[] { APITag.ACCOUNTS }, new String[] { \"account\" });\r\n/* 21: */ }", "@Override\n\tpublic void function() {\n\t\t\n\t}" ]
[ "0.6376206", "0.62999606", "0.6066071", "0.59679335", "0.5960104", "0.5899899", "0.58682674", "0.5850732", "0.58487016", "0.58487016", "0.58334804", "0.58207643", "0.58206767", "0.58045256", "0.5748512", "0.5740752", "0.57405776", "0.5724381", "0.5715495", "0.57137936", "0.5707828", "0.56813407", "0.5639519", "0.5630581", "0.56098163", "0.5607095", "0.5574246", "0.5574246", "0.5574246", "0.5574246", "0.5574246", "0.5574246", "0.5574246", "0.55719864", "0.55445766", "0.55280495", "0.55253524", "0.5520828", "0.5513843", "0.54998356", "0.5473307", "0.5471062", "0.54607093", "0.5458143", "0.54558104", "0.54558104", "0.5452112", "0.5445869", "0.5441844", "0.54374444", "0.54368097", "0.5436704", "0.54279095", "0.5404852", "0.5403236", "0.5377671", "0.5375304", "0.5371998", "0.5366791", "0.5363006", "0.53612196", "0.53608507", "0.5356821", "0.5340763", "0.5339686", "0.5339686", "0.5338548", "0.53341746", "0.5333873", "0.5328514", "0.53281736", "0.53278804", "0.53278804", "0.53271186", "0.5310509", "0.53100663", "0.5308632", "0.53084046", "0.53051645", "0.53044", "0.5304091", "0.5303544", "0.5299393", "0.529485", "0.52916366", "0.5288137", "0.5287227", "0.52868116", "0.52868116", "0.52837366", "0.5282326", "0.5277462", "0.5273442", "0.5269864", "0.5267985", "0.52650994", "0.5264486", "0.5261382", "0.5259384", "0.5258201", "0.5257468" ]
0.0
-1
Instantiates a new version factory.
private VersionFactory() { versions = ClassResolverUtils.findImpl(Version.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static VersionFactory getInstance() {\n\t\treturn SingletonHolder.versionFactory;\n\t}", "public Version createVersion(String versionValue);", "public AutomatizacionrevisionFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public static FvFactory init() {\n\t\ttry {\n\t\t\tFvFactory theFvFactory = (FvFactory)EPackage.Registry.INSTANCE.getEFactory(FvPackage.eNS_URI);\n\t\t\tif (theFvFactory != null) {\n\t\t\t\treturn theFvFactory;\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 FvFactoryImpl();\n\t}", "public interface VersionFactory extends Marshaller<Version> {\n /**\n * Creates a new version object for the provided node ID.\n */\n Version create(Identity nodeId);\n}", "public static Version getVersion() {\n return new Version();\n }", "public static AutomatizacionrevisionFactory init() {\r\n\t\ttry {\r\n\t\t\tAutomatizacionrevisionFactory theAutomatizacionrevisionFactory = (AutomatizacionrevisionFactory)EPackage.Registry.INSTANCE.getEFactory(AutomatizacionrevisionPackage.eNS_URI);\r\n\t\t\tif (theAutomatizacionrevisionFactory != null) {\r\n\t\t\t\treturn theAutomatizacionrevisionFactory;\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 AutomatizacionrevisionFactoryImpl();\r\n\t}", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "Version create(Identity nodeId);", "public static VariabilityFactory init() {\n\t\ttry {\n\t\t\tVariabilityFactory theVariabilityFactory = (VariabilityFactory)EPackage.Registry.INSTANCE.getEFactory(VariabilityPackage.eNS_URI);\n\t\t\tif (theVariabilityFactory != null) {\n\t\t\t\treturn theVariabilityFactory;\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 VariabilityFactoryImpl();\n\t}", "public static VizualizerFactory init()\n {\n try\n {\n VizualizerFactory theVizualizerFactory = (VizualizerFactory)EPackage.Registry.INSTANCE.getEFactory(VizualizerPackage.eNS_URI);\n if (theVizualizerFactory != null)\n {\n return theVizualizerFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new VizualizerFactoryImpl();\n }", "public static Factory factory() {\n return ext_h::new;\n }", "public Factory() {\n\t\tsuper();\n\t}", "public void createVersion() {\r\n\t\tif (!active) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (applicationId == null) {\r\n\t\t\tcreateApplication();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tJSONObject versionJson = getJSonResponse(Unirest.post(url + VERSION_API_URL)\r\n\t\t\t\t\t.field(\"name\", SeleniumTestsContextManager.getApplicationVersion())\r\n\t\t\t\t\t.field(\"application\", applicationId));\r\n\t\t\tversionId = versionJson.getInt(\"id\");\r\n\t\t} catch (UnirestException | JSONException e) {\r\n\t\t\tthrow new SeleniumRobotServerException(\"cannot create version\", e);\r\n\t\t}\r\n\t}", "public void createVersion(final ArtifactVersion version);", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "public static PiviFactory init() {\r\n\t\ttry {\r\n\t\t\tPiviFactory thePiviFactory = (PiviFactory)EPackage.Registry.INSTANCE.getEFactory(PiviPackage.eNS_URI);\r\n\t\t\tif (thePiviFactory != null) {\r\n\t\t\t\treturn thePiviFactory;\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 PiviFactoryImpl();\r\n\t}", "private VerifierFactory() {\n }", "public Factory() {\n this(getInternalClient());\n }", "public static BuiltinFactory init() {\n\t\ttry {\n\t\t\tBuiltinFactory theBuiltinFactory = (BuiltinFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.soluvas.com/schema/story.builtin/1.0\"); \n\t\t\tif (theBuiltinFactory != null) {\n\t\t\t\treturn theBuiltinFactory;\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 BuiltinFactoryImpl();\n\t}", "Reproducible newInstance();", "private static Version createNewVersion(Version.VERSION_TYPE versionType, String username, String description,\r\n String oldVersionName) {\r\n Version version = new Version();\r\n String newVersionName = version.getNewVersionName(oldVersionName, versionType);\r\n\r\n version.setVersion(newVersionName);\r\n version.setVersionComment(description);\r\n version.setVersionDate(DateBean.toCompactString());\r\n version.setVersionUser(username);\r\n\r\n return version;\r\n }", "public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }", "private VegetableFactory() {\n }", "public VizualizerFactoryImpl()\n {\n super();\n }", "public static Testing2Factory init() {\n\t\ttry {\n\t\t\tTesting2Factory theTesting2Factory = (Testing2Factory)EPackage.Registry.INSTANCE.getEFactory(Testing2Package.eNS_URI);\n\t\t\tif (theTesting2Factory != null) {\n\t\t\t\treturn theTesting2Factory;\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 Testing2FactoryImpl();\n\t}", "public DatabaseCreatorHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {\n super(context, name, factory, version);\n }", "<T> T newInstance(URI description) throws EnvironmentException;", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "Instance createInstance();", "@Override\n public JavaFile generate() {\n String versionCatalogSimpleName = \"VersionFactory\";\n\n // Creates the getCatalog method.\n MethodSpec.Builder getCatalogBuilder =\n MethodSpec.methodBuilder(\"getVersions\")\n .addModifiers(Modifier.PROTECTED, Modifier.STATIC)\n .addException(IllegalAccessException.class)\n .addException(InstantiationException.class)\n .returns(ParameterizedTypeName.get(IMMUTABLE_SET_CLASS_NAME, VERSION_CLASS_NAME))\n .addStatement(\n \"$T.Builder<$T> builder = $T.builder()\",\n IMMUTABLE_SET_CLASS_NAME,\n VERSION_CLASS_NAME,\n IMMUTABLE_SET_CLASS_NAME);\n\n /*\n * <code>\n * builder.add(new Version(\n * \"v123\",\n * new GoogleAdsException.Factory(),\n * GoogleAdsVersion.class,\n * new DefaultMessageProxyProvider(\n * new SearchGoogleAdsStreamResponseMessageProxy())));\n * </code>\n */\n // Creates a Version instance for each version of the API.\n for (Integer version : versions) {\n // Defines the exception factory class name.\n ClassName exceptionFactoryName =\n ClassName.get(\n \"com.google.ads.googleads.v\" + version + \".errors\", \"GoogleAdsException\", \"Factory\");\n // Defines the GoogleAdsVersion class name.\n ClassName versionClassName =\n ClassName.get(\"com.google.ads.googleads.v\" + version + \".services\", \"GoogleAdsVersion\");\n // Adds a Version instance to the builder with the params as defined above.\n getCatalogBuilder.addStatement(\n \"builder.add(new Version(\\n\" + \" $S,\\n\" + \" new $T(),\\n\" + \" $T.class))\",\n \"v\" + version,\n exceptionFactoryName,\n versionClassName);\n }\n\n getCatalogBuilder.addStatement(\"return builder.build()\");\n\n MethodSpec getCatalog = getCatalogBuilder.build();\n\n // Creates and returns the VersionCatalog class.\n TypeSpec versionCatalogGeneratedCode =\n TypeSpec.classBuilder(versionCatalogSimpleName)\n .addAnnotation(Utils.generatedAnnotation())\n .addModifiers(Modifier.PUBLIC)\n .addMethod(getCatalog)\n .build();\n\n JavaFile javaFile =\n Utils.createJavaFile(\"com.google.ads.googleads.lib.catalog\", versionCatalogGeneratedCode);\n Utils.writeGeneratedClassToFile(javaFile, targetDirectory);\n return javaFile;\n }", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public static borFactory init() {\n\t\ttry {\n\t\t\tborFactory theborFactory = (borFactory)EPackage.Registry.INSTANCE.getEFactory(borPackage.eNS_URI);\n\t\t\tif (theborFactory != null) {\n\t\t\t\treturn theborFactory;\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 borFactoryImpl();\n\t}", "public VersionModel() {\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public VariabilityFactoryImpl() {\n\t\tsuper();\n\t}", "public EsoFactoryImpl()\r\n {\r\n super();\r\n }", "private static VerifierFactory createFactory( final String schemaType )\n throws VerifierConfigurationException\n {\n if( null == schemaType )\n {\n try\n {\n if( null == c_msvClass )\n {\n c_msvClass =\n Class.forName( \"com.sun.msv.verifier.jarv.TheFactoryImpl\" );\n }\n return (VerifierFactory)c_msvClass.newInstance();\n }\n catch( final Exception e )\n {\n final String message =\n \"Unable to load MSV factory and thus can \" +\n \"not auto-discover schema type.\";\n throw new VerifierConfigurationException( message, e );\n }\n }\n else\n {\n return VerifierFactory.newInstance( schemaType );\n }\n }", "public static PedidoFactory init() {\n\t\ttry {\n\t\t\tPedidoFactory thePedidoFactory = (PedidoFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(PedidoPackage.eNS_URI);\n\t\t\tif (thePedidoFactory != null) {\n\t\t\t\treturn thePedidoFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new PedidoFactoryImpl();\n\t}", "public abstract ProductFactory getFactory();", "public static UseCaseDslFactory init()\n {\n try\n {\n UseCaseDslFactory theUseCaseDslFactory = (UseCaseDslFactory)EPackage.Registry.INSTANCE.getEFactory(UseCaseDslPackage.eNS_URI);\n if (theUseCaseDslFactory != null)\n {\n return theUseCaseDslFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new UseCaseDslFactoryImpl();\n }", "public GpflFactoryImpl()\n {\n super();\n }", "public static BromiumFactory init()\n {\n try\n {\n BromiumFactory theBromiumFactory = (BromiumFactory)EPackage.Registry.INSTANCE.getEFactory(BromiumPackage.eNS_URI);\n if (theBromiumFactory != null)\n {\n return theBromiumFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new BromiumFactoryImpl();\n }", "public static Tp2Factory init() {\n\t\ttry {\n\t\t\tTp2Factory theTp2Factory = (Tp2Factory)EPackage.Registry.INSTANCE.getEFactory(\"http:///recette1-tp2-v0\"); \n\t\t\tif (theTp2Factory != null) {\n\t\t\t\treturn theTp2Factory;\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 Tp2FactoryImpl();\n\t}", "public static EsoFactory init()\r\n {\r\n try\r\n {\r\n EsoFactory theEsoFactory = (EsoFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.cau.de/cs/kieler/sim/eso/Eso\"); \r\n if (theEsoFactory != null)\r\n {\r\n return theEsoFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new EsoFactoryImpl();\r\n }", "public static GpflFactory init()\n {\n try\n {\n GpflFactory theGpflFactory = (GpflFactory)EPackage.Registry.INSTANCE.getEFactory(GpflPackage.eNS_URI);\n if (theGpflFactory != null)\n {\n return theGpflFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new GpflFactoryImpl();\n }", "public static PascalFactory init()\n {\n try\n {\n PascalFactory thePascalFactory = (PascalFactory)EPackage.Registry.INSTANCE.getEFactory(PascalPackage.eNS_URI);\n if (thePascalFactory != null)\n {\n return thePascalFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new PascalFactoryImpl();\n }", "public static AugmentedfsmFactory init() {\n\t\ttry {\n\t\t\tAugmentedfsmFactory theAugmentedfsmFactory = (AugmentedfsmFactory)EPackage.Registry.INSTANCE.getEFactory(AugmentedfsmPackage.eNS_URI);\n\t\t\tif (theAugmentedfsmFactory != null) {\n\t\t\t\treturn theAugmentedfsmFactory;\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 AugmentedfsmFactoryImpl();\n\t}", "public VersionFactoryCodeGenerator(Set<Integer> versions, File targetDirectory) {\n this.versions = versions;\n this.targetDirectory = targetDirectory;\n }", "public static ProyectoFactory init() {\r\n\t\ttry {\r\n\t\t\tProyectoFactory theProyectoFactory = (ProyectoFactory)EPackage.Registry.INSTANCE.getEFactory(ProyectoPackage.eNS_URI);\r\n\t\t\tif (theProyectoFactory != null) {\r\n\t\t\t\treturn theProyectoFactory;\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 ProyectoFactoryImpl();\r\n\t}", "public static Pack2Factory init() {\n\t\ttry {\n\t\t\tPack2Factory thePack2Factory = (Pack2Factory)EPackage.Registry.INSTANCE.getEFactory(Pack2Package.eNS_URI);\n\t\t\tif (thePack2Factory != null) {\n\t\t\t\treturn thePack2Factory;\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 Pack2FactoryImpl();\n\t}", "Demo1Factory getDemo1Factory();", "public static ResultFactory init() {\n\t\ttry {\n\t\t\tResultFactory theResultFactory = (ResultFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.eclipselabs.org/emftriple/result\"); \n\t\t\tif (theResultFactory != null) {\n\t\t\t\treturn theResultFactory;\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 ResultFactoryImpl();\n\t}", "public static EditorFactory init() {\n\t\ttry {\n\t\t\tEditorFactory theEditorFactory = (EditorFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://opaeum.org/uimetamodel/editor/1.0\"); \n\t\t\tif (theEditorFactory != null) {\n\t\t\t\treturn theEditorFactory;\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 EditorFactoryImpl();\n\t}", "public ComputeInstanceVersion() {\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 }", "public static Factory factory() {\n return ext_accdt::new;\n }", "public static LanterneFactory init() {\n\t\ttry {\n\t\t\tLanterneFactory theLanterneFactory = (LanterneFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://lanterne\"); \n\t\t\tif (theLanterneFactory != null) {\n\t\t\t\treturn theLanterneFactory;\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 LanterneFactoryImpl();\n\t}", "public T newInstance();", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "public EcoreFactoryImpl()\n {\n super();\n }", "EthHandler create(EthVersion version);", "public EcoreFactoryImpl() {\n super();\n }", "public static GseqFactory init() {\n\t\ttry {\n\t\t\tGseqFactory theGseqFactory = (GseqFactory)EPackage.Registry.INSTANCE.getEFactory(GseqPackage.eNS_URI);\n\t\t\tif (theGseqFactory != null) {\n\t\t\t\treturn theGseqFactory;\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 GseqFactoryImpl();\n\t}", "public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public Version(Integer id) {\n this.id = id;\n }", "public static XCanopusFactory init()\r\n {\r\n try\r\n {\r\n XCanopusFactory theXCanopusFactory = (XCanopusFactory)EPackage.Registry.INSTANCE.getEFactory(XCanopusPackage.eNS_URI);\r\n if (theXCanopusFactory != null)\r\n {\r\n return theXCanopusFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new XCanopusFactoryImpl();\r\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 Single<Version> createVersion(\n Version version, Optional<RestRequestEnhancer> restRequestEnhancer) {\n\n RestRequest.Builder requestBuilder = RestRequest.builder()\n .method(HttpMethod.POST)\n .basePath(DEFAULT_BASE_PATH)\n .path(\"/rest/api/3/version\");\n\n Map<String, String> pathParams = new HashMap<>();\n requestBuilder.pathParams(pathParams);\n\n Map<String, Collection<String>> queryParams = new HashMap<>();\n requestBuilder.queryParams(queryParams);\n\n Map<String, String> headers = new HashMap<>();\n requestBuilder.headers(headers);\n\n requestBuilder.requestBody(Optional.of(version));\n\n return restClient.callEndpoint(requestBuilder.build(), restRequestEnhancer, returnType_createVersion);\n }", "default Factory<T> toFactory() {\n throw new UnsupportedOperationException();\n }", "public FactoryValue( ) \r\n {\r\n }", "public static CoreFactory init() {\n\t\ttry {\n\t\t\tCoreFactory theCoreFactory = (CoreFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://m2ling.org/core/0.1\"); \n\t\t\tif (theCoreFactory != null) {\n\t\t\t\treturn theCoreFactory;\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 CoreFactoryImpl();\n\t}", "public InternalFloaterFactory() {\n super();\n }", "public static Factory factory() {\n return Document_print::new;\n }", "private EntityFactory() {}", "public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "private DeploymentFactory initFactory() {\n return new SunDeploymentFactory();\n }", "public static VersionSpaceModel createVersionSpace(\r\n String name,\r\n Version initVersion) {\r\n try {\r\n final VersionSpaceModel vsv =\r\n VersionSpaceFactory.prototype.create(\r\n \"versionSpace\",\r\n initVersion,\r\n new String[] { \"cursor\" });\r\n\r\n // Setup version cursor to the root version of the space, and to follow\r\n // upon changes to that version\r\n final VersionCursorModel base =\r\n (VersionCursorModel) vsv.getCursors().elementAt(0);\r\n base.setVersion(initVersion);\r\n base.setFollowing(true);\r\n\r\n return vsv;\r\n } catch (SlotAlreadyRegisteredException e) {\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }", "public Factory(BaseProcessingEnvImpl env) {\n _env = env;\n }", "public static PeriodFactory init() {\n\t\ttry {\n\t\t\tPeriodFactory thePeriodFactory = (PeriodFactory)EPackage.Registry.INSTANCE.getEFactory(PeriodPackage.eNS_URI);\n\t\t\tif (thePeriodFactory != null) {\n\t\t\t\treturn thePeriodFactory;\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 PeriodFactoryImpl();\n\t}", "ProvenanceFactory getProvenanceFactory();", "public DbHelper(Context context, String name, CursorFactory factory,\n\t\t\tint version) {\n\t\tsuper(context, name, factory, version);\n\t}", "public static BehaviourFactory init() {\n\t\ttry {\n\t\t\tBehaviourFactory theBehaviourFactory = (BehaviourFactory)EPackage.Registry.INSTANCE.getEFactory(BehaviourPackage.eNS_URI);\n\t\t\tif (theBehaviourFactory != null) {\n\t\t\t\treturn theBehaviourFactory;\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 BehaviourFactoryImpl();\n\t}", "public Testing2FactoryImpl() {\n\t\tsuper();\n\t}", "public \n OfflineExtFactory\n (\n String workUser, \n TreeMap<String,TreeSet<VersionID>> versions\n ) \n {\n super(workUser, versions); \n }", "private ObjectFactory() { }", "public Pack2FactoryImpl() {\n\t\tsuper();\n\t}", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }" ]
[ "0.7218382", "0.67338955", "0.65193355", "0.64729494", "0.64590096", "0.64501333", "0.64063996", "0.6268394", "0.62510306", "0.6149164", "0.6120167", "0.60820395", "0.604151", "0.6016524", "0.5992987", "0.5978473", "0.59432524", "0.58959925", "0.58924603", "0.58789015", "0.5878111", "0.5875195", "0.5870815", "0.5867196", "0.5843608", "0.58426553", "0.5813214", "0.5782874", "0.57451385", "0.5742476", "0.5738295", "0.5737497", "0.57363105", "0.57213104", "0.5702968", "0.5671638", "0.5671638", "0.5671638", "0.56657404", "0.5647297", "0.56389105", "0.5624272", "0.56225204", "0.5615146", "0.5615119", "0.5604481", "0.5598432", "0.5598408", "0.5594339", "0.5586365", "0.5585634", "0.55849624", "0.5580573", "0.55794513", "0.55785674", "0.55779845", "0.557355", "0.55687207", "0.5566648", "0.55660796", "0.5558129", "0.5556186", "0.55544126", "0.5548064", "0.5537539", "0.5535679", "0.5529653", "0.5524938", "0.5503925", "0.55010074", "0.55002433", "0.5496552", "0.5495286", "0.54937035", "0.5474256", "0.547384", "0.54723126", "0.5470159", "0.5465174", "0.5457557", "0.5449115", "0.5446242", "0.544316", "0.54327047", "0.54270023", "0.5424043", "0.541909", "0.5418494", "0.54162055", "0.5415366", "0.5406822", "0.5406822", "0.5406822", "0.5406822", "0.5406822", "0.5406822", "0.5406822", "0.5406822", "0.5406822", "0.5406822" ]
0.75222373
0
Gets the single instance of VersionFactory.
public static VersionFactory getInstance() { return SingletonHolder.versionFactory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Version getVersion() {\n return new Version();\n }", "private VersionFactory() {\n\t\tversions = ClassResolverUtils.findImpl(Version.class);\n\t}", "public static OpenTypeFactory getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\t\tinstance = new OpenTypeFactory();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static ViewFactory getInstance() {\n if (instance == null) {\n synchronized (ViewFactory.class) {\n if (instance == null) {\n instance = new ViewFactory();\n }\n }\n }\n return instance;\n }", "public static ViewFactory getInstance() {\r\n\t\tif(instance==null) {\r\n\t\t\tinstance = new ViewFactory();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static FvFactory init() {\n\t\ttry {\n\t\t\tFvFactory theFvFactory = (FvFactory)EPackage.Registry.INSTANCE.getEFactory(FvPackage.eNS_URI);\n\t\t\tif (theFvFactory != null) {\n\t\t\t\treturn theFvFactory;\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 FvFactoryImpl();\n\t}", "public static VersionDetail getInstance( VotLintContext context ) {\n VOTableVersion version = context.getVersion();\n if ( VERSION_MAP.containsKey( version ) ) {\n return VERSION_MAP.get( version );\n }\n else {\n context.warning( \"No checking information available for version \"\n + version );\n return DUMMY;\n }\n }", "public Factory getFactory()\r\n {\r\n if( m_factory != null ) return m_factory;\r\n m_factory = FactoryHelper.narrow( m_primary );\r\n return m_factory;\r\n }", "public ValueFactory<K, V> getFactory()\n {\n return factory;\n }", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "public static synchronized EnumFactory getInstance() {\n if (instance == null) {\n instance = new EnumFactory();\n }\n return instance;\n }", "public static ServiceFactory getInstance(){\n\t\tif(instance == null)\n\t\t\tinstance = new ServiceFactory();\n\t\treturn instance;\n\t}", "public static BookFactory getInstance()\r\n {\r\n \r\n if(bookFactoryInstance == null)\r\n {\r\n bookFactoryInstance = new BookFactory();\r\n }\r\n \r\n return bookFactoryInstance;\r\n }", "public static QuizFactory getFactoryInstance(){\n\t\tif (defQuizFactory == null)\n\t\t\tdefQuizFactory = new DefaultQuizFactory();\n\t\t\n\t\treturn defQuizFactory;\n\t}", "public static Version<?> getVersion() {\n return BL_VERSION;\n }", "public synchronized static Subversion getInstance() {\n if (instance == null) {\n instance = new Subversion();\n }\n return instance;\n }", "public OBStoreFactory getFactory();", "public static SerializerFactory getInstance() {\r\n return INSTANCE;\r\n }", "public static MoneyFactory getInstance() {\n\t\treturn factory;\n\t}", "static public PositionFactory getInstance(){\n if(instance == null) {\n instance =new PositionFactory();\n }\n return instance;\n }", "public static ResourceFactory get() {\r\n\t\treturn single;\r\n\t}", "public Version getVersion();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "public static AutomatizacionrevisionFactory init() {\r\n\t\ttry {\r\n\t\t\tAutomatizacionrevisionFactory theAutomatizacionrevisionFactory = (AutomatizacionrevisionFactory)EPackage.Registry.INSTANCE.getEFactory(AutomatizacionrevisionPackage.eNS_URI);\r\n\t\t\tif (theAutomatizacionrevisionFactory != null) {\r\n\t\t\t\treturn theAutomatizacionrevisionFactory;\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 AutomatizacionrevisionFactoryImpl();\r\n\t}", "public TraversalStrategyFactory getInstance() {\n\t\treturn instance;\n\t}", "public static synchronized ANSSRegionsFactory getFactory() {\n return getFactory(true);\n }", "public CoreFactory getCoreFactory() {\n\t\treturn (CoreFactory)getEFactoryInstance();\n\t}", "public abstract ProductFactory getFactory();", "public static TestAcceptFactory instance() {\n return TestAcceptFactory._instance;\n }", "public static VizualizerFactory init()\n {\n try\n {\n VizualizerFactory theVizualizerFactory = (VizualizerFactory)EPackage.Registry.INSTANCE.getEFactory(VizualizerPackage.eNS_URI);\n if (theVizualizerFactory != null)\n {\n return theVizualizerFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new VizualizerFactoryImpl();\n }", "public static LambdaFactory get() {\n return get(LambdaFactoryConfiguration.get());\n }", "public StoreFactory getStoreFactory()\r\n {\r\n return (StoreFactory)getEFactoryInstance();\r\n }", "ProvenanceFactory getProvenanceFactory();", "public static Version getVersion() {\r\n\t\tif (VERSION == null) {\r\n\t\t\tfinal Properties props = new Properties();\r\n\t\t\tint[] vs = { 0, 0, 0 };\r\n\t\t\tboolean stable = false;\r\n\t\t\ttry {\r\n\t\t\t\tprops.load(GoogleCalXPlugin.class.getResourceAsStream(\"/META-INF/maven/de.engehausen/googlecalx/pom.properties\"));\r\n\t\t\t\tfinal String pomVersion = props.getProperty(\"version\");\r\n\t\t\t\tstable = !pomVersion.contains(\"SNAPSHOT\");\r\n\t\t\t\tfinal StringTokenizer tok = new StringTokenizer(pomVersion, \".\");\r\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile (i < 3 && tok.hasMoreTokens()) {\r\n\t\t\t\t\tfinal String str = tok.nextToken();\r\n\t\t\t\t\tfinal int cut = str.indexOf('-');\r\n\t\t\t\t\tif (cut > 0) {\r\n\t\t\t\t\t\tvs[i++] = Integer.parseInt(str.substring(0, cut));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvs[i++] = Integer.parseInt(str);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstable = false;\r\n\t\t\t}\r\n\t\t\tVERSION = new Version(vs[0], vs[1], vs[2], stable);\r\n\t\t}\r\n\t\treturn VERSION;\r\n\t}", "public Version getVersion() {\n return version;\n }", "@OnThread(Tag.Any)\n public static Version getAPIVersion()\n {\n if (version == null)\n {\n try\n {\n Class<?> bootCls = Class.forName(\"bluej.Boot\");\n Field field = bootCls.getField(\"GREENFOOT_API_VERSION\");\n String versionStr = (String) field.get(null);\n version = new Version(versionStr);\n }\n catch (ClassNotFoundException | SecurityException | NoSuchFieldException |\n IllegalArgumentException | IllegalAccessException e)\n {\n Debug.reportError(\"Could not get Greenfoot API version\", e);\n throw new InternalGreenfootError(e);\n }\n }\n return version;\n }", "public JDOMFactory getFactory() {\n return this.factory;\n }", "Demo1Factory getDemo1Factory();", "public static Factory factory() {\n return ext_h::new;\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "public String getFoundVersion() {\r\n\t\treturn this.fnd;\r\n\t}", "public static BackendFactory getInstance() {\n return INSTANCE;\n }", "public static PiviFactory init() {\r\n\t\ttry {\r\n\t\t\tPiviFactory thePiviFactory = (PiviFactory)EPackage.Registry.INSTANCE.getEFactory(PiviPackage.eNS_URI);\r\n\t\t\tif (thePiviFactory != null) {\r\n\t\t\t\treturn thePiviFactory;\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 PiviFactoryImpl();\r\n\t}", "public static VariabilityFactory init() {\n\t\ttry {\n\t\t\tVariabilityFactory theVariabilityFactory = (VariabilityFactory)EPackage.Registry.INSTANCE.getEFactory(VariabilityPackage.eNS_URI);\n\t\t\tif (theVariabilityFactory != null) {\n\t\t\t\treturn theVariabilityFactory;\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 VariabilityFactoryImpl();\n\t}", "private IPluginVersion toVersion( Version version ) {\n IPluginVersion pluginVersion = this.pluginVersionFactory.create();\n\n //fill the instance\n pluginVersion.setBranch( version.getBranch() );\n pluginVersion.setName( version.getName() );\n String downloadUrl = version.getPackageUrl();\n if ( downloadUrl != null ) {\n downloadUrl = downloadUrl.trim();\n pluginVersion.setDownloadUrl( downloadUrl );\n pluginVersion.setIsOsgi( downloadUrl.endsWith( OSGI_URL_SUFFIX ) );\n }\n pluginVersion.setVersion( version.getVersion() );\n pluginVersion.setSamplesDownloadUrl( version.getSamplesUrl() );\n pluginVersion.setDescription( version.getDescription() );\n pluginVersion.setChangelog( version.getChangelog() );\n pluginVersion.setBuildId( version.getBuildId() );\n //pluginVersion.setReleaseDate( version.getReleaseDate() );\n pluginVersion.setMinParentVersion( version.getMinParentVersion() );\n pluginVersion.setMaxParentVersion( version.getMaxParentVersion() );\n\n // TODO: use factory for DI?\n org.pentaho.marketplace.domain.model.entities.serialization.jaxb.dto.DevelopmentStage dtoDevStage = version.getDevelopmentStage();\n if ( dtoDevStage != null ) {\n IDevelopmentStage devStage = new DevelopmentStage( dtoDevStage.getLane().value(),\n String.valueOf( dtoDevStage.getPhase() ) );\n pluginVersion.setDevelopmentStage( devStage );\n }\n\n //return the instance\n return pluginVersion;\n }", "public static SingletonColorFactory getInstance() {\n\t\treturn instance;\n\t}", "public static ModelSearchDirectoryScopeFactory getInstance()\n {\n return instance == null ? instance = new ModelSearchDirectoryScopeFactory() : instance;\n }", "public static ServiceLocatorFactory getInstance() {\n return INSTANCE;\n }", "public static SpeciesCarnivorousFactory getInstance() {\n\t\treturn uniqueInstance;\n\t}", "public Version getFixture()\n\t\tthrows Exception {\n\t\tif (fixture == null) {\n\t\t\tfixture = new Version(\"1\");\n\t\t}\n\t\treturn fixture;\n\t}", "@SuppressWarnings(\"unchecked\")\n public Version getVersionById(Long versionId) {\n // Get session and begin transaction\n Session session = DBHelper.getSession();\n Transaction transaction = session.beginTransaction();\n\n Version version = session.get(Version.class, versionId);\n\n // Commit and close\n transaction.commit();\n session.close();\n\n return version;\n }", "public static GpflFactory init()\n {\n try\n {\n GpflFactory theGpflFactory = (GpflFactory)EPackage.Registry.INSTANCE.getEFactory(GpflPackage.eNS_URI);\n if (theGpflFactory != null)\n {\n return theGpflFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new GpflFactoryImpl();\n }", "public final Vertex.Factory<? extends Vertex> vertexFactory() { return vertexFactory; }", "public interface VersionFactory extends Marshaller<Version> {\n /**\n * Creates a new version object for the provided node ID.\n */\n Version create(Identity nodeId);\n}", "public org.hl7.fhir.String getVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(VERSION$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Version createVersion(String versionValue);", "public static SelectorFactory getInstance() {\n return ServiceFactoryHolder.INSTANCE;\n }", "protected TriggerFactory getTriggerFactory() {\n\t\treturn this.triggerFactory;\n\t}", "Factory getFactory()\n {\n return configfile.factory;\n }", "public static final Factory<Edge> getFactory() {\r\n\t\treturn new Factory<Edge> () {\r\n\t\t\tprivate int nextId = 0;\r\n\t\t\tpublic Edge create() {\r\n\t\t\t\treturn new Edge(nextId++);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public static EditorFactory init() {\n\t\ttry {\n\t\t\tEditorFactory theEditorFactory = (EditorFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://opaeum.org/uimetamodel/editor/1.0\"); \n\t\t\tif (theEditorFactory != null) {\n\t\t\t\treturn theEditorFactory;\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 EditorFactoryImpl();\n\t}", "public static XmlCodecFactory getInstance() {\n return factory;\n }", "public static DAOFactory getInstance() {\r\n return instance;\r\n }", "public static CoreFactory init() {\n\t\ttry {\n\t\t\tCoreFactory theCoreFactory = (CoreFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://m2ling.org/core/0.1\"); \n\t\t\tif (theCoreFactory != null) {\n\t\t\t\treturn theCoreFactory;\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 CoreFactoryImpl();\n\t}", "public static Factory factory() {\n return ext_xspf::new;\n }", "public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }", "@java.lang.Override\n public long getVersion() {\n return instance.getVersion();\n }", "public static NPIconFactory getInstance()\r\n {\r\n if(instance==null)\r\n instance = new NPIconFactory();\r\n return instance;\r\n }", "public Single<Version> createVersion(\n Version version, Optional<RestRequestEnhancer> restRequestEnhancer) {\n\n RestRequest.Builder requestBuilder = RestRequest.builder()\n .method(HttpMethod.POST)\n .basePath(DEFAULT_BASE_PATH)\n .path(\"/rest/api/3/version\");\n\n Map<String, String> pathParams = new HashMap<>();\n requestBuilder.pathParams(pathParams);\n\n Map<String, Collection<String>> queryParams = new HashMap<>();\n requestBuilder.queryParams(queryParams);\n\n Map<String, String> headers = new HashMap<>();\n requestBuilder.headers(headers);\n\n requestBuilder.requestBody(Optional.of(version));\n\n return restClient.callEndpoint(requestBuilder.build(), restRequestEnhancer, returnType_createVersion);\n }", "public static Testing2Factory init() {\n\t\ttry {\n\t\t\tTesting2Factory theTesting2Factory = (Testing2Factory)EPackage.Registry.INSTANCE.getEFactory(Testing2Package.eNS_URI);\n\t\t\tif (theTesting2Factory != null) {\n\t\t\t\treturn theTesting2Factory;\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 Testing2FactoryImpl();\n\t}", "Class<?> getFactoryClass();", "public static DaoFactory getInstance() {\n if (daoFactory == null) {\n synchronized (DaoFactory.class) {\n if (daoFactory == null) {\n daoFactory = new JDBCDaoFactory();\n }\n }\n }\n return daoFactory;\n }", "public static EnergyEntityFactory getInstance() {\r\n if (instance == null) {\r\n instance = new EnergyEntityFactory();\r\n }\r\n return instance;\r\n }", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "public static DaoFactory getInstance(){\n\t\tif(daoFactory==null){\n\t\t\tdaoFactory = new DaoFactory();\n\t\t}\n\t\treturn daoFactory;\n\t}", "public static BuiltinFactory init() {\n\t\ttry {\n\t\t\tBuiltinFactory theBuiltinFactory = (BuiltinFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.soluvas.com/schema/story.builtin/1.0\"); \n\t\t\tif (theBuiltinFactory != null) {\n\t\t\t\treturn theBuiltinFactory;\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 BuiltinFactoryImpl();\n\t}", "protected FormatVersion<TargetType, ReaderType> version(int version) {\n FormatVersion<TargetType, ReaderType> v = this.versions[version];\n if (v == null) {\n v = new FormatVersion<>(version);\n this.versions[v.getVersion()] = v;\n }\n\n return v;\n }", "public static EngineBuilderFactory getInstance() {\n if (instance == null) {\n instance = new EngineBuilderFactory();\n }\n\n return instance;\n }", "public static ProyectoFactory init() {\r\n\t\ttry {\r\n\t\t\tProyectoFactory theProyectoFactory = (ProyectoFactory)EPackage.Registry.INSTANCE.getEFactory(ProyectoPackage.eNS_URI);\r\n\t\t\tif (theProyectoFactory != null) {\r\n\t\t\t\treturn theProyectoFactory;\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 ProyectoFactoryImpl();\r\n\t}", "public static borFactory init() {\n\t\ttry {\n\t\t\tborFactory theborFactory = (borFactory)EPackage.Registry.INSTANCE.getEFactory(borPackage.eNS_URI);\n\t\t\tif (theborFactory != null) {\n\t\t\t\treturn theborFactory;\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 borFactoryImpl();\n\t}", "public PriceFactory getCurrentPriceFactory()\r\n\t{\n\t\treturn OrderManager.getInstance().getPriceFactory();\r\n\t}", "public OnshapeVersion version() throws OnshapeException {\n return call(\"GET\", \"/build\", null, new HashMap<>(), new HashMap<>(), OnshapeVersion.class);\n }", "public static OpenflowSfcFlowProgrammer getInstance() {\n return instance;\n }", "public static ResultFactory init() {\n\t\ttry {\n\t\t\tResultFactory theResultFactory = (ResultFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.eclipselabs.org/emftriple/result\"); \n\t\t\tif (theResultFactory != null) {\n\t\t\t\treturn theResultFactory;\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 ResultFactoryImpl();\n\t}", "public static PedidoFactory init() {\n\t\ttry {\n\t\t\tPedidoFactory thePedidoFactory = (PedidoFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(PedidoPackage.eNS_URI);\n\t\t\tif (thePedidoFactory != null) {\n\t\t\t\treturn thePedidoFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new PedidoFactoryImpl();\n\t}", "public static XCanopusFactory init()\r\n {\r\n try\r\n {\r\n XCanopusFactory theXCanopusFactory = (XCanopusFactory)EPackage.Registry.INSTANCE.getEFactory(XCanopusPackage.eNS_URI);\r\n if (theXCanopusFactory != null)\r\n {\r\n return theXCanopusFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new XCanopusFactoryImpl();\r\n }", "public FullVersion MprisVersion();", "public float getVersion();", "public static EcoreFactory init() {\r\n\t\ttry {\r\n\t\t\tEcoreFactory theEcoreFactory = (EcoreFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://lumaqq.tsinghua.edu/ecore/edu/tsinghua/lumaqq/ecore\"); \r\n\t\t\tif (theEcoreFactory != null) {\r\n\t\t\t\treturn theEcoreFactory;\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 EcoreFactoryImpl();\r\n\t}", "public AutomatizacionrevisionFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public static Feudalism getInstance(){\n\t\treturn f;\r\n\t}", "public static Factory factory() {\n return Document_print::new;\n }", "public static FilterCacheFactory getInstance() {\n return instance;\n }", "public static EcoreFactory init() {\n try {\n EcoreFactory theEcoreFactory = (EcoreFactory) EPackage.Registry.INSTANCE.getEFactory(EcorePackage.eNS_URI);\n if (theEcoreFactory != null) {\n return theEcoreFactory;\n }\n }\n catch (Exception exception) {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new EcoreFactoryImpl();\n }", "public static LibValid getInstance() {\n\t\treturn instance;\n\t}", "@Override\n\tpublic Factory get(Serializable id) {\n\t\treturn mapper.get(id);\n\t}", "public static EsoFactory init()\r\n {\r\n try\r\n {\r\n EsoFactory theEsoFactory = (EsoFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.cau.de/cs/kieler/sim/eso/Eso\"); \r\n if (theEsoFactory != null)\r\n {\r\n return theEsoFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new EsoFactoryImpl();\r\n }" ]
[ "0.6859344", "0.66546607", "0.6453314", "0.63815534", "0.6257926", "0.6229275", "0.598491", "0.59791607", "0.5975639", "0.5953531", "0.5933627", "0.59237313", "0.58983546", "0.5817936", "0.5810937", "0.580235", "0.57781893", "0.57459843", "0.5716837", "0.5692524", "0.5686535", "0.56780463", "0.5656574", "0.5656574", "0.5656574", "0.5656574", "0.5650633", "0.5646561", "0.56450814", "0.56000566", "0.5590418", "0.557536", "0.5573794", "0.5527467", "0.5513599", "0.5492071", "0.54878885", "0.53737944", "0.5364969", "0.53612536", "0.5357679", "0.53158015", "0.5309535", "0.5306229", "0.52966636", "0.5295197", "0.52857107", "0.5281601", "0.5274773", "0.5273994", "0.5267404", "0.5262666", "0.5249053", "0.5246768", "0.52355886", "0.52215755", "0.5192767", "0.5166807", "0.5163016", "0.51613176", "0.5156061", "0.5144516", "0.51358926", "0.5131837", "0.5116493", "0.5114738", "0.5112722", "0.5093569", "0.5090042", "0.5087638", "0.50848037", "0.5084342", "0.5080289", "0.5077677", "0.5074683", "0.5073726", "0.5072761", "0.50630784", "0.50627315", "0.50514793", "0.5043627", "0.5040458", "0.5037931", "0.50370985", "0.50134367", "0.5010739", "0.5007828", "0.5006364", "0.50005573", "0.4989229", "0.49890944", "0.49818024", "0.49730873", "0.49730587", "0.49699777", "0.49669778", "0.49642622", "0.49577683", "0.49575934", "0.49525154" ]
0.8578275
0
This is implemented by anyone that wants to simulate CPU instruction code. Think of this as a linebyline executor of some machine code run by a machine thread.
public interface Code { /** * Called to execute the "next" line of code in this * virtual hardware component. * * This can be any action (or sequence of actions) as desired by * the implementation to simulate hardware functions. * * @return true when this "process" wants to exit. */ public boolean executeNext(); /** * Called when this instruction set should terminate execution permanently. * This method SHOULD NOT modify the process Identifier or CPU. It should * only shut down any processing needs and reset internal data if this * process is executed again. */ public void shutdown(); /** * Get the program name. */ public String getName(); // </editor-fold> }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void run() {\n int code = memory[pc];\n while (code != 0) {\n nextCode(code);\n code = memory[++pc];\n }\n }", "public void run() {\r\n\t\t\r\n\t\t// While the PC is less than allocated memory and less than SP\r\n\t\twhile (getPC() < getLIM() && getPC() < getSP()) {\r\n\t\t\tm_instr = m_MMU.fetch(getPC());\r\n\t\t\t// Increment PC counter by Instruction Size now\r\n\t\t\t// since nowhere lower does it get called again\r\n\t\t\tsetPC(getPC() + INSTRSIZE);\r\n\t\t\t\r\n\t //increment clock\r\n addTicks(1);\r\n\t\t\t\r\n\t\t\tif (m_verbose) {\r\n\t\t\t\tregDump();\r\n\t\t\t\tprintInstr(m_instr);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Parse and execute instruction\r\n\t\t\texecuteInstr(m_instr);\r\n\t\t\t\r\n\t\t\t// check interrupts\r\n\t\t\tcheckForIOInterrupt();\r\n\t\t}\r\n\t\t\r\n\t}", "protected final void emulateNextInstruction() {\r\n // we have to check for interrupts?\r\n if (this.isCheckInterrupt) {\r\n serviceIRQorNMI();\r\n }\r\n\r\n // determine address of the next instruction\r\n this.currentInstructionAddress = getPC();\r\n // get the instruction from memory\r\n final CPU6502Instruction instruction = this.instructions[this.memory[this.currentInstructionAddress] & 0xff];\r\n\r\n // interpret the instruction\r\n this.cycles += instruction.cycles;\r\n addPC(instruction.size);\r\n\r\n if (DEBUG_CODE) {\r\n System.out.println(\"A: \" + this.ac + \", X: \" + this.x + \", Y: \" + this.y + \", status: \" + (this.zeroFlag ? \"Z\" : \"-\") + (this.carryFlag ? \"C\" : \"-\") + (this.signFlag ? \"N\" : \"-\"));\r\n System.out.println(\"pc: $\" + Integer.toHexString(this.pc - instruction.size) + \", opCode: $\" + Integer.toHexString(instruction.opCode) + \", ins: \" + disassemble(instruction));\r\n }\r\n\r\n emulateInstruction(instruction);\r\n }", "public void execute() {\n\t\tBitString opCodeStr;\n\t\tint opCode;\n\n\t\twhile (true) {\n\t\t\t// Fetch the instruction\n\t\t\tmIR = mMemory[mPC.getValue()];\n\t\t\tmPC.addOne();\n\n\t\t\t// Decode the instruction's first 4 bits \n\t\t\t// to figure out the opcode\n\t\t\topCodeStr = mIR.substring(0, 4);\n\t\t\topCode = opCodeStr.getValue();\n\n\t\t\t// What instruction is this?\n\t\t\tif (opCode == 9) { // NOT\n\t\t\t\texecuteNot();\n\t\t\t} else if (opCode == 0) { //BR\n\t\t\t\texecuteBR();\n\t\t\t} else if (opCode == 1) { //ADD\n\t\t\t\texecuteAdd();\n\t\t\t} else if (opCode == 2) { //LD\n\t\t\t\texecuteLoad();\n\t\t\t} else if (opCode == 5) { //AND\n\t\t\t\texecuteAnd();\n\t\t\t} else if (opCode == 6) { //LDR\n\t\t\t\texecuteLDR();\n\t\t\t} else if (opCode == 7) { //STR\n\t\t\t\texecuteSTR();\n\t\t\t} else if (opCode == 10) { //LDI\n\t\t\t\texecuteLDI();\n\t\t\t} else if (opCode == 11) { //STI\n\t\t\t\texecuteSTI();\n\t\t\t} else if (opCode == 14) { //LEA\n\t\t\t\texecuteLEA();\n\t\t\t} else if (opCode == 15) { //TRAP\n\t\t\t\tBitString trapStr = mIR.substring(8, 8);\n\t\t\t\tint trapVal = trapStr.getValue();\n\t\t\t\tif (trapVal == 33){ //x21 = binary 18 means OUT\n\t\t\t\t\texecuteOUT();\n\t\t\t\t}else if(trapVal == 37) { //x25 = binary 37 means HALT\n\t\t\t\t\treturn; //halt instruction means to stop executing.\n\t\t\t\t} else{ System.out.println(\"Not valid Trap Command.\");}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"INVALID INSTRUCTION ENTERED.\");\n\t\t\t}\n\t\t\t// TODO - Others\n\t\t}\n\t}", "public interface IInstruction {\r\n /**\r\n * Returns how many cycles this instruction needs to execute.\r\n * \r\n * @return The number of cycles this instruction takes.\r\n */\r\n public int getCycles();\r\n \r\n /**\r\n * Executes the instruction under a given environment.\r\n * \r\n * @param cpu The UCPU16 instance.\r\n * @param a The second parameter of a binary instruction as an addressing mode,\r\n * or the only parameter of an unary instruction.\r\n * @param b The first parameter of a binary instruction as an addressing mode.\r\n * @param am The additional argument for a.\r\n * @param bm The additional argument for b.\r\n */\r\n public void execute(UCPU16 cpu, IAddressingMode a, IAddressingMode b, int am, int bm);\r\n \r\n /**\r\n * Returns the symbolic name of this operation for the debugger\r\n * and disassembler.\r\n * \r\n * @return The symbolic name of this instruction operation.\r\n */\r\n public String getName();\r\n}", "public void cpu() {\n\n\t\tint bytecode;\n\t\tint v1, v2;\n\t\tint address;\n\t\twhile (true) {\n\t\t\tbytecode = code[ip++]; // fetch\n\t\t\t\n\t\t\t//Decode\n\t\t\tswitch (bytecode) {\n\t\t\t\n\t\t\tcase VMParser.PUSH:\n\t\t\t\t//System.out.println(\"PUSH\");\n\t\t\t\tpush(code[ip++]);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.POP:\n\t\t\t\t//System.out.println(\"POP\");\n\t\t\t\tpop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.ADD:\n\t\t\t\t//System.out.println(\"ADD\");\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tpush(v1 + v2);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SUB:\n\t\t\t\t//System.out.println(\"SUB\");\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tpush(v1 - v2);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.MULT:\n\t\t\t\t//System.out.println(\"MULT\");\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tpush(v1 * v2);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.DIV:\n\t\t\t\t//System.out.println(\"DIV\");\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tpush(v1 / v2);\n\t\t\t\tbreak;\n\n\t\t\tcase VMParser.SW:\n\t\t\t\t//System.out.println(\"SW\");\n\t\t\t\taddress = pop();\n\t\t\t\tv2 = pop();\n\t\t\t\tmemory[address] = v2;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LW:\n\t\t\t\t//System.out.println(\"LW\");\n\t\t\t\taddress = pop();\n\t\t\t\tpush(memory[address]);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.BRANCHEQUAL:\n\t\t\t\t//System.out.println(\"BRANCHEQUAL\");\n\t\t\t\taddress = code[ip++];\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tif (v1 == v2)\n\t\t\t\t\tip = address;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.JS:\n\t\t\t\t//System.out.println(\"JS\");\n\t\t\t\tra = ip;\n\t\t\t\taddress = pop();\n\t\t\t\tip = address;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LRA:\n\t\t\t\t//System.out.println(\"LRA\");\n\t\t\t\tpush(ra);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SRA:\n\t\t\t\t//System.out.println(\"SRA\");\n\t\t\t\tra = pop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LRV:\n\t\t\t\t//System.out.println(\"LRV\");\n\t\t\t\tpush(rv);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SRV:\n\t\t\t\t//System.out.println(\"SRV\");\n\t\t\t\trv = pop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LHP:\n\t\t\t\t//System.out.println(\"LHP\");\n\t\t\t\tpush(hp);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SHP:\n\t\t\t\t//System.out.println(\"SHP\");\n\t\t\t\thp = pop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LFP:\n\t\t\t\t//System.out.println(\"LFP\");\n\t\t\t\tpush(fp);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SFP:\n\t\t\t\t//System.out.println(\"SFP\");\n\t\t\t\tfp = pop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.CFP:\n\t\t\t\t//System.out.println(\"CFP\");\n\t\t\t\tfp = sp;\n\t\t\t\tbreak;\n\n\n\t\t\tcase VMParser.BRANCH:\n\t\t\t\t//System.out.println(\"BRANCH\");\n\t\t\t\taddress = code[ip++];\n\t\t\t\tip = address;\n\t\t\t\tbreak;\n\n\t\t\tcase VMParser.BRANCHLESS:\n\t\t\t\t//System.out.println(\"BRANCHLESS\");\n\t\t\t\taddress = code[ip++];\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tif (v1 <= v2)\n\t\t\t\t\tip = address;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.BRANCHGREAT:\n\t\t\t\t//System.out.println(\"BRANCHGREAT\");\n\t\t\t\taddress = code[ip++];\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tif (v1 >= v2)\n\t\t\t\t\tip = address;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.PRINT:\n\t\t\t\t//System.out.println(\"PRINT\");\n\t\t\t\tSystem.out.println(memory[sp]);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase VMParser.HALT:\n\t\t\t\t//System.out.println(\"HALT\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void execute() {\n if(cb) {\n Main.cb.step(Main.cpu.get8BitImm());\n }\n }", "public static int step() {\n if (instructions_addr.get(line_count) == null) {\n // System.exit(1);\n return -1;\n }\n String[] in = (instructions_addr.get(line_count)).split(\"\\\\s+\");\n int r1 = 0;\n int r2 = 0;\n int r3 = 0;\n try {\n r1 = registers.get(in[1]);\n r2 = registers.get(in[2]);\n r3 = registers.get(in[3]);\n } catch (NullPointerException npe) {\n // sike no exception\n } catch (ArrayIndexOutOfBoundsException e) {\n\n }\n System.out.println(line_count+Arrays.toString(in));\n String op = in[0];\n switch (op) {\n case \"add\":\n register[r1] = register[r2] + register[r3];\n line_count = line_count + 1;\n break;\n\n case \"sub\":\n register[r1] = register[r2] - register[r3];\n line_count = line_count + 1;\n break;\n\n case \"addi\":\n register[r1] = register[r2] + Integer.parseInt(in[3]);\n line_count = line_count + 1;\n break;\n\n case \"beq\":\n if (register[r1] == register[r2]) {\n actual(1);\n line_count = labels_addr.get(in[3]);\n } else {\n actual(0);\n line_count++;\n }\n break;\n\n case \"bne\":\n if (register[r1] != register[r2]) {\n line_count = labels_addr.get(in[3]);\n actual(1);\n } else {\n line_count = line_count + 1;\n actual(0);\n }\n break;\n\n case \"or\":\n register[r1] = register[r2] | register[r3];\n line_count = line_count + 1;\n break;\n\n case \"and\":\n register[r1] = register[r2] & register[r3];\n line_count = line_count + 1;\n break;\n\n case \"sll\":\n register[r1] = register[r2] << Integer.parseInt(in[3]);\n line_count = line_count + 1;\n break;\n\n case \"slt\":\n if (register[r2] < register[r3]) {\n register[r1] = 1;\n } else {\n register[r1] = 0;\n }\n line_count = line_count + 1;\n break;\n\n case \"lw\":\n r2 = Integer.parseInt(in[2].substring(0, in[2].indexOf(\"(\")));\n r3 = registers.get(in[3].substring(0, in[3].indexOf(\")\"))); // imm\n register[r1] = data_mem[r2 + register[r3]];\n line_count = line_count + 1;\n break;\n\n case \"sw\":\n r2 = Integer.parseInt(in[2].substring(0, in[2].indexOf(\"(\")));\n r3 = registers.get(in[3].substring(0, in[3].indexOf(\")\"))); // imm\n data_mem[r2 + register[r3]] = register[r1];\n line_count = line_count + 1;\n break;\n\n case \"j\":\n line_count = labels_addr.get(in[1]);\n break;\n\n case \"jr\":\n line_count = register[31];\n break;\n\n case \"jal\":\n register[31] = line_count + 1;\n line_count = labels_addr.get(in[1]);\n break;\n\n default:\n line_count = line_count + 1;\n }\n return 1;\n }", "@Override\n\tprotected void doExecute() throws InstructionExecutionException {\n\t\n\t}", "public void execute(UCPU16 cpu, IAddressingMode a, IAddressingMode b, int am, int bm);", "void execute()\n\t{\n\t\tVM.top++;\n\t\tVM.opStack[VM.top] = arg();\n\t\tVM.pc++;\n\t}", "public void run() {\n\n // before thread running, trigger the listeners\n for(Consumer<JvmThread> consumer : startListeners) {\n consumer.accept(jvmThread);\n }\n\n while(jvmThread.existFrame()) {\n // read instruction\n Instruction instruction = jvmThread.currentFrame().readNextInstruction();\n\n // keep the track of instructions\n instructionsExecuted.add(instruction);\n\n // before this instruction's execution, trigger the listeners\n if(beforeInstructionExecutionListeners.containsKey(instruction.getClass())) {\n for(BiConsumer<Instruction, JvmThread> biConsumer : beforeInstructionExecutionListeners.get(instruction.getClass())) {\n biConsumer.accept(instruction, jvmThread);\n }\n }\n\n // execute instruction\n instruction.execute(jvmThread.currentFrame());\n\n // after this instruction's execution, trigger the listeners\n if(afterInstructionExecutionListeners.containsKey(instruction.getClass())) {\n for(BiConsumer<Instruction, JvmThread> biConsumer : afterInstructionExecutionListeners.get(instruction.getClass())) {\n biConsumer.accept(instruction, jvmThread);\n }\n }\n }\n\n // after thread running, trigger the listeners\n for(Consumer<JvmThread> consumer : endListeners) {\n consumer.accept(jvmThread);\n }\n }", "public void executeLDR(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString sourceBS = mIR.substring(7, 3);\n\t\tBitString offset6 = mIR.substring(10, 6);\n\n\t\tBitString wantedVal = mMemory[mRegisters[sourceBS.getValue()].getValue2sComp() + offset6.getValue2sComp()];\n\t\tmRegisters[destBS.getValue()] = wantedVal;\n\n\t\tsetConditionalCode(wantedVal);\n\t}", "@Override protected void fetch() throws MainMemory.InvalidAddressException {\n int pcVal = pc.get();\n UnsignedByte[] ins = mem.read (pcVal, 2);\n byte opCode = (byte) (ins[0].value() >>> 4);\n insOpCode.set (opCode);\n insOp0.set (ins[0].value() & 0x0f);\n insOp1.set (ins[1].value() >>> 4);\n insOp2.set (ins[1].value() & 0x0f);\n insOpImm.set (ins[1].value());\n pcVal += 2;\n switch (opCode) {\n case 0x0:\n case 0xb:\n\tlong opExt = mem.readIntegerUnaligned (pcVal);\n\tpcVal += 4;\n\tinsOpExt.set (opExt);\n\tinstruction.set (ins[0].value() << 40 | ins[1].value() << 32 | opExt);\n\tbreak;\n default:\n\tinsOpExt.set (0);\n\tinstruction.set (ins[0].value() << 40 | ins[1].value() << 32);\n }\n pc.set (pcVal);\n }", "public void run() throws Exception{\n boolean running = false;\n while ((instrPointer != -1) && (instrPointer < programMemory.getSize())){\n int currentInstruction = instrPointer;\n if(debugMode == 1)\n machineTrace();\n try{\n step();\n }catch(Exception e){\n Throwable ee = e.getCause ();\n if(ee instanceof IllegalArgumentException){\n System.out.println(\"Error in Instruction: \");\n System.out.println(programMemory.getInstruction(currentInstruction));\n System.out.println(ee);\n }else if (ee instanceof IndexOutOfBoundsException){\n System.out.println(\"Error in Instruction: \");\n System.out.println(programMemory.getInstruction(currentInstruction));\n System.out.println(ee);\n }else{\n System.out.println(e);\n }\n instrPointer = -1;\n executedIntructions--;\n }\n executedIntructions++;\n }\n if(debugMode == 1)\n machineTrace();\n\n stop();\n }", "@Override\n\tpublic void execute(Machine m) {\n\t\tint value1 = m.getRegisters().getRegister(op1);\n\t\tint value2 = m.getRegisters().getRegister(op2);\n\t\tm.getRegisters().setRegister(result, value1 + value2);\n\t}", "public interface InstructionInterface extends Attributable {\n\n /**\n * this is for cases where we need the Instruction type. Try to use InstructionInterface in clients\n */\n Instruction asInstruction();\n \n int getByteCode();\n boolean isFirstInstruction();\n boolean isBackJump();\n boolean isExtendedInstruction();\n Instruction getNext();\n int getInstructionIndex();\n int getPosition();\n MethodInfo getMethodInfo();\n int getLength();\n Instruction getPrev();\n boolean isCompleted(ThreadInfo ti);\n String getSourceLine();\n String getSourceLocation();\n Instruction execute(ThreadInfo ti);\n String toPostExecString();\n String getMnemonic();\n int getLineNumber();\n String getFileLocation();\n String getFilePos();\n Instruction getNext (ThreadInfo ti);\n\n \n \n //.. and probably a lot still missing\n}", "@Override\n public void execute(CPU cpu, byte[] data) {\n cpu.setY(data[0]);\n cpu.sr.N(data[0]);\n cpu.sr.Z(data[0]);\n cpu.end();\n }", "Instruction asInstruction();", "public abstract void recompileRun(int opcode);", "private int binaryExecute(int i) {\r\n\t\tif(!(compiler.getInstructionField().containsKey(sim40.memory[i+1]) && compiler.getInstructionField().get(sim40.memory[i+1]).equals(\"insert\")))\r\n\t\t\tthis.errorStream.getErrors().add(new OutputError(this.sim40.lines[sim40.memory[i+1]],\"Must have a matching 'insert' instruction\"));\r\n\r\n\t\telse {\t\t\r\n\t\t\tswitch(sim40.memory[i]) {\r\n\r\n\t\t\t/* insert is 10 but is already performed during compilation */\r\n\r\n\t\t\t/* Binary Instructions */\t\r\n\t\t\tcase 11: /* load */\r\n\t\t\t\tsim40.memory[Simulator.ACCUMULATOR_ADDRESS] = sim40.memory[sim40.memory[++i]];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 12: /* xload */\r\n\t\t\t\tsim40.memory[Simulator.XREG_ADDRESS] = sim40.memory[sim40.memory[++i]];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 13: /* yload */\r\n\t\t\t\tsim40.memory[Simulator.YREG_ADDRESS] = sim40.memory[sim40.memory[++i]]; \r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 14: /* add */\r\n\t\t\t\tsim40.memory[Simulator.ACCUMULATOR_ADDRESS] += sim40.memory[sim40.memory[++i]];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 15: /* sub */\r\n\t\t\t\tsim40.memory[Simulator.ACCUMULATOR_ADDRESS] -= sim40.memory[sim40.memory[++i]];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 16: /* and */\r\n\t\t\t\tsim40.memory[Simulator.ACCUMULATOR_ADDRESS] &= sim40.memory[sim40.memory[++i]];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 17: /* or */\r\n\t\t\t\tsim40.memory[Simulator.ACCUMULATOR_ADDRESS] |= sim40.memory[sim40.memory[++i]];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 18: /* xor */\r\n\t\t\t\tsim40.memory[Simulator.ACCUMULATOR_ADDRESS] ^= sim40.memory[sim40.memory[++i]];\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn ++i;\r\n\t}", "private static void execute1()\n\t{\n\t\tboolean flushRegisterValues = false;\n\t\tboolean branchFUflag = false;\n\t\tExecutionOfOpcode functionUnit = new ExecutionOfOpcode();\n\t\tString controlFlowInstruction = TypesOfOperations.BNZ + \"|\" + TypesOfOperations.BZ + \"|\"\n\t\t\t\t+ TypesOfOperations.JUMP + \"|\" + TypesOfOperations.BAL + \"|\" + TypesOfOperations.HALT;\n\n\t\tif (latches.containsKey(\"D\"))\n\t\t{\n\t\t\tif (!latches.get(\"D\").isNOP())\n\t\t\t{\n\t\t\t\t// Check if the instruction in Decode stage is not Control flow\n\t\t\t\t// instruction\n\t\t\t\tif (!controlFlowInstruction.contains(latches.get(\"D\").getOperation()))\n\t\t\t\t{\n\t\t\t\t\tInstruction instructionEx = latches.get(\"D\");\n\t\t\t\t\t// TODO check the src 1 and src 2 with forwarding registers\n\t\t\t\t\tif ((forwardingReg != null) && (forwardingRegMEMtoEX != null)\n\t\t\t\t\t\t\t&& forwardingReg.getKey().equals(forwardingRegMEMtoEX.getKey()))\n\t\t\t\t\t{\n\t\t\t\t\t\tforwardingRegMEMtoEX.setValue(forwardingReg.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tlatches.put(\"D\", functionUnit.executeInstruction(latches.get(\"D\")));\n\t\t\t\t} else\n\t\t\t\t// Here we have the branch instruction\n\t\t\t\t{\n\t\t\t\t\tbranchFUflag = true;\n\t\t\t\t\tlatches.put(\"E\", stages.get(\"E\"));\n\t\t\t\t\tstages.put(\"E\", new Instruction()); // Add NOP in the ALU1\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!branchFUflag)\n\t\t\t{\n\t\t\t\tmoveInstruction(\"E\", \"D\");\n\t\t\t\tif (flushRegisterValues)\n\t\t\t\t\tflushRegister();\n\t\t\t}\n\t\t}\n\t}", "public void step() {\n try {\n int code = memory[pc];\n nextCode(code);\n pc++;\n dp.refresh(pc, stackRegister, compareRegister);\n } catch (Exception e) {\n con.cPrintln(\"Error : \" + e.toString());\n\n } catch (Error e) {\n con.cPrintln(\"Error : \" + e.getMessage());\n }\n }", "public abstract int simulate();", "@Override\n\tpublic void onStartInstrExecution(Instruction instr) {\n\t\t\n\t}", "protected void emulateInstruction(final CPU6502Instruction instruction) {\r\n switch (instruction.opGroup) {\r\n // official instructions\r\n case ADC:\r\n operationADC(getOperand(instruction) & 0xff);\r\n break;\r\n\r\n case AND:\r\n operationAND(getOperand(instruction) & 0xff);\r\n break;\r\n\r\n case ASL:\r\n if (instruction.addressMode == CPU6502Instruction.ACCUMULATOR) {\r\n this.carryFlag = this.ac >= 0x80;\r\n this.ac = (this.ac << 1) & 0xff;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n } else {\r\n operationASL(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case BCC:\r\n if (!this.carryFlag) {\r\n setPC(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case BCS:\r\n if (this.carryFlag) {\r\n setPC(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case BEQ:\r\n if (this.zeroFlag) {\r\n setPC(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case BIT:\r\n operationBIT(getOperand(instruction) & 0xff);\r\n break;\r\n\r\n case BMI:\r\n if (this.signFlag) {\r\n setPC(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case BNE:\r\n if (!this.zeroFlag) {\r\n setPC(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case BPL:\r\n if (!this.signFlag) {\r\n setPC(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case BRK:\r\n // break is followed by another byte\r\n addPC(1);\r\n serviceInterrupt(0xfffe);\r\n this.breakFlag = true;\r\n break;\r\n\r\n case BVC:\r\n if (!this.overflowFlag) {\r\n setPC(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case BVS:\r\n if (this.overflowFlag) {\r\n setPC(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case CLC:\r\n this.carryFlag = false;\r\n break;\r\n\r\n case CLV:\r\n this.overflowFlag = false;\r\n break;\r\n\r\n case CLD:\r\n this.decimalFlag = false;\r\n break;\r\n\r\n case CLI:\r\n this.interruptFlag = false;\r\n this.isCheckInterrupt = true;\r\n break;\r\n\r\n case CMP:\r\n operationCMP(getOperand(instruction) & 0xff);\r\n break;\r\n\r\n case CPX:\r\n operationCPX(getOperand(instruction) & 0xff);\r\n break;\r\n\r\n case CPY:\r\n operationCPY(getOperand(instruction) & 0xff);\r\n break;\r\n\r\n case DEC:\r\n operationDEC(getOperandAddress(instruction));\r\n break;\r\n\r\n case DEX:\r\n --this.x;\r\n this.x &= 0xff;\r\n this.zeroFlag = this.x == 0;\r\n this.signFlag = this.x >= 0x80;\r\n break;\r\n\r\n case DEY:\r\n --this.y;\r\n this.y &= 0xff;\r\n this.zeroFlag = this.y == 0;\r\n this.signFlag = this.y >= 0x80;\r\n break;\r\n\r\n case EOR:\r\n operationEOR(getOperand(instruction) & 0xff);\r\n break;\r\n\r\n case INC:\r\n operationINC(getOperandAddress(instruction));\r\n break;\r\n\r\n case INX:\r\n ++this.x;\r\n this.x &= 0xff;\r\n this.zeroFlag = this.x == 0;\r\n this.signFlag = this.x >= 0x80;\r\n break;\r\n\r\n case INY:\r\n ++this.y;\r\n this.y &= 0xff;\r\n this.zeroFlag = this.y == 0;\r\n this.signFlag = this.y >= 0x80;\r\n break;\r\n\r\n case JMP:\r\n setPC(getOperandAddress(instruction));\r\n break;\r\n\r\n case JSR:\r\n operationJSR(getOperandAddress(instruction));\r\n break;\r\n\r\n case LDA:\r\n this.ac = getOperand(instruction) & 0xff;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n break;\r\n\r\n case LDX:\r\n this.x = getOperand(instruction) & 0xff;\r\n this.zeroFlag = this.x == 0;\r\n this.signFlag = this.x >= 0x80;\r\n break;\r\n\r\n case LDY:\r\n this.y = getOperand(instruction) & 0xff;\r\n this.zeroFlag = this.y == 0;\r\n this.signFlag = this.y >= 0x80;\r\n break;\r\n\r\n case LSR:\r\n if (instruction.addressMode == CPU6502Instruction.ACCUMULATOR) {\r\n operationLSRAccumulator();\r\n } else {\r\n operationLSR(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case NOP:\r\n break;\r\n\r\n case ORA:\r\n operationORA(getOperand(instruction) & 0xff);\r\n break;\r\n\r\n case PHA:\r\n push((byte)this.ac);\r\n break;\r\n\r\n case PHP:\r\n this.breakFlag = true;\r\n push((byte) getStatusByte());\r\n this.breakFlag = false;\r\n break;\r\n\r\n case PLA:\r\n this.ac = pop() & 0xff;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n break;\r\n\r\n case PLP:\r\n setStatusByte(pop() & 0xff);\r\n this.breakFlag = false;\r\n this.isCheckInterrupt = true;\r\n break;\r\n\r\n case RTS:\r\n setPC((pop() & 0xff) + ((pop() & 0xff) << 8) + 1);\r\n break;\r\n\r\n case RTI:\r\n setStatusByte(pop() & 0xff);\r\n setPC((pop() & 0xff) + ((pop() & 0xff) << 8));\r\n this.breakFlag = false;\r\n this.isCheckInterrupt = true;\r\n break;\r\n\r\n case ROL:\r\n if (instruction.addressMode == CPU6502Instruction.ACCUMULATOR) {\r\n this.ac = operationROL((byte)this.ac) & 0xff;\r\n } else {\r\n operationROL(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case ROR:\r\n if (instruction.addressMode == CPU6502Instruction.ACCUMULATOR) {\r\n this.ac = operationROR((byte)this.ac) & 0xff;\r\n } else {\r\n operationROR(getOperandAddress(instruction));\r\n }\r\n break;\r\n\r\n case SBC:\r\n operationSBC(getOperand(instruction) & 0xff);\r\n break;\r\n\r\n case SEC:\r\n this.carryFlag = true;\r\n break;\r\n\r\n case SED:\r\n this.decimalFlag = true;\r\n break;\r\n\r\n case SEI:\r\n this.interruptFlag = true;\r\n break;\r\n\r\n case STA:\r\n writeByte(getOperandAddress(instruction), (byte)this.ac);\r\n break;\r\n\r\n case STX:\r\n writeByte(getOperandAddress(instruction), (byte)this.x);\r\n break;\r\n\r\n case STY:\r\n writeByte(getOperandAddress(instruction), (byte)this.y);\r\n break;\r\n\r\n case TSX:\r\n this.x = this.sp & 0xff;\r\n this.zeroFlag = this.x == 0;\r\n this.signFlag = this.x >= 0x80;\r\n break;\r\n\r\n case TXS:\r\n this.sp = this.x;\r\n break;\r\n\r\n case TXA:\r\n this.ac = this.x;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n break;\r\n\r\n case TAX:\r\n this.x = this.ac;\r\n this.zeroFlag = this.x == 0;\r\n this.signFlag = this.x >= 0x80;\r\n break;\r\n\r\n case TYA:\r\n this.ac = this.y;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n break;\r\n\r\n case TAY:\r\n this.y = this.ac;\r\n this.zeroFlag = this.y == 0;\r\n this.signFlag = this.y >= 0x80;\r\n break;\r\n\r\n // undocumented instructions\r\n // ALR = AND + LSR\r\n case ALR:\r\n operationAND(getOperand(instruction) & 0xff);\r\n operationLSRAccumulator();\r\n break;\r\n\r\n // ANC ANDs the contents of the A register with an immediate value and then \r\n // moves bit 7 of A into the Carry flag. \r\n case ANC:\r\n operationAND(getOperand(instruction) & 0xff);\r\n this.carryFlag = (this.ac & 0x80) != 0;\r\n break;\r\n\r\n // ARR = AND + ROR\r\n case ARR:\r\n operationAND(getOperand(instruction) & 0xff);\r\n this.ac = operationROR((byte)this.ac);\r\n break;\r\n\r\n // ASO = ASL + ORA\r\n case ASO: {\r\n final int address = getOperandAddress(instruction);\r\n\r\n operationASL(address);\r\n operationORA(readByte(address) & 0xff);\r\n break;\r\n }\r\n\r\n // AXA stores the result of A AND X AND the high byte of the target \r\n // address of the operand +1 in memory.\r\n case AXA: {\r\n final int adr2 = getOperandAddress(instruction);\r\n\r\n writeByte(adr2, (byte) (this.ac & this.x & ((adr2 >> 8) + 1)));\r\n break;\r\n }\r\n\r\n // AXS\r\n case AXS:\r\n writeByte(getOperandAddress(instruction), (byte) (this.ac & this.x));\r\n break;\r\n\r\n // DCM = DEC + CMP\r\n case DCM: {\r\n final int address = getOperandAddress(instruction);\r\n\r\n operationDEC(address);\r\n operationCMP(readByte(address) & 0xff);\r\n break;\r\n }\r\n\r\n // INS = INC + SBC\r\n case INS: {\r\n final int address = getOperandAddress(instruction);\r\n\r\n operationINC(address);\r\n operationSBC(readByte(address) & 0xff);\r\n break;\r\n }\r\n\r\n // LAS is not implemented\r\n case LAS:\r\n if (null != getLogger()) {\r\n getLogger().warning(\"Not implemented instruction at $\" + Integer.toHexString(this.currentInstructionAddress) + \": $\" + Integer.toHexString(this.memory[this.currentInstructionAddress] & 0xff));\r\n }\r\n break;\r\n\r\n // LAX = LDA + LDX\r\n case LAX:\r\n this.ac = getOperand(instruction) & 0xff;\r\n operationLDX(this.ac);\r\n break;\r\n\r\n // LSE = LSR + EOR\r\n case LSE: {\r\n final int address = getOperandAddress(instruction);\r\n\r\n operationLSR(address);\r\n operationEOR(readByte(address) & 0xff);\r\n break;\r\n }\r\n\r\n // OAL = ORA #ee + AND + TAX\r\n case OAL: {\r\n this.ac |= 0xee;\r\n this.ac &= (getOperand(instruction) & 0xff);\r\n this.x = this.ac;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n break;\r\n }\r\n\r\n // RLA = ROL + AND\r\n case RLA: {\r\n final int address = getOperandAddress(instruction);\r\n\r\n operationROL(address);\r\n operationAND(readByte(address) & 0xff);\r\n break;\r\n }\r\n\r\n // RRA = ROR + ADC\r\n case RRA: {\r\n final int address = getOperandAddress(instruction);\r\n\r\n operationROR(address);\r\n operationADC(readByte(address) & 0xff);\r\n break;\r\n }\r\n\r\n // SAX ANDs the contents of the A and X registers (leaving the contents of A \r\n // intact), subtracts an immediate value, and then stores the result in X.\r\n case SAX: {\r\n this.x = (this.ac & this.x) - (getOperand(instruction) & 0xff);\r\n this.carryFlag = x >= 0;\r\n this.x &= 0xff;\r\n this.zeroFlag = this.x == 0;\r\n this.signFlag = this.x >= 0x80;\r\n break;\r\n }\r\n\r\n // SAY ANDs the contents of the Y register with and stores the \r\n // result in memory.\r\n case SAY: {\r\n final int oldAc = this.ac;\r\n\r\n this.ac = this.y;\r\n operationAND(readByte(0x78) & 0xff);\r\n writeByte(getOperandAddress(instruction), (byte)this.ac);\r\n this.ac = oldAc;\r\n break;\r\n }\r\n\r\n // SKB = skip byte\r\n case SKB:\r\n getOperand(instruction);\r\n break;\r\n\r\n // SKW = skip word\r\n case SKW:\r\n getOperand(instruction);\r\n if (instruction.addressMode == CPU6502Instruction.INDIRECT_X) {\r\n addPC(1);\r\n }\r\n break;\r\n\r\n // TAS ANDs the contents of the A and X registers (without changing \r\n // the contents of either register) and transfers the result to the stack \r\n // pointer. It then ANDs that result with the contents of the high byte of \r\n // the target address of the operand +1 and stores that final result in \r\n // memory.\r\n case TAS: {\r\n final int address = getOperandAddress(instruction);\r\n\r\n this.sp = this.ac & this.x;\r\n writeByte(address, (byte) (this.sp & ((address >> 8) + 1)));\r\n break;\r\n }\r\n\r\n // XAA = TXA + AND\r\n case XAA:\r\n this.ac = (readByte(this.pc - 1) & 0xff) & this.x & (this.ac | 0xee);\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n break;\r\n\r\n // XAS ANDs the contents of the X register with and stores the \r\n // result in memory\r\n case XAS: {\r\n final int oldAc = this.ac;\r\n\r\n this.ac = this.x;\r\n operationAND(readByte(0x65) & 0xff);\r\n writeByte(getOperandAddress(instruction), (byte)this.ac);\r\n this.ac = oldAc;\r\n break;\r\n }\r\n\r\n default:\r\n // try the extended instructions\r\n emulateExtendedInstruction(instruction);\r\n }\r\n }", "protected abstract void initHardwareInstructions();", "@Override\n\tpublic void execute() {\n\t\t_cpu.setM_d8(_cpu.getM_h8());\n\t}", "public abstract void emitCode(CodeEmitter ce);", "@Override protected void execute () throws InvalidInstructionException, MachineHaltException, RegisterSet.InvalidRegisterNumberException, MainMemory.InvalidAddressException\n {\n switch (insOpCode.get()) {\n case 0x0: // ld $i, d .............. 0d-- iiii iiii\n reg.set (insOp0.get(), insOpExt.get());\n break;\n case 0x1: // ld o(rs), rd .......... 1psd (p = o / 4)\n // TODO\n break;\n case 0x2: // ld (rs, ri, 4), rd .... 2sid\n // TODO\n break;\n case 0x3: // st rs, o(rd) .......... 3spd (p = o / 4)\n // TODO\n break;\n case 0x4: // st rs, (rd, ri, 4) .... 4sdi\n // TODO\n break;\n case 0x6: // ALU ................... 6-sd\n\tswitch (insOp0.get()) {\n\t case 0x0: // mov rs, rd ........ 60sd\n // TODO\n\t break;\n\t case 0x1: // add rs, rd ........ 61sd\n // TODO\n\t break;\n\t case 0x2: // and rs, rd ........ 62sd\n // TODO\n\t break;\n\t case 0x3: // inc rr ............ 63-r\n // TODO\n\t break;\n\t case 0x4: // inca rr ........... 64-r\n // TODO\n\t break;\n\t case 0x5: // dec rr ............ 65-r\n // TODO\n\t break;\n\t case 0x6: // deca rr ........... 66-r\n // TODO\n\t break;\n\t case 0x7: // not ............... 67-r\n // TODO\n\t break;\n\t default:\n\t throw new InvalidInstructionException();\n\t}\n\tbreak;\n case 0x7: // sh? $i,rd ............. 7dii\n // TODO\n break;\n case 0xf: // halt or nop ............. f?--\n\tif (insOp0.get() == 0)\n\t // halt .......................... f0--\n\t throw new MachineHaltException();\n\telse if (insOp0.getUnsigned() == 0xf)\n\t // nop ........................... ff--\n\t break;\n break;\n default:\n throw new InvalidInstructionException();\n }\n }", "@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}", "public void testCycleHaltAddM() \r\n\t{\n\t\tMemory testProgram1 = new Memory(3);\r\n\t\ttestProgram1.store(0, \"00000000\");\r\n\t\ttestProgram1.store(1, \"00100111\");\r\n\t\ttestProgram1.store(2, \"11100111\");\r\n\t\t\r\n\t\tCPU testCPU = new CPU(testProgram1);\r\n\t\t\r\n\t\t//check haltCalledbefore the action is executed\r\n\t\tassertEquals(false, testCPU.getHaltCalled());\t\t\r\n\t\ttestCPU.cycle();\r\n\t\t//check haltCalled after the action is performed\r\n\t\tassertEquals(true, testCPU.getHaltCalled());\t\r\n\t\t\r\n\t\t//Check the accumulator before the rest is program is executed\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t\ttestCPU.executeProgramInMemory();\r\n\t\t//Check the accumulator after the program has been executed\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t\t\r\n\t\t//This program modifies the aaccumulator and then call halt\r\n\t\tMemory testProgram2 = new Memory(3);\r\n\t\ttestProgram2.store(0, \"10100111\");\r\n\t\ttestProgram2.store(1, \"00000000\");\r\n\t\ttestProgram2.store(2, \"11100111\");\r\n\t\t\r\n\t\ttestCPU.setMemory(testProgram2);\r\n\t\t\r\n\t\t//Check the accumulator before execution\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t\t//check accumulator after the rest of the program has been executed\r\n\t\ttestCPU.executeProgramInMemory();\r\n\t\tassertEquals(\"00000111\", testCPU.getAccumulator());\r\n\t\tassertEquals(7, testCPU.getAccumulatorDecimal());\r\n\t\t\r\n\t\t\r\n\t\t//This program call halt at the beginning then call it again\r\n\t\t//it check that even the halt it call again nothing is execute\r\n\t\t//after the first call\r\n\t\tMemory testProgram3 = new Memory(4);\r\n\t\ttestProgram3.store(0, \"00000000\");\r\n\t\ttestProgram3.store(1, \"10100111\");\r\n\t\ttestProgram3.store(2, \"00000000\");\r\n\t\ttestProgram3.store(3, \"10100111\");\r\n\t\t\r\n\t\ttestCPU.setMemory(testProgram3);\r\n\t\r\n\t\t//Check the accumulator before execution\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t\ttestCPU.executeProgramInMemory();\r\n\t\t//check accumulator after the rest of the program has been executed\r\n\t\tassertEquals(\"00000000\", testCPU.getAccumulator());\r\n\t\tassertEquals(0, testCPU.getAccumulatorDecimal());\r\n\t}", "public abstract void simulate();", "public void executeInstr(int[] instr) {\r\n\t\t// First parameter is pidgin command\r\n\t\tswitch (instr[0]) {\r\n\t\t\tcase SET:\r\n\t\t\t\tsetReg(instr[1], instr[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ADD:\r\n\t\t\t\tsetReg(instr[1], getReg(instr[2]) + getReg(instr[3]));\r\n\t\t\t\tbreak;\r\n\t\t\tcase SUB:\r\n\t\t\t\tsetReg(instr[1], getReg(instr[2]) - getReg(instr[3]));\r\n\t\t\t\tbreak;\r\n\t\t\tcase MUL:\r\n\t\t\t\tsetReg(instr[1], getReg(instr[2]) * getReg(instr[3]));\r\n\t\t\t\tbreak;\r\n\t\t\tcase DIV:\r\n\t\t\t\t// Make sure no \"Divide by Zero\"\r\n\t\t\t\tif (getReg(instr[3]) == 0) {\r\n\t\t\t\t\tm_TH.interruptDivideByZero();\r\n\t\t\t\t}\r\n\t\t\t\tsetReg(instr[1], getReg(instr[2]) / getReg(instr[3]));\r\n\t\t\t\tbreak;\r\n\t\t\tcase COPY:\r\n\t\t\t\tsetReg(instr[1], getReg(instr[2]));\r\n\t\t\t\tbreak;\r\n\t\t\tcase BRANCH:\r\n\t\t\t\tif (boundaryCheck(getBASE() + instr[1])) {\r\n\t\t\t\t\tsetPC(getBASE() + instr[1]);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase BNE:\r\n\t\t\t\tif (getReg(instr[1]) != getReg(instr[2])) {\r\n\t\t\t\t\t// Check branch boundaries with physical addresses\r\n\t\t\t\t\tif (boundaryCheck(getBASE() + instr[3])) {\r\n\t\t\t\t\t\tsetPC(getBASE() + instr[3]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase BLT:\r\n\t\t\t\tif (getReg(instr[1]) < getReg(instr[2])) {\r\n\t\t\t\t\t// Check branch boundaries with physical addresses\r\n\t\t\t\t\tif (boundaryCheck(getBASE() + instr[3])) {\r\n\t\t\t\t\t\tsetPC(getBASE() + instr[3]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase POP:\r\n\t\t\t\tpopFromStack(instr[1]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase PUSH:\r\n\t\t\t\tpushToStack(instr[1]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase LOAD:\r\n\t\t\t\t// Convert from logical to physical memory before read\r\n\t\t\t\tboundaryCheck(getBASE() + getReg(instr[2]));\r\n\t\t\t\tsetReg(instr[1], m_MMU.read(getBASE() + getReg(instr[2])));\r\n\t\t\t\tbreak;\r\n\t\t\tcase SAVE:\r\n\t\t\t\t// Convert from logical to physical memory before save\r\n\t\t\t\tboundaryCheck(getBASE() + getReg(instr[2]));\r\n\t\t\t\tm_MMU.write(getBASE() + getReg(instr[2]), getReg(instr[1]));\r\n\t\t\t\tbreak;\r\n\t\t\tcase TRAP:\r\n\t\t\t\t// Create a system call interrupt\r\n\t\t\t\tm_TH.systemCall();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault: // should never be reached\r\n\t\t\t\t// Interrupt if command not recognized\r\n\t\t\t\tm_TH.interruptIllegalInstruction(instr);\r\n\t\t\t\tbreak;\r\n\t\t}// switch\r\n\t\t\r\n\t}", "public JJITInstruction run(KFrame frame) throws Exception {\n KRegister[] regs = null;\n KLocalThread thread = frame.getThread();\n KReference ref;\n // **REMOVED Unused Var** KFrame nextFrame = null;\n // *********[14] LDC(59->\"char\")\n // **REMOVED Substitution** s0_ref = R59;\n // *********[15] INVOKEVIRTUAL(jnt.Bench.Bench,parseError(Ljava/io/StreamTokenizer;Ljava/lang/String;Ljava/lang/String;)V)\n regs = new KRegister[4];\n regs[3] = R59;\n regs[2] = frame.pop();\n regs[1] = frame.pop();\n ref = frame.popRef();\n regs[0] = ref;\n frame.setProgramCounter(11);\n // **REMOVED Substitution** nextFrame = thread.pushFrame(c_memman.getKClass(ref).getVirtualMethodBySignature(\"parseError(Ljava/io/StreamTokenizer;Ljava/lang/String;Ljava/lang/String;)V\"),regs);\n return ((JJITInstruction)thread.pushFrame(c_memman.getKClass(ref).getVirtualMethodBySignature(\"parseError(Ljava/io/StreamTokenizer;Ljava/lang/String;Ljava/lang/String;)V\"),regs).getCurrentInstruction());\n }", "String getInstruction();", "public interface InstructionCodes {\n\n int NOP = 0;\n int ICONST = 2;\n int FCONST = 3;\n int SCONST = 4;\n int ICONST_0 = 5;\n int ICONST_1 = 6;\n int ICONST_2 = 7;\n int ICONST_3 = 8;\n int ICONST_4 = 9;\n int ICONST_5 = 10;\n int FCONST_0 = 11;\n int FCONST_1 = 12;\n int FCONST_2 = 13;\n int FCONST_3 = 14;\n int FCONST_4 = 15;\n int FCONST_5 = 16;\n int BCONST_0 = 17;\n int BCONST_1 = 18;\n int RCONST_NULL = 19;\n int BICONST = 20;\n int DCONST = 21;\n\n int IMOVE = 22;\n int FMOVE = 23;\n int SMOVE = 24;\n int BMOVE = 25;\n int RMOVE = 26;\n int BIALOAD = 27;\n int IALOAD = 28;\n int FALOAD = 29;\n int SALOAD = 30;\n int BALOAD = 31;\n int RALOAD = 32;\n int JSONALOAD = 33;\n\n int IGLOAD = 34;\n int FGLOAD = 35;\n int SGLOAD = 36;\n int BGLOAD = 37;\n int RGLOAD = 38;\n\n int CHNRECEIVE = 39;\n int CHNSEND = 40;\n\n int MAPLOAD = 41;\n int JSONLOAD = 42;\n\n int COMPENSATE = 43;\n\n int BIASTORE = 44;\n int IASTORE = 45;\n int FASTORE = 46;\n int SASTORE = 47;\n int BASTORE = 48;\n int RASTORE = 49;\n int JSONASTORE = 50;\n\n int BIAND = 51;\n int IAND = 52;\n int BIOR = 53;\n int IOR = 54;\n\n int IGSTORE = 55;\n int FGSTORE = 56;\n int SGSTORE = 57;\n int BGSTORE = 58;\n int RGSTORE = 59;\n\n int IS_LIKE = 60;\n\n int STAMP = 62;\n\n int FREEZE = 63;\n int IS_FROZEN = 64;\n\n int ERROR = 65;\n int PANIC = 66;\n int REASON = 67;\n int DETAIL = 68;\n\n int MAPSTORE = 69;\n int JSONSTORE = 70;\n\n int IADD = 71;\n int FADD = 72;\n int SADD = 73;\n int DADD = 74;\n\n int SCOPE_END = 75;\n int LOOP_COMPENSATE = 76;\n\n int XMLADD = 77;\n int ISUB = 78;\n int FSUB = 79;\n int DSUB = 80;\n int IMUL = 81;\n int FMUL = 82;\n int DMUL = 83;\n int IDIV = 84;\n int FDIV = 85;\n int DDIV = 86;\n int IMOD = 87;\n int FMOD = 88;\n int DMOD = 89;\n int INEG = 90;\n int FNEG = 91;\n int DNEG = 92;\n int BNOT = 93;\n\n int IEQ = 94;\n int FEQ = 95;\n int SEQ = 96;\n int BEQ = 97;\n int DEQ = 98;\n int REQ = 99;\n int REF_EQ = 100;\n\n int INE = 101;\n int FNE = 102;\n int SNE = 103;\n int BNE = 104;\n int DNE = 105;\n int RNE = 106;\n int REF_NEQ = 107;\n\n int IGT = 108;\n int FGT = 109;\n int DGT = 110;\n\n int IGE = 111;\n int FGE = 112;\n int DGE = 113;\n\n int ILT = 114;\n int FLT = 115;\n int DLT = 116;\n\n int ILE = 117;\n int FLE = 118;\n int DLE = 119;\n\n int REQ_NULL = 120;\n int RNE_NULL = 121;\n\n int BR_TRUE = 122;\n int BR_FALSE = 123;\n\n int GOTO = 124;\n int HALT = 125;\n int TR_RETRY = 126;\n int CALL = 127;\n int VCALL = 128;\n int FPCALL = 129;\n int FPLOAD = 130;\n int VFPLOAD = 131;\n\n // Type Conversion related instructions\n int I2F = 132;\n int I2S = 133;\n int I2B = 134;\n int I2D = 135;\n int F2I = 136;\n int F2S = 137;\n int F2B = 138;\n int F2D = 139;\n int S2I = 140;\n int S2F = 141;\n int S2B = 142;\n int S2D = 143;\n int B2I = 144;\n int B2F = 145;\n int B2S = 146;\n int B2D = 147;\n int D2I = 148;\n int D2F = 149;\n int D2S = 150;\n int D2B = 151;\n int DT2JSON = 152;\n int DT2XML = 153;\n int T2MAP = 154;\n int T2JSON = 155;\n int MAP2T = 156;\n int JSON2T = 157;\n int XML2S = 158;\n\n int BILSHIFT = 159;\n int BIRSHIFT = 160;\n int ILSHIFT = 161;\n int IRSHIFT = 162;\n\n // Type cast\n int I2ANY = 163;\n int F2ANY = 164;\n int S2ANY = 165;\n int B2ANY = 166;\n\n int TYPE_ASSERTION = 167;\n\n int ANY2I = 168;\n int ANY2F = 169;\n int ANY2S = 170;\n int ANY2B = 171;\n int ANY2D = 172;\n int ANY2JSON = 173;\n int ANY2XML = 174;\n int ANY2MAP = 175;\n int ANY2STM = 176;\n int ANY2DT = 177;\n int ANY2SCONV = 178;\n int ANY2BI = 179;\n int BI2ANY = 180;\n int ANY2E = 181;\n int ANY2T = 182;\n int ANY2C = 183;\n int CHECKCAST = 184;\n\n int ANY2TYPE = 185;\n\n int LOCK = 186;\n int UNLOCK = 187;\n\n // Transactions\n int TR_BEGIN = 188;\n int TR_END = 189;\n\n int WRKSEND = 190;\n int WRKRECEIVE = 191;\n\n int WORKERSYNCSEND = 192;\n int WAIT = 193;\n\n int MAP2JSON = 194;\n int JSON2MAP = 195;\n\n int IS_ASSIGNABLE = 196;\n int O2JSON = 197;\n\n int ARRAY2JSON = 198;\n int JSON2ARRAY = 199;\n\n int BINEWARRAY = 200;\n int INEWARRAY = 201;\n int FNEWARRAY = 202;\n int SNEWARRAY = 203;\n int BNEWARRAY = 204;\n int RNEWARRAY = 205;\n\n int CLONE = 206;\n\n int FLUSH = 207;\n\n int LENGTHOF = 208;\n int WAITALL = 209;\n\n int NEWSTRUCT = 210;\n int NEWMAP = 212;\n int NEWTABLE = 215;\n int NEWSTREAM = 217;\n \n int CONVERT = 218;\n\n int ITR_NEW = 219;\n int ITR_NEXT = 221;\n int INT_RANGE = 222;\n\n int I2BI = 223;\n int BI2I = 224;\n int BIXOR = 225;\n int IXOR = 226;\n int BACONST = 227;\n int IURSHIFT = 228;\n\n int IRET = 229;\n int FRET = 230;\n int SRET = 231;\n int BRET = 232;\n int DRET = 233;\n int RRET = 234;\n int RET = 235;\n\n int XML2XMLATTRS = 236;\n int XMLATTRS2MAP = 237;\n int XMLATTRLOAD = 238;\n int XMLATTRSTORE = 239;\n int S2QNAME = 240;\n int NEWQNAME = 241;\n int NEWXMLELEMENT = 242;\n int NEWXMLCOMMENT = 243;\n int NEWXMLTEXT = 244;\n int NEWXMLPI = 245;\n int XMLSEQSTORE = 246;\n int XMLSEQLOAD = 247;\n int XMLLOAD = 248;\n int XMLLOADALL = 249;\n int NEWXMLSEQ = 250;\n\n int TYPE_TEST = 251;\n int TYPELOAD = 252;\n\n int TEQ = 253;\n int TNE = 254;\n\n int INSTRUCTION_CODE_COUNT = 255;\n}", "public Instruction readNextInstruction() {\n // method -> method's code\n byte[] bytecode = this.getJvmMethod().getCode();\n\n int pc = this.getNextPc();\n BytecodeReader bytecodeReader = new BytecodeReader(Arrays.copyOfRange(bytecode, pc, bytecode.length));\n\n Instruction instruction = Instruction.readInstruction(bytecodeReader);\n logger.debug(\"read instruction: {}\", instruction);\n\n // fetch operands (may fetch nothing)\n instruction.fetchOperands(bytecodeReader);\n\n return instruction;\n }", "public void testByteCodeNonSynchronousInc2() throws Exception\r\n {\r\n startClass(\"Inc2Non\", \"org/mozilla/classfile/SynchronisationTest$Eval\");\r\n defaultConstructor();\r\n evalMethod(false);\r\n Class myClass = defineClass(\"Inc2Non\", cfw.toByteArray());\r\n\r\n setIntField(myClass, null, \"id\", 0);\r\n Eval increment1 = (Eval)myClass.newInstance();\r\n Thread thread1 = new Thread(new Execute(increment1));\r\n Eval increment2 = (Eval)myClass.newInstance();\r\n Thread thread2 = new Thread(new Execute(increment2));\r\n\r\n assertEquals(\"myObj.id should be 0\", 0, getIntField(myClass, null, \"id\"));\r\n thread1.start();\r\n thread2.start();\r\n Execute.wait = false;\r\n thread1.join(5000);\r\n thread2.join(5000);\r\n // TODO - fix me\r\n //assertEquals(\"Wrong incremented value\", -1, getIntField(myClass, null, \"id\"));\r\n }", "Instruction createInstruction();", "public void exec(PyObject code) {\n }", "public void machineTrace() throws Exception{\n System.out.println(\".-----------------------------------------------------.\");\n System.out.println(\"|------------------ NEXT ITERATION -------------------|\");\n System.out.println(\".-----------------------------------------------------.\");\n\n System.out.println(programMemory);\n System.out.println(dataMemory);\n\n if(instrPointer != -1 && instrPointer != programMemory.getSize())\n System.out.println(\"CURRENT INSTRUCTION: \" + programMemory.getInstruction(instrPointer) + \"\\n\");\n else\n System.out.println(\"FINAL RESULT: \\n\");\n\n System.out.println(\"EXECUTED INSTRUCTIONS : \" + executedIntructions);\n System.out.print(\"INPUT TAPE \");\n System.out.println(inputTapeContent);\n\n System.out.print(\"OUTPUT TAPE \");\n System.out.println(outputTapeContent);\n System.out.println(\" \");\n\n // System.out.print(\"OUTPUT TAPE [ \");\n // tape = new File(outputTape);\n // reader = new BufferedReader(new FileReader(tape));\n // str = \" \";\n // while ((str = reader.readLine()) != null){\n // System.out.print(str + \" \");\n // }\n // System.out.print(\"]\\n\");\n }", "protected void emulateExtendedInstruction(final CPU6502Instruction instruction) {\r\n if (null != getLogger()) {\r\n getLogger().warning(\"Not implemented instruction at $\" + Integer.toHexString(this.currentInstructionAddress) + \": $\" + Integer.toHexString(this.memory[this.currentInstructionAddress] & 0xff));\r\n }\r\n try {\r\n Thread.sleep(100);\r\n } catch (Exception e) {\r\n }\r\n }", "public void mo9845a() {\n ArrayList arrayList = new ArrayList();\n arrayList.add(new CallableC1816b(this, (byte) 0));\n try {\n Executors.newSingleThreadExecutor().invokeAny(arrayList);\n } catch (InterruptedException e) {\n e.printStackTrace();\n this.f4523c.onFail();\n } catch (ExecutionException e2) {\n e2.printStackTrace();\n this.f4523c.onFail();\n }\n }", "public void run(Number startAddress) {\n setStartAddress(startAddress);\n\n while (!hasStopped()) {\n // while (true) {\n var instruction = nextInstruction();\n // System.out.println(\"EXEC: \" + instruction.getAddress());\n instruction.execute();\n\n // if (counter > max) {\n // System.out.println(\"BREAKING!\");\n // break;\n // }\n //\n // counter++;\n }\n\n }", "public void run() {\r\n // Execute the program\r\n int index = 0;\r\n\r\n while (index < operations.size()) {\r\n Operation o = operations.get(index);\r\n index = o.execute(index, stack, symbolTable);\r\n }\r\n }", "public static void main(String[] args) {\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tint instructionsLength = Integer.parseInt(scanner.nextLine());\r\n\t\tList<List<String>> instructions = new ArrayList<>();\r\n\t\t\r\n\t\tfor (int i = 0; i < instructionsLength; i++) {\r\n\t\t\tinstructions.add(splitWords(scanner.nextLine()));\r\n\t\t}\r\n\t\t\r\n\t\tscanner.close();\r\n\t\tList<String> res = simulateCallCenter(instructions);\r\n\t\t\r\n\t\tfor (String line : res) {\r\n\t\t\tSystem.out.println(line);\r\n\t\t}\r\n\t}", "TACBlock optimise(TACBlock code);", "private static void sample1() {\n\t\tIComputer computer = new Computer();\n\t\tcomputer.setProgram(\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0x71,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xc1,\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xff);\n\t\tTestContext context = new TestContext(\n\t\t (byte) 0xa1, (byte) 0x9b, (byte) 0x3c);\n\t\tcomputer.run(context);\n\t\tSystem.out.println(context.outputToString());\n\t}", "public Instructions() {\n\n\t\t// String code = codeIn.trim();\n\t\t// code = code.replaceAll(\"\\\\s+\", \"\");\n\t\t// System.out.println(\"Code In:\\n\" + code);\n\t\t//\n\t\t// int len = code.length();\n\t\t// int chunkLength = 2; // the length of each chunk of code\n\t\t// int i = 0;\n\n\t\t// Create new Memory Array\n\t\tMA = new MemoryArray();\n\n\t\t// traverse entered code and split into 2 digit chunks\n\t\t// for (i = 0; i < len; i += chunkLength) {\n\t\t//\n\t\t// String chunk = code.substring(i, Math.min(len, i + chunkLength));\n\t\t// System.out.println(\"code chunk no. \" + (i / 2) + \" \" + chunk);\n\t\t//\n\t\t// opCode(chunk); // TODO - need to call this from the memory class I\n\t\t// think\n\n\t\tmem = new Memory();\n\n\t\tmemDispalyString();\n\n\t\tproc = new ProcessorLoop();\n\n\t\t// set the memory address and OpCode\n\t\t// mem.setAddress(addr);\n\t\t// // convert to decimal\n\t\t// mem.setOpCode(Integer.parseInt(chunk, 16));\n\t\t// System.out.println(\"oc = \" + (Integer.parseInt(chunk, 16)));\n\t\t//\n\t\t// // add the memory object to the memory array\n\t\t// MA.addMemoryObjects(addr, mem);\n\t\t// System.out.println(\"New memory = \" + mem.getAddress() + \" \"\n\t\t// + mem.getOpCode());\n\t\t// addr++;\n\t\t// }\n\n\t}", "public Instruction(byte c) {\n code = c;\n next = null;\n branches = false;\n calls = false;\n returns = false;\n }", "@Test\n public void Day5AExample1() {\n intCodeProcessorService = new IntCodeProcessorService(\"data/day05/example1.txt\");\n intCodeProcessorService.setCpuInputValue(555L);\n intCodeProcessorService.runToCompletion();\n\n long result = intCodeProcessorService.getProgramOutput();\n Assert.assertEquals(555L, result);\n }", "private void loadInstructions(byte... codes) {\r\n\t\tint instructionLocation = instructionBase;\r\n\t\tfor (int i = -128; i < 128; i++) {\r\n\t\t\tfor (byte code : codes) {\r\n\t\t\t\tcpuBuss.write(instructionLocation++, code);\r\n\t\t\t} // for codes\r\n\t\t\tcpuBuss.write(instructionLocation++, (byte) i);\r\n\t\t} // for\r\n\t\twrs.setProgramCounter(instructionBase);\r\n\t}", "Instruction getLastExecutedInstruction(int thread);", "@Override\n public void onMachineAssembled()\n {\n \n }", "public void executeNode (Node node) {\n if (node.isExecutable()) {\n // If the node is running, we wait for it to stop\n while(isNodeRunning(node.getId())){\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // Then we launch the execution\n String code = node.getCode();\n\n Kernel k = kernels.get(node.getId());\n k.executeCode(code, node);\n }\n }", "private Vector[] generateCode(Matrix gMatrix) throws Exception {\n cg = new CodeGenerator(gMatrix, qValue);\n cg.execute();\n while (!cg.isDone()) {\n if (Thread.interrupted()) {\n cg.cancel(true);\n throw new Exception();\n }\n }\n return cg.get();\n }", "private void nextCode(int code) {\n int r1;\n int r2;\n int r3;\n int label;\n char c;\n String s;\n int constant;\n int length;\n\n // Each case corresponds to a different instruction\n switch (code) {\n case 0:\n break;\n case 1:\n // 1: Clears the contents of r1\n r1 = checkRegister(memory[++pc]);\n register[r1] = 0;\n break;\n case 2:\n // 2: Clears the memory location specified by r1\n r1 = checkRegister(memory[++pc]);\n int memLoc = register[r1];\n checkMemLocation(memLoc);\n memory[memLoc] = 0;\n break;\n case 3:\n // 3: Clears the memory location specified by label\n label = checkMemLocation(memory[++pc]);\n memory[label] = 0;\n break;\n case 4:\n // 4: Clear a block of memory. The starting location is specified by r1, the count is in r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n checkMemLocation(register[r1]);\n checkMemLocation(register[1] + register[r2] - 1);\n for (int i = register[r1]; i < register[r2]; i++) {\n memory[i] = 0;\n }\n break;\n case 5:\n // 5: Move the specified constant to register r1\n constant = memory[++pc];\n r1 = checkRegister(memory[++pc]);\n register[r1] = constant;\n break;\n case 6:\n // 6: Move the contents of register r1 to r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n register[r2] = register[r1];\n break;\n case 7:\n // 7: Move the contents of register r1 to the memory location specified by label;\n r1 = checkRegister(memory[++pc]);\n label = checkMemLocation(memory[++pc]);\n memory[label] = register[r1];\n break;\n case 8:\n // 8: Move the contents of memory location label to register r1\n label = checkMemLocation(memory[++pc]);\n r1 = checkRegister(memory[++pc]);\n register[r1] = memory[label];\n break;\n case 9:\n // 9: Move the memory location specified by r1 to r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n register[r2] = memory[register[r1]];\n break;\n case 10:\n // 10: Move the address of label to register r1\n\n label = checkMemLocation(memory[++pc]);\n r1 = checkRegister(memory[++pc]);\n register[r1] = label;\n break;\n case 11:\n // 11: Move a block of memory. The source is specified by r1, the destination by r2, the count is in r3\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n r3 = checkRegister(memory[++pc]);\n // check mem locations of first and last elements to be copied\n checkMemLocation(register[r1]);\n checkMemLocation(register[1] + register[r3] - 1);\n int toMove[] = new int[register[r3]];\n int movIndex = 0;\n for (int i = register[r1]; i < toMove.length; i++) {\n toMove[movIndex] = memory[i];\n movIndex++;\n }\n movIndex = 0;\n for (int i = register[r2]; i < toMove.length; i++) {\n memory[i] = toMove[movIndex];\n movIndex++;\n }\n break;\n case 12:\n // 12: add constant 123 to r1\n constant = memory[++pc];\n r1 = checkRegister(memory[++pc]);\n register[r1] += constant;\n\n break;\n case 13:\n // 13: Add the contents of register r1 to r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n register[r2] += register[r1];\n break;\n case 14:\n // 14: Add the contents of memory location label to r1\n label = checkMemLocation(memory[++pc]);\n r1 = checkRegister(memory[++pc]);\n register[r1] += memory[label];\n break;\n case 15:\n // 15: Add the contents of the memory location specified by r1 to r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n checkMemLocation(register[r1]);\n register[r2] += memory[register[r1]];\n break;\n case 16:\n // 16: Subtract the constant 123 from r1;\n constant = memory[++pc];\n r1 = checkRegister(memory[++pc]);\n register[r1] -= constant;\n break;\n case 17:\n // 17: Subtract the contents of register r1 from r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n register[r2] -= register[r1];\n break;\n case 18:\n // 18: Subtract the contents of memory location label from r1\n label = checkMemLocation(memory[++pc]);\n r1 = checkRegister(memory[++pc]);\n register[r1] -= memory[label];\n break;\n case 19:\n // 19: Subtract the contents of the memory location specified by r1 from r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n checkMemLocation(register[r1]);\n register[r2] -= memory[register[r1]];\n break;\n case 20:\n // 20: Multiply the constant 123 into r1;\n constant = memory[++pc];\n r1 = checkRegister(memory[++pc]);\n register[r1] *= constant;\n break;\n case 21:\n // 21: Multiply the contents of register r1 into r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n register[r2] *= register[r1];\n break;\n case 22:\n // 22: Multiply the contents of memory location label into r1\n label = checkMemLocation(memory[++pc]);\n r1 = checkRegister(memory[++pc]);\n register[r1] *= memory[label];\n break;\n case 23:\n // 23: Multiply the contents of the memory location specified by r1 into r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n checkMemLocation(register[r1]);\n register[r2] *= memory[register[r1]];\n break;\n case 24:\n // 24: Divide the constant 123 into r1;\n constant = memory[++pc];\n r1 = checkRegister(memory[++pc]);\n register[r1] /= constant;\n break;\n case 25:\n // 25: Divide the contents of register r1 into r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n register[r2] /= register[r1];\n break;\n case 26:\n // 26: Divide the contents of memory location label into r1\n label = checkMemLocation(memory[++pc]);\n r1 = checkRegister(memory[++pc]);\n register[r1] /= memory[label];\n break;\n case 27:\n // 27: Divide the contents of the memory location specified by r1 into r2\n\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n checkMemLocation(register[r1]);\n register[r2] /= memory[register[r1]];\n break;\n case 28:\n // 28: Jump to memory location label\n label = checkMemLocation(memory[++pc]);\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n break;\n case 29:\n // 29: Subtract one from register r1. Jump to label if result is 0\n r1 = checkRegister(memory[++pc]);\n register[r1]--;\n if (register[r1] == 0) {\n label = checkMemLocation(memory[++pc]);\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n }\n break;\n case 30:\n // 30: Subtract one from register r1. Jump to label if result is not equal 0\n r1 = checkRegister(memory[++pc]);\n register[r1]--;\n if (register[r1] != 0) {\n label = checkMemLocation(memory[++pc]);\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n }\n break;\n case 31:\n // 31: Add one to register r1. Jump to label if result is 0\n r1 = checkRegister(memory[++pc]);\n register[r1]++;\n if (register[r1] == 0) {\n label = checkMemLocation(memory[++pc]);\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n }\n break;\n case 32:\n // 32: Add one to register r1. Jump to label if result is not equal 0\n r1 = checkRegister(memory[++pc]);\n register[r1]++;\n if (register[r1] != 0) {\n label = checkMemLocation(memory[++pc]);\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n }\n break;\n case 33:\n // 33: Compares constant to r1. Set status flags\n constant = memory[++pc];\n r1 = checkRegister(memory[++pc]);\n compareRegister = constant - register[r1];\n break;\n case 34:\n // 34: Compares r1 to r2. Set status flags\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n compareRegister = register[r1] - register[r2];\n break;\n case 35:\n // 35: Compares memory location label to r1. Set status flags\n label = checkMemLocation(memory[++pc]);\n r1 = checkRegister(memory[++pc]);\n compareRegister = memory[label] - register[r1];\n break;\n case 36:\n // 36: Jump to label if last compare was negative\n label = checkMemLocation(memory[++pc]);\n if (compareRegister < 0) {\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n }\n break;\n case 37:\n // 37: Jump to label if last compare was zero\n label = checkMemLocation(memory[++pc]);\n if (compareRegister == 0) {\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n }\n break;\n case 38:\n // 38: Jump to label if last compare was positive\n label = checkMemLocation(memory[++pc]);\n if (compareRegister > 0) {\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n }\n break;\n case 39:\n // 39: Jump to subroutine label. The contents of registers r5 - r9 are pushed onto the stack\n label = checkMemLocation(memory[++pc]);\n for (int i = 5; i <= 9; i++) {\n stack.push(register[i]);\n }\n stack.push(pc);\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n break;\n case 40:\n // 40: return from subroutine. The contents of registers r5 - r9 are popped from the stack\n pc = stack.pop();\n for (int i = 9; i >= 5; i--) {\n register[i] = stack.pop();\n }\n break;\n case 41:\n // 41: Push r1 onto the stack\n r1 = checkRegister(memory[++pc]);\n stack.push(register[r1]);\n break;\n case 42:\n // 42: Pop the stack onto r1\n r1 = checkRegister(memory[++pc]);\n register[r1] = stack.pop();\n break;\n case 43:\n // 43: Puts stack condition into register r1. 0 - Okay, 1 - Full, 2 - Empty\n if (stack.isEmpty()) {\n stackRegister = STACK_EMPTY;\n } else if (stack.isFull()) {\n stackRegister = STACK_FULL;\n } else {\n stackRegister = STACK_OK;\n }\n r1 = checkRegister(memory[++pc]);\n register[r1] = stackRegister;\n break;\n case 44:\n // 44: Output the character 123 to the console\n c = (char) memory[++pc];\n print(\"\" + c);\n break;\n case 45:\n // 45: Output the character in r1 to the console\n r1 = checkRegister(memory[++pc]);\n c = (char) register[r1];\n print(\"\" + c);\n break;\n case 46:\n // 46: Output the character whose memory location is indicated by r1 to the console\n r1 = checkRegister(memory[++pc]);\n checkMemLocation(register[r1]);\n c = (char) memory[register[r1]];\n print(\"\" + c);\n break;\n case 47:\n // 47: Output a block of characters. The starts is indicated by r1, the count by r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n checkMemLocation(register[r1]);\n checkMemLocation(register[r1] + register[r2] - 1);\n length = register[r2];\n s = \"\";\n for (int i = register[r1]; i < length; i++) {\n s += (char) memory[i];\n }\n print(s);\n break;\n case 48:\n // 48: read an integer from the console to r1, error code in r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n try {\n register[r1] = nextInt();\n register[r2] = NO_SCAN_ERROR_FOUND;\n } catch (InputMismatchException e) {\n register[r2] = SCAN_ERROR_FOUND;\n }\n break;\n case 49:\n // 49: Print the integer in r1 to the console\n r1 = checkRegister(memory[++pc]);\n print(\"\" + register[r1]);\n break;\n case 50:\n // 50: Read a character from console to r1;\n r1 = checkRegister(memory[++pc]);\n register[r1] = next().charAt(0);\n break;\n case 51:\n // 51: Read a line of text to the memory location starting at label. The count is placed in r1\n label = checkMemLocation(memory[++pc]);\n r1 = checkRegister(memory[++pc]);\n s = nextLine();\n checkMemLocation(label + s.length() - 1);\n for (int i = 0; i < s.length(); i++) {\n memory[label] = s.charAt(i);\n label++;\n }\n register[r1] = s.length();\n break;\n case 52:\n // 52: Break into debugger\n debug();\n break;\n case 53:\n // 53: Move the contents of register r1 into the memory location specified by r2\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n checkMemLocation(register[r2]);\n memory[register[r2]] = register[r1];\n break;\n case 54:\n // 54: Move the contents of the memory location specified by r1\n r1 = checkRegister(memory[++pc]);\n r2 = checkRegister(memory[++pc]);\n checkMemLocation(register[r1]);\n checkMemLocation(register[r2]);\n memory[register[r2]] = memory[register[r1]];\n break;\n case 55:\n // 55: Output a string stored in label\n label = checkMemLocation(memory[++pc]);\n length = memory[label];\n s = \"\";\n for (int i = 1; i < length + 1; i++) {\n s += (char) memory[label + i];\n }\n print(s);\n break;\n case 56:\n\n // nop: No operation. Does nothing\n break;\n case 57:\n // 57: jump if compare was not equal\n label = checkMemLocation(memory[++pc]);\n if (compareRegister != 0) {\n // subtracts 1 because before every instruction is executed, the pc is automatically incremented\n pc = label - 1;\n }\n break;\n }\n }", "@Test(timeout = 4000)\n public void test0() throws Throwable {\n int int0 = 169;\n InstructionFactory.createDup(int0);\n }", "@SuppressWarnings(\"unused\")\n\tprivate static void testFromStringToCompiledByteCode()\n\t{\n\t\tfinal String test = \"do end\";\n\t\tfinal int[] raw = compileFromRawString(test);\n\t\tfinal OpCodeMapper mapper = OpCodeMapper_v5_1.getInstance();\n\n\t\tfor (int i = raw.length - 1; i < raw.length; i++)\n\t\t{\n\t\t\tfinal int ByteCode = raw[i] & 0x3f;\n\t\t\tfinal AbstractOpCodes OpType = mapper.getOpCodeFor(ByteCode);\n\t\t\tfinal InstructionTypes instType = mapper.getTypeOf(OpType);\n\t\t\tfinal Instruction curInstruct;\n\n\t\t\tswitch (instType)\n\t\t\t{\n\t\t\t\tcase iABC:\n\t\t\t\t{\n\t\t\t\t\tcurInstruct = RawInstruction_iABC.parseFromRaw(raw[i], mapper);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase iABx:\n\t\t\t\t{\n\t\t\t\t\tcurInstruct = RawInstruction_iABx.parseFromRaw(raw[i], mapper);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase iAsBx:\n\t\t\t\t{\n\t\t\t\t\tcurInstruct = RawInstruction_iAsBx.parseFromRaw(raw[i], mapper);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t{\n\t\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//System.out.println(curInstruct.toString() + \"\\r\\n\\r\\n\");\n\t\t}\n\t}", "@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}", "@Override // kotlinx.coroutines.flow.FlowCollector\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object emit(java.lang.Object r9, kotlin.coroutines.Continuation r10) {\n /*\n r8 = this;\n boolean r0 = r10 instanceof kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1\n if (r0 == 0) goto L_0x0013\n r0 = r10\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r0\n int r1 = r0.label\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.label = r1\n goto L_0x0018\n L_0x0013:\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = new kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1\n r0.<init>(r10)\n L_0x0018:\n java.lang.Object r10 = r0.result\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.label\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x005e\n if (r2 == r4) goto L_0x0044\n if (r2 != r3) goto L_0x003c\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r8 = r0.L$4\n kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8\n java.lang.Object r8 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r8\n java.lang.Object r8 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r8\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x009b\n L_0x003c:\n java.lang.IllegalStateException r8 = new java.lang.IllegalStateException\n java.lang.String r9 = \"call to 'resume' before 'invoke' with coroutine\"\n r8.<init>(r9)\n throw r8\n L_0x0044:\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r9 = r0.L$5\n java.lang.Object r2 = r0.L$4\n kotlin.coroutines.Continuation r2 = (kotlin.coroutines.Continuation) r2\n java.lang.Object r4 = r0.L$3\n java.lang.Object r5 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r5 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r5\n java.lang.Object r6 = r0.L$1\n java.lang.Object r7 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r7 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r7\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x0084\n L_0x005e:\n kotlin.ResultKt.throwOnFailure(r10)\n kotlinx.coroutines.flow.FlowCollector r10 = kotlinx.coroutines.flow.FlowCollector.this\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1 r2 = r2\n kotlin.jvm.functions.Function2 r2 = r2.$action$inlined\n r0.L$0 = r8\n r0.L$1 = r9\n r0.L$2 = r0\n r0.L$3 = r9\n r0.L$4 = r0\n r0.L$5 = r9\n r0.L$6 = r10\n r0.label = r4\n java.lang.Object r2 = r2.invoke(r9, r0)\n if (r2 != r1) goto L_0x007e\n return r1\n L_0x007e:\n r7 = r8\n r4 = r9\n r6 = r4\n r8 = r10\n r2 = r0\n r5 = r2\n L_0x0084:\n r0.L$0 = r7\n r0.L$1 = r6\n r0.L$2 = r5\n r0.L$3 = r4\n r0.L$4 = r2\n r0.L$5 = r9\n r0.L$6 = r8\n r0.label = r3\n java.lang.Object r10 = r8.emit(r9, r0)\n if (r10 != r1) goto L_0x009b\n return r1\n L_0x009b:\n return r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "public void mo8476b() {\n mo8469a();\n int count = this.f3532b.size();\n for (int i = 0; i < count; i++) {\n C1070b op = (C1070b) this.f3532b.get(i);\n int i2 = op.f3539a;\n if (i2 == 1) {\n this.f3534d.mo7303a(op);\n this.f3534d.mo7306c(op.f3540b, op.f3542d);\n } else if (i2 == 2) {\n this.f3534d.mo7303a(op);\n this.f3534d.mo7308d(op.f3540b, op.f3542d);\n } else if (i2 == 4) {\n this.f3534d.mo7303a(op);\n this.f3534d.mo7302a(op.f3540b, op.f3542d, op.f3541c);\n } else if (i2 == 8) {\n this.f3534d.mo7303a(op);\n this.f3534d.mo7301a(op.f3540b, op.f3542d);\n }\n Runnable runnable = this.f3535e;\n if (runnable != null) {\n runnable.run();\n }\n }\n mo8472a((List<C1070b>) this.f3532b);\n this.f3538h = 0;\n }", "public void run(int i) {\r\n\t\twhile(sim40.memory[i] != -1) {\t\r\n\t\t\tswitch(sim40.memory[i]) {\r\n\r\n\t\t\t/* stop */\r\n\t\t\tcase 0: return;\r\n\r\n\t\t\t/* print, printb, printch */\r\n\t\t\tcase 1: case 2: case 3: \r\n\t\t\t\tthis.stdStream.getOutput().add(result(i));\r\n\t\t\t\t++i;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\t/* jump, comp, xcomp, ycomp, jineg, jipos, jizero, jicarry */\r\n\t\t\t\tif(sim40.memory[i] >= 19 && sim40.memory[i] <= 26)\r\n\t\t\t\t\ti = compareExecute(i);\r\n\r\n\t\t\t\telse if(sim40.memory[i] >= 4 && sim40.memory[i] <= 9) \r\n\t\t\t\t\ti = unaryExecute(i);\r\n\r\n\t\t\t\telse \r\n\t\t\t\t\ti = binaryExecute(i);\t\t\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcheckResetAllRegsAndFlags();\r\n\t\t\tsim40.updateViewVars();\r\n\t\t\tsim40.memory[Simulator.PROGRAM_COUNTER] = i;\r\n\t\t}\r\n\r\n\t}", "public void executeLEA(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString pcOffset = mIR.substring(7, 9);\n\t\tint wantedAdr = mPC.getValue() + pcOffset.getValue2sComp();\n\t\tBitString bitAdr = new BitString();\n\t\tbitAdr.setValue(wantedAdr);\n\t\tmRegisters[destBS.getValue()] = bitAdr; //If I want location of\n\n\t\tsetConditionalCode(bitAdr);\n\t\t//now I just need to set the conditional codes.\n\t}", "private static int executeInstruction(int instruction, int arg0, int arg1, int arg2, int[] memory){\n\t\t\n\t\tswitch(instruction){\n\t\t\tcase mov:\n\t\t\t\tmemory[arg0] = memory[arg1];\n\t\t\t\tbreak;\n\t\t\tcase movv:\n\t\t\t\tmemory[arg0] = arg1;\n\t\t\t\tbreak;\n\t\t\tcase jmp:\n\t\t\t\treturn arg0;\n\t\t\t\t//break;\n\t\t\tcase jif:\n\t\t\t\tif(memory[arg0] != 0){\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase jifv:\n\t\t\t\tif(arg0 != 0){\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase add:\n\t\t\t\tmemory[arg0] = memory[arg1] + memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase sub:\n\t\t\t\tmemory[arg0] = memory[arg1] - memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mlt:\n\t\t\t\tmemory[arg0] = memory[arg1] * memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase div:\n\t\t\t\tmemory[arg0] = memory[arg1] / memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mod:\n\t\t\t\tmemory[arg0] = memory[arg1] % memory[arg2];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase addvl:\n\t\t\t\tmemory[arg0] = arg1 + memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase subvl:\n\t\t\t\tmemory[arg0] = arg1 - memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mltvl:\n\t\t\t\tmemory[arg0] = arg1 * memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase divvl:\n\t\t\t\tmemory[arg0] = arg1 / memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase modvl:\n\t\t\t\tmemory[arg0] = arg1 % memory[arg2];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase addlv:\n\t\t\t\tmemory[arg0] = memory[arg1] + arg2;\n\t\t\t\tbreak;\n\t\t\tcase sublv:\n\t\t\t\tmemory[arg0] = memory[arg1] - arg2;\n\t\t\t\tbreak;\n\t\t\tcase mltlv:\n\t\t\t\tmemory[arg0] = memory[arg1] * arg2;\n\t\t\t\tbreak;\n\t\t\tcase divlv:\n\t\t\t\tmemory[arg0] = memory[arg1] / arg2;\n\t\t\t\tbreak;\n\t\t\tcase modlv:\n\t\t\t\tmemory[arg0] = memory[arg1] % arg2;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase addvv:\n\t\t\t\tmemory[arg0] = arg1 + arg2;\n\t\t\t\tbreak;\n\t\t\tcase subvv:\n\t\t\t\tmemory[arg0] = arg1 - arg2;\n\t\t\t\tbreak;\n\t\t\tcase mltvv:\n\t\t\t\tmemory[arg0] = arg1 * arg2;\n\t\t\t\tbreak;\n\t\t\tcase divvv:\n\t\t\t\tmemory[arg0] = arg1 / arg2;\n\t\t\t\tbreak;\n\t\t\tcase modvv:\n\t\t\t\tmemory[arg0] = arg1 % arg2;\n\t\t\t\tbreak;\n\t\t\t///////////////////////////////\n\t\t\tcase l:\n\t\t\t\tmemory[arg0] = memory[arg1] < memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase g:\n\t\t\t\tmemory[arg0] = memory[arg1] > memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase le:\n\t\t\t\tmemory[arg0] = memory[arg1] <= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase ge:\n\t\t\t\tmemory[arg0] = memory[arg1] >= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase e:\n\t\t\t\tmemory[arg0] = memory[arg1] == memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase ne:\n\t\t\t\tmemory[arg0] = memory[arg1] != memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase lvl:\n\t\t\t\tmemory[arg0] = arg1 < memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gvl:\n\t\t\t\tmemory[arg0] = arg1 > memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase levl:\n\t\t\t\tmemory[arg0] = arg1 <= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gevl:\n\t\t\t\tmemory[arg0] = arg1 >= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase evl:\n\t\t\t\tmemory[arg0] = arg1 == memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nevl:\n\t\t\t\tmemory[arg0] = arg1 != memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase llv:\n\t\t\t\tmemory[arg0] = memory[arg1] < arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase glv:\n\t\t\t\tmemory[arg0] = memory[arg1] > arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase lelv:\n\t\t\t\tmemory[arg0] = memory[arg1] <= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gelv:\n\t\t\t\tmemory[arg0] = memory[arg1] >= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase elv:\n\t\t\t\tmemory[arg0] = memory[arg1] == arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nelv:\n\t\t\t\tmemory[arg0] = memory[arg1] != arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase lvv:\n\t\t\t\tmemory[arg0] = arg1 < arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gvv:\n\t\t\t\tmemory[arg0] = arg1 > arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase levv:\n\t\t\t\tmemory[arg0] = arg1 <= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gevv:\n\t\t\t\tmemory[arg0] = arg1 >= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase evv:\n\t\t\t\tmemory[arg0] = arg1 == arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nevv:\n\t\t\t\tmemory[arg0] = arg1 != arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andll:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 && memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orll:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 || memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andvl:\n\t\t\t\tmemory[arg0] = arg1 != 0 && memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orvl:\n\t\t\t\tmemory[arg0] = arg1 != 0 || memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andlv:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 && arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orlv:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 || arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andvv:\n\t\t\t\tmemory[arg0] = arg1 != 0 && arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orvv:\n\t\t\t\tmemory[arg0] = arg1 != 0 || arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase notl:\n\t\t\t\tmemory[arg0] = memory[arg1] == 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase notv:\n\t\t\t\tmemory[arg0] = arg1 == 0 ? 1 : 0;\n\t\t\t\n\t\t\tcase nop:\n\t\t\t\t//do nothing\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t//jump ahead one instruction\n\t\treturn 1;\n\t}", "private void simulate() throws Exception {\r\n\t\t// Retrieve instructions from an input file\r\n\t\tList<String> instructions = SimulationUtils.retrieveInstructionsFromFile(\r\n\t\t\t\t\t\t\t\t\t\t\tConfigUtils.getInstance().getInstructionInputFilePath());\t\t\r\n\t\t\r\n\t\t// Initialise the ToyRobot with TableSurface information\r\n\t\tToyRobot robot = new ToyRobot(new TableSurface());\r\n\t\tCommandController controller = new CommandController();\r\n\t\t\r\n\t\t// Set up a new instruction decoder with details about\r\n\t\t// the text instructions, the robot and the command controller.\t\t\r\n\t\t// The decoder parses the instructions into commands for the robot\r\n\t\t// and registers them with the command controller for execution\r\n\t\t// (\"client\" in the COMMAND pattern).\r\n\t\tnew TextInstructionDecoder(instructions, controller, robot).decodeAndRegister();\r\n\t\t\r\n\t\t// The command controller triggers the seamless execution of the commands\r\n\t\t// (\"invoker\" in the COMMAND pattern).\r\n\t\tcontroller.executeCommands();\r\n\t}", "public interface Code {\n //运行结果编号\n Integer getCode();\n //运行结果描述\n String getDescription();\n String toString();\n\n}", "private int pc() {\r\n\t\t// PC incremented prior to instruction simulation, so need to adjust for\r\n\t\t// that.\r\n\t\treturn RegisterFile.getProgramCounter() - Instruction.INSTRUCTION_LENGTH;\r\n\t}", "abstract protected void pre(int code);", "public byte[] code();", "private static void sample2() {\n\t\tIComputer computer = new Computer();\n\t\tcomputer.setProgram(\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xff,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xc1,\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xff);\n\t\tTestContext context = new TestContext(\n\t\t (byte) 0xa1, (byte) 0x9b, (byte) 0x3c);\n\t\tcomputer.run(context);\n\t\tSystem.out.println(context.outputToString());\n\t}", "int executeOpCode(int pointer, int[] pmOp, boolean io) {\n\t\t// Halting: 99\n\t\tif (pmOp[_OP] == _END) {\n\t\t\tstate = _STATE_HALT;\n\t\t\treturn 1;\n\t\t}\n\t\t// 1 Arg Operator: Output: 4\n\t\tlong arg1 = getArg(pmOp[1], pointer + _R1);\n//\t\tint arg1 = pmOp[1] == 0 ? stack[stack[pointer + _R1]] : stack[pointer + _R1];\n\t\tif (pmOp[_OP] == _OUT) {\n\t\t\tif (pmOp[1] == _MODE_IMIDIATE) {\n\t\t\t\toutput(getStackAt(pointer + 1));\n\t\t\t} else if (pmOp[1] == _MODE_PARAMETER) {\n\t\t\t\toutput(getStackAt((int) getStackAt(pointer + 1)));\n\t\t\t} else {\n\t\t\t\toutput(getStackAt((int) (getStackAt(pointer + 1) + relativBase)));\n\t\t\t}\n\t\t\toutput.add(this.outputReg);\n\t\t\treturn 2;\n\t\t}\n\t\t// Input: 3\n\t\tif (pmOp[_OP] == _INP) {\n\t\t\tint inputDest = (int) getStackAt(pointer + 1);\n\t\t\tif (pmOp[1] == _MODE_PARAMETER) {\n\t\t\t\tinputDest = (int) getStackAt(pointer + 1);\n\t\t\t} else {\n\t\t\t\tinputDest = (int) (getStackAt(pointer + 1) + relativBase);\n\t\t\t}\n\t\t\tif (io && state != _STATE_INPUT_SUBMITTED) {\n\t\t\t\tstate = _STATE_INPUT_WAITING;\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tstate = _STATE_INPUT_RESUMED;\n\t\t\tstack[inputDest] = getInput();\n\t\t\treturn 2;\n\t\t}\n\t\t// adjusts the relative base\n\t\tif (pmOp[_OP] == _ARB) {\n\t\t\tif (pmOp[1] == _MODE_PARAMETER) {\n\t\t\t\trelativBase += getStackAt((int) getStackAt(pointer + 1));\n\t\t\t} else if (pmOp[1] == _MODE_IMIDIATE) {\n\t\t\t\trelativBase += getStackAt(pointer + 1);\n\t\t\t} else {\n\t\t\t\trelativBase += getStackAt((int) (getStackAt(pointer + 1) + relativBase));\n\t\t\t}\n\t\t\treturn 2;\n\t\t}\n\n\t\tlong arg2 = getArg(pmOp[2], pointer + _R2);\n\t\tint dest = (int) getStackAt(pointer + _DE);\n\t\tif (pmOp[3] == _MODE_RELATIVEBASE) {\n\t\t\tdest = (int) (getStackAt(pointer + _DE) + relativBase);\n\t\t}\n\t\t// Operators using 2-3 Args\n\t\t// Add: 1, Mul: 2, LTH(LessThen): 7, EQU(Equals): 8, JIT(jump if true): 5,\n\t\t// JIF(jump if false): 6\n\t\tswitch (pmOp[_OP]) {\n\t\tcase _ADD:\n\t\t\tsetStackAt(dest, arg1 + arg2);\n\t\t\treturn 4;\n\t\tcase _MUL:\n\t\t\tsetStackAt(dest, arg1 * arg2);\n\t\t\treturn 4;\n\t\tcase _LTH:\n\t\t\tsetStackAt(dest, arg1 < arg2 ? 1 : 0);\n\t\t\treturn 4;\n\t\tcase _EQU:\n\t\t\tsetStackAt(dest, arg1 == arg2 ? 1 : 0);\n\t\t\treturn 4;\n\t\tcase _JIT:\n\t\t\treturn (int) (arg1 != 0 ? arg2 - pointer : 3);\n\t\tcase _JIF:\n\t\t\treturn (int) (arg1 == 0 ? arg2 - pointer : 3);\n\t\tdefault:\n\t\t\tSystem.err.println(\"Error: executeOpCodePM(\" + pointer + \", \" + Arrays.toString(pmOp) + \")\");\n\t\t\treturn -1;\n\t\t}\n\t}", "private void Perform_CALL() throws RuntimeException\n {\n PCToStack();\n \n int k = Utils.GetOperand_XXXXXXX11111XXX1(mMBR);\n mPC = k + mMBR2;\n \n if (PC_BIT_SIZE == 22)\n clockTick();\n clockTick();\n clockTick();\n clockTick();\n \n return;\n }", "public static String evaluate(String cmd) throws TestException {\n int i = 0;\n String[] token = cmd.split(\" \");\n String keyword = token[0].toLowerCase();\n token[0] = cmd_first(token[i++]); //evalute first token and convert\n\n //halt or return\n if (token.length == 1) {\n if (keyword.equals(\"return\")) {\n return \"0110 1100 0000 0000\";\n }\n\n return \"0000 0000 0000 0000\";\n }\n else if (token.length == 2) {\n switch (keyword) {\n case \"interrupt\" -> {\n if (Integer.parseInt(token[i]) == 0)\n return \"0010 0000 0000 0000\";\n else\n return \"0010 0000 0000 0001\";\n\n }\n\n //JUMP! JUMP!\n case \"jump\" -> {\n String[] newtoken = new String[token.length + 2];\n String[] bits;\n newtoken[0] = token[0];\n newtoken[1] = \"0000\";\n bits = calc_val(Integer.parseInt(token[i]));\n newtoken[2] = bits[0];\n newtoken[3] = bits[1];\n return String.join(\" \", newtoken);\n }\n\n case \"push\" -> {\n String[] newtoken = new String[token.length + 2];\n newtoken[0] = token[0];\n newtoken[1] = \"0000\";\n newtoken[2] = \"0000\";\n newtoken[3] = which_reg(token[1]);\n return String.join(\" \", newtoken);\n\n }\n case \"pop\" -> {\n String[] newtoken = new String[token.length + 2];\n newtoken[0] = token[0];\n newtoken[1] = \"0100\";\n newtoken[2] = \"0000\";\n newtoken[3] = which_reg(token[1]);\n return String.join(\" \", newtoken);\n\n }\n\n case \"call\" -> {\n String fpart = \"0110 10\";\n int val = Integer.parseInt(token[1]);\n int ninth_power = (int) Longword.binary_pow(9);\n int eight_power = (int) Longword.binary_pow(8);\n if (val >= ninth_power) {\n val -= ninth_power;\n fpart = fpart + '1';\n } else {\n fpart = fpart + '0';\n }\n\n if (val >= eight_power) {\n val -= eight_power;\n fpart = fpart + '1';\n } else {\n fpart = fpart + '0';\n }\n\n String[] newtoken = new String[token.length + 2];\n String[] first_part = fpart.split(\" \");\n String[] bits;\n newtoken[0] = first_part[0];\n newtoken[1] = first_part[1];\n bits = calc_val(val);\n newtoken[2] = bits[0];\n newtoken[3] = bits[1];\n return String.join(\" \", newtoken);\n }\n\n //ALL 4 BRANCH STATEMENTS\n case \"brancheq\", \"branchneq\", \"branchg\", \"branchgeq\" -> {\n String fpart;\n fpart = switch (keyword) {\n case \"branchneq\" -> \"0101 00\";\n case \"brancheq\" -> \"0101 01\";\n case \"branchg\" -> \"0101 10\";\n case \"branchgeq\" -> \"0101 11\";\n default -> throw new IllegalStateException(\"Unexpected value: \" + keyword);\n };\n int val = Integer.parseInt(token[1]);\n if (val < 0) {\n fpart = fpart + '1';\n val *= -1;\n } else\n fpart = fpart + '0';\n\n int a = (int) Longword.binary_pow(8);\n\n if (val >= a) {\n val -= a;\n fpart = fpart + '1' + ' ';\n } else {\n fpart = fpart + '0' + ' ';\n }\n String[] newtoken = new String[token.length + 2];\n String[] first_part = fpart.split(\" \");\n String[] bits;\n newtoken[0] = first_part[0];\n newtoken[1] = first_part[1];\n bits = calc_val(val);\n newtoken[2] = bits[0];\n newtoken[3] = bits[1];\n return String.join(\" \", newtoken);\n }\n }\n ;\n } else if (token.length == 3) {\n String[] newtoken = new String[token.length + 1];\n\n //move\n if (keyword.equals(\"move\")) {\n newtoken[0] = token[0];\n newtoken[1] = which_reg(token[1]);\n int val = Integer.parseInt(token[2]);\n String[] bits;\n bits = calc_val(val);\n newtoken[2] = bits[0];\n newtoken[3] = bits[1];\n return String.join(\" \", newtoken);\n }\n //not || compare\n else {\n newtoken[0] = token[0];\n newtoken[1] = which_reg(token[1]);\n newtoken[2] = \"0000\";\n newtoken[3] = which_reg(token[2]);\n return String.join(\" \", newtoken);\n }\n\n }\n //for all other code i.e ALU operations\n token[1] = which_reg(token[1]);\n token[2] = which_reg(token[2]);\n token[3] = which_reg(token[3]);\n return String.join(\" \", token);\n\n }", "private SimInstruction getInstruction(Addr address) {\n var inst = decodedInstructions.get(address);\n\n if (inst != null) {\n return inst;\n }\n\n // Try to decode instruction\n var rawInstruction = program.get(address);\n\n // System.out.println(\"INSTRUC: \" + instructions);\n SpecsCheck.checkNotNull(rawInstruction,\n () -> \"No program instruction found at address \" + address.toNumber() + \" (\" +\n address + \")\");\n\n var microCodeInstruction = decoder.decode(rawInstruction, this);\n decodedInstructions.put(address, microCodeInstruction);\n\n return microCodeInstruction;\n }", "public interface OpCPUDataInterface{\n /* Returns an array of 2 longs. The first memeber identifies what type of instruction the second long is. */\n public long [] getData(Long index);\n}", "public void emit(OpCode opcode){\n\t\t\n\t}", "public void run() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.run():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.run():void\");\n }", "private List<Action> createInstructions(String line) {\n\t\tLOGGER.info(\"Reads instruction as '{}'\", line);\n\t\tMatcher m = INSTRUCTION_LINE_PATTERN.matcher(line);\n\t\tif (!m.matches()) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\tString.format(\"The line '%s' does not define a correct sequence of mower instructions!\", line));\n\t\t}\n\t\treturn line.chars()\n\t\t\t.mapToObj(c -> Action.valueOf((char)c))\n\t\t\t.collect(Collectors.toList());\n\t}", "@Override\n public boolean isInstruction() {\n return true;\n }", "public void execute(CPU cpu) throws ExceptionDivisionByZero, StackException {\r\n\t\t\tcpu.div();\r\n\t\t\tcpu.increaseProgramCounter(); \r\n\t}", "public void addInstruction(){\n\n }", "public interface ControlSequenceExpression /*extends ControlSequence*/ {\n byte[] interpret();\n}", "public void tox86(Genx86 generate) throws IOException{\n \texpr.register = register;\n \tString expReg = generate.regName(expr.register);\n \n \texpr.tox86(generate);\n \n \tgenerate.write(generate.push(\"rdi\"));\n \n \tif (expr.type.getType() instanceof IntType){\n \t generate.write(generate.movInt(\"rdi\",expReg));\n\t generate.write(\"call print_int\\n\");\n \t}\n \telse if (expr.type.getType() instanceof BoolType){\n \t generate.write(generate.movBool(\"rdi\",expReg));\n\t generate.write(\"call print_int\\n\");\n \t}\n \telse if (expr.type.getType() instanceof FloatType){\n \t generate.write(generate.movReal(\"rdi\",expReg));\n\t generate.write(\"call print_float\\n\");\n \t}\n \telse if (expr.type.getType() instanceof CharType){\n \t generate.write(generate.movChar(\"rdi\",expReg));\n\t generate.write(\"call print_char\\n\");\n \t}\n \telse{\n \t generate.write(\"print de \"+expr.type.getType()+\" no implementado\");\n \t System.out.println(\"====================\");\n \t System.out.println(\"print de \"+expr.type.getType()+\" no implementado\");\n \t System.out.println(\"====================\");\n \t}\n \t\n\tgenerate.write(generate.pop(\"rdi\"));\n \t// // Por ahora se asume que todas las expresiones son numeros enteros\n \t// //de un solo digito.\n \t// String code = \"\";\n \t// String expReg = generate.current_reg();\n \n \t// expr.tox86(generate);\n \n \t// //\"Transformo\" a ASCII\n \t// code += generate.add(expReg,\"48\");\n \n \t// code += generate.save_print_regs();\n \n \t// code += generate.mov(\"[\"+generate.stack_pointer()+\"]\",expReg);\n \t// // Pongo el valor de la expresion en la pila, ya que la llamada\n // //sys_write necesita que el String este en memoria.\n \t\n \t// code += generate.setup_print(generate.stack_pointer(),\"1\",\"4\");\n \t// code += generate.syscall();\n \t// code += generate.restore_print_regs();\n \t \t \n \t// generate.write(code);\n }", "int mips3_execute(int cycles)\n\t{\n\t//printf(\"mips3_execute (PC=%08X)\\n\", mips3.pc);\n\t\n\t\t/* count cycles and interrupt cycles */\n\t\tmips3_icount = cycles;\n\t\tmips3_icount -= mips3.interrupt_cycles;\n\t\tmips3.interrupt_cycles = 0;\n\t\n\t\tif (mips3.bigendian)\n\t\t\tchange_pc32bedw(mips3.pc);\n\t\telse\n\t\t\tchange_pc32bedw(mips3.pc);\n\t\n\t\t/* check for IRQs */\n\t\tcheck_irqs();\n\t\n\t\t/* core execution loop */\n\t\tdo\n\t\t{\n\t\t\tUINT32 op;\n\t\t\tUINT64 temp64;\n\t\t\tint temp;\n\t\n\t\t\t/* debugging */\n\t\t\tmips3.ppc = mips3.pc;\n\t\t\tCALL_MAME_DEBUG;\n\t\n\t\t\t/* instruction fetch */\n\t\t\top = ROPCODE(mips3.pc);\n\t\n\t\t\t/* adjust for next PC */\n\t\t\tif (mips3.nextpc != ~0)\n\t\t\t{\n\t\t\t\tmips3.pc = mips3.nextpc;\n\t\t\t\tmips3.nextpc = ~0;\n\t\t\t\tif (mips3.bigendian)\n\t\t\t\t\tchange_pc32bedw(mips3.pc);\n\t\t\t\telse\n\t\t\t\t\tchange_pc32bedw(mips3.pc);\n\t\t\t}\n\t\t\telse\n\t\t\t\tmips3.pc += 4;\n\t\n\t\t\t/* parse the instruction */\n\t\t\tswitch (op >> 26)\n\t\t\t{\n\t\t\t\tcase 0x00:\t/* SPECIAL */\n\t\t\t\t\tswitch (op & 63)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0x00:\t/* SLL */\t\tif (RDREG) RDVAL64 = (INT32)(RTVAL32 << SHIFT);\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x01:\t/* MOVF - R5000*/if (RDREG && mips3.cf[1][(op >> 18) & 7] == ((op >> 16) & 1)) RDVAL64 = RSVAL64;\tbreak;\n\t\t\t\t\t\tcase 0x02:\t/* SRL */\t\tif (RDREG) RDVAL64 = (INT32)(RTVAL32 >> SHIFT);\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x03:\t/* SRA */\t\tif (RDREG) RDVAL64 = (INT32)RTVAL32 >> SHIFT;\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x04:\t/* SLLV */\t\tif (RDREG) RDVAL64 = (INT32)(RTVAL32 << (RSVAL32 & 31));\t\tbreak;\n\t\t\t\t\t\tcase 0x06:\t/* SRLV */\t\tif (RDREG) RDVAL64 = (INT32)(RTVAL32 >> (RSVAL32 & 31));\t\tbreak;\n\t\t\t\t\t\tcase 0x07:\t/* SRAV */\t\tif (RDREG) RDVAL64 = (INT32)RTVAL32 >> (RSVAL32 & 31);\t\t\tbreak;\n\t\t\t\t\t\tcase 0x08:\t/* JR */\t\tSETPC(RSVAL32);\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x09:\t/* JALR */\t\tSETPCL(RSVAL32,RDREG);\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x0a:\t/* MOVZ - R5000 */if (RTVAL64 == 0) { if (RDREG) RDVAL64 = RSVAL64; }\t\t\tbreak;\n\t\t\t\t\t\tcase 0x0b:\t/* MOVN - R5000 */if (RTVAL64 != 0) { if (RDREG) RDVAL64 = RSVAL64; }\t\t\tbreak;\n\t\t\t\t\t\tcase 0x0c:\t/* SYSCALL */\tgenerate_exception(EXCEPTION_SYSCALL, 1);\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x0d:\t/* BREAK */\t\tgenerate_exception(EXCEPTION_BREAK, 1);\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x0f:\t/* SYNC */\t\t/* effective no-op */\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x10:\t/* MFHI */\t\tif (RDREG) RDVAL64 = HIVAL64;\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x11:\t/* MTHI */\t\tHIVAL64 = RSVAL64;\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x12:\t/* MFLO */\t\tif (RDREG) RDVAL64 = LOVAL64;\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x13:\t/* MTLO */\t\tLOVAL64 = RSVAL64;\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x14:\t/* DSLLV */\t\tif (RDREG) RDVAL64 = RTVAL64 << (RSVAL32 & 63);\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x16:\t/* DSRLV */\t\tif (RDREG) RDVAL64 = RTVAL64 >> (RSVAL32 & 63);\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x17:\t/* DSRAV */\t\tif (RDREG) RDVAL64 = (INT64)RTVAL64 >> (RSVAL32 & 63);\t\t\tbreak;\n\t\t\t\t\t\tcase 0x18:\t/* MULT */\n\t\t\t\t\t\t\ttemp64 = (INT64)(INT32)RSVAL32 * (INT64)(INT32)RTVAL32;\n\t\t\t\t\t\t\tLOVAL64 = (INT32)temp64;\n\t\t\t\t\t\t\tHIVAL64 = (INT32)(temp64 >> 32);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x19:\t/* MULTU */\n\t\t\t\t\t\t\ttemp64 = (UINT64)RSVAL32 * (UINT64)RTVAL32;\n\t\t\t\t\t\t\tLOVAL64 = (INT32)temp64;\n\t\t\t\t\t\t\tHIVAL64 = (INT32)(temp64 >> 32);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x1a:\t/* DIV */\n\t\t\t\t\t\t\tif (RTVAL32)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLOVAL64 = (INT32)((INT32)RSVAL32 / (INT32)RTVAL32);\n\t\t\t\t\t\t\t\tHIVAL64 = (INT32)((INT32)RSVAL32 % (INT32)RTVAL32);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x1b:\t/* DIVU */\n\t\t\t\t\t\t\tif (RTVAL32)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLOVAL64 = (INT32)(RSVAL32 / RTVAL32);\n\t\t\t\t\t\t\t\tHIVAL64 = (INT32)(RSVAL32 % RTVAL32);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x1c:\t/* DMULT */\n\t\t\t\t\t\t\ttemp64 = (INT64)RSVAL64 * (INT64)RTVAL64;\n\t\t\t\t\t\t\tLOVAL64 = temp64;\n\t\t\t\t\t\t\tHIVAL64 = (INT64)temp64 >> 63;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x1d:\t/* DMULTU */\n\t\t\t\t\t\t\ttemp64 = (UINT64)RSVAL64 * (UINT64)RTVAL64;\n\t\t\t\t\t\t\tLOVAL64 = temp64;\n\t\t\t\t\t\t\tHIVAL64 = 0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x1e:\t/* DDIV */\n\t\t\t\t\t\t\tif (RTVAL64)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLOVAL64 = (INT64)RSVAL64 / (INT64)RTVAL64;\n\t\t\t\t\t\t\t\tHIVAL64 = (INT64)RSVAL64 % (INT64)RTVAL64;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x1f:\t/* DDIVU */\n\t\t\t\t\t\t\tif (RTVAL64)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLOVAL64 = RSVAL64 / RTVAL64;\n\t\t\t\t\t\t\t\tHIVAL64 = RSVAL64 % RTVAL64;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x20:\t/* ADD */\n\t\t\t\t\t\t\tif (ENABLE_OVERFLOWS && RSVAL32 > ~RTVAL32) generate_exception(EXCEPTION_OVERFLOW, 1);\n\t\t\t\t\t\t\telse RDVAL64 = (INT32)(RSVAL32 + RTVAL32);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x21:\t/* ADDU */\t\tif (RDREG) RDVAL64 = (INT32)(RSVAL32 + RTVAL32);\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x22:\t/* SUB */\n\t\t\t\t\t\t\tif (ENABLE_OVERFLOWS && RSVAL32 < RTVAL32) generate_exception(EXCEPTION_OVERFLOW, 1);\n\t\t\t\t\t\t\telse RDVAL64 = (INT32)(RSVAL32 - RTVAL32);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x23:\t/* SUBU */\t\tif (RDREG) RDVAL64 = (INT32)(RSVAL32 - RTVAL32);\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x24:\t/* AND */\t\tif (RDREG) RDVAL64 = RSVAL64 & RTVAL64;\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x25:\t/* OR */\t\tif (RDREG) RDVAL64 = RSVAL64 | RTVAL64;\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x26:\t/* XOR */\t\tif (RDREG) RDVAL64 = RSVAL64 ^ RTVAL64;\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x27:\t/* NOR */\t\tif (RDREG) RDVAL64 = ~(RSVAL64 | RTVAL64);\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x2a:\t/* SLT */\t\tif (RDREG) RDVAL64 = (INT64)RSVAL64 < (INT64)RTVAL64;\t\t\tbreak;\n\t\t\t\t\t\tcase 0x2b:\t/* SLTU */\t\tif (RDREG) RDVAL64 = (UINT64)RSVAL64 < (UINT64)RTVAL64;\t\t\tbreak;\n\t\t\t\t\t\tcase 0x2c:\t/* DADD */\n\t\t\t\t\t\t\tif (ENABLE_OVERFLOWS && RSVAL64 > ~RTVAL64) generate_exception(EXCEPTION_OVERFLOW, 1);\n\t\t\t\t\t\t\telse RDVAL64 = RSVAL64 + RTVAL64;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x2d:\t/* DADDU */\t\tif (RDREG) RDVAL64 = RSVAL64 + RTVAL64;\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x2e:\t/* DSUB */\n\t\t\t\t\t\t\tif (ENABLE_OVERFLOWS && RSVAL64 < RTVAL64) generate_exception(EXCEPTION_OVERFLOW, 1);\n\t\t\t\t\t\t\telse RDVAL64 = RSVAL64 - RTVAL64;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x2f:\t/* DSUBU */\t\tif (RDREG) RDVAL64 = RSVAL64 - RTVAL64;\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x30:\t/* TGE */\t\tif ((INT64)RSVAL64 >= (INT64)RTVAL64) generate_exception(EXCEPTION_TRAP, 1); break;\n\t\t\t\t\t\tcase 0x31:\t/* TGEU */\t\tif (RSVAL64 >= RTVAL64) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x32:\t/* TLT */\t\tif ((INT64)RSVAL64 < (INT64)RTVAL64) generate_exception(EXCEPTION_TRAP, 1); break;\n\t\t\t\t\t\tcase 0x33:\t/* TLTU */\t\tif (RSVAL64 < RTVAL64) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x34:\t/* TEQ */\t\tif (RSVAL64 == RTVAL64) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x36:\t/* TNE */\t\tif (RSVAL64 != RTVAL64) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x38:\t/* DSLL */\t\tif (RDREG) RDVAL64 = RTVAL64 << SHIFT;\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x3a:\t/* DSRL */\t\tif (RDREG) RDVAL64 = RTVAL64 >> SHIFT;\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x3b:\t/* DSRA */\t\tif (RDREG) RDVAL64 = (INT64)RTVAL64 >> SHIFT;\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x3c:\t/* DSLL32 */\tif (RDREG) RDVAL64 = RTVAL64 << (SHIFT + 32);\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x3e:\t/* DSRL32 */\tif (RDREG) RDVAL64 = RTVAL64 >> (SHIFT + 32);\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x3f:\t/* DSRA32 */\tif (RDREG) RDVAL64 = (INT64)RTVAL64 >> (SHIFT + 32);\t\t\tbreak;\n\t\t\t\t\t\tdefault:\t/* ??? */\t\tinvalid_instruction(op);\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tcase 0x01:\t/* REGIMM */\n\t\t\t\t\tswitch (RTREG)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0x00:\t/* BLTZ */\t\tif ((INT64)RSVAL64 < 0) ADDPC(SIMMVAL);\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x01:\t/* BGEZ */\t\tif ((INT64)RSVAL64 >= 0) ADDPC(SIMMVAL);\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x02:\t/* BLTZL */\t\tif ((INT64)RSVAL64 < 0) ADDPC(SIMMVAL);\telse mips3.pc += 4;\t\tbreak;\n\t\t\t\t\t\tcase 0x03:\t/* BGEZL */\t\tif ((INT64)RSVAL64 >= 0) ADDPC(SIMMVAL); else mips3.pc += 4; \tbreak;\n\t\t\t\t\t\tcase 0x08:\t/* TGEI */\t\tif ((INT64)RSVAL64 >= SIMMVAL) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x09:\t/* TGEIU */\t\tif (RSVAL64 >= SIMMVAL) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x0a:\t/* TLTI */\t\tif ((INT64)RSVAL64 < SIMMVAL) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x0b:\t/* TLTIU */\t\tif (RSVAL64 >= SIMMVAL) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x0c:\t/* TEQI */\t\tif (RSVAL64 == SIMMVAL) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x0e:\t/* TNEI */\t\tif (RSVAL64 != SIMMVAL) generate_exception(EXCEPTION_TRAP, 1);\tbreak;\n\t\t\t\t\t\tcase 0x10:\t/* BLTZAL */\tif ((INT64)RSVAL64 < 0) ADDPCL(SIMMVAL,31);\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x11:\t/* BGEZAL */\tif ((INT64)RSVAL64 >= 0) ADDPCL(SIMMVAL,31);\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 0x12:\t/* BLTZALL */\tif ((INT64)RSVAL64 < 0) ADDPCL(SIMMVAL,31) else mips3.pc += 4;\tbreak;\n\t\t\t\t\t\tcase 0x13:\t/* BGEZALL */\tif ((INT64)RSVAL64 >= 0) ADDPCL(SIMMVAL,31) else mips3.pc += 4;\tbreak;\n\t\t\t\t\t\tdefault:\t/* ??? */\t\tinvalid_instruction(op);\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tcase 0x02:\t/* J */\t\t\tABSPC(LIMMVAL);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x03:\t/* JAL */\t\tABSPCL(LIMMVAL,31);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x04:\t/* BEQ */\t\tif (RSVAL64 == RTVAL64) ADDPC(SIMMVAL);\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x05:\t/* BNE */\t\tif (RSVAL64 != RTVAL64) ADDPC(SIMMVAL);\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x06:\t/* BLEZ */\t\tif ((INT64)RSVAL64 <= 0) ADDPC(SIMMVAL);\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x07:\t/* BGTZ */\t\tif ((INT64)RSVAL64 > 0) ADDPC(SIMMVAL);\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x08:\t/* ADDI */\n\t\t\t\t\tif (ENABLE_OVERFLOWS && RSVAL32 > ~SIMMVAL) generate_exception(EXCEPTION_OVERFLOW, 1);\n\t\t\t\t\telse if (RTREG) RTVAL64 = (INT32)(RSVAL32 + SIMMVAL);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0x09:\t/* ADDIU */\t\tif (RTREG) RTVAL64 = (INT32)(RSVAL32 + SIMMVAL);\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x0a:\t/* SLTI */\t\tif (RTREG) RTVAL64 = (INT64)RSVAL64 < (INT64)SIMMVAL;\t\t\t\t\tbreak;\n\t\t\t\tcase 0x0b:\t/* SLTIU */\t\tif (RTREG) RTVAL64 = (UINT64)RSVAL64 < (UINT64)SIMMVAL;\t\t\t\t\tbreak;\n\t\t\t\tcase 0x0c:\t/* ANDI */\t\tif (RTREG) RTVAL64 = RSVAL64 & UIMMVAL;\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x0d:\t/* ORI */\t\tif (RTREG) RTVAL64 = RSVAL64 | UIMMVAL;\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x0e:\t/* XORI */\t\tif (RTREG) RTVAL64 = RSVAL64 ^ UIMMVAL;\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x0f:\t/* LUI */\t\tif (RTREG) RTVAL64 = (INT32)(UIMMVAL << 16);\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x10:\t/* COP0 */\t\thandle_cop0(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x11:\t/* COP1 */\t\thandle_cop1(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x12:\t/* COP2 */\t\thandle_cop2(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x13:\t/* COP1X - R5000 */handle_cop1x(op);\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x14:\t/* BEQL */\t\tif (RSVAL64 == RTVAL64) ADDPC(SIMMVAL); else mips3.pc += 4;\t\t\t\tbreak;\n\t\t\t\tcase 0x15:\t/* BNEL */\t\tif (RSVAL64 != RTVAL64) ADDPC(SIMMVAL);\telse mips3.pc += 4;\t\t\t\tbreak;\n\t\t\t\tcase 0x16:\t/* BLEZL */\t\tif ((INT64)RSVAL64 <= 0) ADDPC(SIMMVAL); else mips3.pc += 4;\t\t\tbreak;\n\t\t\t\tcase 0x17:\t/* BGTZL */\t\tif ((INT64)RSVAL64 > 0) ADDPC(SIMMVAL); else mips3.pc += 4;\t\t\t\tbreak;\n\t\t\t\tcase 0x18:\t/* DADDI */\n\t\t\t\t\tif (ENABLE_OVERFLOWS && RSVAL64 > ~SIMMVAL) generate_exception(EXCEPTION_OVERFLOW, 1);\n\t\t\t\t\telse if (RTREG) RTVAL64 = RSVAL64 + (INT64)SIMMVAL;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0x19:\t/* DADDIU */\tif (RTREG) RTVAL64 = RSVAL64 + (UINT64)SIMMVAL;\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x1a:\t/* LDL */\t\t(*mips3.ldl)(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x1b:\t/* LDR */\t\t(*mips3.ldr)(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x20:\t/* LB */\t\ttemp = RBYTE(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (INT8)temp;\t\t\tbreak;\n\t\t\t\tcase 0x21:\t/* LH */\t\ttemp = RWORD(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (INT16)temp;\t\tbreak;\n\t\t\t\tcase 0x22:\t/* LWL */\t\t(*mips3.lwl)(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x23:\t/* LW */\t\ttemp = RLONG(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (INT32)temp;\t\tbreak;\n\t\t\t\tcase 0x24:\t/* LBU */\t\ttemp = RBYTE(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (UINT8)temp;\t\tbreak;\n\t\t\t\tcase 0x25:\t/* LHU */\t\ttemp = RWORD(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (UINT16)temp;\t\tbreak;\n\t\t\t\tcase 0x26:\t/* LWR */\t\t(*mips3.lwr)(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x27:\t/* LWU */\t\ttemp = RLONG(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (UINT32)temp;\t\tbreak;\n\t\t\t\tcase 0x28:\t/* SB */\t\tWBYTE(SIMMVAL+RSVAL32, RTVAL32);\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x29:\t/* SH */\t\tWWORD(SIMMVAL+RSVAL32, RTVAL32); \t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x2a:\t/* SWL */\t\t(*mips3.swl)(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x2b:\t/* SW */\t\tWLONG(SIMMVAL+RSVAL32, RTVAL32);\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x2c:\t/* SDL */\t\t(*mips3.sdl)(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x2d:\t/* SDR */\t\t(*mips3.sdr)(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x2e:\t/* SWR */\t\t(*mips3.swr)(op);\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x2f:\t/* CACHE */\t\t/* effective no-op */\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x30:\t/* LL */\t\tlogerror(\"mips3 Unhandled op: LL\\n\");\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x31:\t/* LWC1 */\t\tset_cop1_reg(RTREG, RLONG(SIMMVAL+RSVAL32));\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x32:\t/* LWC2 */\t\tset_cop2_reg(RTREG, RLONG(SIMMVAL+RSVAL32));\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x33:\t/* PREF */\t\t/* effective no-op */\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x34:\t/* LLD */\t\tlogerror(\"mips3 Unhandled op: LLD\\n\");\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x35:\t/* LDC1 */\t\tset_cop1_reg(RTREG, RDOUBLE(SIMMVAL+RSVAL32));\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x36:\t/* LDC2 */\t\tset_cop2_reg(RTREG, RDOUBLE(SIMMVAL+RSVAL32));\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x37:\t/* LD */\t\ttemp64 = RDOUBLE(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = temp64;\t\t\tbreak;\n\t\t\t\tcase 0x38:\t/* SC */\t\tlogerror(\"mips3 Unhandled op: SC\\n\");\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x39:\t/* SWC1 */\t\tWLONG(SIMMVAL+RSVAL32, get_cop1_reg(RTREG));\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x3a:\t/* SWC2 */\t\tWLONG(SIMMVAL+RSVAL32, get_cop2_reg(RTREG));\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x3b:\t/* SWC3 */\t\tinvalid_instruction(op);\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x3c:\t/* SCD */\t\tlogerror(\"mips3 Unhandled op: SCD\\n\");\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x3d:\t/* SDC1 */\t\tWDOUBLE(SIMMVAL+RSVAL32, get_cop1_reg(RTREG));\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x3e:\t/* SDC2 */\t\tWDOUBLE(SIMMVAL+RSVAL32, get_cop2_reg(RTREG));\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase 0x3f:\t/* SD */\t\tWDOUBLE(SIMMVAL+RSVAL32, RTVAL64);\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tdefault:\t/* ??? */\t\tinvalid_instruction(op);\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmips3_icount--;\n\t\n\t\t} while (mips3_icount > 0 || mips3.nextpc != ~0);\n\t\n\t//printf(\"mips3_execute done (PC=%08X)\\n\", mips3.pc);\n\t\n\t\tmips3_icount -= mips3.interrupt_cycles;\n\t\tmips3.interrupt_cycles = 0;\n\t\treturn cycles - mips3_icount;\n\t}", "protected final /* synthetic */ java.lang.Object run() {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.chu();\n r3 = com.tencent.mm.plugin.appbrand.b.c.this;\n r3 = r3.iKh;\n if (r2 != r3) goto L_0x0022;\n L_0x000e:\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.iKh;\n r2 = r2.iKy;\n r2 = r2 & 1;\n if (r2 <= 0) goto L_0x0020;\n L_0x0018:\n r2 = r0;\n L_0x0019:\n if (r2 == 0) goto L_0x0022;\n L_0x001b:\n r0 = java.lang.Boolean.valueOf(r0);\n return r0;\n L_0x0020:\n r2 = r1;\n goto L_0x0019;\n L_0x0022:\n r0 = r1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.b.c.5.run():java.lang.Object\");\n }", "public void load_cntl_code_1() {\n\n control_memory[0] = new Fetch0();\n control_memory[1] = new Fetch1();\n control_memory[2] = new Fetch2();\n control_memory[5] = new NOP();\n control_memory[10] = new LOADI0();\n\n control_memory[15] = new RSTART(\"ADD\", false);\n control_memory[16] = new ADD(\"ADD\", false);\n control_memory[17] = new RFINISH(\"ADD\");\n\n control_memory[20] = new RSTART(\"SUB\", false);\n control_memory[21] = new SUB(\"SUB\", false);\n control_memory[22] = new RFINISH(\"SUB\");\n\n control_memory[25] = new RSTART(\"ADDS\", false);\n control_memory[26] = new ADD(\"ADDS\", true);\n control_memory[27] = new RFINISH(\"ADDS\");\n\n control_memory[30] = new RSTART(\"SUBS\", false);\n control_memory[31] = new SUB(\"SUBS\", true);\n control_memory[32] = new RFINISH(\"SUBS\");\n\n control_memory[35] = new RSTART(\"AND\", false);\n control_memory[36] = new AND(\"AND\");\n control_memory[37] = new RFINISH(\"AND\");\n\n control_memory[40] = new RSTART(\"ORR\", false);\n control_memory[41] = new ORR(\"ORR\");\n control_memory[42] = new RFINISH(\"ORR\");\n\n control_memory[45] = new RSTART(\"EOR\", false);\n control_memory[46] = new EOR(\"EOR\");\n control_memory[47] = new RFINISH(\"EOR\");\n\n control_memory[50] = new LSL0();\n control_memory[51] = new LSL1();\n control_memory[52] = new RFINISH(\"LSR\");\n\n control_memory[55] = new LSR0();\n control_memory[56] = new LSR1();\n control_memory[57] = new RFINISH(\"LSR\");\n\n control_memory[60] = new BR0();\n control_memory[61] = new BR1();\n\n control_memory[65] = new RSTART(\"ADDI\", true);\n control_memory[66] = new ADD(\"ADDI\", false);\n control_memory[67] = new RFINISH(\"ADDI\");\n\n control_memory[70] = new RSTART(\"SUBI\", true);\n control_memory[71] = new SUB(\"SUBI\", false);\n control_memory[72] = new RFINISH(\"SUBI\");\n\n control_memory[75] = new RSTART(\"ADDIS\", true);\n control_memory[76] = new ADD(\"ADDIS\", true);\n control_memory[77] = new RFINISH(\"ADDIS\");\n\n control_memory[80] = new RSTART(\"SUBIS\", true);\n control_memory[81] = new SUB(\"SUBIS\", true);\n control_memory[82] = new RFINISH(\"SUBIS\");\n\n control_memory[85] = new RSTART(\"ANDI\", true);\n control_memory[86] = new AND(\"ANDI\");\n control_memory[87] = new RFINISH(\"ANDI\");\n\n control_memory[90] = new RSTART(\"ORRI\", true);\n control_memory[91] = new ORR(\"ORRI\");\n control_memory[92] = new RFINISH(\"ORRI\");\n\n control_memory[95] = new RSTART(\"EORI\", true);\n control_memory[96] = new EOR(\"EORI\");\n control_memory[97] = new RFINISH(\"EORI\");\n\n control_memory[100] = new LDUR0();\n control_memory[101] = new LDUR1();\n control_memory[102] = new LDUR2();\n control_memory[103] = new LDUR3();\n control_memory[104] = new LDUR4();\n\n control_memory[105] = new STUR0();\n control_memory[106] = new STUR1();\n control_memory[107] = new STUR2();\n control_memory[108] = new STUR3();\n control_memory[109] = new STUR4();\n\n control_memory[140] = new CBSTART(\"CBZ\");\n control_memory[141] = new CBZ();\n control_memory[142] = new CBFINISH(\"CBZ\");\n\n control_memory[145] = new CBSTART(\"CBNZ\");\n control_memory[146] = new CBNZ();\n control_memory[147] = new CBFINISH(\"CBNZ\");\n\n control_memory[155] = new BCONDSTART(\"BEQ\");\n control_memory[156] = new BEQ();\n control_memory[157] = new BCONDFINISH(\"BEQ\");\n\n control_memory[160] = new BCONDSTART(\"BNE\");\n control_memory[161] = new BNE();\n control_memory[162] = new BCONDFINISH(\"BNE\");\n\n control_memory[165] = new BCONDSTART(\"BLT\");\n control_memory[166] = new BLT();\n control_memory[167] = new BCONDFINISH(\"BLT\");\n\n control_memory[170] = new BCONDSTART(\"BLE\");\n control_memory[171] = new BLE();\n control_memory[172] = new BCONDFINISH(\"BLE\");\n\n control_memory[175] = new BCONDSTART(\"BGT\");\n control_memory[176] = new BGT();\n control_memory[177] = new BCONDFINISH(\"BGT\");\n\n control_memory[180] = new BCONDSTART(\"BGE\");\n control_memory[181] = new BGE();\n control_memory[182] = new BCONDFINISH(\"BGE\");\n\n control_memory[185] = new B0();\n control_memory[186] = new B1();\n control_memory[187] = new B2();\n\n\n }", "public void run() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.run():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.run():void\");\n }", "public ExecuteState() {\r\n PrevPC = 0;\r\n ChangedLoc = -1;\r\n OldInst = new CodeBlueInstruction();\r\n }", "public static String compileAndRun(String code) throws Exception {\n\t\treturn run(LavaCompiler.compile(code));\n\t}", "@Override\n\tprotected void executeAux(CPU cpu) throws InstructionExecutionException {\n\t\t if(cpu.getNumElem() > 0){\n\t\t\t cpu.push(-cpu.pop());\n\t\t }\n\t\t else \t\n\t\t\t\tthrow new InstructionExecutionException\n\t\t\t\t\t(\"Error ejecutando \" + this.toString() + \": faltan operandos en la pila (hay \" + cpu.getNumElem() + \")\");\n\t\t\t\n\t}", "protected final boolean exec()\n/* */ {\n/* 731 */ compute();\n/* 732 */ return false;\n/* */ }", "protected abstract void stepImpl( long stepMicros );", "public void step() throws Exception{\n Instruction currentInstruction = programMemory.getInstruction(instrPointer);\n instrPointer++;\n Integer value = Integer.parseInt(currentInstruction.getValue());\n try{\n llamarFuncion(currentInstruction.getBody(), currentInstruction.getOperand(), value);\n }catch(IllegalArgumentException e){\n throw e;\n }catch(Exception e){\n throw e;\n }\n }", "@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}", "final void Incr8BitPC() { PCw++; }", "public interface Executable {\n\tvoid execute();\n}", "public void loop() {\n this.instructionList.restart();\t\n }", "abstract void runRoutine();" ]
[ "0.62421936", "0.61460346", "0.6078098", "0.5893275", "0.5868776", "0.5855366", "0.57276267", "0.56395894", "0.5633768", "0.5627626", "0.557216", "0.55610627", "0.5552666", "0.5498002", "0.5497906", "0.5497727", "0.5490221", "0.54776883", "0.54604334", "0.54415417", "0.54390436", "0.5420976", "0.5415602", "0.5407801", "0.5389738", "0.53736633", "0.53682667", "0.5365747", "0.5360048", "0.53516465", "0.53396565", "0.53364074", "0.5333541", "0.5318013", "0.5312398", "0.5309141", "0.52813315", "0.5279532", "0.5278262", "0.5275367", "0.52725357", "0.5265142", "0.52604383", "0.5256305", "0.5254413", "0.5244502", "0.52416074", "0.5221625", "0.521441", "0.5209156", "0.5198789", "0.51872593", "0.5180538", "0.5166002", "0.5165195", "0.5157922", "0.5153597", "0.5141476", "0.51335377", "0.5124897", "0.5112556", "0.51037943", "0.50884193", "0.50870544", "0.50788766", "0.5077038", "0.5076125", "0.5070662", "0.5063707", "0.5060577", "0.5044945", "0.5044703", "0.50357336", "0.5031418", "0.501852", "0.5018485", "0.50011003", "0.49988964", "0.49904412", "0.49887994", "0.49885318", "0.4988256", "0.49880537", "0.49860692", "0.49791893", "0.49742225", "0.49711332", "0.49686158", "0.49670953", "0.49655512", "0.49654886", "0.49583706", "0.49568418", "0.49562505", "0.4954242", "0.49347517", "0.4933818", "0.49337202", "0.4931121", "0.49101317" ]
0.6021297
3
Called to execute the "next" line of code in this virtual hardware component. This can be any action (or sequence of actions) as desired by the implementation to simulate hardware functions.
public boolean executeNext();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void next() {\n\t\tsendMessage(NEXT_COMMAND);\n\t}", "public void execute() {\n if(cb) {\n Main.cb.step(Main.cpu.get8BitImm());\n }\n }", "public void step() {\n try {\n int code = memory[pc];\n nextCode(code);\n pc++;\n dp.refresh(pc, stackRegister, compareRegister);\n } catch (Exception e) {\n con.cPrintln(\"Error : \" + e.toString());\n\n } catch (Error e) {\n con.cPrintln(\"Error : \" + e.getMessage());\n }\n }", "private void next() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(2, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void handleNextCode() {\n setCurrentCode((currentIndex + 1) % codeCount);\n }", "public void step() {\n\t\tpostEvent(new IpcEvent(SimulationEvents.EVENT_TYPE_STEP, this, null));\n\t}", "protected final void emulateNextInstruction() {\r\n // we have to check for interrupts?\r\n if (this.isCheckInterrupt) {\r\n serviceIRQorNMI();\r\n }\r\n\r\n // determine address of the next instruction\r\n this.currentInstructionAddress = getPC();\r\n // get the instruction from memory\r\n final CPU6502Instruction instruction = this.instructions[this.memory[this.currentInstructionAddress] & 0xff];\r\n\r\n // interpret the instruction\r\n this.cycles += instruction.cycles;\r\n addPC(instruction.size);\r\n\r\n if (DEBUG_CODE) {\r\n System.out.println(\"A: \" + this.ac + \", X: \" + this.x + \", Y: \" + this.y + \", status: \" + (this.zeroFlag ? \"Z\" : \"-\") + (this.carryFlag ? \"C\" : \"-\") + (this.signFlag ? \"N\" : \"-\"));\r\n System.out.println(\"pc: $\" + Integer.toHexString(this.pc - instruction.size) + \", opCode: $\" + Integer.toHexString(instruction.opCode) + \", ins: \" + disassemble(instruction));\r\n }\r\n\r\n emulateInstruction(instruction);\r\n }", "void determineNextAction();", "@Override\n public void run() {\n nextButtonAction(); // invoking next button //\n }", "public void step();", "public void step();", "@Override\n\tpublic void step() {\n\t\t\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "public String nextStep();", "protected void execute() {\r\n if (machineState != 5) {\r\n shootAtBeginAutonomous();\r\n } else if (machineState == 5) {\r\n if (!lineFound()) {\r\n initalizeFeederAndShooter();\r\n Robot.chassis.driveMecanumNormalized(-0.5, 0, 0);\r\n } else {\r\n driveOnLine();\r\n shootOnce();\r\n }\r\n }\r\n }", "@Override\n\tpublic void step() {\n\t}", "@Override\n\tpublic void step() {\n\t}", "public void step() throws Exception{\n Instruction currentInstruction = programMemory.getInstruction(instrPointer);\n instrPointer++;\n Integer value = Integer.parseInt(currentInstruction.getValue());\n try{\n llamarFuncion(currentInstruction.getBody(), currentInstruction.getOperand(), value);\n }catch(IllegalArgumentException e){\n throw e;\n }catch(Exception e){\n throw e;\n }\n }", "public abstract void goNext();", "public void act() {\r\n\t\tturn(steps[number % steps.length]);\r\n\t\tnumber++;\r\n\t\tsuper.act();\r\n\t}", "public abstract void performStep();", "public void step()\n {\n status = stepInternal();\n }", "public void execute() {\n\t\tBitString opCodeStr;\n\t\tint opCode;\n\n\t\twhile (true) {\n\t\t\t// Fetch the instruction\n\t\t\tmIR = mMemory[mPC.getValue()];\n\t\t\tmPC.addOne();\n\n\t\t\t// Decode the instruction's first 4 bits \n\t\t\t// to figure out the opcode\n\t\t\topCodeStr = mIR.substring(0, 4);\n\t\t\topCode = opCodeStr.getValue();\n\n\t\t\t// What instruction is this?\n\t\t\tif (opCode == 9) { // NOT\n\t\t\t\texecuteNot();\n\t\t\t} else if (opCode == 0) { //BR\n\t\t\t\texecuteBR();\n\t\t\t} else if (opCode == 1) { //ADD\n\t\t\t\texecuteAdd();\n\t\t\t} else if (opCode == 2) { //LD\n\t\t\t\texecuteLoad();\n\t\t\t} else if (opCode == 5) { //AND\n\t\t\t\texecuteAnd();\n\t\t\t} else if (opCode == 6) { //LDR\n\t\t\t\texecuteLDR();\n\t\t\t} else if (opCode == 7) { //STR\n\t\t\t\texecuteSTR();\n\t\t\t} else if (opCode == 10) { //LDI\n\t\t\t\texecuteLDI();\n\t\t\t} else if (opCode == 11) { //STI\n\t\t\t\texecuteSTI();\n\t\t\t} else if (opCode == 14) { //LEA\n\t\t\t\texecuteLEA();\n\t\t\t} else if (opCode == 15) { //TRAP\n\t\t\t\tBitString trapStr = mIR.substring(8, 8);\n\t\t\t\tint trapVal = trapStr.getValue();\n\t\t\t\tif (trapVal == 33){ //x21 = binary 18 means OUT\n\t\t\t\t\texecuteOUT();\n\t\t\t\t}else if(trapVal == 37) { //x25 = binary 37 means HALT\n\t\t\t\t\treturn; //halt instruction means to stop executing.\n\t\t\t\t} else{ System.out.println(\"Not valid Trap Command.\");}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"INVALID INSTRUCTION ENTERED.\");\n\t\t\t}\n\t\t\t// TODO - Others\n\t\t}\n\t}", "@Override\n public WorkflowStep next() {\n QQTetris.captureScreenThread.setStarted(true);\n QQTetris.activate();\n return INITIAL_BOARD.execute();\n }", "protected void execute() {\n \tRobot.driveSubsystem.runLeftSide(howFastWeWantToMove);\n }", "public abstract void onNext();", "public void next() {\n\t\t}", "protected abstract R runStep();", "public void doNextCommand(String line){\n tokenizer = new Tokenizer(line);\n currentPlayer = checkPlayer(line);\n currentLocation = currentPlayer.getPlayerLocation();\n results = new ArrayList<String>();\n int cmdCnt = 0;\n if(tokenizer.myContainsLower(\"look\")){\n doLook();\n cmdCnt++;\n }\n if(tokenizer.myContainsLower(\"goto\")){\n if(doGoTo()) {\n doLook();\n }\n cmdCnt++;\n }\n if (tokenizer.myContainsLower(\"get\")){\n doGet();\n cmdCnt++;\n }\n if (tokenizer.myContainsLower(\"drop\")) {\n doDrop();\n cmdCnt++;\n }\n if(tokenizer.myContainsLower(\"inv\") || tokenizer.myContains(\"inventory\")){\n doInv();\n cmdCnt++;\n }\n if(tokenizer.myContainsLower(\"health\")){\n results.add(\"Your current level of health is: \" + currentPlayer.getHealth());\n cmdCnt++;\n }\n if(checkForAction()){\n cmdCnt++;\n }\n if(cmdCnt != 1) {\n results = new ArrayList<String>();\n results.add(\"Invalid command.\");\n return;\n }\n currentPlayer.setCurrentLocation(currentLocation);\n checkPlayerHealth();\n }", "void nextState();", "public void next() {\n\n\t\ttry {\n\t\t\t// Establecemos el estado\n\t\t\tsetEstado(Estado.DEBUG);\n\n\t\t\t// ejecutmos la tarea cargada\n\t\t\tplanificador.ejecutarTarea(tarea);\n\n\t\t\t// verificamos si termino\n\t\t\tif (planificador.hayTareasParaEjecutar()) {\n\n\t\t\t\t// cargamos la proxima tarea\n\t\t\t\ttarea = planificador.obtenerProximaTarea();\n\n\t\t\t} else {\n\n\t\t\t\t// Establecemos el estado\n\t\t\t\tsetEstado(Estado.PARADO);\n\n\t\t\t\t// informamos la finalizacion de la ejecución\n\t\t\t\tSystem.out.println(Resource.getString(\"programa.ejecucion.fin\"));\n\n\t\t\t}\n\n\t\t} catch (RuntimeException re) {\n\t\t\tSystem.out.println(MessageFormat.format(Resource.getString(\"programa.ejecucion.error\"),\n\t\t\t\t\tre.getMessage()));\n\t\t\t// re.printStackTrace();\n\t\t\tsetEstado(Estado.PARADO);\n\n\t\t}\n\t}", "public void next()\n {\n if (mHistoryIdx == mCommandList.size()) {\n return;\n }\n\n mCommandList.get(mHistoryIdx++).redo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }", "@Override\n\tpublic void step(int actionType) {\n\n\t}", "@Override\n @SneakyThrows\n public void nextRound() {\n Interpreter interpreter = Zuul.getInstance().getInterpreter();\n /*\n Getting player's input\n */\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n interpreter.handleCommand(this, reader.readLine());\n }", "public interface Code {\r\n \r\n /**\r\n * Called to execute the \"next\" line of code in this\r\n * virtual hardware component.\r\n * \r\n * This can be any action (or sequence of actions) as desired by\r\n * the implementation to simulate hardware functions.\r\n * \r\n * @return true when this \"process\" wants to exit.\r\n */\r\n public boolean executeNext();\r\n \r\n /**\r\n * Called when this instruction set should terminate execution permanently.\r\n * This method SHOULD NOT modify the process Identifier or CPU. It should\r\n * only shut down any processing needs and reset internal data if this\r\n * process is executed again.\r\n */\r\n public void shutdown();\r\n\r\n /**\r\n * Get the program name.\r\n */\r\n public String getName();\r\n \r\n // </editor-fold>\r\n }", "void doNext() throws PlayerDebugException\n\t{\n\t\twaitTilHalted();\n\n\t\tif (!allowedToStep())\n\t\t\treturn;\n\t\t\n\t\tint count = 1;\n\t\tif (hasMoreTokens())\n\t\t\tcount = nextIntToken();\n\n\t\ttry\n\t\t{\n\t\t\twhile(count-- > 0)\n\t\t\t{\n\t\t\t\tstepWithTimeout(new AnyKindOfStep() {\n\t\t\t\t\tpublic void step() throws PlayerDebugException\n\t\t\t\t\t{\n\t\t\t\t\t\tm_session.stepOver();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tfor (;;)\n\t\t\t\t{\n\t\t\t\t\tdumpStep();\n\n\t\t\t\t\tif (m_requestResume) // perhaps we hit a conditional breakpoint\n\t\t\t\t\t{\n\t\t\t\t\t\tm_requestResume = false;\n\t\t\t\t\t\tstepWithTimeout(new AnyKindOfStep() {\n\t\t\t\t\t\t\tpublic void step() throws PlayerDebugException\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tm_session.stepContinue();\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(NoResponseException nre)\n\t\t{\n\t\t\tif (count > 0)\n\t\t\t{\n\t\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\targs.put(\"count\", Integer.toString(count)); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"abortingStep\", args)); //$NON-NLS-1$\n\t\t\t}\n\t\t}\n\n\t\tm_repeatLine = m_currentLine;\n\t}", "protected void handleNext(ActionEvent event) {\n\t}", "java.lang.String getNextStep();", "protected abstract void stepImpl( long stepMicros );", "protected void execute() {\n \tswitch (auto) {\n \tcase RightRightRight:\n \t\tRightRightRight();\n \t\tbreak;\n \tcase RightRightLeft:\n \t\tRightRightLeft();\n \t\tbreak;\n \tcase RightLeftRight:\n \t\tRightLeftRight();\n \t\tbreak;\n \tcase RightLeftLeft:\n \t\tRightLeftLeft();\n \t\tbreak;\n \tcase LeftRightRight:\n \t\tLeftRightRight();\n \t\tbreak;\n \tcase LeftRightLeft:\n \t\tLeftRightLeft();\n \t\tbreak;\n \tcase LeftLeftRight:\n \t\tLeftLeftRight();\n \t\tbreak;\n\t\tcase LeftLeftLeft:\n\t\t\tLeftLeftLeft();\n\t\t\tbreak;\n\t\t}\n \t\n\t\t//Robot.drivebase.DriveTank(1, 1);\n\t\t//new drivecar(1, 1, 5);\n \t\n }", "protected void execute() {\r\n\t//double leftSpeed = oi.leftUpAndDown();\r\n\tdouble leftSpeed = motorScalerLeft.scale(oi.leftUpAndDown() * fullSpeed);\r\n\tSmartDashboard.putNumber(\"debug\\\\leftSpeed\", leftSpeed);\r\n\t\r\n\t//double rightSpeed = oi.rightUpAndDown();\r\n\tdouble rightSpeed = motorScalerRight.scale(oi.rightUpAndDown() * fullSpeed);\r\n\tSmartDashboard.putNumber(\"debug\\\\rightSpeed\", rightSpeed);\r\n\t\r\n\ttheDrive.goVariable(-leftSpeed,-rightSpeed);\r\n }", "public int step() {\n // PUT YOUR CODE HERE\n }", "@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}", "private void run() {\n int code = memory[pc];\n while (code != 0) {\n nextCode(code);\n code = memory[++pc];\n }\n }", "public abstract void nextAnimationStep();", "void start() {\n \tm_e.step(); // 1, 3\n }", "public void startExecuting()\n {\n field_46102_e = 40 + field_46105_a.getRNG().nextInt(40);\n }", "protected void execute() {\n \tRobot.debug.Update(Robot.lift.DebugMotionMagic());\n }", "protected void execute() { \t\n \tif (isLowered != Robot.oi.getOperator().getRawButton(2)) {\n \t\tisLowered = Robot.oi.getOperator().getRawButton(2);\n \t\tif (isLowered)\n \t\t\tRobot.gearSubsystem.getRaiser().set(DoubleSolenoid.Value.kForward);\n \t\telse\n \t\t\tRobot.gearSubsystem.getRaiser().set(DoubleSolenoid.Value.kReverse);\n \t}\n \t\n \tif (Robot.oi.getOperator().getRawButton(11))\n \t\tRobot.gearSubsystem.getIntakeMotor().set(0.75);\n \telse if (Robot.oi.getOperator().getRawButton(12))\n \t\tRobot.gearSubsystem.getIntakeMotor().set(0);\n \telse if (Robot.oi.getOperator().getRawButton(10))\n \t\tRobot.gearSubsystem.getIntakeMotor().set(-0.75);\n }", "public abstract void next();", "public void advanceSimulation () {\n\t\tstep_++;\n\t}", "protected void execute() {\n\t\tthrottle = getThrottle();\n\t\tturn = getCorrectTurnValue();\n\t\tforward = getForward();\n\t\tright = (forward - turn) * throttle;\n\t\tleft = (forward + turn) * throttle;\n\n\t\tRobot.driveTrain.driveManual(right, left);\n\t\tif (Robot.oi.bShiftUp.get()) {\n\t\t\tRobot.driveTrain.shiftToHigh(true);\n\t\t} else if (Robot.oi.bShiftDown.get()) {\n\t\t\tRobot.driveTrain.shiftToHigh(false);\n\t\t}\n\t}", "protected void execute() {\r\n \tmanipulator.moveElevator(speed);\r\n }", "public void executeLDR(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString sourceBS = mIR.substring(7, 3);\n\t\tBitString offset6 = mIR.substring(10, 6);\n\n\t\tBitString wantedVal = mMemory[mRegisters[sourceBS.getValue()].getValue2sComp() + offset6.getValue2sComp()];\n\t\tmRegisters[destBS.getValue()] = wantedVal;\n\n\t\tsetConditionalCode(wantedVal);\n\t}", "public void nextAction(){\n\t\tif (this.currentAction == this.onAction){\n\t\t\tthis.currentAction = this.offAction;\n\t\t\tthis.currentAction = this.currentAction.next();\n\t\t\tthis.lastOffDelay = this.currentAction.getCurrentLapsTime();\n\t\t}else{\n\t\t\tthis.currentAction = this.onAction;\n\t\t\tthis.currentAction = this.currentAction.next();\n\t\t\tthis.currentAction.spendTime(this.lastOffDelay);\n\t\t}\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tcard.next(bootpanel);\n\t\t\tSystem.out.println(\"next\");\n\t\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "@Override\n protected void execute() {\n direction = lineFollower.getState();\n\n if(direction == State.noneState) {\n\n System.out.println(\"Going Nowhere\");\n } \n // else if (direction == State.almostState) {\n // //Makes robot slow down as it approaches \n // drivetrain.tankDrive(0.3, 0.3);\n // isFinished = false;\n // System.out.println(\"Approaching!\");\n // }\n\n // else if (direction == State.finishedState)\n // {\n // //disable control from joystick\n // isFinished = true;\n // System.out.println(\"Finished\");\n // }\n else if (direction == State.leftState)\n {\n //disable control from joystick\n drivetrain.setStopArcadeDrive(true);\n //Make robot go Right by increasing left motor speed and decreasing right motor speed\n drivetrain.tankDrive(correctionSpeed, slowDownSpeed);\n System.out.println(\"Going Left\");\n // led.setLEDR(true);\n // led.setLEDB(false);\n }\n\n else if (direction == State.rightState)\n {\n //disable control from joystick\n drivetrain.setStopArcadeDrive(true);\n //Make robot go Left by decreasing left motor speed and increasing right motor speed\n drivetrain.tankDrive(slowDownSpeed, correctionSpeed);\n System.out.println(\"Going Right\");\n // led.setLEDR(false);\n // led.setLEDB(true);\n }\n\n else if (direction == State.centreState)\n {\n //disable control from joystick\n drivetrain.setStopArcadeDrive(true);\n //Keep robot going straight with same speed on both motors\n drivetrain.tankDrive(0.5, 0.5);\n System.out.println(\"Going Straight\");\n // led.setLEDR(true);\n // led.setLEDB(true);\n }\n\n // else \n // {\n // //return control to joystick\n // isFinished = true;\n // }\n }", "@OnClick\n public void onClickNext() {\n alipayPhoneLogging();\n String phoneNumber = this.airPhone.phoneInputText();\n String countryCode = this.phoneNumberInput.getCountryCode();\n getAlipayActivity().setPhoneNumber(phoneNumber);\n CreatePaymentInstrumentRequest.forAlipay(new Builder().alipayLoginId(getAlipayActivity().getAlipayId()).mobilePhoneNumber(phoneNumber).mobilePhoneCountry(countryCode).build()).withListener((Observer) this.requestListener).execute(this.requestManager);\n this.nextButton.setState(AirButton.State.Loading);\n }", "protected void execute() {\n\t\t//System.out.println(\"Hello\");\n\t\tdouble rightVal = HumanInput.getJoystickAxis(HumanInput.rightJoystick,\n\t\t\t\tAxisType.kY);\n\t\t\n\t\tRobot.driveSys.set(rightVal, Robot.driveSys.talonFrontRight);\n\t\tRobot.driveSys.set(rightVal, Robot.driveSys.talonBackRight);\n\n\t\t\n\n\t\tdouble leftVal = HumanInput.getJoystickAxis(HumanInput.leftJoystick, AxisType.kY);\n\t\t\n\t\tRobot.driveSys.set(-leftVal, Robot.driveSys.talonFrontLeft);\n\t\tRobot.driveSys.set(-leftVal, Robot.driveSys.talonBackLeft);\n\t\t\n\t}", "public abstract void next ();", "IHandler next();", "@Override\n\tpublic String nextCommand() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void next(Void value) {\n\t\tSystem.out.println(\"this is a reaction to a pause event\");\r\n\t\ttheGui.doPause();\r\n\t}", "public void Next();", "public void act() {\n\t\tif (canMove()) {\n\t\t\tif (isOnBase()) {\n\t\t\t\tif (steps < baseSteps) {\n\t\t\t\t\tmove();\n\t\t\t\t\tsteps++;\n\t\t\t\t} else {\n\t\t\t\t\tturn();\n\t\t\t\t\tturn();\n\t\t\t\t\tturn();\n\t\t\t\t\tsteps = 0;\n\t\t\t\t}\n\t\t\t} else if (steps == baseSteps / 2) {\n\t\t\t\tturn();\n\t\t\t\tturn();\n\t\t\t\tsteps++;\n\t\t\t} else if (steps == baseSteps + 1) {\n\t\t\t\tturn();\n\t\t\t\tturn();\n\t\t\t\tturn();\n\t\t\t\tsteps = 0;\n\t\t\t} else {\n\t\t\t\tmove();\n\t\t\t\tsteps++;\n\t\t\t}\n\t\t} else {\n\t\t\tturn();\n\t\t\tturn();\n\t\t\tturn();\n\t\t\tsteps = 0;\n\t\t}\n\t}", "@Override\n protected void execute() {\n double armSpeed;\n\n \n //Auxilary controller\n if (Constants.operatorBoardMode == 1) {\n\n armSpeed = -OI.operatorController.getRawAxis(RobotMap.armAxisAuxPort)*0.75;\n\n //Button pad\n } else {\n armSpeed = OI.operatorRightPad.getRawAxis(RobotMap.armAxisPort)*0.75;\n if (armSpeed < 0) armSpeed = OI.operatorRightPad.getRawAxis(RobotMap.armAxisPort)*0.5;\n }\n\n //bring the arm in if it falls out from inertia\n if (Math.abs(armSpeed) < 0.1 && Robot.myArm.getEncoderCount() < -20 && Robot.myArm.getEncoderCount() > -700) {\n\n armSpeed = -0.5;\n }\n\n Robot.myArm.setArmSpeed(armSpeed);\n \n }", "@Override\n\tpublic void step() {\n\t\ty += speed;\n\t}", "void doStep() throws PlayerDebugException\n\t{\n\t\twaitTilHalted();\n\n\t\tif (!allowedToStep())\n\t\t\treturn;\n\t\t\n\t\tint count = 1;\n\t\tif (hasMoreTokens())\n\t\t\tcount = nextIntToken();\n\n\t\twhile(count-- > 0)\n\t\t{\n\t\t\tstepWithTimeout(new AnyKindOfStep() {\n\t\t\t\tpublic void step() throws PlayerDebugException\n\t\t\t\t{\n\t\t\t\t\tm_session.stepInto();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\tdumpStep();\n\n\t\t\t\tif (m_requestResume) // perhaps we hit a conditional breakpoint\n\t\t\t\t{\n\t\t\t\t\tm_requestResume = false;\n\t\t\t\t\tstepWithTimeout(new AnyKindOfStep() {\n\t\t\t\t\t\tpublic void step() throws PlayerDebugException\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tm_session.stepContinue();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tm_repeatLine = m_currentLine;\n\t}", "private void executeAction(ElevatorAction first) {\n\n\t}", "@Override\n public void next(){\n balls.translate();\n majGui();\n }", "protected void selectNextAction() throws IOException\n {\n HumanPlayer humanPlayer = new HumanPlayer();\n GameLogic gameLogic = new GameLogic();\n Map mapClass = new Map();\n\n System.out.println(\"Please input your next move: \");\n String response = humanPlayer.processCommand(humanPlayer.getInputFromConsole());\n\n switch (response)\n {\n case \"h\":\n System.out.println(gameLogic.hello());\n break;\n case \"mn\":\n System.out.println(gameLogic.move('n'));\n break;\n case \"ms\":\n System.out.println(gameLogic.move('s'));\n break;\n case \"me\":\n System.out.println(gameLogic.move('e'));\n break;\n case \"mw\":\n System.out.println(gameLogic.move('w'));\n break;\n case \"p\":\n System.out.println(gameLogic.pickup());\n break;\n case \"l\":\n System.out.println(gameLogic.look(mapClass.getMap(), mapClass.getPlayersPosition()));\n selectNextAction();\n break;\n case \"q\":\n gameLogic.gameFlick();\n break;\n case \"i\":\n System.out.println(\"Invalid input, please try again.\");\n default:\n selectNextAction();\n break;\n }\n }", "@Override\n public void onNext(Void aVoid) {\n }", "@Test\n\tpublic void advanceAssemblyLineTest(){\n\t\tcmcSystem.logInUser(1);\n\t\tOrder order1 = makeOrder(new ModelC());\n\t\tOrder order2 = makeOrder(new ModelX());\n\t\tOrder order3 = makeOrder(new ModelC());\n\t\tschedule.placeOrder(order1);\n\t\tschedule.placeOrder(order2);\n\t\tschedule.placeOrder(order3);\n\t\tassertTrue(assemblyLine.getWorkstations()[0].isReady());\n\t\tassemblyLine.advance(order1);\n\t\tassertFalse(assemblyLine.isReadyToAdvance());\n\t\tassertFalse(assemblyLine.getWorkstations()[0].isReady());\n\t}", "public void next();", "public void next();", "public abstract void blockNext();", "public abstract void advance();", "protected void execute() {\n \toi.updateToggleLift();\n if(oi.toggleOnLift){\n \t// The commands here will occur if the TorqueLift toggle switch\n \t// is activated. All code here will only run after the button\n \t// has been toggled.\n \tif (limitswitch.getReadyState()) { \n \ttorquelift.swap();\n \ttorquelift.moveAllMotors(oi.getLiftSpeed());\n \t} else {\n \t\t// activates when the limit switch is pressed\n \t\ttorquelift.moveAllMotors(oi.getLiftYUpSpeed());\n \t}\n } else {\n \t// The commands here will occur normally, when the TorqueLift is\n \t// not activated.\n \treturn;\n }\n }", "@Override\n\tprotected void execute() {\n\t\t\n\t\tif (RobotMap.hookEncoder.getRaw() < Robot.climbingEncoderPos1) {\n\t\t\t// already reach the highest position, stop all the motors\n\t\t\thookMotor1.set(ControlMode.PercentOutput, 0);\n\t\t\thookMotor2.set(ControlMode.PercentOutput, 0);\n\t\t\tSystem.out.println(\"Stop climbing\");\n\t\t}else if((RobotMap.hookEncoder.getRaw() > Robot.climbingEncoderPos2)) {\n\t\t\thookMotor1.set(ControlMode.PercentOutput, -1);\n\t\t\thookMotor2.set(ControlMode.PercentOutput, -1);\n\t\t\tSystem.out.println(\"Climbing again\");\n\t\t}\n\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void onStartInstrExecution(Instruction instr) {\n\t\t\n\t}", "public void advance( )\n {\n // Implemented by student.\n }", "@Override\n void advance() {\n }", "public void act() {\n\t\tif (canMove2()) {\n\t\t\tsteps += 2;\n\t\t\tmove();\n\t\t} else {\n\t\t\tturn();\n\t\t\tsteps = 0;\n\t\t}\n\t}", "protected void execute() {\n\t\tif (joystickControl) {\n\t\t\tdouble spitPower = Robot.oi.driverController.triggers.getLeft();\n\t\t\ttargetSpeed = -(spitPower * spitPower);\n\t\t\tRobot.cubeCollector.setCubeCollector(ControlMode.PercentOutput, targetSpeed);\n\t\t} else {\n\t\t\tRobot.cubeCollector.setCubeCollector(ControlMode.PercentOutput, targetSpeed);\n\t\t}\n\n\t}", "boolean nextStep();", "protected void execute() {\n \tRobot.m_oi.messageDriverStation(\"COMMAND AutoTurnRight reported angle is = \" + Robot.driveBase.getGyroAngle());\n \tdouble angle = Robot.driveBase.getGyroAngle();\n \tdouble increment = (requiredAngle - angle) * kP * -0.08;\n \tRobot.driveBase.autoDrive(0.1,0.5);\n }", "@Override\n public void onMachineAssembled()\n {\n \n }", "public void act() {\n\t\tboolean willMove = canMove();\n\t\tif (isEnd) {\n\t\t//to show step count when reach the goal\n\t\t\tif (!hasShown) {\n\t\t\t\tString msg = stepCount.toString() + \" steps\";\n\t\t\t\tJOptionPane.showMessageDialog(null, msg);\n\t\t\t\thasShown = true;\n\t\t\t}\n\t\t} else if (willMove) {\n\t\t\t//visit the next node\n\t\t\tisVisited[next.getRow()][next.getCol()] = true;\n\t\t\tmove();\n\t\t\tstepCount++;\n\t\t} else {\n\t\t\t// back to the cross location\n\t\t\tback();\n\t\t\tstepCount++;\n\t\t}\n\t}", "@Override\r\n\tpublic void execute() throws InstructionExecutionException {\n\t\tthis.robot.requestQuit();\r\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\tCleanScr();\n\t\t\t//Execute the data which function is in CPU\n\t\t\tint result = cpu.executeNext();\n\t\t\tif(result >63){\n\t\t\t\tupdate_output(result-64);\n\t\t\t}else if(result > 31){\n\t\t\t\tupdate_input(result-32);\n\t\t\t}\n\t\t\t//Show the data on screen\n\t\t\tShowData();\n\t\t}", "protected void execute() {\n \tif (setPoint != 0)\n \t\tshooterWheel.shooterWheelSpeedControllerAft.setSetPoint(setPoint);\n \tshooterWheel.driveAftWheel(shooterWheel.shooterWheelSpeedControllerAft.getControlOutput());\n \t\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playNext();\r\n\r\n\t\t\t\t\t\t\t}", "protected void execute() {\r\n\t \tRobot.arm.moveToPreload();\r\n\t }", "@Override\r\n\tpublic void next() {\n\n\t}", "protected void execute() {\n \tRecordMotorMovement.getInstance().RecordMotors();\n }", "protected void execute() {\n \t\n \tcurrent_time = System.currentTimeMillis();\n \t\n \tlift.liftDown(LIFT_SPEED);\n }", "protected void execute() {\n SmartDashboard.putNumber(\"leftEnc\", driveTrain.getLeftEncoderInches());\n SmartDashboard.putNumber(\"rightEnc\", driveTrain.getRightEncoderInches());\n\n //Turn the light on/off with the start button\n if (driver.getRawButton(InputConstants.startButton) && !ringLightButtonPressed) {\n ringLightButtonPressed = true;\n\n camLightOn = !camLightOn;\n\n } else if (!driver.getRawButton(InputConstants.startButton)) {\n ringLightButtonPressed = false;\n }\n\n\n if ((Math.abs(driver.getRawAxis(InputConstants.leftYAxis)) > 0.2 || Math.abs(driver.getRawAxis(InputConstants.rightXAxis)) > 0.2) && driveMode != 4) {\n\n driveMode = 4;\n\n Scheduler.getInstance().add(new T_KajDrive());\n\n }\n }", "@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}", "public void next()\r\n\t{\r\n\t\tif(state<3)\r\n\t\t\tstate++;\r\n\t\telse\r\n\t\t\tstate=1;\r\n\t}" ]
[ "0.6801252", "0.66340977", "0.655635", "0.62709725", "0.6220823", "0.6214504", "0.61891985", "0.61440605", "0.6107939", "0.60758996", "0.60758996", "0.60660875", "0.60660875", "0.6048168", "0.6038024", "0.602985", "0.602985", "0.60038966", "0.59877264", "0.5976757", "0.59681916", "0.59200823", "0.5898954", "0.58963835", "0.588062", "0.5863814", "0.58413684", "0.58387303", "0.5804703", "0.57888204", "0.5777858", "0.5766699", "0.5759468", "0.5754976", "0.57530034", "0.5746862", "0.57297945", "0.5720596", "0.5718171", "0.5717081", "0.5711207", "0.56786466", "0.56695384", "0.5651979", "0.5650709", "0.5632648", "0.562834", "0.56178194", "0.55983436", "0.55788153", "0.55779344", "0.5570652", "0.55611527", "0.55603975", "0.5551241", "0.554356", "0.5542274", "0.5540059", "0.55249244", "0.55132395", "0.5504645", "0.550047", "0.5475806", "0.5469043", "0.545966", "0.5452478", "0.5451427", "0.54452735", "0.5436409", "0.5433728", "0.54282457", "0.54271984", "0.5426911", "0.54257447", "0.5418687", "0.5418687", "0.54183596", "0.5411881", "0.5411269", "0.54098594", "0.5404275", "0.53985256", "0.53868294", "0.5379846", "0.5370475", "0.5369923", "0.5365385", "0.53646266", "0.5362425", "0.5358303", "0.53579354", "0.53554547", "0.5353193", "0.5353017", "0.5350017", "0.5347936", "0.5343782", "0.5339966", "0.5335848", "0.5331766" ]
0.57737255
31
Called when this instruction set should terminate execution permanently. This method SHOULD NOT modify the process Identifier or CPU. It should only shut down any processing needs and reset internal data if this process is executed again.
public void shutdown();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processQuit() {\n System.exit(0);\n }", "public void terminate() {\n\t\tpostEvent(new IpcEvent(SimulationEvents.EVENT_TYPE_TERMINATE, this, null));\n\t}", "public void terminate() {\r\n running = false;\r\n }", "public void terminate() {\n\t\trunning = false;\n\t}", "public void killExecution() {\n \n \t\tcancelOrKillExecution(false);\n \t}", "public void stopProcess() {\r\n\t\tprocess = false;\r\n\t}", "public void stopIt() {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_stop_cpm__FINEST\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(killed) });\n\n dumpState();\n\n stopped = true;\n killed = true;\n if (!isRunning) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_already_stopped__FINEST\",\n new Object[] { Thread.currentThread().getName() });\n // Already stopped\n return;\n }\n // try {\n // Change global status\n isRunning = false;\n // terminate this thread if the thread has been previously suspended\n synchronized (lockForPause) {\n if (pause) {\n pause = false;\n lockForPause.notifyAll();\n }\n }\n // Let processing threads finish their work by emptying all queues. Even during a hard\n // stop we should try to clean things up as best as we can. First empty process queue or work\n // queue, dump result of analysis into output queue and let the consumers process that.\n // When all queues are empty we are done.\n\n // The logic below (now commented out) has a race condition -\n // The workQueue / outputQueue can become (temporarily) empty, but then\n // can be filled with the eof token\n // But this code proceeds to stop all the CAS processors,\n // which results in a hang because the pool isn't empty and the process thread waits for\n // an available cas processor forever.\n\n // Fix is to not kill the cas processors. Just let them finish normally. The artifact producer\n // will stop sending new CASes and send through an eof token, which causes normal shutdown to\n // occur for all the threads.\n\n /*\n * if (workQueue != null) { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb( Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_consuming_queue__FINEST\", new Object[]\n * { Thread.currentThread().getName(), workQueue.getName(),\n * String.valueOf(workQueue.getCurrentSize()) });\n * \n * } int cc = workQueue.getCurrentSize(); while (workQueue.getCurrentSize() > 0) {\n * sleep(MAX_WAIT_ON_QUEUE); if (System.getProperty(\"DEBUG\") != null) { if (cc <\n * workQueue.getCurrentSize()) { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb( Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_wait_consuming_queue__FINEST\", new\n * Object[] { Thread.currentThread().getName(), workQueue.getName(),\n * String.valueOf(workQueue.getCurrentSize()) });\n * \n * } cc = workQueue.getCurrentSize(); } } } } if (outputQueue != null) { while\n * (outputQueue.getCurrentSize() > 0) { sleep(MAX_WAIT_ON_QUEUE); if\n * (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb( Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_wait_consuming_queue__FINEST\", new\n * Object[] { Thread.currentThread().getName(), outputQueue.getName(),\n * String.valueOf(outputQueue.getCurrentSize()) }); } } if\n * (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_done_consuming_queue__FINEST\", new\n * Object[] { Thread.currentThread().getName() }); } }\n * \n * for (int i = 0; processingUnits != null && i < processingUnits.length && processingUnits[i]\n * != null; i++) { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_stop_processors__FINEST\", new Object[]\n * { Thread.currentThread().getName(), String.valueOf(i) }); }\n * processingUnits[i].stopCasProcessors(false); }\n * \n * } catch (Exception e) { if (UIMAFramework.getLogger().isLoggable(Level.FINER)) {\n * e.printStackTrace(); } UIMAFramework.getLogger(this.getClass()).logrb(Level.FINER,\n * this.getClass().getName(), \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n * \"UIMA_CPM_exception__FINER\", new Object[] { Thread.currentThread().getName(), e.getMessage()\n * }); }\n */\n }", "public void terminate()\n\t{\n\t\tsynchronized (this) { this.running = false; }\n\t}", "public void terminate(){\n running = false;\n }", "public void killIt() {\n isRunning = false;\n killed = true;\n hardKill = true;\n\n dumpState();\n if (UIMAFramework.getLogger().isLoggable(Level.INFO)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_killing_cpm__INFO\",\n new Object[] { Thread.currentThread().getName() });\n }\n if (workQueue != null) {\n while (workQueue.getCurrentSize() > 0) {\n workQueue.dequeue();\n }\n }\n if (outputQueue != null) {\n while (outputQueue.getCurrentSize() > 0) {\n outputQueue.dequeue();\n }\n }\n if (casPool != null) {\n synchronized (casPool) {\n casPool.notifyAll();\n }\n }\n if (workQueue != null) {\n Object[] eofToken = new Object[1];\n // only need one member in the array\n eofToken[0] = new EOFToken();\n workQueue.enqueue(eofToken);\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_terminate_pipelines__INFO\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(killed) });\n // synchronized (workQueue) { // redundant - enqueue call above does this\n // workQueue.notifyAll();\n // }\n }\n\n }", "public void terminate() {\n this.terminated = true;\n executor.interrupt();\n this.handler = null;\n this.out = null;\n this.in = null;\n this.logger = null;\n this.buffer = null;\n }", "public synchronized void terminate () {\n shutdown = true;\n }", "public void terminate() {\n Swap.getSwap().close();\n super.terminate();\n }", "@Override\n\tprotected void onTermination() throws SimControlException {\n\t\t\n\t}", "public void shutdown() {\n this.shallRun = false;\n this.interrupt();\n Log.getLog().info(\"catched caretaker termination signal\");\n }", "@PreDestroy\r\n\t@Override\r\n\tpublic void terminate()\r\n\t{\r\n\t\tthis.cleanUpDone = true;\r\n\t\tthis.isRunning = false;\r\n\t\tthis.priceMap.clear();\r\n\t\tthis.priceUpdateBlockingQueue.clear();\r\n\t\tthis.executorService.shutdownNow();\r\n\t\t\r\n\t\tif(logger.isInfoEnabled())\r\n\t\t\tlogger.info(\"Termination of price service has been completed successfully.\");\r\n\t}", "public void forceShutdown() {\r\n\t\tsynchronized (this) {\r\n\t\t\tif (!isRunning()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mExitCommand != null) {\r\n\t\t\t\tfinal OutputStream std = mProcess.getOutputStream();\r\n\t\t\t\tfinal OutputStreamWriter stdWriter = new OutputStreamWriter(std, Charset.defaultCharset());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstdWriter.write(mExitCommand);\r\n\t\t\t\t\tstdWriter.close();\r\n\t\t\t\t} catch (final IOException e) {\r\n\t\t\t\t\tmLogger.error(getLogStringPrefix() + \" Exception during sending of exit command \" + mExitCommand\r\n\t\t\t\t\t\t\t+ \": \" + e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tmLogger.debug(getLogStringPrefix() + \" About to join with the monitor thread... \");\r\n\t\t\t\t\tmMonitor.join(WAIT_FOR_EXIT_COMMAND_MILLIS);\r\n\t\t\t\t\tmLogger.debug(getLogStringPrefix() + \" Successfully joined\");\r\n\r\n\t\t\t\t} catch (final InterruptedException e) {\r\n\t\t\t\t\t// not necessary to do anything here\r\n\t\t\t\t\tmLogger.debug(getLogStringPrefix() + \" Interrupted during join\");\r\n\t\t\t\t}\r\n\t\t\t\tif (!isRunning()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmLogger.warn(getLogStringPrefix() + \" Forcibly destroying the process\");\r\n\t\t\tfinal List<InputStream> tobeclosed = new ArrayList<>(5);\r\n\t\t\ttry {\r\n\t\t\t\t// mProcess.destroyForcibly();\r\n\t\t\t\t// mStorage.removeStorable(getKey(mID, mCommand));\r\n\t\t\t\t// mProcess.getErrorStream().close();\r\n\t\t\t\t// mProcess.getInputStream().close();\r\n\t\t\t\t// mProcess.getOutputStream().flush();\r\n\t\t\t\t// mProcess.getOutputStream().close();\r\n\t\t\t\t// mProcess = null;\r\n\t\t\t\ttobeclosed.add(mProcess.getInputStream());\r\n\t\t\t\ttobeclosed.add(mProcess.getErrorStream());\r\n\t\t\t\ttobeclosed.add(mStdInStreamPipe);\r\n\t\t\t\ttobeclosed.add(mStdErrStreamPipe);\r\n\t\t\t\tkillProcess();\r\n\t\t\t} catch (final NullPointerException ex) {\r\n\t\t\t\tif (mLogger.isWarnEnabled()) {\r\n\t\t\t\t\tmLogger.warn(\r\n\t\t\t\t\t\t\tgetLogStringPrefix() + \" Rare case: The thread was killed right after we checked if it \"\r\n\t\t\t\t\t\t\t\t\t+ \"was killed and before we wanted to kill it manually\");\r\n\t\t\t\t}\r\n\t\t\t} catch (final Throwable t) {\r\n\t\t\t\tmLogger.fatal(String.format(getLogStringPrefix() + \" Something unexpected happened: %s%n%s\", t,\r\n\t\t\t\t\t\tCoreUtil.getStackTrace(t)));\r\n\t\t\t}\r\n\r\n\t\t\tfor (final InputStream stream : tobeclosed) {\r\n\t\t\t\tclose(stream);\r\n\t\t\t}\r\n\r\n\t\t\tmProcessCompleted = true;\r\n\t\t\tmLogger.debug(getLogStringPrefix() + \" Forcibly destroyed the process\");\r\n\t\t}\r\n\t}", "public void terminate() {\n terminated = true;\n }", "protected void kill() {\n\t\tsynchronized (this) // Don't allow shutdown during startup.\n\t\t{\n\t\t\t// Only execute for the first caller.\n\t\t\tif (shutdownMutex.acquire()) {\n\t\t\t\t// Shutdown payer thread.\n\t\t\t\tpayerThread.interrupt();\n\n\t\t\t\tfor (int i = 0; i < sets.length; i++) {\n\t\t\t\t\tsets[i].kill();\n\t\t\t\t}\n\n\t\t\t\t// Shutdown the thread pools.\n\t\t\t\tproducerThreadPool.kill();\n\n\t\t\t\t// Let the GC figure the rest out.\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void stopMachine() {\n cleanOrExplode();\n\n for (GT_MetaTileEntity_Hatch_OutputData data : eOutputData) {\n data.q = null;\n }\n\n mOutputItems = null;\n mOutputFluids = null;\n mEfficiency = 0;\n mEfficiencyIncrease = 0;\n mProgresstime = 0;\n mMaxProgresstime = 0;\n eAvailableData = 0;\n hatchesStatusUpdate_EM();\n getBaseMetaTileEntity().disableWorking();\n }", "public void terminate() {\n\t}", "public void terminate() {\n\t}", "public void terminate() {\n\t}", "public void terminate() {\n logger.info(\"terminate not implemented\");\n }", "@Override\n public void terminateProgram() {\n \n }", "@Override\r\n\tpublic void terminate() {\n\t\r\n\t}", "protected void end() {\n\t\tpid.disable();\n\t}", "protected void terminate(){\r\n\t\tsetTerminate(true);\r\n\t\tHolder holder = this.getDirectHolder();\r\n\t\tsetHolder(null);\r\n\t\tholder.removeItem(this);\r\n\t}", "protected void end() {\n \tpid.disable();\n }", "public synchronized void shutDown() {\n\t state.shutDown();\n\t}", "public void stopProcessing() {\n interrupted = true;\n }", "@Override\n public final void terminate() {\n }", "@Override\n public void onTerminate() {\n Log.i(\"Application\", \"application destory\");\n if (MySocket.getInstance().getConnected()) {\n MySocket.getInstance().stop();\n DataManager manager = DataManager.getInstance();\n manager.setSceneList(manager.getSceneList());\n manager.setEquipmentList(manager.getEquipmentList());\n for (Record record : manager.getCurrentRecords()) {\n if (record.getValues().size() == 0) {\n continue;\n }\n record.setEndTime(new Date());\n manager.addToEquipmentRecordsList(record.getId(), record.clone());\n }\n Log.i(\"Home\", \"destory\");\n Process.killProcess(Process.myPid());\n }\n super.onTerminate();\n }", "private void programShutdown(){\n\n am.finishAllActivity();\n activity .moveTaskToBack(true);\n activity .finish();\n android.os.Process.killProcess(android.os.Process.myPid());\n System.exit(0);\n\n\n }", "void endProcess()\n throws RemoteException;", "public void terminate() {\n }", "public void stop() {\n\t\texec.stop();\n\t}", "public void terminate() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Stopping Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // set flag\n stopped.set(true);\n // shutdown\n Shutdown.main(commandLineArgs);\n System.out.println(\"Red5 stopped\");\n }\n }", "public void shutdown() {\r\n System.exit(0);\r\n }", "public void shutdown() {\n lock.lock();\n try {\n state = State.SHUTDOWN;\n if (serialExecutorMap.isEmpty()) {\n executor.shutdown();\n }\n } finally {\n lock.unlock();\n }\n }", "public void shutdown()\n {\n this.running = false;\n }", "public void shutdown() {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n this.shouldRun = false;\n ((DataXceiveServer) this.dataXceiveServer.getRunnable()).kill();\n try {\n this.storage.closeAll();\n } catch (IOException ie) {\n }\n }", "@Override\n public void onTerminate() {\n \tsuper.onTerminate();\n \t\n \tLog.e(\"LIFECYCLE = \", this.getClass().toString() + \".onTerminate\");\n \treturn;\n }", "@Override\r\n\tpublic void onTerminate() {\n\t\tsuper.onTerminate();\r\n\t}", "public static void terminate() {\n\tStudentDA.terminate();\n }", "public final void kill() {\n doKill();\n }", "public void unsetProcessPidValue() throws JNCException {\n delete(\"process-pid\");\n }", "public void terminate() {\n\t\t//terminate probes\n\t\tfor (Entry<String,IProbe> entry :this.probes.entrySet())\n\t\t\tentry.getValue().terminate();\n\t\t//terminate collector\n\t\tthis.collector.terminate();\n\t\tthis.distributorWorker.terminate();\n\t}", "private void exit() {\n this.isRunning = false;\n }", "public void stop() {\n\t\tif (this.isRunning() && !this.isManagedExternally) {\n\t\t\ttry {\n\t\t\t\tHTTP.release(this.http.get(this.shutdown));\n\t\t\t} catch (IOException exception) {\n\t\t\t\tthis.processRunner.abort();\n\t\t\t}\n\n\t\t\tthis.isManagedExternally = null;\n\t\t}\n\t}", "protected void interrupted() {\n\t\tpid.disable();\n\t}", "@Override\n public void terminate()\n {\n SwapPageManager.closeTestFile();\n //\tprintDebug(memoryController.pageReplacementAlgorithm.getAlgorithmName()+\n //\t\t\t\"Total Page Fault: \"+memoryController.pageReplacementAlgorithm.getNumberPageFault());\n\n super.terminate();\n }", "void abortProcess(Long processInstanceId);", "@Override\n public void shutdown() {\n debugLogger.finest(\"enter\");\n userLogger.info(\"Initiating shutdown\");\n\n if (state == SMState.RUNNING) {\n debugLogger.info(\"state == RUNNING\");\n state = SMState.STARTED;\n interruptThread(runThread);\n }\n\n if (state == SMState.STARTED) {\n debugLogger.info(\"state == STARTED\");\n sessionPool.empty();\n\n state = SMState.STOPPED;\n }\n\n debugLogger.info(\"state == STOPPED\");\n\n userLogger.info(\"Shutdown complete\");\n debugLogger.finest(\"exit\");\n }", "public void terminate() {\n TerminalAtomics.cancel(this, REQUESTED);\n UNSAFE.putOrderedObject(this, REMOVE, null);\n }", "public void stop() {\n\t\t//start the processor thread\n\t\t//logger.debug(processorName+\" stopping processor thread\");\n\t\tprocessorThread.interrupt();\n\t\t\n\t\t//logger.debug(processorName+\" stopped\");\n\t}", "protected void stopProcess() {\n this.pauseProcess(); \n String msg=\"This will stop the process and the content will be\\n\"+\n \"restored to the state before process\\n\"+\n \"Do you want to continue anyway?.\";\n int retval=javax.swing.JOptionPane.showConfirmDialog(null, msg,\"Confirm stopping\",\n javax.swing.JOptionPane.YES_NO_CANCEL_OPTION);\n this.resumeProcess();\n if(retval==javax.swing.JOptionPane.YES_OPTION) {\n algorithm.setStop(true);\n }\n \n }", "public void stopThread() \n {\n \tthis.exit = true;\n \t//ctr.getMemory().programmcounter = 65536;\n }", "public abstract void terminate();", "public void shutdown()\r\n {\r\n debug(\"shutdown() the application module\");\r\n\r\n // Shutdown all the Timers\r\n shutdownWatchListTimers();\r\n // Save Our WatchLists\r\n saveAllVectorData();\r\n // Our Container vectors need to be emptied and clear. \r\n modelVector.removeAllElements();\r\n modelVector = null;\r\n\r\n tableVector.removeAllElements();\r\n tableVector = null;\r\n\r\n // Delete any additional Historic Data that is Serialized to disk\r\n expungeAllHistoricFiles();\r\n\r\n // Shutdown the task that monitors the update tasks\r\n if ( this.monitorTask != null )\r\n {\r\n this.monitorTask.cancel();\r\n this.monitorTask = null;\r\n }\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n debug(\"shutdown() the application module - complete\");\r\n\r\n }", "private void stopProcesses()\n {\n List<String> list = new ArrayList<String>(serverProcessesShutdownStack.keySet());\n ListIterator<String> iter = list.listIterator(list.size());\n while(iter.hasPrevious())\n {\n String processName = iter.previous();\n log.info(String.format(\"Stopping process: %s\", processName));\n serverProcessesShutdownStack.get(processName).stop(this);\n }\n }", "public void terminate();", "public void kill()\n\t{\n\t\tisKilled = true;\n\t}", "public void abort()\n\t{\n\t\tif(process != null)\n\t\t\tprocess.destroy();\n\t}", "public void stop() {\n log.info(\"Stopped\");\n execFactory.shutdown();\n cg.close();\n }", "@Override\r\n public int stop(int exitCode) {\r\n IS.stopAll();\r\n return exitCode;\r\n }", "@Override\n public void kill()\n {\n }", "public void abnormalShutDown() {\n\t}", "@Override\r\n protected void shutdownInternal() {\r\n service.stop();\r\n }", "public void shutdown() {\n this.dontStop = false;\n }", "public static void cancelProcess() {\r\n\r\n if (m_Proc != null) {\r\n if (m_bProcInterruptible) {\r\n m_Proc.destroy();\r\n m_Proc = null;\r\n m_bProcCanceled = true;\r\n }\r\n }\r\n\r\n }", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "public void shutdown()\n\t{\n\t\t; // do nothing\n\t}", "void kill(long procid);", "synchronized void terminate() {\n if (stdin != null) {\n try {\n stdin.write(\"{\\\"exit\\\":0}\\n\");\n stdin.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed, if the child exited already.\n } finally {\n stdin = null;\n }\n }\n\n // Cleaning up stdout (ensuring buffers are flushed, etc...)\n if (stdout != null) {\n try {\n stdout.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed.\n } finally {\n stdout = null;\n }\n }\n\n // Cleaning up error stream sink (ensuring all messages are flushed, etc...)\n if (this.errorStreamSink != null) {\n try {\n this.errorStreamSink.close();\n } catch (final InterruptedException ie) {\n // Ignore - we can no longer do anything about this...\n } finally {\n this.errorStreamSink = null;\n }\n }\n\n if (childProcess != null) {\n // Wait for the child process to complete\n try {\n // Giving the process up to 5 seconds to clean up and exit\n if (!childProcess.waitFor(5, TimeUnit.SECONDS)) {\n // If it's still not done, forcibly terminate it at this point.\n childProcess.destroyForcibly();\n }\n } catch (final InterruptedException ie) {\n throw new RuntimeException(ie);\n } finally {\n childProcess = null;\n }\n }\n\n // We shut down already, no need for the shutdown hook anymore\n if (this.shutdownHook != null) {\n try {\n Runtime.getRuntime().removeShutdownHook(this.shutdownHook);\n } catch (final IllegalStateException ise) {\n // VM Shutdown is in progress, removal is now impossible (and unnecessary)\n } finally {\n this.shutdownHook = null;\n }\n }\n }", "synchronized void terminate() {\n if (stdin != null) {\n try {\n stdin.write(\"{\\\"exit\\\":0}\\n\");\n stdin.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed, if the child exited already.\n } finally {\n stdin = null;\n }\n }\n\n // Cleaning up stdout (ensuring buffers are flushed, etc...)\n if (stdout != null) {\n try {\n stdout.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed.\n } finally {\n stdout = null;\n }\n }\n\n // Cleaning up error stream sink (ensuring all messages are flushed, etc...)\n if (this.errorStreamSink != null) {\n try {\n this.errorStreamSink.close();\n } catch (final InterruptedException ie) {\n // Ignore - we can no longer do anything about this...\n } finally {\n this.errorStreamSink = null;\n }\n }\n\n if (childProcess != null) {\n // Wait for the child process to complete\n try {\n // Giving the process up to 5 seconds to clean up and exit\n if (!childProcess.waitFor(5, TimeUnit.SECONDS)) {\n // If it's still not done, forcibly terminate it at this point.\n childProcess.destroyForcibly();\n }\n } catch (final InterruptedException ie) {\n throw new RuntimeException(ie);\n } finally {\n childProcess = null;\n }\n }\n\n // We shut down already, no need for the shutdown hook anymore\n if (this.shutdownHook != null) {\n try {\n Runtime.getRuntime().removeShutdownHook(this.shutdownHook);\n } catch (final IllegalStateException ise) {\n // VM Shutdown is in progress, removal is now impossible (and unnecessary)\n } finally {\n this.shutdownHook = null;\n }\n }\n }", "@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }", "public void simulationTerminating() {\n }", "private static void exit() {\n dvm.exit();\n stop = true;\n }", "public void shutdown() {\n shutdown(false);\n }", "public static void shutdown() {\n\t\t// Ignore\n\t}", "static public void terminateCurrentLaunch()\n\t{\n\t\tif (g_currentLaunch != null)\n\t\t{\n\t\t\tILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();\n\t\t\tmanager.removeLaunch(g_currentLaunch);\n\t\t}\n\t}", "@Override\n\tpublic void kill() {\n\n\t}", "private void shutDown() {\r\n\t\t\r\n\t\t// send shutdown to children\r\n\t\tlogger.debug(\"BagCheck \"+ this.lineNumber+\" has sent an EndOfDay message to it's Security.\");\r\n\t\tthis.securityActor.tell(new EndOfDay(1));\r\n\r\n\t\t// clear all references\r\n\t\tthis.securityActor = null;\r\n\t}", "@Override\n public void execute() {\n System.out.println(\"programm closed\");\n System.exit(0);\n }", "public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }", "@Override\r\n public void onTerminate() {\n \r\n dataManager.closeDb();\r\n selectedBook = null;\r\n super.onTerminate();\r\n }", "public void quit() {\r\n\t\trunning = false;\r\n\t\tt= null;\r\n\t}", "public void terminate () {\n\t\t\t\n\t\t\tsynchronized (runningLock) {\n\t\t\t\tif (running == false)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tinputStream.close ();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"ModemWorker.teminate(): IOException on close().\");\n\t\t\t}\n\t\t}", "public void terminate() throws DebugException {\n\t\tfTerminated = true;\n\t\tfireTerminateEvent();\n\t}", "public void terminate() {\n\t\t// Do something more clever here...\n\t\toutput.console(\"AlarmClock exit.\");\n\t}", "private static void kill() {\n if (redirectErr != null) {\n redirectErr.close();\n redirectErr.interrupt();\n redirectErr = null;\n }\n\n if (redirectOut != null) {\n redirectOut.close();\n redirectOut.interrupt();\n redirectOut = null;\n }\n\n if (JVM != null) {\n JVM.destroy();\n JVM = null;\n }\n\n JVMrunning = false;\n\n println(\"JVM reset on \" + java.util.Calendar.getInstance().getTime().toString(), progErr);\n }", "@Override\n\tpublic void destroyProcess() {\n\t\tsuper.destroyProcess();\n\t\tDataDirRemoverHandler ddhHandler = \n\t\t\tnew DataDirRemoverHandler(getLogHandler());\n\t\tddhHandler.setRetryLimitInMillis(2000);\n\t\tddhHandler.execute();\n\t\tportsInUse.remove(port);\n\t}", "@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t}", "@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t}", "public static synchronized void stop() {\n\n if (proc != null) {\n proc.destroy();\n try {\n // wait for the process to really stop\n proc.waitFor();\n } catch (InterruptedException e) {\n // ignore\n }\n try {\n // leeway since sometimes the unbind happens after\n Thread.sleep(500);\n } catch (InterruptedException e) {\n // ignore\n }\n proc = null;\n }\n }", "@Override\r\n\t\t\t\tpublic void autEndProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autEndProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "void doKill() throws IOException\n\t{\n\t\tif (m_session == null)\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"programNotBeingRun\")); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\tif (yesNoQuery(getLocalizationManager().getLocalizedTextString(\"askKillProgram\"))) //$NON-NLS-1$\n\t\t\t\texitSession();\n\t\t}\n\t}", "private void nativeKill()\n {\n if (process == null)\n {\n return;\n }\n for (Field f : process.getClass().getDeclaredFields())\n {\n if (\"pid\".equals(f.getName()))\n {\n if (makeFieldAccessible(f))\n {\n try\n {\n int pid = f.getInt(process);\n Runtime.getRuntime().exec(\n new String[] {\"kill\", \"-9\", Integer.toString(pid)});\n }\n catch (Throwable e)\n {\n // Ignore, we tried our best\n }\n }\n break;\n }\n else if (\"handle\".equals(f.getName()))\n {\n if (makeFieldAccessible(f))\n {\n try\n {\n long handleId = f.getLong(process);\n\n Kernel32 kernel = Kernel32.INSTANCE;\n HANDLE handle = new HANDLE();\n handle.setPointer(Pointer.createConstant(handleId));\n int pid = kernel.GetProcessId(handle);\n Runtime.getRuntime().exec(\n new String[] {\"taskkill\", \"/PID\", Integer.toString(pid), \"/F\"});\n }\n catch (Throwable e)\n {\n // Ignore, we tried our best\n }\n }\n break;\n }\n }\n }", "@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}" ]
[ "0.6212536", "0.62053114", "0.62002844", "0.6189946", "0.6188206", "0.61183584", "0.61048114", "0.6077484", "0.5983071", "0.5981645", "0.5972006", "0.5969616", "0.5952206", "0.59251314", "0.58986306", "0.58975476", "0.58812743", "0.58508724", "0.5847087", "0.5845414", "0.58175206", "0.58175206", "0.58175206", "0.5810096", "0.5787872", "0.5780605", "0.5776017", "0.5769911", "0.5768489", "0.57641214", "0.5758361", "0.5753203", "0.57095075", "0.5693698", "0.5688536", "0.56837004", "0.56765825", "0.5670685", "0.56662196", "0.56651616", "0.5636945", "0.5630078", "0.56230366", "0.56219596", "0.5610576", "0.5609855", "0.5605039", "0.56005704", "0.5591723", "0.55715317", "0.5559521", "0.55589885", "0.55454755", "0.55271125", "0.5523625", "0.5516939", "0.5514037", "0.55128133", "0.5508691", "0.5477061", "0.5467663", "0.5463527", "0.54505295", "0.5447766", "0.54422635", "0.54355943", "0.54331535", "0.5432038", "0.54241335", "0.5416571", "0.54092276", "0.5403028", "0.5399411", "0.5398367", "0.538436", "0.538436", "0.53814125", "0.53725547", "0.536628", "0.5365093", "0.53572464", "0.5353218", "0.5351767", "0.53443056", "0.53364", "0.533214", "0.5317783", "0.53145725", "0.5304967", "0.529818", "0.52814204", "0.52810365", "0.5277598", "0.5271866", "0.5271866", "0.5268176", "0.5260043", "0.5260043", "0.5249463", "0.52493995", "0.52446854" ]
0.0
-1
Get the program name.
public String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}", "public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}", "public static String getAppName(){\r\n return getProperty(\"name\", \"Jin\");\r\n }", "public String getProgram() {\n return program;\n }", "public static String getAppName()\n\t{\n\t\treturn APP_NAME;\n\t}", "public String getDotExeName()\n\t{\n\t\treturn dotExeName;\n\t}", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "public static final String getProcessName() {\n\t\treturn NAME;\n\t}", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n appName_ = s;\n return s;\n }\n }", "String getIntegApplicationName();", "public String getAPP_NAME() {\r\n return APP_NAME;\r\n }", "public String getAPP_NAME() {\r\n return APP_NAME;\r\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n appName_ = s;\n return s;\n }\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n appName_ = s;\n return s;\n }\n }", "String getExecutable();", "String getProgram()\n\t\t{\n\t\t\treturn mProgram;\n\t\t}", "@Override\n\tpublic String getExecutingProgramName() throws RemoteException {\n\t return null;\n\t}", "public String\n getProgram() \n {\n if(PackageInfo.sOsType == OsType.Windows) \n return (\"winimage.exe\");\n return super.getProgram();\n }", "public String getProgramId() {\n return pathsProvider.getProgramId();\n }", "public static String getName() {\n\t\treturn ProjectMain._name;\n\t}", "abstract public String getApplicationName();", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "String getProgramId();", "@Override\n\tpublic java.lang.String getExeFileName() {\n\t\treturn _scienceApp.getExeFileName();\n\t}", "public String getPortletApplicationName() {\n if(this.portletID != null) {\n return portletID.getPortletApplicationName();\n }\n return null;\n }", "public String getApplicationName() {\n\t\treturn this.properties.getProperty(SoundLooperProperties.KEY_APPLICATION_NAME, \"UNKNOW\");\n\t}", "public String getFriendlyName(String programid) {\n if (mProgramNames == null) return programid;\n return mProgramNames.getOrDefault(programid, programid);\n }", "public String getAppName(PackageInfo packageInfo) {\n return (String) packageInfo.applicationInfo.loadLabel(packageManager);\n }", "public String getApplicationName() {\n return applicationName;\n }", "public String getApplicationName() {\r\n\t\treturn applicationName;\r\n\t}", "public String getName() {\n return Utility.getInstance().getPackageName();\n }", "public java.lang.String getSystemlogprogram () {\n\t\treturn systemlogprogram;\n\t}", "public String getExecutable();", "public String getAppName( )\n\t{\n\t\treturn appName;\n\t}", "public String getRuntimeName() {\r\n\t\tfinal StringBuffer runtimeName = new StringBuffer();\r\n\t\tfinal String name = this.getName();\r\n\t\tfinal Package packagee = this.getPackage();\r\n\t\tfinal String packageName = null == packagee ? null : packagee.getName();\r\n\t\tString nameLessPackageName = name;\r\n\r\n\t\tif (false == Tester.isNullOrEmpty(packageName)) {\r\n\t\t\truntimeName.append(packageName);\r\n\t\t\truntimeName.append('.');\r\n\r\n\t\t\tnameLessPackageName = name.substring(packageName.length() + 1);\r\n\t\t}\r\n\r\n\t\tnameLessPackageName = nameLessPackageName.replace('.', '$');\r\n\t\truntimeName.append(nameLessPackageName);\r\n\r\n\t\treturn runtimeName.toString();\r\n\t}", "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _scienceApp.getName();\n\t}", "public String getStrappname() {\n return strappname;\n }", "@Override\n\tpublic final String getName() {\n\t\treturn getClass().getSimpleName().replaceAll(\"Application$\", \"\").toLowerCase();\n\t}", "@Override\r\n\tpublic String getNombrePrograma() {\n\t\treturn this.getObjectZulCode();\r\n\t}", "String process_name () throws BaseException;", "public String getProcessName() throws RemoteException;", "public String getApplicationTitle() {\n return applicationTitle.get();\n }", "public static String specifyApplicationName() {\n return holder.format(\"specifyApplicationName\");\n }", "public void setProgramName(String _value){\r\n\t\tprogramName=_value;\r\n\t}", "public static String getAppJarName() {\n try {\n String r = (String)Class.forName(\"hr.restart.util.IntParam\")\n .getMethod(\"getTag\", new Class[] {String.class})\n .invoke(null, new Object[] {\"appjarname\"});\n System.out.println(\"appjarname = \"+r);\n return r.equals(\"\")?\"ra-spa.jar\":r;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"ra-spa.jar\";\n }", "public static String osName() {\r\n Object _osname=null;\r\n \r\n try {\r\n _osname=System.getProperty(\"os.name\");\r\n }\r\n catch (Exception ex) {\r\n _osname=null;\r\n ex.printStackTrace();\r\n }\r\n \r\n String _name=\"\";\r\n if (_osname!=null) _name=_osname.toString();\r\n \r\n return _name;\r\n }", "public String getAppName();", "String getExternalToolName();", "public String getGameName () {\n\t\treturn (String) game.getProperty(GAME_NAME).getValue();\n\t}", "public String getReadableName(String packageName){\n ApplicationInfo applicationInfo;\n try{\n applicationInfo = packageManager.getApplicationInfo(packageName, 0);\n }\n catch (Exception e){\n applicationInfo = null;\n }\n if(packageNameReadableNameMap.containsKey(packageName))\n return packageNameReadableNameMap.get(packageName);\n else if (applicationInfo != null)\n return (String)packageManager.getApplicationLabel(applicationInfo);\n else\n return packageName;\n }", "public String getAppName() {\n\t\treturn appName;\n\t}", "public static String getExecutable() {\n \texecutable = getProperty(\"executable\");\n \tif (executable == null) executable = \"dot\";\n \treturn executable;\n }", "public String getAppPathname();", "public static String getOsUserName() {\n\n return System.getProperty(\"user.name\");\n }", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "public String getNiceName()\n {\n String name = getBuildFile().getName();\n\n return Utility.replaceBadChars(name);\n }", "@AutoEscape\n\tpublic String getAppName();", "public int getProgramIdFromUI(String programName) throws ParseException;", "public String getProcessName() {\n return processName;\n }", "public static String getLauncherClassName() {\n Context context = RuntimeEnvironment.application;\n Intent homeIntent = new Intent(Intent.ACTION_MAIN)\n .addCategory(Intent.CATEGORY_HOME)\n .setPackage(context.getPackageName())\n .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n List<ResolveInfo> launchers = context.getPackageManager()\n .queryIntentActivities(homeIntent, 0);\n if (launchers.size() != 1) {\n return null;\n }\n return launchers.get(0).activityInfo.name;\n }", "public String getShortAppName();", "public String getDefaultApp()\n {\n if (defaultApp == null)\n {\n return apps.get(0).getName();\n }\n\n return defaultApp;\n }", "String process_mgr_name () throws BaseException;", "public com.google.protobuf.ByteString\n getAppNameBytes() {\n java.lang.Object ref = appName_;\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 appName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String getPname();", "String getTaskName();", "String getTaskName();", "public String getTozApplicationName() {\n return (tozApplicationName);\n }", "protected Program getProgram() {\n final Holder<Program> holder = Holder.of( null );\n Hook.PROGRAM.run( holder );\n if ( holder.get() != null ) {\n return holder.get();\n }\n\n return Programs.standard();\n }", "public String getApp();", "public static String getSymbolLookupProjectName() {\n\t\tIPreferenceStore prefs = Activator.getDefault().getPreferenceStore();\n\t\tString name = prefs.getString(GHIDRA_SYMBOL_LOOKUP_PROJECT_NAME);\n\t\tif (name.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn name;\n\t}", "String intermediateSystemName();", "public com.google.protobuf.ByteString\n getAppNameBytes() {\n java.lang.Object ref = appName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n appName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getAppNameBytes() {\n java.lang.Object ref = appName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n appName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "public static String getAppVersionName(Context context) {\n try {\n PackageInfo packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n return packageInfo.versionName;\n } catch (PackageManager.NameNotFoundException e) {\n // should never happen\n throw new RuntimeException(\"Could not get package name: \" + e);\n }\n }", "@Basic\n\tpublic Program getProgram() {\n\t\treturn this.program;\n\t}", "public com.google.protobuf.ByteString\n getAppNameBytes() {\n java.lang.Object ref = appName_;\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 appName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getAppNameBytes() {\n java.lang.Object ref = appName_;\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 appName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getGameName();", "java.lang.String getGameName();", "public com.google.protobuf.ByteString\n getAppNameBytes() {\n java.lang.Object ref = appName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n appName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String getPlatformName();", "public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }", "public String getWorkerName(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getString(WorkerController.NAME);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static String getDefaultExecutableName(String providedOS) {\n \t\tString theOS = providedOS;\n \t\tif (theOS == null) {\n \t\t\tEnvironmentInfo info = (EnvironmentInfo) ServiceHelper.getService(Activator.getContext(), EnvironmentInfo.class.getName());\n \t\t\ttheOS = info.getOS();\n \t\t}\n \t\tif (theOS.equalsIgnoreCase(\"win32\")) //$NON-NLS-1$\n \t\t\treturn \"eclipse.exe\"; //$NON-NLS-1$\n \t\tif (theOS.equalsIgnoreCase(\"macosx\")) //$NON-NLS-1$\n \t\t\treturn \"Eclipse.app\"; //$NON-NLS-1$\n \t\t//FIXME Is this a reasonable default for all non-Windows platforms?\n \t\treturn \"eclipse\"; //$NON-NLS-1$\n \t}", "private String getVersionName() {\n\n\t\tString versionName = \"\";\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = packageManager\n\t\t\t\t\t.getPackageInfo(getPackageName(), 0);// 获取包的内容\n\t\t\t// int versionCode = packageInfo.versionCode;\n\t\t\tversionName = packageInfo.versionName;\n\t\t\tSystem.out.println(\"versionName = \" + versionName);\n\t\t} catch (NameNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn versionName;\n\t}", "java.lang.String getExecutionStageName();", "public static String getActiveProjectName() {\r\n Project project = ProjectPlugin.getPlugin().getProjectRegistry().getCurrentProject();\r\n \r\n if (project == null)\r\n project = ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();\r\n \r\n return project.getName();\r\n }", "String getPName();", "public Program getProgram() {\n return this.program;\n }", "public final PlatformName getPlatformName() {\n return configuration.getApplicationProfile().getPlatformName();\n }", "public static String getPid() {\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName(); \n\t\t// get pid \n\t\treturn name.split(\"@\")[0];\n\t}", "public String getSystemName();", "static String getUserName() {\n return System.getProperty(\"user.name\");\n }", "public String getDbName() {\r\n\t\tif (this.dbname == null)\r\n\t\t\treturn null;\r\n\r\n\t\treturn (String) this.dbname.getSelectedItem();\r\n\t}" ]
[ "0.77596396", "0.7188131", "0.6972141", "0.69675076", "0.6932964", "0.67753017", "0.6771742", "0.6771742", "0.6771742", "0.673426", "0.6733935", "0.6733935", "0.6723887", "0.6701197", "0.66944134", "0.6688916", "0.6688916", "0.6660147", "0.6660147", "0.66585284", "0.66413504", "0.6599306", "0.65906584", "0.65870255", "0.6549617", "0.651991", "0.6485123", "0.64806575", "0.64801604", "0.6475308", "0.6437615", "0.64286035", "0.64180756", "0.64138794", "0.6406497", "0.63980573", "0.63970715", "0.6383143", "0.6351517", "0.6333609", "0.6329791", "0.63107216", "0.6308602", "0.62481683", "0.6211832", "0.62080014", "0.62051815", "0.61847657", "0.615912", "0.61416304", "0.61251926", "0.60954946", "0.607322", "0.6071777", "0.6041249", "0.6038782", "0.6037007", "0.6006248", "0.6005752", "0.59703857", "0.59673816", "0.59655476", "0.5964611", "0.5953963", "0.59491503", "0.59335", "0.59011316", "0.58897984", "0.58849233", "0.5883154", "0.58825994", "0.58825994", "0.5879883", "0.5871918", "0.58585185", "0.5839874", "0.5837432", "0.5828117", "0.5828117", "0.5821254", "0.5816096", "0.57986945", "0.57951736", "0.57951736", "0.578898", "0.578898", "0.57861066", "0.57830185", "0.5765672", "0.57508785", "0.5748903", "0.57484096", "0.5742078", "0.57214624", "0.5720246", "0.57061756", "0.5696007", "0.56897306", "0.5688303", "0.567997", "0.56711566" ]
0.0
-1
Raw height and width of image
public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) { final int height = options.outHeight; final int width = options.outWidth; int inSampleSize = 1; // Tamaño original del mapa de bits (width 3300 x height 1650). // Tamaño deseado (reqWidth 330 x reqHeight 200). if (height > reqHeight || width > reqWidth) { // Calculate ratios of height and width to requested height and width final int heightRatio = Math.round((float) height / (float) reqHeight); // Res: 8 final int widthRatio = Math.round((float) width / (float) reqWidth); // Res: 10. // Choose the smallest ratio as inSampleSize value, this will guarantee // a final image with both dimensions larger than or equal to the // requested height and width. inSampleSize = Math.max(heightRatio, widthRatio); } return inSampleSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageHeight() {\n\treturn height;\n }", "public int getImageWidth() {\n\treturn width;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "public int getImageHeight()\n\t{\n\t\treturn imgHeight;\n\t}", "public int getImageHeight() {\n\t\treturn imgHeight;\n\t}", "@Test\n public void testImage() {\n int expected = 4;\n assertEquals(expected, image.getHeight());\n assertEquals(expected, image.getWidth());\n }", "public int getImageWidth()\n\t{\n\t\treturn imgWidth;\n\t}", "public int getImageHeight()\n {\n \n int retVal = getImageHeight_0(nativeObj);\n \n return retVal;\n }", "public int getImageWidth() {\n\t\treturn imgWidth;\n\t}", "public int height() {\n return picture.height();\n }", "public int height() \n {\n return this.picture.height();\n }", "public int getArea(){\n return imageArea;\n }", "public Dimension getImageSize() {\n\t\treturn null;\n\t}", "public int[] getActualSize() {\n int[] actualSize = new int[2];\n\n actualSize[0] = originalImage.getWidth();\n actualSize[1] = originalImage.getHeight();\n\n return actualSize;\n }", "public int getImageWidth()\n {\n \n int retVal = getImageWidth_0(nativeObj);\n \n return retVal;\n }", "public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}", "public int height() {\n return picture().height();\n }", "public int getImage();", "public native int getWidth() throws MagickException;", "public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}", "public int width() {\n return picture.width();\n }", "public static int[] getImageWidthHeight(ImageData[][] imageData){\n ImageData lastImage = imageData[imageData.length-1][imageData.length-1];\n int wid = lastImage.w +lastImage.wIndex;\n int hei = lastImage.h + lastImage.hIndex;\n //Print Details\n System.out.println(\"Last ImageWidthHeight=== Width=\"+wid+\" Height =\"+hei);\n return new int[] {wid,hei};\n }", "public native int getHeight() throws MagickException;", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "public int width() \n {\n return this.picture.width();\n }", "public int getHeight() {\n return fullPhoto.getHeight();\n }", "int getImgDataCount();", "public int imHeight() {\n\t\treturn image.getHeight(this);\n\t}", "public int getSizeY() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeY;\r\n}", "@Override\r\n public byte[] getCustomImageInBytes() {\r\n\r\n return imageInByte;\r\n }", "public float getIMG(){\n return profile.getImg();\n }", "public String getSize() {\n return fullPhoto.getSize();\n }", "public int getPixelSize() {\n\t\treturn pixelSize;\n\t}", "public int width() {\n return picture().width();\n }", "public int imWidth() {\n\t\treturn image.getWidth(this);\n\t}", "public Rectangle getRect() {\n return new Rectangle(x,y,(imageWeight-50),(imageHeight-50));\n }", "public int getWidth() {\n return fullPhoto.getWidth();\n }", "public abstract int getNormalizedHeight();", "int getMaxRawImages();", "public double getPixelSize() {\n\t\treturn 0;\n\t}", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "public int getPicWidth() {\r\n\t\treturn this.image.getIconWidth();\r\n\t}", "public Rectangle getImage() {\n\t\treturn image;\n\t}", "public long getImageBase()\n throws IOException, EndOfStreamException\n {\n if (imageState_ == ImageStateType.PE64)\n {\n return peFile_.readInt64(relpos(Offsets.IMAGE_BASE_64.position));\n }\n\n return peFile_.readInt32(relpos(Offsets.IMAGE_BASE_32.position));\n }", "@Test\n public void testGetImage() {\n int[][][] copyImage = image.getImage();\n assertEquals(copyImage.length, image.getHeight());\n }", "public native int sizeBlob() throws MagickException;", "public native int getImageType() throws MagickException;", "int getBitsPerPixel();", "private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}", "@Test\n public void testGetWidth() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getWidth());\n }", "private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException ignored) {\n }\n }\n }\n }", "public long getSizeOfImage()\n throws IOException, EndOfStreamException\n {\n return peFile_.readUInt32(relpos(Offsets.SIZE_OF_IMAGE.position));\n }", "@Test\n public void testGetHeight() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getHeight());\n }", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public int getImageCount() {\n return imageCount;\n }", "private static native void setImagesize_0(long nativeObj, int W, int H);", "public ImageInfo getImage() {\n return image;\n }", "public int getH() { return height; }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "private static native void setImageHeight_0(long nativeObj, int val);", "public int getLargeur() {\n return getWidth();\n }", "@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }", "public PImage getImg() {\n \treturn img;\n }", "PImage getImage() {\n return _img;\n }", "int imageCount();", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension(this.bufferedImage.getWidth(), \n this.bufferedImage.getHeight());\n }", "java.lang.String getImage();", "public int getImageNumber() {\n return imageNumber;\n }", "public abstract BufferedImage getSnapshot();", "public String getImage() { return image; }", "public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}", "public Integer getWidth(){return this.width;}", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public int getHeight() { return height; }", "public int getSizeX() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeX;\r\n}", "public String getSize(int width, int height) {\n try {\n String url;\n\n url = cloudinary.url().format(\"jpg\")\n .transformation(new Transformation().width(width).height(height)).generate(public_id);\n\n return url;\n }catch (NullPointerException e){\n Logger.debug(\"Failed to receive image url.\", e.getMessage());\n return \"null\";\n }\n }", "public int grHeight() { return height; }", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "public int getHeight() {return height;}", "Image createImage();", "String getImage();", "private byte[] getImageIDESizeParameter() {\n if (ideSize != 1) {\n final byte[] ideSizeData = new byte[] {\n (byte)0x96, // ID\n 0x01, // Length\n ideSize};\n return ideSizeData;\n } else {\n return new byte[0];\n }\n }", "public BufferedImage getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public int getSizeZ() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeZ;\r\n}", "com.google.protobuf.ByteString\n getImageBytes();", "public double getIm() {\r\n return im;\r\n }", "@Override\n public IIOMetadata getImageData() {\n return super.imageData;\n }", "double getArea() {\n return width * height;\n }", "int getHeight() {return height;}", "public String getPixelInfo()\n {\n return pixelInfo.toString();\n }", "public String toString()\n {\n return \"The tesseract's dimensions are \" + getLength() + \" X \" + getWidth() + \" X \" + getHeight() + \" X \" + getwDimension();\n }", "public int Height(){\r\n return height;\r\n }", "private void getWidthandHeight(char[] imagenaux) {\n for (iterator = 3; imagenaux[iterator] != '\\n'; ++iterator) {\n if (imagenaux[iterator] == ' ') anchura = false;\n else {\n if (anchura) {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n width *= 10;\n width += aux;\n } else {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n height *= 10;\n height += aux;\n }\n }\n }\n ++iterator;\n while (imagenaux[iterator] != '\\n') { ++iterator; }\n ++iterator;\n }", "@Test\n\tpublic void testGetHeight() {\n\t\tip = new ImagePlus();\n\t\tip.getHeight();\n\t}" ]
[ "0.7013478", "0.699988", "0.67583126", "0.6750033", "0.6720698", "0.669873", "0.6689511", "0.66860753", "0.66664755", "0.65853953", "0.6539114", "0.6529669", "0.6516078", "0.65081245", "0.64257", "0.63865346", "0.63722134", "0.63092506", "0.6291426", "0.6288455", "0.6252946", "0.62341326", "0.618197", "0.6158717", "0.615819", "0.615819", "0.615819", "0.6144378", "0.61443424", "0.61401063", "0.6103231", "0.6099903", "0.60651374", "0.60592395", "0.6017553", "0.6014474", "0.5984361", "0.5984188", "0.59672165", "0.59642625", "0.5959984", "0.5959759", "0.59582573", "0.5954042", "0.59415966", "0.5931953", "0.59172827", "0.59166247", "0.5890154", "0.5876868", "0.58619386", "0.5858101", "0.5857994", "0.58552325", "0.5850757", "0.5845183", "0.5841783", "0.582109", "0.58189946", "0.5817898", "0.5814005", "0.5794509", "0.57887757", "0.5787256", "0.5754822", "0.575088", "0.57494265", "0.57246256", "0.5720308", "0.5718694", "0.5708866", "0.57061535", "0.5704408", "0.57041174", "0.56999844", "0.5693438", "0.5690735", "0.5688313", "0.5687101", "0.56773496", "0.5668776", "0.56606424", "0.5660228", "0.56601244", "0.5653856", "0.565332", "0.56526333", "0.5651148", "0.5651148", "0.5651148", "0.5641639", "0.5638461", "0.56312215", "0.56304806", "0.56294745", "0.5629049", "0.5615024", "0.5613165", "0.5608674", "0.5605906", "0.5604374" ]
0.0
-1
First decode with inJustDecodeBounds=true to check dimensions
public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) { final BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource(res, resId, options); // Calculate inSampleSize options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); // options.inSampleSize *= 1; // options.inSampleSize = 1; // Decode bitmap with inSampleSize set options.inJustDecodeBounds = false; return BitmapFactory.decodeResource(res, resId, options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public static Pair<Integer, Integer> decodeDimensions(InputStream param0) {\n }", "@Test public void inJustDecodeBoundsIfResizing() {\n final Request requiresResize = new Request.Builder(TestUtils.URI_1).resize(20, 15).build();\n final BitmapFactory.Options resizeOptions = createBitmapOptions(requiresResize);\n assertThat(resizeOptions).isNotNull();\n assertThat(resizeOptions.inJustDecodeBounds).isTrue();\n }", "@java.lang.Override\n public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "public abstract Object decode(InputStream is) ;", "@Test public void createWithConfigAndNotInJustDecodeBounds() {\n final Request config = new Request.Builder(TestUtils.URI_1).config(RGB_565).build();\n final BitmapFactory.Options configOptions = createBitmapOptions(config);\n assertThat(configOptions).isNotNull();\n assertThat(configOptions.inJustDecodeBounds).isFalse();\n }", "@Override\n public boolean decode(InputStream stream) {\n mBitmap = BitmapFactory.decodeStream(stream);\n android.util.Log.e(\"Codec\", \"Decode bitmap = \" + mBitmap);\n return mBitmap != null;\n }", "public boolean isDecodable() {\n return buckets.size() >= k;\n }", "@Test\n public void checkCompactFormat()\n {\n int height = 10;\n int width = 5;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n SimpleMatrix Q = new SimpleMatrix(height,width, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n\n // see if Q has the expected properties\n assertTrue(MatrixFeatures_DDRM.isOrthogonal((DMatrixRMaj)Q.getMatrix(),UtilEjml.TEST_F64_SQ));\n\n // try to extract it with the wrong dimensions\n Q = new SimpleMatrix(height,height, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n assertEquals(height,Q.numRows());\n assertEquals(width,Q.numCols());\n }", "private Bitmap decodeFile(File f){\n try {\n //decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n FileInputStream stream1=new FileInputStream(f);\n BitmapFactory.decodeStream(stream1,null,o);\n stream1.close();\n \n //Find the correct scale value. It should be the power of 2.\n final int REQUIRED_SIZE=70;\n int width_tmp=o.outWidth, height_tmp=o.outHeight;\n int scale=1;\n while(true){\n if(width_tmp/2<REQUIRED_SIZE || height_tmp/2<REQUIRED_SIZE)\n break;\n width_tmp/=2;\n height_tmp/=2;\n scale*=2;\n }\n \n //decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize=scale;\n FileInputStream stream2=new FileInputStream(f);\n Bitmap bitmap=BitmapFactory.decodeStream(stream2, null, o2);\n stream2.close();\n return bitmap;\n } catch (FileNotFoundException e) {\n } \n catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private void checkFormat() {\n if (y.pixelStride != 1) {\n throw new IllegalArgumentException(String.format(\n \"Pixel stride for Y plane must be 1 but got %d instead\",\n y.pixelStride\n ));\n }\n if (u.pixelStride != v.pixelStride || u.rowStride != v.rowStride) {\n throw new IllegalArgumentException(String.format(\n \"U and V planes must have the same pixel and row strides \" +\n \"but got pixel=%d row=%d for U \" +\n \"and pixel=%d and row=%d for V\",\n u.pixelStride, u.rowStride,\n v.pixelStride, v.rowStride\n ));\n }\n if (u.pixelStride != 1 && u.pixelStride != 2) {\n throw new IllegalArgumentException(\n \"Supported pixel strides for U and V planes are 1 and 2\"\n );\n }\n }", "byte[] decodeBytes();", "int decode()\n throws IOException {\n final int start = _in.getBytesRead() - 4;\n \n _callback.objectStart();\n while ( decodeElement() );\n _callback.objectDone();\n \n final int read = _in.getBytesRead() - start;\n\n if ( read != _in._length ) {\n //throw new IllegalArgumentException( \"bad data. lengths don't match \" + read + \" != \" + len );\n }\n\n return _in._length;\n }", "public abstract boolean canDecodeInput(BufferedInputStream stream) throws IOException;", "public boolean mo9444d() {\n if (!isLengthGreaterZero()) {\n return false;\n }\n byte[] bArr = this.byteArr;\n if (bArr.length >= 32) {\n return IsFullyValid(bArr, checkAndGetTypeLength());\n }\n return true;\n }", "@java.lang.Override\n public boolean hasRect() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "private void sizeLimitDecodeBinaryFrame(int maxSize) throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, maxSize);\n\n IoBufferEx in = allocator.wrap(allocator.allocate(203))\n .put((byte)0x80)\n .put((byte)-0x7f)\n .put((byte)0x48)\n .fill(200)\n .flip();\n\n decoder.decode(session, (IoBuffer) in, session.getDecoderOutput());\n\n WsMessage out = (WsMessage)session.getDecoderOutputQueue().poll();\n assertEquals(new WsBinaryMessage(allocator.wrap(allocator.allocate(200)).fill(200).flip()), out);\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n decoder.finishDecode(session, session.getDecoderOutput());\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n assertFalse(in.hasRemaining());\n }", "protected Object decode(ChannelHandlerContext ctx, ByteBuf in)\r\n/* 30: */ throws Exception\r\n/* 31: */ {\r\n/* 32:74 */ if (in.readableBytes() < this.frameLength) {\r\n/* 33:75 */ return null;\r\n/* 34: */ }\r\n/* 35:77 */ return in.readRetainedSlice(this.frameLength);\r\n/* 36: */ }", "@Test(expected = IllegalArgumentException.class)\n public void test_checkInMemoryFormat_NATIVE() {\n checkInMemoryFormat(InMemoryFormat.NATIVE);\n }", "@java.lang.Override\n public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "T decode1(DataBuffer buffer);", "void verifyNumberOfDimensions(int ignoreMeNumDimensions) {\n // do nothing on purpose\n }", "public boolean isValidSize(ImagePlus img, byte[] data);", "private Bitmap decodeMapBitmap() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = false;\n options.inScaled = false;\n options.outWidth = 2048;\n options.outHeight = 2048;\n\n return BitmapFactory.decodeResource(getResources(), R.drawable.map, options);\n }", "protected abstract int decodeLength ();", "void decodeObjectArray();", "public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public int getDecodedStreamLength() {\n/* 567 */ return this.stream.getInt(COSName.DL);\n/* */ }", "public int checkAndGetTypeLength() {\n return checkAndGetTypeLength(this.byteArr);\n }", "protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }", "@Override\n public long getExactSizeIfKnown() {\n return -1;\n }", "public NonAnnotatedEncodeableEncoderDecoderSpecifiedUsingConfiguration() {}", "public void decode()\n {\n if (null == escherRecords || 0 == escherRecords.size()){\n byte[] rawData = getRawData();\n convertToEscherRecords(0, rawData.length, rawData );\n }\n }", "@Override\n\tpublic int decode(byte[] buffer, int offset) throws IOException {\n\t\tlong value = NeuronReader.readRawInt64(buffer, offset);\n\t\tunionCache.setLong(fieldIndex, value);\n\n\t\treturn NeuronReader.LONG_SIZE;\n\t}", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public boolean isCorrectSize(int height, int width);", "private void sizeLimitDecodeDoubleTextFrame(int maxSize) throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, maxSize);\n\n IoBufferEx in = allocator.wrap(allocator.allocate(12+2+15+2))\n .put((byte)0x00)\n .putString(\"123456789012\", UTF_8.newEncoder())\n .put((byte)0xff)\n .put((byte)0x00)\n .putString(\"123456789012345\", UTF_8.newEncoder())\n .put((byte)0xff)\n .flip();\n\n decoder.decode(session, (IoBuffer) in, session.getDecoderOutput());\n\n WsMessage out = (WsMessage)session.getDecoderOutputQueue().poll();\n assertEquals(new WsTextMessage(allocator.wrap(ByteBuffer.wrap(\"123456789012\".getBytes(UTF_8)))), out);\n\n WsMessage out2 = (WsMessage)session.getDecoderOutputQueue().poll();\n assertEquals(new WsTextMessage(allocator.wrap(ByteBuffer.wrap(\"123456789012345\".getBytes(UTF_8)))), out2);\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n decoder.finishDecode(session, session.getDecoderOutput());\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n assertFalse(in.hasRemaining());\n }", "public void updateFromDeserialization() {\n\t\tif (inSerializedState) {\n\t\t\tframes = new KeyFrames();\n\t\t\tfor(Integer key : pixelsMap.keySet()) {\n\t\t\t\tint[][] pixels = pixelsMap.get(key);\n\t\t\t\tDrawFrame image = new DrawFrame(serializedWidth, serializedHeight);\n\t\t\t\tfor(int r = 0; r < serializedHeight; r++) {\n\t\t\t\t\tfor (int c = 0; c < serializedWidth; c++) {\n\t\t\t\t\t\timage.setRGB(c, r, pixels[r][c]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*\n\t\t WritableRaster raster = (WritableRaster) image.getData();\n\t\t raster.setPixels(0,0, serializedWidth, serializedHeight, pixels);\n\t\t image.setData(raster);\n\t\t */\n\t\t\t\tframes.put(key, image);\n\t\t\t}\n\t\t\tinitializeTransientUIComponents();\n\t\t\tinSerializedState = false;\t\n\t\t}\n\t}", "protected Object decode(ChannelHandlerContext aCtx, Channel aChannel, ChannelBuffer aBuffer) throws Exception { Make sure if the length field was received.\n \t\t\t//\n \t\t\tif (aBuffer.readableBytes() < 4) {\n \t\t\t\treturn null;\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * Mark the current buffer position before reading the length field\n \t\t\t * because the whole frame might not be in the buffer yet. We will\n \t\t\t * reset the buffer position to the marked position if there's not\n \t\t\t * enough bytes in the buffer.\n \t\t\t */\n \t\t\taBuffer.markReaderIndex();\n \n \t\t\t// Read the length field.\n \t\t\t//\n \t\t\tint length = aBuffer.readInt();\n \n \t\t\t// Make sure if there's enough bytes in the buffer.\n \t\t\t//\n \t\t\tif (aBuffer.readableBytes() < length) {\n \t\t\t\t/*\n \t\t\t\t * The whole bytes were not received yet - return null. This\n \t\t\t\t * method will be invoked again when more packets are received\n \t\t\t\t * and appended to the buffer.\n \t\t\t\t * \n \t\t\t\t * Reset to the marked position to read the length field again\n \t\t\t\t * next time.\n \t\t\t\t */\n \t\t\t\taBuffer.resetReaderIndex();\n \n \t\t\t\treturn null;\n \t\t\t}\n \n \t\t\t// There's enough bytes in the buffer. Read it.\n \t\t\tChannelBuffer frame = aBuffer.readBytes(length);\n \n \t\t\treturn frame.toByteBuffer();\n \t\t}", "public int dimensions() {\n return this.data[0].length;\n }", "public static boolean isSigned_infos_size_data() {\n return false;\n }", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "private boolean compareLumaPanes()\n {\n int d;\n int e;\n int f = 0;\n\n for (int j = 0; j < NB_DECODED; j++)\n {\n for (int i = 0; i < size; i += 10)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i] & 0xFF);\n e = (initialImage[i + 1] & 0xFF) - (decodedVideo[j][i + 1] & 0xFF);\n d = d < 0 ? -d : d;\n e = e < 0 ? -e : e;\n if (d > 50 && e > 50)\n {\n decodedVideo[j] = null;\n f++;\n break;\n }\n }\n }\n\n return f <= NB_DECODED / 2;\n }", "public int unmarshal(DataInputStream dis) throws Exception\n{\n int uPosition = 0;\n try \n {\n recordType = VariableParameterRecordType.unmarshalEnum(dis);\n uPosition += recordType.getMarshalledSize();\n changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(dis);\n uPosition += changeIndicator.getMarshalledSize();\n uPosition += entityType.unmarshal(dis);\n padding = (short)dis.readUnsignedShort();\n uPosition += 2;\n padding1 = dis.readInt();\n uPosition += 4;\n }\n catch(Exception e)\n { \n System.out.println(e); \n }\n return getMarshalledSize();\n}", "@Override\n\tpublic boolean canFit(int width, int height) {\n\t\treturn false;\n\t}", "private CoderResult _malformed (final ByteBuffer in)\r\n {\r\n in.position (in.position () - 1);\r\n return CoderResult.malformedForLength (1);\r\n }", "public byte[] decode(byte[] data) throws DecodingException {\n\t\tif (data == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint length = data.length;\n\t\tif (length % 8 != 0) {\n\t\t\tthrow new DecodingException(\"Data must be divisible by 8.\");\n\t\t}\n\t\t\n\t\tint c, cursor = 0;\n\t\tint noPadding = 0;\n\t\twhile (data[length - noPadding - 1] == PADDING) {\n\t\t\tnoPadding++;\n\t\t}\n\t\t\n\t\tif (noPadding > 6) {\n\t\t\tthrow new DecodingException(\"Inconsistent padding found (padding length = \" + noPadding + \").\");\n\t\t}\n\t\t\n\t\tbyte[] result = new byte[(length - noPadding) * 5 / 8];\n\t\t\n\t\tint maxGrouping = (length - noPadding)/8;\n\t\tfor (c = 0; c < (maxGrouping * 8); c+= 8) {\n\t\t\twhile (BASE_32_DECODE_TABLE[data[c]] == -1) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t\t\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c]] << 3) | (BASE_32_DECODE_TABLE[data[c + 1]] >> 2));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1) | (BASE_32_DECODE_TABLE[data[c + 3]] >> 4));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 3]] << 4) | (BASE_32_DECODE_TABLE[data[c + 4]] >> 1));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 4]] << 7) | (BASE_32_DECODE_TABLE[data[c + 5]] << 2) | (BASE_32_DECODE_TABLE[data[c + 6]] >> 3));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 6]] << 5) | BASE_32_DECODE_TABLE[data[c + 7]]);\n\t\t}\n\t\t\n\t\tif (noPadding > 0) {\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c]] << 3) | (BASE_32_DECODE_TABLE[data[c + 1]] >> 2));\n\t\t\t\n\t\t\tif (noPadding == 4) {\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1));\n\t\t\t} else if (noPadding <= 3) {\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1) | (BASE_32_DECODE_TABLE[data[c + 3]] >> 4));\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 3]] << 4) | (BASE_32_DECODE_TABLE[data[c + 4]] >> 1));\n\t\t\t\t\n\t\t\t\tif (noPadding == 1) {\n\t\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 4]] << 7) | (BASE_32_DECODE_TABLE[data[c + 5]] << 2) | (BASE_32_DECODE_TABLE[data[c + 6]] >> 3));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "void decode (DataInputStream dis, Node [] table, Decoder decoder) {\n m_size = Decoder.readUnsignedByte (dis);\n if (m_size == 255) {\n m_size = Decoder.readUnsignedByte (dis) * 255 + Decoder.readUnsignedByte (dis) ;\n }\n //System.out.println (m_size);\n if (m_size > 0) {\n m_node = new Node [m_size];\n for (int i = 0; i < m_size; i++) {\n m_node[i] = Node.decode (dis, table, decoder);\n }\n }\n //System.out.println (\"decoding MFNode done\");\n }", "public int getNoDimensions() {\n return noDimensions;\n }", "@Test(expectedExceptions = ProtocolException.class, enabled = true)\n public void deserializeTooLarge() throws Exception {\n\n byte[] serializedOver1MB = JarFileLoader.readBinaryFileFromJar(\"/wire/block_over_1MB.bin\");\n BitcoinInputStream in = bitcoinStream(serializedOver1MB);\n Block.deserialize(in);\n }", "public Bitmap decodeImage() {\n\t\treturn image == null ? null : image.decodeBitmap();\n\t}", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public FullPositionVector decodeValue(JsonCoder coder, JsonReader source)\n\t throws IOException, DecoderException\n {\n\tboolean[] present0 = new boolean[11];\n\n\tcoder.decodeObject(source);\n\tif (coder.hasMoreProperties(source, true))\n\t do {\n\t\tString tag0 = coder.nextProperty(source);\n\t\tFullPositionVector.__Tag t_tag0 = FullPositionVector.__Tag.getTagSub(tag0);\n\t\tif (t_tag0 == null) \n\t\t t_tag0 = FullPositionVector.__Tag._null_;\n\t\tswitch (t_tag0) {\n\t\t case __utcTime:\n\t\t // Decode field 'utcTime'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[0])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t if (this.utcTime == null)\n\t\t\t\tthis.utcTime = new DDateTime();\n\t\t\t this.utcTime.decodeValue(coder, source);\n\t\t\t present0[0] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"utcTime\", \"DDateTime\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case ___long:\n\t\t // Decode field 'long'\n\t\t try {\n\t\t\tif (present0[1])\n\t\t\t throw new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\tif (this._long == null)\n\t\t\t this._long = new Longitude();\n\t\t\tthis._long.setValue(coder.decodeInteger(source));\n\t\t\tpresent0[1] = true;\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"long\", \"Longitude\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __lat:\n\t\t // Decode field 'lat'\n\t\t try {\n\t\t\tif (present0[2])\n\t\t\t throw new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\tif (this.lat == null)\n\t\t\t this.lat = new Latitude();\n\t\t\tthis.lat.setValue(coder.decodeInteger(source));\n\t\t\tpresent0[2] = true;\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"lat\", \"Latitude\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __elevation:\n\t\t // Decode field 'elevation'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[3])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.elevation = new Elevation(coder.decodeOctetString(source));\n\t\t\t present0[3] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"elevation\", \"Elevation\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __heading:\n\t\t // Decode field 'heading'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[4])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t if (this.heading == null)\n\t\t\t\tthis.heading = new Heading();\n\t\t\t this.heading.setValue(coder.decodeInteger(source));\n\t\t\t present0[4] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"heading\", \"Heading\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __speed:\n\t\t // Decode field 'speed'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[5])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.speed = new TransmissionAndSpeed(coder.decodeOctetString(source));\n\t\t\t present0[5] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"speed\", \"TransmissionAndSpeed\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __posAccuracy:\n\t\t // Decode field 'posAccuracy'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[6])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.posAccuracy = new PositionalAccuracy(coder.decodeOctetString(source));\n\t\t\t present0[6] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"posAccuracy\", \"PositionalAccuracy\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __timeConfidence:\n\t\t // Decode field 'timeConfidence'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t String content1 = coder.decodeString(source);\n\t\t\t int idx1;\n\t\t\t TimeConfidence temp1;\n\n\t\t\t if (present0[7])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t idx1 = coder.resolveName(TimeConfidence.cConstantNameList, content1);\n\t\t\t if (idx1 < 0 )\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._not_enumerated, null, \"value = \" + content1);\n\t\t\t else\n\t\t\t\ttemp1 = TimeConfidence.cNamedNumbers[idx1];\n\t\t\t this.timeConfidence = temp1;\n\t\t\t present0[7] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"timeConfidence\", \"TimeConfidence\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __posConfidence:\n\t\t // Decode field 'posConfidence'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[8])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.posConfidence = new PositionConfidenceSet(coder.decodeOctetString(source));\n\t\t\t present0[8] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"posConfidence\", \"PositionConfidenceSet\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __speedConfidence:\n\t\t // Decode field 'speedConfidence'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[9])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.speedConfidence = new SpeedandHeadingandThrottleConfidence(coder.decodeOctetString(source));\n\t\t\t present0[9] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"speedConfidence\", \"SpeedandHeadingandThrottleConfidence\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t default:\n\t\t\tcoder.skipValue(source);\n\t\t\tbreak;\n\t\t}\n\t } while (coder.hasMoreProperties(source, false));\n\tif (!present0[0])\n\t this.utcTime = null;\n\tif (!present0[1])\n\t throw new DecoderException(ExceptionDescriptor._field_omit, \": 'long'\");\n\tif (!present0[2])\n\t throw new DecoderException(ExceptionDescriptor._field_omit, \": 'lat'\");\n\tif (!present0[3])\n\t this.elevation = null;\n\tif (!present0[4])\n\t this.heading = null;\n\tif (!present0[5])\n\t this.speed = null;\n\tif (!present0[6])\n\t this.posAccuracy = null;\n\tif (!present0[7])\n\t this.timeConfidence = null;\n\tif (!present0[8])\n\t this.posConfidence = null;\n\tif (!present0[9])\n\t this.speedConfidence = null;\n\treturn this;\n }", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "@Override\n \tpublic int getSize() {\n \t\treturn layers.size();\n \t}", "static Bitmap decodeSampledBitmapFromPath(String path, int reqWidth, int reqHeight) {\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(path, options);\n }", "public Bitmap decodeSimpleBitmapFromFileDescriptor(FileDescriptor fd, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFileDescriptor(fd, null, options);\n //Calculate inSampleSize /*采样率*/\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n //Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n\n return BitmapFactory.decodeFileDescriptor(fd, null, options);\n }", "@Override\n\tboolean computeDimensions() {\n\t\treturn true;\n\t}", "private void checkSizes() throws Exception{\n\t\tint width = images[0].getWidth();\n\t\tint height = images[0].getHeight();\n\t\t//i = 1 because first image is referenced.\n\t\tfor (int i = 1; i < images.length; i++){\n\t\t\tif ((images[i].getWidth() != width) || (images[i].getHeight() != height)){\n\t\t\t\tthrow new Exception(\"Textures sizes are imcompatible\");\n\t\t\t}\t\t\t\t\n\t\t}\n\t}", "public static int numDimensions_infos_metadata() {\n return 1;\n }", "@Override\n public int getSize() {\n return 64;\n }", "public boolean isUnderflow() {\n\t\treturn (dataSize() < Math.ceil(degree / 2.0) - 1);\n\t}", "@Test(expected=ProtocolDecoderException.class)\n public void sizeLimitDecodeTextFrameFailEarly1() throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, 20);\n \n int dataSize = 30;\n StringBuffer data = new StringBuffer(dataSize);\n for ( int i=0; i<(dataSize); i++ ) {\n data.append((i%10));\n }\n IoBufferEx in = allocator.wrap(allocator.allocate(dataSize+1))\n .put((byte)0x00)\n .putString(data.toString(), UTF_8.newEncoder())\n .flip();\n // As soon as we sent part of a message that exceeds the limit it should throw the exception\n decoder.decode(session, (IoBuffer) in, session.getDecoderOutput());\n }", "private boolean tryByteArrayInputStream(){\n return true;\n }", "public boolean isLayoutable() {\n return (rawData != null && !rawData.optBoolean(Constants.HIDDEN_FIELD)\n && rawData.optBoolean(Constants.LAYOUTABLE_FIELD));\n }", "@Test\n public void checkGetRInputSize()\n {\n int width = 5;\n int height = 10;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n // check the case where it creates the matrix first\n assertEquals(width, alg.getR(null, true).numRows);\n assertEquals(height, alg.getR(null, false).numRows);\n\n // check the case where a matrix is provided\n alg.getR(new DMatrixRMaj(width,width),true);\n alg.getR(new DMatrixRMaj(height,width),false);\n\n // check some negative cases\n {\n DMatrixRMaj R = new DMatrixRMaj(height,width);\n alg.getR(R,true);\n assertEquals(width,R.numCols);\n assertEquals(width,R.numRows);\n }\n\n {\n DMatrixRMaj R = new DMatrixRMaj(width-1,width);\n alg.getR(R,false);\n assertEquals(width,R.numCols);\n assertEquals(height,R.numRows);\n }\n }", "byte[] decodeConfigUrlSafe4(byte[] encoded, int size);", "@Test(expected=ProtocolDecoderException.class)\n public void sizeLimitDecodeTextFrameFailEarly2() throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, 20);\n \n int dataSize = 30;\n StringBuffer data = new StringBuffer(dataSize);\n for ( int i=0; i<(dataSize); i++ ) {\n data.append((i%10));\n }\n IoBufferEx in = allocator.wrap(allocator.allocate(dataSize+1))\n .put((byte)0x00)\n .putString(data.toString(), UTF_8.newEncoder())\n .flip();\n decoder.decode(session, (IoBuffer) in.getSlice(10), session.getDecoderOutput());\n // Now if we send the next 12 bytes that should exceed the limit (first byte is control byte, doesn't count)\n decoder.decode(session, (IoBuffer) in.getSlice(12), session.getDecoderOutput());\n }", "boolean sameDimensions(List<Layer> layers);", "public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "static int readRectF(LittleEndianInputStream leis, Rectangle2D bounds) {\n final double x = leis.readFloat();\n final double y = leis.readFloat();\n final double width = leis.readFloat();\n final double height = leis.readFloat();\n bounds.setRect(x, y, width, height);\n\n return 4 * LittleEndianConsts.INT_SIZE;\n }", "private Bitmap decodeBitmapImage(int image) {\n int targetW = 300;\n int targetH = 300;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n return BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n }", "@Test\n public void testClientMessageDecodeWithEmptyBuffers() throws Exception {\n testNettyMessageClientDecoding(true, false, false);\n }", "@Test\n public void decodeDouble()\n {\n final double[] array = new double[4];\n array[0] = 0;\n array[1] = 0;\n array[2] = 1;\n array[3] = 1;\n\n final BinaryEncoder encoder = new BinaryEncoder(16);\n assertEquals(3.0, encoder.decode(array), 0.0);\n }", "public static Bitmap decodeFile(String path, int inSimpleSize) {\n Options options = new Options();\n options.inSampleSize = inSimpleSize;\n options.inJustDecodeBounds = false;\n // if (config != null)\n options.inPreferredConfig = Config.RGB_565;// Bitmap.Config.ARGB_4444;\n options.inPurgeable = true;\n options.inInputShareable = true;\n return BitmapFactory.decodeFile(path, options);\n }", "void decodeObject();", "public abstract boolean canDecodeInput(Object source) throws IOException;", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "private Bitmap decodeFileFromPath(String path) {\n Uri uri = getImageUri(path);\n InputStream in = null;\n try {\n in = getContentResolver().openInputStream(uri);\n\n //Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n\n BitmapFactory.decodeStream(in, null, o);\n in.close();\n\n int scale = 1;\n int inSampleSize = 1024;\n if (o.outHeight > inSampleSize || o.outWidth > inSampleSize) {\n scale = (int) Math.pow(2, (int) Math.round(Math.log(inSampleSize / (double) Math.max(o.outHeight, o.outWidth)) / Math.log(0.5)));\n }\n\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = scale;\n in = getContentResolver().openInputStream(uri);\n // Bitmap b = BitmapFactory.decodeStream(in, null, o2);\n int MAXCAP_SIZE = 512;\n Bitmap b = getResizedBitmap(BitmapFactory.decodeStream(in, null, o2), MAXCAP_SIZE);\n in.close();\n\n return b;\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\n\tpublic boolean onDeserialize(ByteBuffer buf) {\n\t\t\n\t\tframeNum = buf.getInt();\t// 4\n\t\tfX = buf.getShort();\t\t// 2\n\t\tfY = buf.getShort();\t\t// 2\n\t\tfZ = buf.getShort();\t\t// 2\n\t\tkeyPress = buf.get();\t\t// 1\n\t\t\n\t\treturn true;\n\t}", "public static boolean isArray_infos_size_data() {\n return false;\n }", "@Test\n public void testmagicNumbersForBigDataset() {\n try (FileInputStream inImage = new FileInputStream(INPUT_IMAGE_PATH);\n FileInputStream inLabel = new FileInputStream(INPUT_LABEL_PATH)) {\n\n //==========================================================================================================\n // it reads the next byte of data (8 bits) then put them to left side of an int\n // so the int is 32 bit is fully filled at the end of logic\n // and it moves the cursor to a position after first 32 bits (4 bytes)\n System.out.println(\"Available bytes before read: \" + inImage.available());//47040016\n int magicNumberImages = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n int numberOfImages = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n int numberOfRows = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n int numberOfColumns = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n\n assertTrue(magicNumberImages == 2051);\n assertTrue(numberOfImages == 60000);\n assertTrue(numberOfRows == 28);\n assertTrue(numberOfColumns == 28);\n\n //the same as inImage.skip(16);\n System.out.println(\"Available bytes after read: \" + inImage.available());//47040000\n\n //==========================================================================================================\n // it reads the next byte of data (8 bits) then put them to left side of an int\n // so the int is 32 bit is fully filled at the end of logic\n // and it moves the cursor to a position after first 32 bits (4 bytes)\n System.out.println(\"Available bytes before read: \" + inLabel.available()); //60008\n int magicNumberLabels = (inLabel.read() << 24) | (inLabel.read() << 16) | (inLabel.read() << 8) | (inLabel.read());\n int numberOfLabels = (inLabel.read() << 24) | (inLabel.read() << 16) | (inLabel.read() << 8) | (inLabel.read());\n assertTrue(magicNumberLabels == 2049);\n assertTrue(numberOfLabels == 60000);\n\n System.out.println(\"Available bytes after read: \" + inLabel.available()); //60000\n //the same as inLabel.skip(8);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void dataLoaded(Bitmap bitmap) {\n ivCrop.setImageToCrop(bitmap);\n Bitmap bm = null;\n if (ivCrop.canRightCrop()) bm = ivCrop.crop();\n if (bm != null) ivShow.setImageBitmap(bm);\n }", "static int readRectS(LittleEndianInputStream leis, Rectangle2D bounds) {\n final int x = leis.readShort();\n final int y = leis.readShort();\n final int width = leis.readShort();\n final int height = leis.readShort();\n bounds.setRect(x, y, width, height);\n\n return 4 * LittleEndianConsts.SHORT_SIZE;\n }", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "private byte[] getCover() {\n\t\tbyte[] buffer = new byte[MAX_FB2_SIZE];\n\t\tbyte[] cover64;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\twhile ((amount < MAX_FB2_SIZE) && (count != -1)) {\n\t\t\t\tcount = this.input.read(buffer, amount, MAX_FB2_SIZE - amount);\n\t\t\t\tif (count != -1)\n\t\t\t\t\tamount += count;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t}\n\t\tif (amount == MAX_FB2_SIZE) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tint stop = -1;\n\t\t\tint start = -1;\n\t\t\tint counter = amount - 1;\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == '/')\n\t\t\t\t\t\tif (buffer[counter + 2] == 'b')\n\t\t\t\t\t\t\tif (buffer[counter + 7] == 'y')\n\t\t\t\t\t\t\t\tif (buffer[counter + 8] == '>') {\n\t\t\t\t\t\t\t\t\tstop = counter - 1;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == 'b')\n\t\t\t\t\t\tif (buffer[counter + 3] == 'n')\n\t\t\t\t\t\t\tif (buffer[counter + 5] == 'r')\n\t\t\t\t\t\t\t\tif (buffer[counter + 6] == 'y') {\n\t\t\t\t\t\t\t\t\tstart = counter;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\tif ((start == -1) || (stop == -1)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\twhile (counter < stop) {\n\t\t\t\tif (buffer[counter] == '>') {\n\t\t\t\t\tstart = counter + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tint newSize = stop - start + 1;\n\t\t\tcover64 = new byte[newSize];\n\t\t\tSystem.arraycopy(buffer, start, cover64, 0, newSize);\n\t\t}\n\t\treturn Base64Decoder.decode(cover64);\n\t}", "private Bitmap decodeBitmapFromUri(Context context, Uri uri) { //, int viewWidth, int viewHeight\n try {\n InputStream inputStream = context.getContentResolver().openInputStream(uri);\n Bitmap decodedBm = BitmapFactory.decodeStream(inputStream);\n Bitmap formatedBm = decodedBm.copy(Bitmap.Config.ARGB_8888, false);\n decodedBm.recycle();\n\n\n// ImageUtils imageUtils = new ImageUtils();\n\n// Bitmap orientedBitmap = setOrientation(uri, formatedBm);\n\n Log.i(\"aaa\", \"Uri: \" + uri + \" Bitmap: \" + formatedBm);\n\n// return orientedBitmap;//scaledBitmap(formatedBm, viewWidth, viewHight);\n return formatedBm;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public static int numDimensions_data() {\n return 1;\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public void unmarshal(DataInputStream dis)\n{\n super.unmarshal(dis);\n\n try \n {\n munitionID.unmarshal(dis);\n eventID.unmarshal(dis);\n velocity.unmarshal(dis);\n locationInWorldCoordinates.unmarshal(dis);\n burstDescriptor.unmarshal(dis);\n detonationResult = dis.readByte();\n numberOfArticulationParameters = dis.readByte();\n pad = dis.readShort();\n for(int idx = 0; idx < numberOfArticulationParameters; idx++)\n {\n ArticulationParameter anX = new ArticulationParameter();\n anX.unmarshal(dis);\n articulationParameters.add(anX);\n };\n\n } // end try \n catch(Exception e)\n { \n System.out.println(e); \n }\n }", "@Override\n public long[] getLengths() throws ValueFormatException, RepositoryException {\n return null;\n }", "static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) {\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "@Test\n\tpublic void testDecodingCoordinates55()\n\t{\n\t\tData d = new Data();\n\t\tCoordinate c = d.decode(55);\n\t\tassertEquals(c.getX(), 10);\n\t\tassertEquals(c.getY(), 4);\n\t}", "public int getDecodedStreamLength()\n {\n return this.stream.getInt(COSName.DL);\n }", "public int[] getActualSize() {\n int[] actualSize = new int[2];\n\n actualSize[0] = originalImage.getWidth();\n actualSize[1] = originalImage.getHeight();\n\n return actualSize;\n }" ]
[ "0.64330935", "0.6134155", "0.51375324", "0.5103189", "0.5094085", "0.5088103", "0.50464207", "0.50199175", "0.50187564", "0.49512768", "0.49372807", "0.49353808", "0.49011984", "0.4898262", "0.48965445", "0.48904788", "0.48879516", "0.48648673", "0.48627484", "0.4849078", "0.48197058", "0.48139736", "0.4798451", "0.47882885", "0.47773322", "0.47699043", "0.4765349", "0.47612283", "0.47566667", "0.4737925", "0.47368732", "0.4729095", "0.4718005", "0.47144744", "0.47144392", "0.47136787", "0.4686081", "0.46765512", "0.46694306", "0.46693438", "0.46628478", "0.46555084", "0.46389556", "0.46201205", "0.4618024", "0.46140733", "0.46102446", "0.46022284", "0.45890817", "0.45885384", "0.457636", "0.4568887", "0.45655873", "0.4561444", "0.4550974", "0.45470867", "0.45470867", "0.45470867", "0.45470867", "0.45468938", "0.45442098", "0.45440727", "0.45391288", "0.4538644", "0.4536536", "0.45350462", "0.45289415", "0.45208588", "0.45159754", "0.4514134", "0.45119432", "0.45061898", "0.45052752", "0.4500235", "0.4492929", "0.44842663", "0.44834548", "0.44832638", "0.44829702", "0.4480754", "0.44737023", "0.44732025", "0.44720817", "0.44703057", "0.44688442", "0.44647217", "0.44646978", "0.44636217", "0.44604036", "0.4457205", "0.44567373", "0.44564945", "0.4449464", "0.44483536", "0.44472593", "0.44462794", "0.44346043", "0.4433141", "0.44324195", "0.44319838", "0.44313303" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7249201", "0.7204109", "0.7197405", "0.71792436", "0.7109801", "0.7041446", "0.7040234", "0.70145714", "0.7011273", "0.6983118", "0.6946729", "0.6940447", "0.6936383", "0.6920103", "0.6920103", "0.6893587", "0.6885479", "0.6877562", "0.6877041", "0.6864375", "0.6864375", "0.6864375", "0.6864375", "0.6854553", "0.6848997", "0.68213886", "0.6819509", "0.6814738", "0.68146676", "0.68146676", "0.6807654", "0.6802825", "0.679964", "0.67930657", "0.67922", "0.67903394", "0.6786084", "0.6761232", "0.6759505", "0.67503023", "0.6746139", "0.6746139", "0.6743613", "0.6743027", "0.6727706", "0.67254", "0.67245597", "0.67245597", "0.6723394", "0.67136675", "0.67081934", "0.6706639", "0.67022187", "0.6700513", "0.66984093", "0.66964614", "0.66886663", "0.6685854", "0.6685854", "0.6685123", "0.66817266", "0.66811055", "0.6679423", "0.66700786", "0.66692066", "0.66648287", "0.6659215", "0.6659215", "0.6659215", "0.665847", "0.6656809", "0.6656809", "0.6656809", "0.66543585", "0.6653763", "0.6652573", "0.6650882", "0.66493136", "0.66489655", "0.6648397", "0.6648281", "0.664721", "0.6647127", "0.6645251", "0.66444296", "0.6644408", "0.66408044", "0.66365176", "0.6635421", "0.6634293", "0.6634293", "0.6634293", "0.66340095", "0.66314715", "0.6629901", "0.6628624", "0.662851", "0.66264814", "0.6622667", "0.6621362", "0.6621362" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904066", "0.7804976", "0.7766218", "0.7726716", "0.7631313", "0.76221544", "0.7584775", "0.7530617", "0.74878734", "0.7457033", "0.7457033", "0.74380976", "0.7421477", "0.7402898", "0.7391322", "0.7386477", "0.73788774", "0.7370012", "0.7362617", "0.73555875", "0.73451835", "0.73418057", "0.73298967", "0.73283297", "0.7325109", "0.7318501", "0.73162323", "0.7313179", "0.7303658", "0.7303658", "0.7301155", "0.7297718", "0.7292956", "0.7286341", "0.72828627", "0.72805357", "0.7278157", "0.72596914", "0.72593665", "0.72593665", "0.72593665", "0.7259005", "0.724937", "0.72248167", "0.7219095", "0.7217289", "0.72042423", "0.7200424", "0.72000813", "0.71935385", "0.71848804", "0.7178161", "0.71682125", "0.71670973", "0.7153767", "0.71535325", "0.7136499", "0.71345866", "0.71345866", "0.7129392", "0.7128763", "0.71239245", "0.7122973", "0.7122687", "0.7122104", "0.71169454", "0.7116821", "0.71165425", "0.71165425", "0.71165425", "0.71165425", "0.71160954", "0.711461", "0.711215", "0.71094537", "0.71084976", "0.7105594", "0.70996004", "0.7098039", "0.7095679", "0.70935696", "0.70935696", "0.70862824", "0.70829386", "0.70803833", "0.70799434", "0.7073132", "0.70682305", "0.7061713", "0.7060338", "0.7060053", "0.70512676", "0.7037155", "0.7037155", "0.7035636", "0.70352966", "0.70352966", "0.70329386", "0.70302224", "0.7029258", "0.70191014" ]
0.0
-1
testVerifyInternationalCountryOfOrigin is used to Verifying table information when CountryOfOrigin is selected)
@Test (enabled = false, groups = {"smokeTest"}) public void testVerifyInternationalCountryOfOrigin() throws Exception { test = extent.createTest("Verify International Facts Country Of Origin"); driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);//this is global so no need to mention multiple times try { login.doLogin(test); WebElement helpButton = driver.findElement(By.cssSelector(".explore-quiries-inner")); helpButton.click(); test.log(Status.INFO, "Help button Clicked"); test.createNode("Help Button clicked"); Thread.sleep(5 * 1000); test.log(Status.INFO, "Sunburst Shown"); WebElement International = driver.findElement(By.id("mainArc-0b981a1b-32dc-43b1-b257-70c8c5a6cc6d")); International.click(); test.log(Status.INFO, "International Cluster Clicked on the Sunburst"); test.createNode("International cluster clicked"); Thread.sleep(5 * 1000); WebElement Countryoforigin = driver.findElement(By.id("mainArc-71ef3c15-be01-454d-bd1e-c59d13904a65")); Countryoforigin.click(); Thread.sleep(5 * 1000); test.log(Status.INFO, "Country of Origin Element Clicked on the Sunburst"); test.createNode("Country of Origin clicked"); WebElement helpButtoncountry = driver.findElement(By.id("mainArc-466ed1b9-526b-45c7-a02c-e6d419ef606f")); helpButtoncountry.click(); Thread.sleep(5 * 1000); WebElement TabularView = driver.findElement(By.id("simple-tab-0")); TabularView.click(); Thread.sleep(4*1000); /// VALIDATION /// WebElement tr = driver.findElement(By.id("total-records-count")); String value = tr.getText(); System.out.println("total record->"+value); if (Integer.parseInt(value) == 0) { test.log(Status.INFO, "No Table should appear since no data fetched for given query"); Assert.assertEquals(0, 0); Assert.assertFalse(Integer.parseInt(value) == 0); // to fail, parameter has to be true (0 == 0) => so true; assertFalse(true) means failed test } else { test.log(Status.INFO, "Table is shown with records since table records != 0"); Assert.assertEquals(Integer.parseInt(value) > 0, true); //setting to true since if it comes into this else, it is greater than 0 (can be any num greater than 0 so can't put set value for expected) Assert.assertTrue(Integer.parseInt(value) > 0); driver.findElement(By.xpath("//*[text()=' Total Records']")); test.log(Status.INFO, "Total Records found and table shown"); Thread.sleep(2 * 1000); test.createNode("Verified the table information is displayed when Country of origin is selected. "); WebElement Graphicalview = driver.findElement(By.id("simple-tab-1")); Graphicalview.click(); // Clicks on Graphical View test.createNode("Grahical view clicked"); Thread.sleep(2 * 1000); WebElement Ograph = driver.findElement(By.id("simple-tab-2")); Ograph.click(); // Clicks on Other Graphical View old one test.createNode("Other Graphical view clicked"); Thread.sleep(2 * 1000); WebElement Axis1 = driver.findElement(By.className("other-graph-axis-1-value")); Axis1.click(); // Click Axis 1 Thread.sleep(3 * 1000); test.createNode("clciked on Axis1"); driver.findElement(By.id("react-select-2-option-0")).click(); // Click origin country Thread.sleep(2 * 1000); WebElement Axis2 = driver.findElement(By.className("other-graph-axis-2-value")); Axis2.click(); // Click Axis 2 test.createNode("clciked on Axis2"); Thread.sleep(3 * 1000); WebElement count = driver.findElement(By.id("react-select-3-option-0")); count.click(); // Click count Thread.sleep(5 * 1000); WebElement Graph = driver.findElement(By.className("other-graph-type")); Graph.click(); //Click graph test.createNode("clicked on graph"); Thread.sleep(3 * 1000); WebElement bubblegraph = driver.findElement(By.id("react-select-4-option-4")); bubblegraph.click(); // Click bubble Graph Thread.sleep(4 * 1000); WebElement Show = driver.findElement(By.className("MuiButton-label")); // Click Show test.createNode("clicked ON Show button "); Show.click(); } } catch( Exception e) { test.createNode("Exception (" + e.toString() + ") found").fail(e); // e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void recipientCountryCodeTest() {\n // TODO: test recipientCountryCode\n }", "@Test\n\tpublic void validateCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tgiven().get(Endpoint.GET_COUNTRY).then().statusCode(200).\n\t\tand().contentType(ContentType.JSON).\n\t\tand().body(\"name\", hasItem(\"India\")).\n\t\tand().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t}", "@Test\n public void phoneCountryTest() {\n // TODO: test phoneCountry\n }", "@Test(priority = 5)\n\tpublic void verify_Weather_Data_Appears_OnSearching_By_City_StateCodeAndCountryCode() {\n\t\tWeatherAPI.getWeatherInfo(ReadWrite.getProperty(\"Noida_City_State_Country\"),\n\t\t\t\tConfigFileReader.getProperty(\"appid\"), 200);\n\n\t}", "public void testGetRegion() {\r\n\t\tregionBuilder = getRegionTestBuilder();\r\n\t\ttry {\r\n\t\t\tRegion region = regionMgr.getRegion(RegionTestBuilder.REGION_ID_INDIA);\r\n\t\t\tassertTrue(\"Unable to get country list\", region.getName()\r\n\t\t\t\t\t.equalsIgnoreCase(\"India\"));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tassertTrue(\"An excpetion has occured\", false);\r\n\t\t}\r\n\t}", "@Test\n public void test_changeCountryToUS() {\n LOG.info(\"Executing test_changeCountryToUS \");\n String new_country = \"United States\";\n String us_heading_text = \"Revolut is coming to\\n\" + \"the U.S.A\";\n\n Assert.assertTrue(changeCountryPage.changeCountryTo(new_country));\n Assert.assertEquals(changeCountryPage.getNewCountry(), new_country);\n Assert.assertTrue(changeCountryPage.getAllHeadings().contains(us_heading_text), \"headings : \\n \" + changeCountryPage.getAllHeadings());\n Assert.assertEquals(driver.getCurrentUrl(), \"https://www.revolut.com/en-US/\");\n }", "@Then(\"^I'm displayed that the city of Frankfurt is in Germany alongside the corresponding latitude and longitude$\")\npublic void i_m_displayed_that_the_city_of_Frankfurt_is_in_Germany_alongside_the_corresponding_latitude_and_longitude() {\n\tassertEquals(countryName, \"DE\");\n System.out.println(\"Assertion pass\");\n assertEquals(latitude, \"50.1072\");\n assertEquals(longitude, \"8.66375\");\n System.out.println (latitude + \" \" + longitude);\n}", "public void testAddressCountryConstant() {\n assertEquals(\"ADDRESS_COUNTRY is incorrect\", UserConstants.ADDRESS_COUNTRY, \"address-country\");\n }", "@Test\n public void getAllEuropeanFrenchSpokenCountries() throws Throwable {\n //WHEN\n long startTime = System.currentTimeMillis();\n RestAssured.given()\n .port(port)\n .when()\n .get(\"/feign-country\")\n .then()\n .log().ifValidationFails()\n .statusCode(200)\n .body(\"[1]\", Matchers.is(CountryHelper.France.getName()));\n\n long endTime = System.currentTimeMillis();\n\n //THEN\n log.warn(\"The test took \" + (endTime - startTime) + \" ms.\");\n assertThat(endTime - startTime).isLessThan(5000);\n\n }", "@Test\n public void testClaimPracLocCity() {\n new ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissClaim.Builder::setPracLocCity,\n RdaFissClaim::getPracLocCity,\n RdaFissClaim.Fields.pracLocCity,\n 2147483647);\n }", "@Test\n\tpublic void findByCountryShouldReturnContinent() {\n\t\tList<Destination> destinations = destinationRepository.findByCountry(\"Spain\");\n\t\tassertThat(destinations).hasSize(1);\n\t\tassertThat(destinations.get(0).getContinent()).isEqualTo(\"Europe\");\n\t}", "boolean hasCountry();", "@Test(priority=9)\n\tpublic void verifyNodataAvailableunderVisitsperCountryInitially() throws Exception {\n\t\tOverviewTradusPROPage overviewObj=new OverviewTradusPROPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\tAssert.assertTrue(getText(overviewObj.visitsPerCountryText).trim().equals(\"Visits per country\"),\n\t\t\t\t\"Visits per country text not present\");\n\t\twaitTill(2000);\n\t\tAssert.assertTrue(getText(overviewObj.visitsPerPageContent).trim().equals(\"No Data Available\"),\n\t\t\t\t\"No Data Available is not displaying under Visits per country tab initially\");\n\t}", "@Test\n public void testCountryName() throws JSONException {\n String[] country_names = {\"Bhutan\",\"India\",\"Zimbabwe\"};\n for (i=0;i<respArray.length();i++){\n Assert.assertEquals(respArray.getJSONObject(i).getString(\"name\"),country_names[i], \"Country name does not match\");\n }\n }", "@Test\n public void testVerifyNome() {\n System.out.println(\"verifyNome\");\n boolean expResult = true;\n boolean result = uv.verifyNome(u);\n assertEquals(expResult, result);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "void fetchCountryInformation();", "public void testSetCountry() {\r\n try {\r\n address.setCountry(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public CountryTest()\n {\n }", "public void test001IsInternationalCard() {\n assertTrue(\"Slot 0 is not DUAL_MODE card. The test case maybe need to be modified!\",\n mManageSimMsg.isInternationalCard(0));\n assertFalse(\"Slot 1 is DUAL_MODE card. The test case maybe need to be modified!\",\n mManageSimMsg.isInternationalCard(1));\n }", "public void validate_the_Country_of_Installation_Address_in_Customer_Tab(String Country)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Country\").replaceAll(\"M_InnerText\", Country), \"Country of Installation Address - \"+Country, false);\n\t}", "@Test\n\t@Title(\"TC_008: Verify that the current weather data is returned correctly when user search for the City Name\")\n\t \n\tpublic void TC_008_Verify_CurrentWeatherInfo_Is_Returned_For_ValidCity() {\n\t\t\n\t\tLocation city = new Location();\n\t\t\n\t\tcity = DataReader.RetrieveLocationFromFile(\"data.json\").get(0);\n\t\t\n\t\tcity.weather = new Weather(\"C\");\n\t\t\n\t\t//Steps:\n\t\t//1. Access to the site\n\t\tendUser.access_Site();\n\t\t\n\t\t//Search Weather by CityName\n\t\tendUser.SearchWeatherbyCityName(city);\n\t\t\n\t\t//Assume that the test application is triggering the correct API as expectation: OncCall\n\t\tcity = endUser.getWeatherInfoViaAPIResponse(city);\n\t\t\n\t\t//Validate Current Weather\n\t\tendUser.Validate_CurrentWeather(city);\n\t\t\n\t\tAssert.assertTrue(TestConfigs.glb_TCFailedMessage, TestConfigs.glb_TCStatus);\n\t}", "@Test\n public void testAddTravel_InvalidCountryCodeExceptionStartpoint() throws Exception {\n dto.getStartpoint().setCountry(\"DTO\");\n \n mockMVC.perform(post(\"/user/1/travel\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(dto))\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isInternalServerError());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }", "@Test(priority = 6, description = \"To verify Vendors for LPAD\")\n\tpublic void VerifyvendorsinTable() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"Syndication\");\n\t\twb.deleteEmptyRows();\n\t\tString LocNum = wb.getCellValue(1, wb.seacrh_pattern(\"Location Number\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is\" + LocNum);\n\t\tVendorList = data.getLocationDetailsLPAD(LocNum);\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Vendor List\", \"yes\");\n\t}", "@Test(priority = 3)\n\tpublic void verify_Weather_Data_Appears_OnSearching_By_City() {\n\t\tweatherResponse_city = WeatherAPI.getWeatherInfo(ReadWrite.getProperty(\"Noida_City\"),\n\t\t\t\tConfigFileReader.getProperty(\"appid\"), 200);\n\n\t}", "public void validate_the_Country_of_Correspondence_Address_in_Customer_Tab(String Country)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Correspondence Address\").replaceAll(\"M_Category\", \"Country\").replaceAll(\"M_InnerText\", Country), \"Country of Correspondence Address - \"+Country, false);\n\t}", "@Test(priority = 4)\n\tpublic void verify_Weather_Data_Appears_OnSearching_By_CityAndStateCode() {\n\t\tWeatherAPI.getWeatherInfo(ReadWrite.getProperty(\"London_City_State\"), ConfigFileReader.getProperty(\"appid\"),\n\t\t\t\t200);\n\n\t}", "@Test(priority = 7, description = \"To verify Status of Vendors processed in DTC\")\n\tpublic void VerifyvendorsStatusinTableDTC() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"Syndication\");\n\t\twb.deleteEmptyRows();\n\t\tString LocNum = wb.getCellValue(1, wb.seacrh_pattern(\"Location Number\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is\" + LocNum);\n\t\tdata.getLocationDetailsDTCManualApi(LocNum);\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Status of Vendors of DTC\", \"yes\");\n\t}", "@Test\n public void testEditTravel_InvalidCountryCodeExceptionStartpoint() throws Exception {\n dto.getStartpoint().setCountry(\"DTO\");\n \n mockMVC.perform(put(\"/user/1/travel/1\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(dto))\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isInternalServerError());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }", "public void countriesTable(WebDriver driver, String driverName){\n int name=0, zone=0;\n driver.get(\"http://localhost/litecart/admin/?app=countries&doc=countries\");\n driver.findElement(By.name(\"username\")).sendKeys(\"admin\");\n driver.findElement(By.name(\"password\")).sendKeys(\"admin\");\n driver.findElement(By.name(\"login\")).click();\n if(!driver.findElement(By.cssSelector(\"[name=countries_form]\")).isDisplayed())\n fail(\"No Countries page. Driver: \" + driverName);\n //find number of Name and Zone columns\n List<WebElement> tableHeader = driver.findElements(By.cssSelector(\"th\"));\n for (WebElement columnHeader : tableHeader){\n String str = columnHeader.getAttribute(\"textContent\");\n if (str.equals(\"Name\")) {\n name = tableHeader.indexOf(columnHeader) + 1;\n }\n if (str.equals(\"Zones\")) {\n zone = tableHeader.indexOf(columnHeader) + 1;\n }\n }\n\n //check that Table \"Countries\" has correct alphabet order in column \"Name\"\n List <WebElement> columnName = driver.findElements(By.cssSelector(\".dataTable td:nth-child(\" + name +\")\"));\n isSort(columnName, \"Countries\", driverName);\n\n List <WebElement> columnZones = driver.findElements(By.cssSelector(\".dataTable td:nth-child(\" + zone +\")\"));\n List <Integer> columnZonesValuesMoreThanZero = new ArrayList<Integer>();\n for (int i = 0; i<columnZones.size(); i++){\n Integer zones = Integer.parseInt(columnZones.get(i).getAttribute(\"textContent\"));\n if (zones>0) {\n columnZonesValuesMoreThanZero.add(i);\n }\n }\n name+=2;\n columnName = driver.findElements(By.cssSelector(\".dataTable td:nth-child(\" + name +\")\"));\n\n for (Integer zones : columnZonesValuesMoreThanZero){\n columnName.get(zones).click();\n if (!driver.findElement(By.cssSelector(\"h1\")).getText().equals(\"Edit Country\"))\n fail(\"Not a page 'Edit Country' Driver: \" + driverName);\n int nameZones = columnNumber(driver.findElements(By.cssSelector(\"#table-zones th\")), \"Name\");\n columnName = driver.findElements(By.cssSelector(\"#table-zones td:nth-child(\" + nameZones +\")\"));\n isSort(columnName, \"Zones\", driverName);\n driver.navigate().back();\n columnName = driver.findElements(By.cssSelector(\".dataTable td:nth-child(\" + name +\")\"));\n }\n }", "public void testLocale3()\n throws ValidatorException {\n // Create bean to run test on.\n final NameBean name = new NameBean();\n name.setFirstName(\"\");\n name.setLastName(\"\");\n\n valueTest(name, new Locale(\"en\", \"UK\"), false, true, true);\n }", "@Test\n\tpublic void testGetRegionMap() {\n\t\tthis.shippingRegionImpl.setRegionStr(REGION_STR);\n\t\tMap<String, Region> regionMap = this.shippingRegionImpl.getRegionMap();\n\t\tassertEquals(REGION_MAP_SIZE, regionMap.size());\n\t\tassertEquals(COUNTRY_CODE_CA, regionMap.get(COUNTRY_CODE_CA).getCountryCode());\n\t\tList<String> caRegionSubCountryList = regionMap.get(COUNTRY_CODE_CA).getSubCountryCodeList();\n\t\tassertTrue(caRegionSubCountryList.contains(SUB_COUNTRY_CODE_AB));\n\t\tassertTrue(caRegionSubCountryList.contains(SUB_COUNTRY_CODE_BC));\n\t\tassertEquals(COUNTRY_CODE_US, regionMap.get(COUNTRY_CODE_US).getCountryCode());\n\t\tassertEquals(0, regionMap.get(COUNTRY_CODE_US).getSubCountryCodeList().size());\n\t}", "@Test\r\n public void getPostalCodeTest()\r\n {\r\n Assert.assertEquals(stub.getPostalCode(), POSTALCODE);\r\n }", "public void VerifyCurrencySymbol(){\r\n\t\tString countriess1 = \"Germany,France,Netherland,Italy,Spain,BernardFrance,BernardBelgium,PresselAustria,PresselGermany\";\r\n\t\tString countriess2 = \"Sweden,Denmark,Norway\";\r\n\t\tString countriess3 = \"PresselSwitzerland\";\r\n\t\tString countriess4 = \"UK\";\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:- Currency symbol should be present in Cartincheckout and Order Summary as per the country\");\r\n\r\n\t\ttry{\r\n\t\t\tif(countriess1.contains(countries.get(countrycount))){\r\n\t\t\t\tif(getText(locator_split(\"txtQuantityCartinCheckout\")).contains(\"€\") & getText(locator_split(\"txtOrderSummaryTotal\")).contains(\"€\")){\r\n\t\t\t\t\tSystem.out.println(\"The currency symbole -€ is present for -\"+countries.get(countrycount));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"The currency symbole -€ is not present for -\"+countries.get(countrycount));\r\n\t\t\t\t\tthrow new Error();\r\n\t\t\t\t}\r\n\t\t\t}else if(countriess2.contains(countries.get(countrycount))){\r\n\t\t\t\tif(getText(locator_split(\"txtQuantityCartinCheckout\")).contains(\"Kr\") & getText(locator_split(\"txtOrderSummaryTotal\")).contains(\"Kr\")){\r\n\t\t\t\t\tSystem.out.println(\"The currency symbole -Kr is present for -\"+countries.get(countrycount));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"The currency symbole -Kr is not present for -\"+countries.get(countrycount));\r\n\t\t\t\t\tthrow new Error();\r\n\t\t\t\t}\r\n\t\t\t}else if(countriess3.contains(countries.get(countrycount))){\r\n\t\t\t\tif(getText(locator_split(\"txtQuantityCartinCheckout\")).contains(\"CHF\") & getText(locator_split(\"txtOrderSummaryTotal\")).contains(\"CHF\")){\r\n\t\t\t\t\tSystem.out.println(\"The currency symbole -CHF is present for -\"+countries.get(countrycount));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"The currency symbole -CHF is not present for -\"+countries.get(countrycount));\r\n\t\t\t\t\tthrow new Error();\r\n\t\t\t\t}\r\n\t\t\t}else if(countriess4.contains(countries.get(countrycount))){\r\n\t\t\t\tif(getText(locator_split(\"txtQuantityCartinCheckout\")).contains(\"£\") & getText(locator_split(\"txtOrderSummaryTotal\")).contains(\"£\")){\r\n\t\t\t\t\tSystem.out.println(\"The currency symbole -£ is present for -\"+countries.get(countrycount));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"The currency symbole -£ is not present for -\"+countries.get(countrycount));\r\n\t\t\t\t\tthrow new Error();\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"incorret country is entered in method for -\"+countries.get(countrycount));\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Incorrect country is entered in method for -\"+countries.get(countrycount)+\" or\"\r\n\t\t\t\t\t+ \" Element not found\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"imgShiptoStoreinCartinCheckout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t\tcatch(Error e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- The Currency symbole is not matching for country -\"+countries.get(countrycount));\r\n\t\t\tthrow new Error(\"The Currency symbole is not matching for country -\"+countries.get(countrycount));\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testAddTravel_InvalidCountryCodeExceptionEndpoint() throws Exception {\n dto.getEndpoint().setCountry(\"DTO\");\n \n mockMVC.perform(post(\"/user/1/travel\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(dto))\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isInternalServerError());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }", "@Test\n public void testAirliftCommandWithOwnedCountries() {\n List<Country> l_countryList = d_gameData.getD_warMap().getD_continents().get(1).getD_countryList();\n l_countryList.add(d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0));\n d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).setD_noOfArmies(7);\n d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0).setD_noOfArmies(3);\n\n d_orderProcessor.processOrder(\"airlift india india 6\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order.executeOrder());\n }", "@Test\n public void testDetermineSupportedLocaleWithCountry() throws Exception {\n final File messagesFile = new File(\"messages_es_MX.properties\");\n final Locale supportedLocale = parser.determineSupportedLocale(messagesFile);\n assertThat(supportedLocale.getLanguage()).isEqualTo(\"es\");\n assertThat(supportedLocale.getCountry()).isEqualTo(\"MX\");\n }", "public void validate_the_Country_of_Billing_Address_in_Customer_Tab(String Country)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Country\").replaceAll(\"M_InnerText\", Country), \"Country of Billing Address - \"+Country, false);\n\t}", "public void testLocale4()\n throws ValidatorException {\n // Create bean to run test on.\n final NameBean name = new NameBean();\n name.setFirstName(\"\");\n name.setLastName(\"\");\n\n valueTest(name, new Locale(\"en\", \"UK\", \"TEST\"), false, true, true);\n }", "@ParameterizedTest\n @ValueSource(strings = \"LEO\")\n public void shouldReturnDominantCountry(String orbit)\n {\n String country1= \"USA\";\n\n when(dao.loadAll(Rocket.class)).thenReturn(rockets);\n when(dao.loadAll(Launch.class)).thenReturn(launches);\n\n List<Launch> listLaunches = new ArrayList<>(launches);\n String country = miner.dominantCountry(orbit);\n assertEquals(country1,country);\n //assertEquals(listLaunches.subList(0, k), country);\n }", "boolean isIPGeolocationCountryDatabaseEmbedded();", "@Test\n public void testSameCountriesInBombCommand() {\n d_orderProcessor.processOrder(\"boMb china\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertFalse(l_order.executeOrder());\n }", "@Test(priority = 11, description = \"To verify Status of Vendor Zomato\")\n\tpublic void VerifyvendorsStatusinTableDTCVendorZomato() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"Syndication\");\n\t\twb.deleteEmptyRows();\n\t\tString LocNum = wb.getCellValue(4, wb.seacrh_pattern(\"Location Number\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is :\" + LocNum);\n\t\tString Vendor = wb.getCellValue(4, wb.seacrh_pattern(\"Vendor\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is :\" + Vendor);\n\t\tdata.getLocationDetailsDTCVendors(LocNum, Vendor);\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Status of Vendors of DTC\", \"yes\");\n\t}", "@Test\n public void testWinner() {\n //creating a new country object\n Country l_country2 = new Country();\n l_country2.setD_continentIndex(1);\n l_country2.setD_countryIndex(3);\n l_country2.setD_countryName(\"nepal\");\n List<Country> l_countryList = d_gameData.getD_warMap().getD_continents().get(1).getD_countryList();\n l_countryList.add(l_country2);\n d_gameData.getD_warMap().getD_continents().get(1).setD_countryList(l_countryList);\n\n MapHandlingInterface l_map = new MapHandlingImpl();\n List<String> l_neighbour = d_gameData.getD_playerList().get(0).getD_ownedCountries().get(1).getD_neighbourCountries();\n l_neighbour.add(\"nepal\");\n d_gameData.getD_playerList().get(0).getD_ownedCountries().get(1).setD_neighbourCountries(l_neighbour);\n d_orderProcessor.processOrder(\"advance china nepal 3\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(true, l_order.executeOrder());\n assertEquals(d_gameData.getD_playerList().get(0).getD_ownedCountries().size(), l_map.getAvailableCountries(d_gameData.getD_warMap()).size());\n }", "@SpecAssertion(section = \"4.3\", id = \"43-A4\")\n @Test(groups = { \"format\" }, description = \"4.3 Ensure the isLocaleSensitive() method is implemented.\")\n public void testUnitFormatFormatIsLocalSensitive() {\n for (UnitFormat format : TCKSetup.getConfiguration().getUnitFormats4Test()) {\n \tClass<?> type = format.getClass();\n TestUtils.testHasPublicMethod(\"Section 4.3\", type,\"isLocaleSensitive\");\n }\n }", "@Test\n\t@Transactional\n\tpublic void testCRUD() {\n\t\tRegion region = regionRepository.findByRegionIdEquals(4L);\n\t\tCountry country = new Country(\"ZZ\", \"ZebraLand\", region);\n\t\tcountryRepository.save(country);\n\t\tList<Country> countries = countryRepository.findByCountryNameLike(\"ZebraLand\");\n\t\tassertThat(countries).isNotEmpty().doesNotContainNull().size().isEqualTo(1);\n\t\tassertThat(countries.get(0)).isEqualToComparingFieldByFieldRecursively(country);\n\n\t\t// Update existing Country\n\t\tcountry.setCountryName(\"ZebraWorld\");\n\t\tcountryRepository.save(country);\n\t\tCountry actualCountry = countryRepository.findByCountryIdEquals(\"ZZ\");\n\t\tassertThat(actualCountry).isNotNull().isEqualToComparingFieldByFieldRecursively(country);\n\n\t\t// Delete existing Country\n\t\tcountryRepository.delete(country);\n\t\tactualCountry = countryRepository.findByCountryIdEquals(\"ZZ\");\n\t\tassertThat(actualCountry).isNull();\n\t}", "public void testGetContactUs(String namaContactUs){\n assertEquals(\"komentarContactUs\",contactUsJpa.getContactUs(\"namaContactUs\").getKomentarContactUs());\n }", "@Test(priority = 10, description = \"To verify Status of Vendor HERE\")\n\tpublic void VerifyvendorsStatusinTableDTCVendorHERE() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"Syndication\");\n\t\twb.deleteEmptyRows();\n\t\tString LocNum = wb.getCellValue(3, wb.seacrh_pattern(\"Location Number\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is :\" + LocNum);\n\t\tString Vendor = wb.getCellValue(3, wb.seacrh_pattern(\"Vendor\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is :\" + Vendor);\n\t\tdata.getLocationDetailsDTCVendors(LocNum, Vendor);\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Status of Vendors of DTC\", \"yes\");\n\t}", "@Test\n public void givenStateCode_WhenTrue_ReturnNumberOfRecordMatch() {\n String CSV_FILE_PATH = \"src/test/resources/StateCode.csv\";\n try {\n int numberOfRecords =indianCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.INDIA, CSV_FILE_PATH);\n\n Assert.assertEquals(37, numberOfRecords);\n } catch (CSVBuilderException e) {\n\n }\n\n }", "@Test\n public void testUsersRealUnitcodeBestGuess() {\n String unitCode = userMappingDao.getUsersRealUnitcodeBestGuess(\"username2\", tenancy);\n\n assertEquals(\"incorrect unitcode found with best guess\", \"unitcode2\", unitCode);\n }", "@Test\r\n\t@Ignore\r\n\tpublic void shouldReturnLisOfBrokenByRegion() {\n\t}", "boolean hasCountryCode();", "boolean hasCountryCode();", "public String getDisplayCountry(ULocale displayLocale) {\n/* 624 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "String getCountryOfOrigin(long id) throws RemoteException;", "@Test\n\tpublic void testGetTravel() throws DBException{\n\t\tMyProfileController controller = new MyProfileController();\n\t\tMiniTravelBean bean = controller.getTravel(76);\n\t\tboolean equal = true;\n\t\tif(bean.getId()!=76) {\n\t\t\tequal=false;\n\t\t}\n\t\tif(!bean.getNameTravel().equals(\"San Valentino paris\")) {\n\t\t\tequal = false;\n\t\t}\n\t\tassertEquals(equal,true);\n\t}", "@Test\n public void testAdvanceCommandWithOpponentCountry() {\n List<Country> l_countryList = d_gameData.getD_warMap().getD_continents().get(1).getD_countryList();\n l_countryList.add(d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0));\n d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).getD_neighbourCountries().add(\"nepal\");\n d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).setD_noOfArmies(7);\n d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0).setD_noOfArmies(3);\n d_orderProcessor.processOrder(\"advance china nepal 5\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order.executeOrder());\n }", "@Test\n public void validCodenameShouldReturnClues()\n {\n String codename = DatabaseHelper.getRandomCodename();\n assertTrue(DatabaseHelper.getCluesForCodename(codename).length > 0);\n }", "@Test\n public void getLocationById() throws Exception {\n }", "@Test\r\n\tpublic void testGetTitleEU() {\r\n\t\tassertEquals(\"ExternUnit\", externu1.getTitle());\r\n\t}", "@Test\n\tpublic void areCompatible_shouldConfirmSameLanguageMissingCountryAsCompatible() {\n\t\tLocale lhs = Locale.US;\n\t\tLocale rhs = Locale.ENGLISH;\n\t\t\n\t\tassertTrue(LocaleUtility.areCompatible(lhs, rhs));\n\t}", "public static String getCountry(String localeID) {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testUsersRealNhsNoBestGuess() {\n String unitCode = userMappingDao.getUsersRealNhsNoBestGuess(\"username2\", tenancy);\n\n assertEquals(\"incorrect nhsno found with best guess\", \"nhsno2\", unitCode);\n }", "public void testGetRelevantTerms428() throws IOException {\n String narr = \"To be relevant, a document will name a country other than the U.S. \\n\" +\n \"or China in which the birth rate fell from the rate of the\\n\" +\n \"previous year. The decline need not have occurred in more\\n\" +\n \"than the one preceding year.\";\n ArrayList<ArrayList<String>> result = getRelevantTermsHelper(narr);\n assertTrue(result.get(0).toString().equals(\"[name, country, birth, rates, fell, previous, year]\"));\n assertTrue(result.get(1).toString().equals(\"[united, states, china]\"));\n }", "@And(\"^the System displays Citywide Payroll Transactions$\")\n public void the_System_displays_citywide_Payroll_Transactions() throws Exception {\n\tInteger dataFeedsDetailsCountFromDB = DatabaseUtil.getPayrollDetailsCount(2020,'C');\n\tassertFieldContainsText(\"Payroll Data feeds Default Transaction Count\", PayrollPage.getTotalCountForDatfeeds() ,dataFeedsDetailsCountFromDB.toString());\n\t//assertFieldHasText(\"Payroll Advanced search Title\", PayrollPage.getAdvancedSearchOGEPayrollDetailsTitle(), \"NYCHA Payroll Transactions\");\n//\tassertFieldContainsText(\"Payroll Advanced Search Default Transactions Top navigation Amount\", PayrollPage.getTransactionAmount() , PayrollAmount);\n\t\n\t\n\tsoftAssertion.assertAll();\n}", "@Test\n public void testRegionName() throws JSONException {\n String[] region = {\"Asia\",\"Asia\",\"Africa\"};\n for (i=0;i<respArray.length();i++){\n Assert.assertEquals(respArray.getJSONObject(i).getString(\"region\"),region[i], \"Region name does not match\");\n }\n }", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "@Test\n public void TestSetContinentName() {\n\n continent.setContinentName(\"Asia\");\n }", "@Test\n public void shouldTranslateWithRegionalVariant() {\n List<String> sentence = Arrays.asList(\"it\", \"is\", \"cold\");\n String result = \"\";\n for (String token : sentence) {\n result += manager.message(Locale.CANADA_FRENCH, token, token) + \" \";\n }\n assertEquals(\"Il fait frette \", result);\n }", "public void test4() throws ClassNotFoundException, SQLException {\r\n\t\tsqlTable tbl = new sqlTable();\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis like \" + \"\\\"m%\" + \"\\\"\" + \" and continent like \" + \"\\\"%u%\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"Melbourne\"));\r\n\t}", "@Test\n\tpublic void areCompatible_shouldConfirmDifferentLanguageMissingCountryAsCompatible() {\n\t\tLocale lhs = Locale.US;\n\t\tLocale rhs = Locale.FRENCH;\n\t\t\n\t\tassertFalse(LocaleUtility.areCompatible(lhs, rhs));\n\t}", "@Test\n public void testLocation() throws Exception {\n GeoCoder g = new GeoCoder();\n String location = \"Eastern,NY\";\n g.geoCoding(location);\n }", "@Test\n public void testPlaceOfInterest() {\n LinkedHashMap<String, String> testCountries = new LinkedHashMap<String, String>();\n testCountries.put(\"Key1\", \"Country1\");\n testCountries.put(\"Key2\", \"Country2\");\n\n LinkedHashMap<String, String> assertion = new LinkedHashMap<String, String>();\n assertion.put(\"Key1\", \"Country1\");\n assertion.put(\"Key2\", \"Country2\");\n\n \tPlaceOfInterest testPlace = new PlaceOfInterest(\"Name\", \"Area\",\n \"Description\", testCountries);\n \t\n assertEquals(testPlace.getName(), \"Name\");\n assertEquals(testPlace.getArea(), \"Area\");\n assertEquals(testPlace.getDescription(), \"Description\");\n assertEquals(testPlace.getCountry(), assertion);\n }", "@Test(priority = 9, description = \"To verify Status of Vendor TomTom\")\n\tpublic void VerifyvendorsStatusinTableDTCVendorTomTom() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"Syndication\");\n\t\twb.deleteEmptyRows();\n\t\tString LocNum = wb.getCellValue(2, wb.seacrh_pattern(\"Location Number\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is :\" + LocNum);\n\t\tString Vendor = wb.getCellValue(2, wb.seacrh_pattern(\"Vendor\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is :\" + Vendor);\n\t\tdata.getLocationDetailsDTCVendors(LocNum, Vendor);\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Status of Vendors of DTC\", \"yes\");\n\t}", "@Test\n public void testClaimProvTypFacilCd() {\n new ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissClaim.Builder::setProvTypFacilCd,\n RdaFissClaim::getProvTypFacilCd,\n RdaFissClaim.Fields.provTypFacilCd,\n 1);\n }", "@Test\n public void validateCapital() {\n\n\t\tgiven()\n\t\t.pathParam(\"country\", \"GB\")\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/name/{country}\")\n\t\t.then()\n\t\t.body(\"capital\", contains(\"London\"));\n\t}", "@Test\r\n public void testLookup() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n assertTrue(puu.lookup(noodi)); \r\n }", "@Test\n public void givenUSCensusData_WhenTrue_RecordShouldMatch() throws CSVBuilderException {\n final String CSV_FILE_PATH = \"src/test/resources/USCensusData.csv\";\n try\n {\n int noOfRecords = usCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.US, CSV_FILE_PATH);\n Assert.assertEquals(51, noOfRecords);\n }\n catch (CSVBuilderException e)\n {\n\n }\n }", "public void test3() throws ClassNotFoundException, SQLException {\r\n\t\tsqlTable tbl = new sqlTable();\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"Mumbai\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"Asia\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"New York\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"North America\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 20400000 +\";\"); \r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"Mumbai\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 21000000 +\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"New York\"));\r\n\t}", "@Test\n public void testSelecionarPorCNPJCliente() {\n System.out.println(\"selecionarPorCNPJCliente\");\n String cnpjCliente = \"\";\n ClassificacaoTributariaDAO instance = new ClassificacaoTributariaDAO();\n ClassificacaoTributaria expResult = null;\n ClassificacaoTributaria result = instance.selecionarPorCNPJCliente(cnpjCliente);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testGetNationality() {\r\n System.out.println(\"getNationality\");\r\n Interviewee instance = new Interviewee();\r\n String expResult = null;\r\n String result = instance.getNationality();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "@Test\n public void testIsValidAddress() {\n System.out.println(\"isValidAddress\");\n String address = \"Trion Ierarxon 86, Larissa\";\n boolean expResult = true;\n boolean result = ValidVariables.isValidAddress(address);\n assertEquals(expResult, result);\n }", "public String getDisplayCountry() {\n/* 614 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void VerifyCouponfieldsinCheckout(){\r\n\t\tString countriess1 = \"Denmark,France,PresselSwitzerland,Norway,Spain,BernardFrance,,BernardBelgium,PresselAustria,UK,PresselGermany\";\r\n\t\tString countriess2 = \"Germany,Spain\";\r\n\t\tString countriess3 = \"Netherland,Italy\";\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:- Cupon Input txt box and Apply button should be present\");\r\n\r\n\t\ttry{\r\n\t\t\tif(countriess1.contains(countries.get(countrycount))){\r\n\t\t\t\tif(isElementPresent(locator_split(\"txtCouponinput1inCheckout\")) &\r\n\t\t\t\t\t\tisElementPresent(locator_split(\"txtCouponinput2inCheckout\")) &\r\n\t\t\t\t\t\tisElementPresent(locator_split(\"txtCouponinput3inCheckout\")) &\r\n\t\t\t\t\t\tisElementPresent(locator_split(\"btnCuponApplybuttoninCheckout\"))){\r\n\t\t\t\t\tSystem.out.println(\"3 cupon input box and apply button is present for -\"+countries.get(countrycount));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"3 cupon or apply buttons is not present for -\"+countries.get(countrycount));\r\n\t\t\t\t\tthrow new Error();\r\n\t\t\t\t}\r\n\t\t\t}else if(countriess2.contains(countries.get(countrycount))){\r\n\t\t\t\tif(isElementPresent(locator_split(\"txtCouponinput1inCheckout\")) &\r\n\t\t\t\t\t\tisElementPresent(locator_split(\"btnCuponApplybuttoninCheckout\"))){\r\n\t\t\t\t\tSystem.out.println(\"1 cupon input box and apply button is present for -\"+countries.get(countrycount));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"1 cupon or apply buttons is not present for -\"+countries.get(countrycount));\r\n\t\t\t\t\tthrow new Error();\r\n\t\t\t\t}\r\n\t\t\t}else if(countriess3.contains(countries.get(countrycount))){\r\n\t\t\t\tif(isElementPresent(locator_split(\"txtCouponinput1inCheckout\")) &\r\n\t\t\t\t\t\tisElementPresent(locator_split(\"txtCouponinput2inCheckout\")) &\r\n\t\t\t\t\t\tisElementPresent(locator_split(\"btnCuponApplybuttoninCheckout\"))){\r\n\t\t\t\t\tSystem.out.println(\"2 cupon input box and apply button is present for -\"+countries.get(countrycount));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"2 cupon or apply buttons is not present for -\"+countries.get(countrycount));\r\n\t\t\t\t\tthrow new Error();\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"incorret country is entered in method for -\"+countries.get(countrycount));\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Incorrect country is entered in method for -\"+countries.get(countrycount)+\" or\"\r\n\t\t\t\t\t+ \" Element not found\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"imgShiptoStoreinCartinCheckout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t\tcatch(Error e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Number of cupons is not matching for country or Apply button not present for-\"+countries.get(countrycount));\r\n\t\t\tthrow new Error(\"Number of cupons is not matching for country or Apply button not present for-\"+countries.get(countrycount));\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n Locale loc4 = Locale.UK;\n Locale loc5 = new Locale(\"ru\", \"RU\");\n Locale locTest = new Locale(\"ZH\", \"cn\");\n System.out.println(locTest.getLanguage());\n System.out.println(locTest.getCountry());\n }", "@Test\n\tpublic void testGetSetName() {\n\t\tfinal String testName = \"Canada BC\";\n\t\tthis.shippingRegionImpl.setName(testName);\n\t\tassertEquals(testName, this.shippingRegionImpl.getName());\n\t}", "@Test\n public void testCreateLabelInvoiceBarcode_isConsigneePresent_Success()\n {\n \t\n \ttry {\n \t\tlogger.info(\"Testing consignee presence-- Success. \");\n \t\tString fileName = \"./com/cts/ptms/carrier/yrc/resources/InputData_Standard_ConsigneePresent_Success.xml\";\n\t \tURL url = getClass().getClassLoader().getResource(fileName);\n\t\t\tshipmentRequest.setFileName(url.getFile());\n \t\tshipmentRequest.setCarrier(\"YRC\");\n\t \tshipmentRequest.setGenLabel(true);\n\t \tshipmentResponse = yrcSoapClient.createShipmentRequest(shipmentRequest);\n\t \t\n\t \tSystem.out.println(\"Status:\"+shipmentResponse );\n\t \tassertEquals(\"SUCCESS\", shipmentResponse.getStatus());\n\t \tList<ShipmentDocument> shipmentDocs = shipmentResponse.getShipmentDocuments();\n\t \tfor( ShipmentDocument shipmentDoc : shipmentDocs) {\n\t\t\t\tassertFalse(null == shipmentDoc.getDocumentContent());\n\t\t\t\tif (shipmentDoc.getDocumentTitle().equals(SHIPPINGLABEL)) {\n\t\t\t\t\t\n\t\t\t\t\tbyte[] decoded = Base64.getDecoder().decode(shipmentDoc.getDocumentContent());\n\t\t\t\t\tsaveBase64DataToLocalFile(decoded, shipmentResponse.getTrackingNumber()+\"_ConsigneeValidation_\"+shipmentDoc.getDocumentTitle());\n\t\t\t\t\tPdfReader reader = new PdfReader(decoded);\n\t\t\t\t\tSystem.out.println(\"This PDF has \"+reader.getNumberOfPages()+\" pages.\");\n\t\t\t String page = PdfTextExtractor.getTextFromPage(reader, 1);\n\t\t\t \n\t\t\t //assertTrue(page.contains(\"40\"));\n\t\t\t assertTrue(page.contains(\"AMAZON.COM\"));\n\t\t\t assertTrue(page.contains(\"1901 SE 10TH ST\"));\n\t\t\t assertTrue(page.contains(\"72716\"));\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t\t} else if (shipmentDoc.getDocumentTitle().equals(INVOICE)) {\n\t\t\t\t\tbyte[] decoded = Base64.getDecoder().decode(shipmentDoc.getDocumentContent());\n\t\t\t\t\tsaveBase64DataToLocalFile(decoded, shipmentResponse.getTrackingNumber()+\"_ConsigneeValidation_\"+shipmentDoc.getDocumentTitle());\n\t\t\t\t\tPdfReader reader = new PdfReader(decoded);\n\t\t\t\t\tSystem.out.println(\"This PDF has \"+reader.getNumberOfPages()+\" pages.\");\n\t\t\t String page = PdfTextExtractor.getTextFromPage(reader, 1);\n\t\t\t \n\t\t\t assertTrue(page.contains(\"AMAZON.COM\"));\n\t\t\t assertTrue(page.contains(\"1901 SE 10TH ST\"));\n\t\t\t assertTrue(page.contains(\"72716\"));\n\t\t\t \n\t\t\t\t} else {\n\t\t\t\t\tbyte[] decoded = Base64.getDecoder().decode(shipmentDoc.getDocumentContent());\n\t\t\t\t\tsaveBase64DataToLocalFile(decoded, shipmentResponse.getTrackingNumber()+\"_ConsigneeValidation_\"+shipmentDoc.getDocumentTitle());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n \t} \n\t\tcatch(Exception e)\n\t\t{\n\t\t\tassertEquals(\"Failure\", \"Failure\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Exception occured\"+e.getMessage());\n\t\t}\n \t\n }", "@Test\n public void test2() throws Exception {\n GeoCoder g = new GeoCoder();\n String country = \"Saint Clair\";\n String zip = \"35004\";\n String state = \"Alabama\";\n String city = \"Moody\";\n String address = \"\";\n g.geoCoding(address, city, state, zip);\n }", "@Test\n public void testAtualizarNomeCliente() {\n System.out.println(\"atualizarNomeCliente\");\n String novoNome = \"\";\n String nCpf = \"\";\n ClienteDAO instance = new ClienteDAO();\n boolean expResult = false;\n boolean result = instance.atualizarNomeCliente(novoNome, nCpf);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testPulkovo1995GKZone18N() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone18N());\n }", "@Test\n\t@Title(\"TC_010:Verify that the daily forecast data is returned correctly for the searched City Name\")\n\t \n\tpublic void TC_010_Verify_DailyForCast_Is_Returned_For_ValidCity() {\n\t\t\n\t\tLocation city = new Location();\n\t\t\n\t\tcity = DataReader.RetrieveLocationFromFile(\"data.json\").get(0);\n\t\t\n\t\tcity.weather = new Weather(\"C\");\n\t\t\n\t\t\t\t\n\t\t//Steps:\n\t\t//1. Access to the site\n\t\tendUser.access_Site();\n\t\t\n\t\t//Search Weather by CityName\n\t\tendUser.SearchWeatherbyCityName(city);\n\t\t\n\t\t//Assume that the test application is triggering the correct API as expectation: OncCall\n\t\tcity = endUser.getWeatherInfoViaAPIResponse(city);\n\t\t\n\t\tendUser.Validate_DailyForcastList(7,city);\n\t\t\n\t\tendUser.Validate_DailyForcastDetail_AllDay(city);\n\t\t\n\t\tAssert.assertTrue(TestConfigs.glb_TCFailedMessage, TestConfigs.glb_TCStatus);\n\t}", "@Test\r\n public void testNamaSupplierSudahAda() throws RemoteException, NotBoundException{\n f = new Form_Data_Supplier_Tambah(); \r\n f.setNama(\"PT HOLI PHARMACEUTICAL INDUST\"); \r\n boolean output = f.cekNamaSupplierSudahAda(); \r\n boolean target = true;\r\n assertEquals(target, output);\r\n }", "@Test(dataProvider = GENERIC_DATA_PROVIDER)\n @TestLinkProperties(displayId =\"CTW-5680\")\n\t public void verifyTheSlideIsTranslatedToAllLanguages(AccountAdditionalDetailsData data) {\n pages().controlPanel().logOut();\n pages().topNavigationPage().selectLanguage(data.getLanguage());\n registedAndStart(Country.GERMANY.getName(), Country.GERMANY.getPhonePrefix());\n pages().accountAdditionalDetails().exists();\n pages().accountAdditionalDetails().verifySlideTranslation(data, data.getLanguage());\n }", "public void setOriginatingCountry(java.lang.String originatingCountry) {\r\n this.originatingCountry = originatingCountry;\r\n }", "@Test\n public void getOutsideCityTest()\n {\n String str = _city.getOutsideCity(\"Fourth Ave\");\n assertEquals(str, \"Philadelphia\");\n }", "@Test\n\tpublic void test() {\n\t\tString url = \"jdbc:sqlite:\" + Paths.get(\"\")+\"weatherapp.db\";\n\t\tWeatherDatabase db = new WeatherDatabase(url);\n\t\tassert(db.citiesTableFilled());\n\t\tassert(db.containsCity(\"Boston\", \"MA\"));\n\t\tassert(!db.containsCity(\"Boston\", \"RI\"));\n//\t\t\n\t}", "public void testAddressCityConstant() {\n assertEquals(\"ADDRESS_CITY is incorrect\", UserConstants.ADDRESS_CITY, \"address-city\");\n }", "@Test\r\n public void getStreetNameTest()\r\n {\r\n Assert.assertEquals(stub.getStreetName(), STREETNAME);\r\n }", "public void testLocale1()\n throws ValidatorException {\n // Create bean to run test on.\n final NameBean name = new NameBean();\n name.setFirstName(\"\");\n name.setLastName(\"\");\n\n valueTest(name, new Locale(\"en\", \"US\", \"TEST1\"), false, false, false);\n }", "@Test\n public void testGetUserMappingPatientEntered() {\n User user = new User();\n user.setUsername(\"username1\");\n UserMapping userMapping = userMappingDao.getUserMappingPatientEntered(user, tenancy);\n\n assertEquals(\"incorrect mapping unitcode found\", UnitUtils.PATIENT_ENTERS_UNITCODE, userMapping.getUnitcode());\n assertEquals(\"incorrect mapping nhsno found\", \"nhsno1\", userMapping.getNhsno());\n assertEquals(\"incorrect mapping username found\", \"username1\", userMapping.getUsername());\n }" ]
[ "0.65647376", "0.63716686", "0.6346308", "0.629002", "0.6085211", "0.6061807", "0.58647037", "0.58540887", "0.5850894", "0.5822263", "0.5806369", "0.5768741", "0.5714637", "0.56988543", "0.5694692", "0.5650984", "0.56322086", "0.5624135", "0.56013346", "0.55864745", "0.5583367", "0.5578157", "0.55755645", "0.5573138", "0.55584925", "0.5543737", "0.5539651", "0.5538653", "0.55331635", "0.55184734", "0.5506828", "0.550643", "0.550405", "0.548804", "0.54665303", "0.54618144", "0.5459947", "0.5458285", "0.5451919", "0.54438996", "0.54425305", "0.5440544", "0.54393816", "0.54336935", "0.5420403", "0.5400226", "0.53867924", "0.5381188", "0.53789365", "0.5375803", "0.53745675", "0.5361349", "0.5361349", "0.53561664", "0.5349655", "0.53403294", "0.53393584", "0.53323495", "0.53170466", "0.5309933", "0.53070205", "0.53042847", "0.5300576", "0.52999926", "0.5297265", "0.52912724", "0.52911896", "0.5289881", "0.5281688", "0.527268", "0.5269811", "0.52689266", "0.5265212", "0.52522343", "0.5248193", "0.52465934", "0.5238978", "0.52336323", "0.5222864", "0.5207844", "0.52024686", "0.5197788", "0.5191758", "0.51849055", "0.51801646", "0.5178281", "0.5177894", "0.51763535", "0.5170813", "0.51617026", "0.516111", "0.5160346", "0.51554304", "0.5153434", "0.51377153", "0.5127377", "0.51253724", "0.5124167", "0.5121198", "0.5116824" ]
0.6445567
1
testPrivateQueries is used to automate private queries button (verify its existence)
@Test (groups = {"regressionTest"}) public void testPrivateQueries() { test = extent.createTest("Verify Private Query Button"); driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);//this is global so no need to mention multiple times try { login.doLogin(test); test.createNode("Clicking on Help Button"); //test.log(Status.INFO, "Clicking on Help Button"); WebElement helpButton = driver.findElement(By.cssSelector(".explore-quiries-inner")); highlightHelper.highLightElement(driver, helpButton); helpButton.click(); test.createNode("Clicking on Private Query Button"); //test.log(Status.INFO, "Clicking on Private Query Button"); WebElement privateQueryButton = driver.findElement(By.id("scrollable-auto-tab-1")); highlightHelper.highLightElement(driver, privateQueryButton); privateQueryButton.click(); } catch (Exception e) { test.createNode("Exception (" + e.toString() + ") found").fail(e); Assert.assertTrue(false); } test.createNode("Verified Private Query Successfully"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test (groups = {\"regressionTest\"})\n public void testPublicQueries() throws Exception {\n test = extent.createTest(\"Verify Public Query Button\");\n driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);\n try {\n login.doLogin(test);\n //Thread.sleep(4 * 1000);\n test.createNode(\"Clicking on Help Button\");\n test.log(Status.INFO, \"Clicking on Help Button\");\n WebElement helpButton = driver.findElement(By.cssSelector(\".explore-quiries-inner\"));\n highlightHelper.highLightElement(driver, helpButton);\n helpButton.click();\n\n //Thread.sleep(4 * 1000);\n test.createNode(\"Clicking on Public Query Button\");\n test.log(Status.INFO, \"Clicking on Public Query Button\");\n WebElement publicQueryButton = driver.findElement(By.id(\"scrollable-auto-tab-2\"));\n highlightHelper.highLightElement(driver, publicQueryButton);\n publicQueryButton.click();\n //Thread.sleep(4 * 1000);\n } catch (Exception e) {\n test.createNode(\"Caught [ \" + e + \" ] exception in testPublicQueries\");\n }\n test.createNode(\"Verified Public Query Successfully\");\n }", "@Test\n\tpublic void othersShouldNotBeAbleToLookAtLeonardsQueryByItsPrivateId() throws Exception {\n\t\tthis.mockMvc.perform(get(\"/user/me/queries/123456789\").accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isForbidden());\n\t}", "@Test\n\tpublic void testGetQuestionsWithPrivateReplies() {\n\t\tList<QnaQuestion> questions = questionLogic.getQuestionsWithPrivateReplies(LOCATION1_ID);\n\t\tAssert.assertEquals(1, questions.size());\n\t\tAssert.assertTrue(questions.contains(tdp.question2_location1));\n\t}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void queryTest() {\n // TODO: test query\n }", "@Test\n\tpublic void testQueryPage() {\n\n\t}", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"\");\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }", "public void testQuery() {\n mActivity.runOnUiThread(\n new Runnable() {\n public void run() {\n //TODO: Should compare this against the db results directly.\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(sendQuery(\"xyzzy\"), 0);\n }\n }\n );\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }", "public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}", "public List<Question> getPrivateQuestions() {\n QueryBase query = new AccessibleQuestions(getDefaultAdminUser(), 5, \n \"desc\", null, 0, Integer.MAX_VALUE);\n\n List<QuestionFilter> filters = new ArrayList<QuestionFilter>(1);\n QuestionFilter filter = new ByStatus();\n filter.include(QuestionStatus.PRIVATE.name());\n filters.add(filter);\n\n QueryFilterListBinder filteredQuery = \n new QueryFilterListBinder(query, filters);\n filteredQuery.init(5, \"desc\", 0, Integer.MAX_VALUE);\n QueryResult result = filteredQuery.executeQuery();\n \n return result.getList();\n }", "boolean hasQuery();", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM null WHERE delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete'\");\n assertTrue(boolean0);\n }", "@Override\r\n\tpublic void testPrivateWithViewPrivateScope() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateWithViewPrivateScope();\r\n\t\t}\r\n\t}", "@Test\n public void testQuery(){\n }", "@Test\n public void testQueryMore3() throws Exception {\n testQueryMore(false, false);\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"updatedeffult~nfo\");\n assertFalse(boolean0);\n }", "@Test\n public void testQueryMore2() throws Exception {\n testQueryMore(false, true);\n }", "@Test\n public void testQueryList(){\n }", "@Test \n\tpublic void testGetAllKeysFromKeyTable() throws SQLException\n\t{\n\t\tnew PowerTool(\"asdf\", 5, 5, \"PowerTooldescription\", true);\n\t\tArrayList<Integer> results = DatabaseGateway.getAllKeysFromKeyTable();\n\t\tassertTrue(results.contains(1));\n\t\n\t}", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM join SELECT * FROM as SELECT * FROM on SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null\");\n assertTrue(boolean0);\n }", "boolean isPrivate();", "@Override\r\n\tpublic void testPrivateWithNoViewPrivateScope() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateWithNoViewPrivateScope();\r\n\t\t}\r\n\t}", "boolean hasQueryVisibility();", "@Test\n public void testQueryWithInvalidCredentials() {\n ClientFixture client = cluster.clientBuilder()\n .property(DrillProperties.USER, TEST_USER_2)\n .property(DrillProperties.PASSWORD, TEST_USER_2_PASSWORD)\n .build();\n\n String sql = \"SELECT * FROM mysql.`drill_mysql_test`.person\";\n try {\n client.queryBuilder().sql(sql).rowSet();\n fail();\n } catch (Exception e) {\n assertThat(e.getMessage(), containsString(\"Object 'mysql' not found\"));\n }\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"alter table\");\n assertFalse(boolean0);\n }", "boolean hasQueryAuthorizations();", "@Test\n public void testQueryMore4() throws Exception {\n testQueryMore(true, false);\n }", "@Test\n public void testShowDatabasesWithUserWithNoCreds() throws Exception {\n ClientFixture client = cluster.clientBuilder()\n .property(DrillProperties.USER, TEST_USER_2)\n .property(DrillProperties.PASSWORD, TEST_USER_2_PASSWORD)\n .build();\n\n String sql = \"SHOW DATABASES\";\n QuerySummary results = client.queryBuilder().sql(sql).run();\n assertTrue(results.succeeded());\n assertEquals(results.recordCount(), 7);\n }", "@Test\n\tvoid onPrivateMethod() {\n\t\tString classContent =\n\t\t//@formatter:off\n\t\t\t\t\"package methodinterception;\"\n\n\t\t\t\t+ \"import io.github.swingboot.concurrency.AssertUi;\"\n\t\t\t\t\n\t\t\t\t+ \"public class N {\"\n\t\t\t\t+ \"\tpublic N() {}\"\n\t\t\t\t\n\t\t\t\t+ \"\t@AssertUi\"\n\t\t\t\t+ \"\tprivate void doSomething() {}\"\n\t\t\t\t\n\t\t\t\t+ \"}\";\n\t\t//@formatter:on\n\t\tReflectException ex = assertThrows(ReflectException.class, () -> compile(\"N\", classContent));\n\t\tassertTrue(ex.getMessage().toLowerCase().contains(\"private methods\"));\n\t}", "@Test\n\tpublic void sheldonShouldBeAbleToLookAtLeonardsQueryByItsPublicId() throws Exception {\n\t\t\n\t\tString sheldonToken = generateTokenWithExpirationDate(\"sheldon\", 1, TimeUnit.DAYS, Arrays.asList(\"ROLE_USER\"));\n\n\t\t// UserQuery getUserQuery()\n\t\tthis.mockMvc.perform(get(\"/queries/Abc1\").\n\t\t\t\theader(\"Authorization\", \"Bearer \" + sheldonToken).accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isOk());\n\t}", "boolean isIsQuery();", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }", "void runQueries();", "@Test\r\n public void executeTransactionTest_mock_privateMethod() throws Exception {\r\n localService = spy(new LocalServiceImpl());\r\n PowerMockito.doReturn(150).when(localService, \"getSourceAccountBalance\");\r\n boolean executionSuccess = localService.executeTransactions(5);\r\n PowerMockito.verifyPrivate(localService, times(1)).invoke(\"getSourceAccountBalance\");\r\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Test\npublic void testCreateQueryForPageHql() throws Exception { \n//TODO: Test goes here... \n}", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "@Test(timeout = 100)\n public void testAccessToDB() {\n System.out.println(\"Starting DB access test\");\n }", "void expectMatchesAdmin(String adminSql, String user, String userSql) throws Exception;", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\" SELECT * FROM \");\n assertFalse(boolean0);\n assertNotNull(boolean0);\n }", "public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }", "private Queries() {\n // prevent instantiation\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n boolean boolean0 = SQLUtil.isDDL(\"*]/$]$%Ru7QGq`gg\");\n assertFalse(boolean0);\n }", "boolean hasQueryId();", "boolean hasQueryId();", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"org.apache.derby.iapi.sql.execute.ExecutionContext\");\n String[] stringArray0 = new String[4];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM org.apache.derby.iapi.sql.execute.ExecutionContext WHERE null = null AND null = null AND null = null AND null = null\", string0);\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "@Test\n public void testDAM31201001() {\n // In this test case the where clause is specified in a common sql shared in multiple queries.\n testDAM30505001();\n }", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "boolean hasQueryMessage();", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "@Test\n public void testA_initialState() {\n write(\"marting\");\n clickOn(\"#signInPWD\");\n write(\"Aa12345!\");\n clickOn(\"#signInBtn\");\n verifyThat(\"#RecipeView\", isVisible());\n clickOn(\"#btnShowMenus\");\n verifyThat(\"#windowMenu\", isVisible());\n menuTable = lookup(\"#menuTable\").queryTableView();\n verifyThat(\"#btnDeleteMenu\", isDisabled());\n verifyThat(\"#btnCreateMenu\", isEnabled());\n }", "@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test(timeout = 4000)\n public void test062() throws Throwable {\n DBUtil.checkReadOnly(\"SELECT pronae,oid FROM pg_roc WHEE \", true);\n }", "public void testFindUsersByQuery() throws Exception\r\n {\r\n createUser(\"tolik\");\r\n uHandler.authenticate(\"tolik\", \"pwdADDSomeSaltToBeCompliantWithSomeIS00\");\r\n\r\n Query query = new Query();\r\n query.setEmail(\"email@test\");\r\n\r\n // try to find user by email\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query), UserStatus.ENABLED);\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n\r\n // try to find user by name with mask\r\n query = new Query();\r\n query.setUserName(\"*tolik*\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by name with mask\r\n query = new Query();\r\n query.setUserName(\"tol*\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by name with mask\r\n query = new Query();\r\n query.setUserName(\"*lik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by name explicitly\r\n query = new Query();\r\n query.setUserName(\"tolik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by part of name without mask\r\n query = new Query();\r\n query.setUserName(\"tol\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by fist and last names\r\n query = new Query();\r\n query.setFirstName(\"first\");\r\n query.setLastName(\"last\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n String skipCISearchTests = System.getProperty(\"orgservice.test.configuration.skipCISearchTests\");\r\n if (!\"true\".equals(skipCISearchTests))\r\n {\r\n // try to find user by name explicitly, case insensitive search\r\n query = new Query();\r\n query.setUserName(\"Tolik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by fist and last names, case insensitive search\r\n query = new Query();\r\n query.setFirstName(\"fiRst\");\r\n query.setLastName(\"lasT\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n }\r\n\r\n String skipDateTests = System.getProperty(\"orgservice.test.configuration.skipDateTests\");\r\n if (!\"true\".equals(skipDateTests))\r\n {\r\n // try to find user by login date\r\n Calendar calc = Calendar.getInstance();\r\n calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) - 1);\r\n\r\n query = new Query();\r\n query.setFromLoginDate(calc.getTime());\r\n query.setUserName(\"tolik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n calc = Calendar.getInstance();\r\n calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) + 1);\r\n\r\n query = new Query();\r\n query.setFromLoginDate(calc.getTime());\r\n assertSizeEquals(0, uHandler.findUsersByQuery(query));\r\n\r\n calc = Calendar.getInstance();\r\n calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) - 1);\r\n\r\n query = new Query();\r\n query.setToLoginDate(calc.getTime());\r\n assertSizeEquals(0, uHandler.findUsersByQuery(query));\r\n\r\n calc = Calendar.getInstance();\r\n calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) + 1);\r\n\r\n query = new Query();\r\n query.setToLoginDate(calc.getTime());\r\n query.setUserName(\"tolik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n }\r\n\r\n createUser(\"rolik\");\r\n createUser(\"bolik\");\r\n createUser(\"volik\");\r\n\r\n query = new Query();\r\n query.setUserName(\"olik\");\r\n\r\n ListAccess<User> users = uHandler.findUsersByQuery(query);\r\n\r\n assertSizeEquals(4, users, UserStatus.ENABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n\r\n User[] allPage = users.load(0, 4);\r\n User[] page1 = users.load(0, 2);\r\n User[] page2 = users.load(2, 2);\r\n\r\n assertEquals(allPage[0].getUserName(), page1[0].getUserName());\r\n assertEquals(allPage[1].getUserName(), page1[1].getUserName());\r\n assertEquals(allPage[2].getUserName(), page2[0].getUserName());\r\n assertEquals(allPage[3].getUserName(), page2[1].getUserName());\r\n\r\n try\r\n {\r\n users.load(0, 0);\r\n }\r\n catch (Exception e)\r\n {\r\n fail(\"Exception is not expected\");\r\n }\r\n\r\n // try to load more than exist\r\n try\r\n {\r\n users.load(0, 5);\r\n fail(\"Exception is expected\");\r\n }\r\n catch (Exception e)\r\n {\r\n }\r\n\r\n // try to load more than exist\r\n try\r\n {\r\n users.load(1, 4);\r\n fail(\"Exception is expected\");\r\n }\r\n catch (Exception e)\r\n {\r\n }\r\n\r\n boolean unsupportedOperation = false;\r\n try\r\n {\r\n // Disable the user tolik\r\n uHandler.setEnabled(\"tolik\", false, true);\r\n\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query), UserStatus.ENABLED);\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query, UserStatus.DISABLED), UserStatus.DISABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n\r\n // Enable the user tolik\r\n uHandler.setEnabled(\"tolik\", true, true);\r\n\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query), UserStatus.ENABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(0, uHandler.findUsersByQuery(query, UserStatus.DISABLED), UserStatus.DISABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n }\r\n catch (UnsupportedOperationException e)\r\n {\r\n // This operation can be unsupported\r\n unsupportedOperation = true;\r\n }\r\n\r\n // Remove the user tolik\r\n uHandler.removeUser(\"tolik\", true);\r\n\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query), UserStatus.ENABLED);\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n\r\n\r\n // Check the listener's counters\r\n assertEquals(4, listener.preSaveNew);\r\n assertEquals(4, listener.postSaveNew);\r\n assertEquals(0, listener.preSave);\r\n assertEquals(0, listener.postSave);\r\n assertEquals(unsupportedOperation ? 0 : 2, listener.preSetEnabled);\r\n assertEquals(unsupportedOperation ? 0 : 2, listener.postSetEnabled);\r\n assertEquals(1, listener.preDelete);\r\n assertEquals(1, listener.postDelete);\r\n }", "public void Query() {\n }", "@Test\npublic void testCreateQueryForClazzPageHql() throws Exception { \n//TODO: Test goes here... \n}", "public boolean isPrivate() {\n return false;\n }", "public void test_0() throws Exception {\n \r\n String sql = \"select benchmark( 1, sha1( 'test' ) )\";\r\n Statement stmt = conn.createStatement();\r\n\r\n ResultSet rs = stmt.executeQuery(sql);\r\n JdbcUtils.printResultSet(rs);\r\n \r\n stmt.close();\r\n }", "@Ignore\n public void testUnLogged() throws IOException {\n final Config config = Config.load();\n final PrivateMethodTester privateMethodTester = new PrivateMethodTester(config);\n assertTrue((Boolean) privateMethodTester.invokePrivate(\"unLogged\", Config.HELPER + \".\" + SEED));\n assertFalse((Boolean) privateMethodTester.invokePrivate(\"unLogged\", Config.HELPER + \".\" + SEED));\n }", "@Test\n public void testDAM31901001() {\n // in this case, there are different querirs used to generate the ids.\n // the database id is specified in the selectKey element\n testDAM30602001();\n }", "@Test\npublic void testPrivateChat() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = HandlerClient.getClass().getMethod(\"privateChat\", String.class, String.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}", "@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}", "@Test\r\n\tpublic void testHideShowSuggestionsButNoSuggestions() {\n\t\tWebDriver driver2 = new HtmlUnitDriver();\r\n\t\tadminLogin();\r\n\t\tSuggestion suggestionVisible = suggestionRepository.save(new Suggestion(null, \"suggestionVisible\", true));\r\n\t\tSuggestion suggestionHidden = suggestionRepository.save(new Suggestion(null, \"suggestionHidden\", false));\r\n\t\t// go to \"/suggestions\"\r\n\t\tdriver.get(suggestionsUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Home\", \"New suggestion\", \"Logged as Admin\", \"Logout\");\r\n\t\tassertThat(driver.findElement(By.id(\"suggestions_table\")).getText()).contains(\"ID\", \"Suggestions\",\r\n\t\t\t\tsuggestionVisible.getId().toString(), suggestionVisible.getSuggestionText());\r\n\t\tassertThat(driver.findElement(By.id(\"hiddenSuggestions_table\")).getText()).contains(\"ID\", \"Hidden suggestions\",\r\n\t\t\t\t\"Suggestion\", suggestionHidden.getId().toString(), suggestionHidden.getSuggestionText());\r\n\t\t// go to \"/suggestions/hide/{id}\"\r\n\t\tdriver.findElement(By.linkText(\"Hide\")).click();\r\n\r\n\t\t// user number 2 log himself\r\n\t\t// go to login page\r\n\t\tdriver2.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver2.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver2.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\t// go to suggestions page\r\n\t\tdriver2.get(suggestionsUrl);\r\n\t\t// go to \"/suggestions/delete/{id}\"\r\n\t\tdriver2.findElements(By.linkText(\"Delete\")).get(0).click();\r\n\t\t// delete by clicking the button\r\n\t\tassertThat(suggestionRepository.findAll().size()).isEqualTo(2);\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(suggestionRepository.findAll().size()).isEqualTo(1);\r\n\r\n\t\t// user 1 try to hide but the suggestion does not exist anymore\r\n\t\t// submit the edit\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(driver.getCurrentUrl()).isEqualTo(errorUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Error\", \"Home\",\r\n\t\t\t\t\"It is not possible to update a suggestion with the id: \" + suggestionVisible.getId());\r\n\t\t// go to suggestions\r\n\t\tdriver.get(suggestionsUrl);\r\n\t\t// go to \"/suggestions/hide/{id}\"\r\n\t\tdriver.findElement(By.linkText(\"Show\")).click();\r\n\r\n\t\t// user number 2\r\n\t\t// go to login page\r\n\t\tdriver2.get(suggestionsUrl);\r\n\t\t// go to \"/suggestions/delete/{id}\"\r\n\t\tdriver2.findElement(By.linkText(\"Delete\")).click();\r\n\t\t// delete by clicking the button\r\n\t\tassertThat(suggestionRepository.findAll().size()).isEqualTo(1);\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(suggestionRepository.findAll().size()).isZero();\r\n\t\tdriver2.quit();\r\n\r\n\t\t// user 1 try to show but the suggestion does not exist anymore\r\n\t\t// submit the edit\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(driver.getCurrentUrl()).isEqualTo(errorUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Error\", \"Home\",\r\n\t\t\t\t\"It is not possible to update a suggestion with the id: \" + suggestionHidden.getId());\r\n\t}", "boolean hasQueryTimeSec();", "private void executeQuery1(PersistenceManager pm) {\n Query query = pm.newQuery(Book.class, \"pages > 300\");\n Collection results = (Collection)query.execute();\n printCollection(\"Books with more than 300 pages:\", results.iterator());\n query.closeAll();\n }", "@Test\n public void executeValidSearch_notAllFields(){\n emptySearchFields();\n view.setFloor(1);\n view.setBedrooms(1);\n view.setBathrooms(1);\n presenter.doSearch();\n Assert.assertTrue(presenter.hasNextResult());\n }", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/13_jdbacl\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"z}yVJPxVp_\");\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n mockPrintWriter0.print(false);\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"selectwp.pr\");\n assertFalse(boolean0);\n assertNotNull(boolean0);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n NetworkHandling.sendDataOnTcp((EvoSuiteLocalAddress) null, (byte[]) null);\n String string0 = SQLUtil.normalize(\" Y*-X>Nz.q@~K^o8Z]v\", false);\n assertEquals(\"Y * - X > Nz.q @ ~ K ^ o8Z ] v\", string0);\n \n boolean boolean0 = SQLUtil.isQuery(\"fwX.WrSyJ>:+F-&9\");\n assertFalse(boolean0);\n }", "@Override\r\n\tpublic void testPrivateBelongsToOtherUser() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateBelongsToOtherUser();\r\n\t\t}\r\n\t}", "@Test\n public void testAdminCanSeeOtherUserApplication() throws Exception {\n Set<Id> appIds = ImmutableSet.of(Id.valueOf(5000));\n User user = User.builder()\n .withId(Id.valueOf(5000))\n .withApplicationIds(appIds)\n .withRole(Role.ADMIN)\n .build();\n UserAwareQueryContext context = new UserAwareQueryContext(ApplicationSources.defaults(), \n ActiveAnnotations.standard(),\n Optional.of(user));\n UserAwareQuery<Application> query = UserAwareQuery.singleQuery(Id.valueOf(6000), context);\n UserAwareQueryResult<Application> result = executor.execute(query);\n assertFalse(result.isListResult());\n assertEquals(result.getOnlyResource().getId(), Id.valueOf(6000));\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n boolean boolean0 = SQLUtil.isProcedureCall(\"wbf 3oGZ^\");\n assertFalse(boolean0);\n }", "public boolean queryAfterZeroResults() {\n/* 264 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n boolean boolean0 = SQLUtil.isDML(\"trncateh@?wbt5lee]x[]=]/?\");\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n SimpleResultSet simpleResultSet0 = new SimpleResultSet();\n Statement statement0 = DBUtil.getStatement(simpleResultSet0);\n assertNull(statement0);\n }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n DBUtil.checkReadOnly(\"SELECT pronae,oid FROM pg_roc WHEE \", false);\n }", "@Test\n\tpublic void findAllByVisibleIsTrue_pageable() {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tRecord record = TestHelper.mockRecord();\n\t\t\trecord.setVisible(true);\n\t\t\tentityManager.persist(record);\n\t\t}\n\n\t\t// and 2 private records\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tRecord record = TestHelper.mockRecord();\n\t\t\trecord.setVisible(false);\n\t\t\tentityManager.persist(record);\n\t\t}\n\n\t\tentityManager.flush();\n\n\t\tPage<Record> firstPage2Records = repository.findAllByVisibleIsTrue(PageRequest.of(0, 2));\n\t\tassertThat(firstPage2Records.getContent()).hasSize(2);\n\n\t\tPage<Record> allVisibleRecords = repository.findAllByVisibleIsTrue(PageRequest.of(0, 100));\n\t\tassertThat(allVisibleRecords.getContent()).hasSize(3);\n\t}", "@Test\n public void testCanSeeOwnApplication() throws Exception {\n Set<Id> appIds = ImmutableSet.of(Id.valueOf(5000));\n User user = User.builder()\n .withId(Id.valueOf(5000))\n .withApplicationIds(appIds)\n .withRole(Role.REGULAR)\n .build();\n UserAwareQueryContext context = new UserAwareQueryContext(ApplicationSources.defaults(), \n ActiveAnnotations.standard(),\n Optional.of(user));\n UserAwareQuery<Application> query = UserAwareQuery.singleQuery(Id.valueOf(5000), context);\n UserAwareQueryResult<Application> result = executor.execute(query);\n assertFalse(result.isListResult());\n assertEquals(result.getOnlyResource().getId(), Id.valueOf(5000));\n }", "@Override\n public boolean isPrivate() {\n return true;\n }", "public boolean isCallQueryMechanism() {\n return false;\n }", "protected abstract void runPrivate();", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE null = null AND null = null AND null = null AND null = null AND null = null\", string0);\n }", "@Test\n public void createSqlQueryWithWhereAndGroupBySucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(\"validWhere\").groupBy(\"validGroupBy\").createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments where validWhere group by validGroupBy\\\"}\");\n }", "@Test\n public void testShowSearchedApartment() throws SQLException {\n System.out.println(\"showSearchedApartment\");\n String location = \"gokarna\";\n ApartmentBLL instance = new ApartmentBLL();\n ResultSet result = instance.showSearchedApartment(location);\n assertTrue(result.next());\n }", "@Test\npublic void testCreateQueryForClazzHql() throws Exception { \n//TODO: Test goes here... \n}", "@Test\n public void testQueryWithValidCredentials() throws Exception {\n ClientFixture client = cluster.clientBuilder()\n .property(DrillProperties.USER, TEST_USER_1)\n .property(DrillProperties.PASSWORD, TEST_USER_1_PASSWORD)\n .build();\n\n // Add the credentials to the user\n JdbcStorageConfig pluginConfig = (JdbcStorageConfig) cluster.storageRegistry().getPlugin(PLUGIN_NAME).getConfig();\n PlainCredentialsProvider credentialProvider = (PlainCredentialsProvider) pluginConfig.getCredentialsProvider();\n credentialProvider.setUserCredentials(\"mysqlUser\", \"mysqlPass\", TEST_USER_1);\n pluginConfig.updateCredentialProvider(credentialProvider);\n\n String sql = \"SELECT first_name, last_name FROM mysql.`drill_mysql_test`.person\";\n RowSet results = client.queryBuilder().sql(sql).rowSet();\n\n TupleMetadata expectedSchema = new SchemaBuilder()\n .addNullable(\"first_name\", MinorType.VARCHAR, 38)\n .addNullable(\"last_name\", MinorType.VARCHAR,38)\n .buildSchema();\n\n RowSet expected = new RowSetBuilder(client.allocator(), expectedSchema)\n .addRow(\"first_name_1\", \"last_name_1\")\n .addRow(\"first_name_2\", \"last_name_2\")\n .addRow(\"first_name_3\", \"last_name_3\")\n .addRow(null, null)\n .build();\n\n RowSetUtilities.verify(expected, results);\n }", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"call\");\n assertFalse(boolean0);\n }", "public void test3() throws ClassNotFoundException, SQLException {\r\n\t\tsqlTable tbl = new sqlTable();\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"Mumbai\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"Asia\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"New York\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"North America\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 20400000 +\";\"); \r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"Mumbai\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 21000000 +\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"New York\"));\r\n\t}", "@Test\n\tpublic void test02_CheckDisplayInvitationGadget(){\n\t\tinfo(\"prepare data\");\n\t\t/*Step Number: 1\n\t\t *Step Name: Check display gadget\n\t\t *Step Description: \n\t\t\t- Login as userA\n\t\t\t- Open intranet home\n\t\t\t- Check Invitation gadget\n\t\t *Input Data: \n\n\t\t *Expected Outcome: \n\t\t\t- A maximum number of displayed requests is 4\n\t\t\t-The oldest request will appear at the bottom while the newest will appear on the top\n\t\t\t- For user request, the gadget displays the profile picture of the user, his name and if available, his title.\n\t\t\t- For Spaces request, the gadget displays the space icon, the name, privacy status which is private or public, and the number of members in the space.\n\t\t\t- The title of the gadget will show the total number of requests received which is 4*/ \n\t\tinfo(\"Create datatest\");\n\t\tString space1=txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tString space2=txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tString space3=txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tString username1 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password1 = username1;\n\t\tString email1 = username1 + mailSuffixData.getMailSuffixRandom();\n\n\t\tString username2 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password2 = username2;\n\t\tString email2= username2 + mailSuffixData.getMailSuffixRandom();\n\n\t\tString username3 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password3 = username3;\n\t\tString email3= username3 + mailSuffixData.getMailSuffixRandom();\n\n\t\t/*Create data test*/\n\t\tinfo(\"Add new user\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToAddUser();\n\t\taddUserPage.addUser(username1, password1, email1, username1, username1);\n\t\taddUserPage.addUser(username2, password2, email2, username2, username2);\n\t\taddUserPage.addUser(username3, password3, email3, username3, username3);\n\n\t\tinfo(\"--Send request 2 to John\");\n\t\tinfo(\"Sign in with username1 account\");\n\t\tmagAc.signIn(username1, password1);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\t\thp.goToMySpaces();\n\t\tspaceMg.addNewSpaceSimple(space1,space1);\n\t\tspaceHome.goToSpaceSettingTab();\n\t\tsetMag.inviteUser(DATA_USER1,false,\"\");\n\n\t\tinfo(\"Sign in with username2 account\");\n\t\tmagAc.signIn(username2, password2);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\t\thp.goToMySpaces();\n\t\tspaceMg.addNewSpaceSimple(space2,space2);\n\t\tspaceHome.goToSpaceSettingTab();\n\t\tsetMag.inviteUser(DATA_USER1,false,\"\");\n\n\t\tinfo(\"Sign in with username3 account\");\n\t\tmagAc.signIn(username3, password3);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\t\thp.goToMySpaces();\n\t\tspaceMg.addNewSpaceSimple(space3,space3);\n\t\tspaceHome.goToSpaceSettingTab();\n\t\tsetMag.inviteUser(DATA_USER1,false,\"\");\n\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tinfo(\"Verify that the maximum number of displayed requests is 4\");\n\t\tinfo(\"Verify that for user request, the portlet will displayes the profile picture of the user, his name\");\n\t\twaitForAndGetElement(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username3));\n\t\twaitForAndGetElement(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username2));\n\t\twaitForElementNotPresent(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username1));\n\n\t\twaitForAndGetElement(hp.ELEMENT_INVITAITONS_SPACE_ICON.replace(\"${name}\",space3));\n\t\twaitForAndGetElement(hp.ELEMENT_INVITAITONS_SPACE_ICON.replace(\"${name}\",space2));\n\t\twaitForElementNotPresent(hp.ELEMENT_INVITAITONS_SPACE_ICON.replace(\"${name}\",space1));\n\n\t\tinfo(\"Verify that for space request, the gadget displays the space icon, the name, privacy status which is private or public, and the number of members in the space.\");\n\t\twaitForAndGetElement(hp.ELEMENT_INVITAITONS_SPACE_STATUS_MEMBERS.replace(\"${name}\",space3).replace(\"${statusMember}\",\"Private Space - 1 Members\"));\n\n\t\tinfo(\"Verify that The title of the gadget will show the total number of requests received which is 5\");\n\t\twaitForAndGetElement(By.xpath(hp.ELEMENT_INVITATIONS_NUMBER.replace(\"${number}\", \"6\")),2000,0);\n\n\t\tinfo(\"Delete DATA for the last test\");\n\t\tinfo(\"Signin with james account\");\n\t\tmagAc.signIn(username1, password1);\n\t\thp.goToMySpaces();\n\t\tspaceMg.deleteSpace(space1, false);\n\n\t\tmagAc.signIn(username2, password2);\n\t\thp.goToMySpaces();\n\t\tspaceMg.deleteSpace(space2, false);\n\n\t\tmagAc.signIn(username3, password3);\n\t\thp.goToMySpaces();\n\t\tspaceMg.deleteSpace(space3, false);\n\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToUsersAndGroupsManagement();\n\t\tuserAndGroup.deleteUser(username1);\n\t\tuserAndGroup.deleteUser(username2);\n\t\tuserAndGroup.deleteUser(username3);\n\t}", "private static Boolean specialQueries(String query) throws ClassNotFoundException, InstantiationException, IllegalAccessException {\n clickList = false;\n //newCorpus = true;\n\n if (query.equals(\"q\")) {\n\n System.exit(0);\n return true;\n }\n\n String[] subqueries = query.split(\"\\\\s+\"); //split around white space\n\n if (subqueries[0].equals(\"stem\")) //first term in subqueries tells computer what to do \n {\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n TokenProcessor processor = new NewTokenProcessor();\n if (subqueries.length > 1) //user meant to stem the token not to search stem\n {\n List<String> stems = processor.processToken(subqueries[1]);\n\n //clears list and repopulates it \n String stem = \"Stem of query '\" + subqueries[1] + \"' is '\" + stems.get(0) + \"'\";\n\n GUI.ResultsLabel.setText(stem);\n\n return true;\n }\n\n } else if (subqueries[0].equals(\"vocab\")) {\n List<String> vocabList = Disk_posIndex.getVocabulary();\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n\n int vocabCount = 0;\n for (String v : vocabList) {\n if (vocabCount < 1000) {\n vocabCount++;\n GUI.JListModel.addElement(v);\n }\n }\n GUI.ResultsLabel.setText(\"Total size of vocabulary: \" + vocabCount);\n return true;\n }\n\n return false;\n }", "public List queryTest() {\n\t\tList list = null;\n\t\tthis.init();\n\t\t try {\n\t\t\t list= sqlMap.queryForList(\"getAllTest\");\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn list;\n\t\t\n\t}", "protected boolean isQueryAvailable() {\n return query != null;\n }", "@Test\npublic void testCreateNativeQueryForPageSql() throws Exception { \n//TODO: Test goes here... \n}", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "@Test\n void testGetRegistrarForUser_doesntExist_isAdmin() {\n expectGetRegistrarFailure(\n \"BadClientId\",\n GAE_ADMIN,\n \"Registrar BadClientId does not exist\");\n verifyNoInteractions(lazyGroupsConnection);\n }", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.stringValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\r\n\t}" ]
[ "0.6937975", "0.62611103", "0.6192139", "0.6028667", "0.6014243", "0.58755517", "0.57943827", "0.5776115", "0.5772085", "0.5759559", "0.575071", "0.5680118", "0.56038254", "0.5594812", "0.5589938", "0.55771124", "0.5576528", "0.55698067", "0.55655605", "0.55637467", "0.5484079", "0.5458934", "0.54563195", "0.5453713", "0.5446344", "0.5429347", "0.5417097", "0.54046404", "0.5386744", "0.53770506", "0.5340185", "0.53250897", "0.53137743", "0.53040296", "0.5294896", "0.5280685", "0.52785337", "0.52755624", "0.5261743", "0.5257226", "0.5253647", "0.52512205", "0.5245285", "0.5243375", "0.523771", "0.5235046", "0.5231499", "0.5231499", "0.52303183", "0.52161425", "0.51975065", "0.5196674", "0.51920164", "0.5191391", "0.5187785", "0.51845133", "0.5181216", "0.5174108", "0.5161268", "0.51580375", "0.51538557", "0.51456445", "0.51279455", "0.5119208", "0.5112579", "0.51020026", "0.5091946", "0.5091504", "0.5080523", "0.50744075", "0.5073499", "0.5064243", "0.5055177", "0.5043703", "0.5039083", "0.5026944", "0.5026493", "0.5019169", "0.5015425", "0.5012999", "0.5010559", "0.50091374", "0.5006452", "0.49932265", "0.49886823", "0.49827406", "0.49809408", "0.49785113", "0.4972786", "0.49703586", "0.49665868", "0.49643213", "0.4954524", "0.49533525", "0.49484468", "0.49321207", "0.49227834", "0.49208096", "0.4920369", "0.49177226" ]
0.8153771
0
testColumresize is used to verify whether the columns can be resized are not.
@Test (groups = {"regressionTest"}) public void testColumresize() { test = extent.createTest("Verify testColumresize"); // WebDriverWait wait = new WebDriverWait(driver, 15); try { login.doLogin(test); WebElement searchBubble = driver.findElement(By.xpath("//input[@class='auto-suggestion-input']")); wait.until(ExpectedConditions.visibilityOf(searchBubble)); searchBubble.click(); searchBubble.sendKeys("list of customers"); searchBubble.sendKeys(Keys.ENTER); searchBubble.sendKeys(Keys.ENTER); wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id=\"query-search-result-table\"]/div/div/div[1]/div/div[1]/div[2]/div/div/div[6]/div[1]")));//changes according to xpath Actions action; WebElement resize; for (int i = 1; i <= 4; i++) { resize = driver.findElement(By.xpath("//*[@id=\"query-search-result-table\"]/div/div/div[1]/div/div[1]/div[2]/div/div/div[" + i + "]/div[1]")); action = new Actions(driver); action.clickAndHold(resize); action.moveByOffset(100, 0); action.release(resize).perform(); } test.createNode("Columresize verified successfully"); //Thread.sleep(5000); //use this if you want to observe the size while execution. } catch (Exception e) { test.createNode("Exception " + e + "in testColumresize"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resizeColumns() {\n }", "public void testResize()\n {\n cover.resize(5, 5, 90);\n assertEquals(5.0, cover.getTop(), .1);\n assertEquals(5.0, cover.getLeft(), .1);\n }", "@Test\n public void testGetColumnCount() {\n System.out.println(\"getColumnCount\");\n int expResult = 2;\n int result = testLibraryLibraryTableModel.getColumnCount();\n assertEquals(expResult, result);\n }", "@Test\n void testNoColsWithoutWidthWhenGroupingAndCollapsing() throws IOException {\n try (XSSFWorkbook wb1 = new XSSFWorkbook()) {\n XSSFSheet sheet = wb1.createSheet(\"test\");\n\n sheet.setColumnWidth(4, 5000);\n sheet.setColumnWidth(5, 5000);\n\n sheet.groupColumn((short) 4, (short) 5);\n\n sheet.setColumnGroupCollapsed(4, true);\n\n CTCols cols = sheet.getCTWorksheet().getColsArray(0);\n LOG.atDebug().log(\"test52186_2/cols:{}\", cols);\n\n try (XSSFWorkbook wb2 = XSSFTestDataSamples.writeOutAndReadBack(wb1, \"testNoColsWithoutWidthWhenGroupingAndCollapsing\")) {\n sheet = wb2.getSheet(\"test\");\n\n for (int i = 4; i <= 5; i++) {\n assertEquals(5000, sheet.getColumnWidth(i), \"Unexpected width of column \" + i);\n }\n cols = sheet.getCTWorksheet().getColsArray(0);\n for (CTCol col : cols.getColArray()) {\n assertTrue(col.isSetWidth(), \"Col width attribute is unset: \" + col);\n }\n }\n }\n }", "@Test\n public void test006_test_capcaity() {\n try {\n HashTableADT test = new HashTable<Integer, String>(2, 0.5);\n test.insert(1, \"2\");\n test.insert(2, \"3\");\n if (test.getCapacity() != 5) { //capacity should be 2* original + 1\n fail(\"resize not correct\");\n }\n } catch (Exception e) {\n fail(\"Correct Exception wasn't thrown\");\n }\n }", "@Test\n void testMergingOverlappingCols_OVERLAPS_1_MINOR() throws IOException {\n try (XSSFWorkbook wb1 = new XSSFWorkbook()) {\n XSSFSheet sheet = wb1.createSheet(\"test\");\n\n CTCols cols = sheet.getCTWorksheet().getColsArray(0);\n CTCol col = cols.addNewCol();\n col.setMin(2 + 1);\n col.setMax(4 + 1);\n col.setWidth(20);\n col.setCustomWidth(true);\n\n sheet.groupColumn((short) 3, (short) 5);\n\n cols = sheet.getCTWorksheet().getColsArray(0);\n LOG.atDebug().log(\"testMergingOverlappingCols_OVERLAPS_1_MINOR/cols:{}\", cols);\n\n assertEquals(0, cols.getColArray(0).getOutlineLevel());\n assertEquals(3, cols.getColArray(0).getMin()); // 1 based\n assertEquals(3, cols.getColArray(0).getMax()); // 1 based\n assertTrue(cols.getColArray(0).getCustomWidth());\n\n assertEquals(1, cols.getColArray(1).getOutlineLevel());\n assertEquals(4, cols.getColArray(1).getMin()); // 1 based\n assertEquals(5, cols.getColArray(1).getMax()); // 1 based\n assertTrue(cols.getColArray(1).getCustomWidth());\n\n assertEquals(1, cols.getColArray(2).getOutlineLevel());\n assertEquals(6, cols.getColArray(2).getMin()); // 1 based\n assertEquals(6, cols.getColArray(2).getMax()); // 1 based\n assertFalse(cols.getColArray(2).getCustomWidth());\n\n assertEquals(3, cols.sizeOfColArray());\n\n try (XSSFWorkbook wb2 = XSSFTestDataSamples.writeOutAndReadBack(wb1, \"testMergingOverlappingCols_OVERLAPS_1_MINOR\")) {\n sheet = wb2.getSheet(\"test\");\n\n for (int i = 2; i <= 4; i++) {\n assertEquals(20 * 256L, sheet.getColumnWidth(i), \"Unexpected width of column \" + i);\n }\n assertEquals(sheet.getDefaultColumnWidth() * 256L, sheet.getColumnWidth(5), \"Unexpected width of column \" + 5);\n\n }\n }\n }", "@Test\n void testNoColsWithoutWidthWhenGrouping() throws IOException {\n try (XSSFWorkbook wb1 = new XSSFWorkbook()) {\n XSSFSheet sheet = wb1.createSheet(\"test\");\n\n sheet.setColumnWidth(4, 5000);\n sheet.setColumnWidth(5, 5000);\n\n sheet.groupColumn((short) 4, (short) 7);\n sheet.groupColumn((short) 9, (short) 12);\n\n try (XSSFWorkbook wb2 = XSSFTestDataSamples.writeOutAndReadBack(wb1, \"testNoColsWithoutWidthWhenGrouping\")) {\n sheet = wb2.getSheet(\"test\");\n\n CTCols cols = sheet.getCTWorksheet().getColsArray(0);\n LOG.atDebug().log(\"test52186/cols:{}\", cols);\n for (CTCol col : cols.getColArray()) {\n assertTrue(col.isSetWidth(), \"Col width attribute is unset: \" + col);\n }\n\n }\n }\n }", "@Test\n void testMergingOverlappingCols_OVERLAPS_2_MINOR() throws IOException {\n try (XSSFWorkbook wb1 = new XSSFWorkbook()) {\n XSSFSheet sheet = wb1.createSheet(\"test\");\n\n CTCols cols = sheet.getCTWorksheet().getColsArray(0);\n CTCol col = cols.addNewCol();\n col.setMin(2 + 1);\n col.setMax(4 + 1);\n col.setWidth(20);\n col.setCustomWidth(true);\n\n sheet.groupColumn((short) 1, (short) 3);\n\n cols = sheet.getCTWorksheet().getColsArray(0);\n LOG.atDebug().log(\"testMergingOverlappingCols_OVERLAPS_2_MINOR/cols:{}\", cols);\n\n assertEquals(1, cols.getColArray(0).getOutlineLevel());\n assertEquals(2, cols.getColArray(0).getMin()); // 1 based\n assertEquals(2, cols.getColArray(0).getMax()); // 1 based\n assertFalse(cols.getColArray(0).getCustomWidth());\n\n assertEquals(1, cols.getColArray(1).getOutlineLevel());\n assertEquals(3, cols.getColArray(1).getMin()); // 1 based\n assertEquals(4, cols.getColArray(1).getMax()); // 1 based\n assertTrue(cols.getColArray(1).getCustomWidth());\n\n assertEquals(0, cols.getColArray(2).getOutlineLevel());\n assertEquals(5, cols.getColArray(2).getMin()); // 1 based\n assertEquals(5, cols.getColArray(2).getMax()); // 1 based\n assertTrue(cols.getColArray(2).getCustomWidth());\n\n assertEquals(3, cols.sizeOfColArray());\n\n try (XSSFWorkbook wb2 = XSSFTestDataSamples.writeOutAndReadBack(wb1, \"testMergingOverlappingCols_OVERLAPS_2_MINOR\")) {\n sheet = wb2.getSheet(\"test\");\n\n for (int i = 2; i <= 4; i++) {\n assertEquals(20 * 256L, sheet.getColumnWidth(i), \"Unexpected width of column \" + i);\n }\n assertEquals(sheet.getDefaultColumnWidth() * 256L, sheet.getColumnWidth(1), \"Unexpected width of column \" + 1);\n\n }\n }\n }", "@Test\n public void testGetFinalCol() {\n setUp();\n assertEquals(1, move.getFinalCol());\n tearDown();\n }", "@Test\n void testMergingOverlappingCols_OVERLAPS_1_WRAPS() throws IOException {\n try (XSSFWorkbook wb1 = new XSSFWorkbook()) {\n XSSFSheet sheet = wb1.createSheet(\"test\");\n\n CTCols cols = sheet.getCTWorksheet().getColsArray(0);\n CTCol col = cols.addNewCol();\n col.setMin(2 + 1);\n col.setMax(4 + 1);\n col.setWidth(20);\n col.setCustomWidth(true);\n\n sheet.groupColumn((short) 1, (short) 5);\n\n cols = sheet.getCTWorksheet().getColsArray(0);\n LOG.atDebug().log(\"testMergingOverlappingCols_OVERLAPS_1_WRAPS/cols:{}\", cols);\n\n assertEquals(1, cols.getColArray(0).getOutlineLevel());\n assertEquals(2, cols.getColArray(0).getMin()); // 1 based\n assertEquals(2, cols.getColArray(0).getMax()); // 1 based\n assertFalse(cols.getColArray(0).getCustomWidth());\n\n assertEquals(1, cols.getColArray(1).getOutlineLevel());\n assertEquals(3, cols.getColArray(1).getMin()); // 1 based\n assertEquals(5, cols.getColArray(1).getMax()); // 1 based\n assertTrue(cols.getColArray(1).getCustomWidth());\n\n assertEquals(1, cols.getColArray(2).getOutlineLevel());\n assertEquals(6, cols.getColArray(2).getMin()); // 1 based\n assertEquals(6, cols.getColArray(2).getMax()); // 1 based\n assertFalse(cols.getColArray(2).getCustomWidth());\n\n assertEquals(3, cols.sizeOfColArray());\n\n try (XSSFWorkbook wb2 = XSSFTestDataSamples.writeOutAndReadBack(wb1, \"testMergingOverlappingCols_OVERLAPS_1_WRAPS\")) {\n sheet = wb2.getSheet(\"test\");\n\n for (int i = 2; i <= 4; i++) {\n assertEquals(20 * 256, sheet.getColumnWidth(i), \"Unexpected width of column \" + i);\n }\n\n }\n }\n }", "@Test\n\tpublic void testBoardDimensions() {\n\t\tassertEquals(NUM_ROWS, board.getNumRows());\n\t\tassertEquals(NUM_COLUMNS, board.getNumColumns());\t\t\n\t}", "@Test\n\tpublic void testBoardDimensions() {\n\t\tassertEquals(NUM_ROWS, board.getNumRows());\n\t\tassertEquals(NUM_COLUMNS, board.getNumColumns());\t\t\n\t}", "@Test\n void testMergingOverlappingCols_OVERLAPS_2_WRAPS() throws IOException {\n try (XSSFWorkbook wb1 = new XSSFWorkbook()) {\n XSSFSheet sheet = wb1.createSheet(\"test\");\n\n CTCols cols = sheet.getCTWorksheet().getColsArray(0);\n CTCol col = cols.addNewCol();\n col.setMin(1 + 1);\n col.setMax(4 + 1);\n col.setWidth(20);\n col.setCustomWidth(true);\n\n sheet.groupColumn((short) 2, (short) 3);\n\n sheet.getCTWorksheet().getColsArray(0);\n LOG.atDebug().log(\"testMergingOverlappingCols_OVERLAPS_2_WRAPS/cols:{}\", cols);\n\n assertEquals(0, cols.getColArray(0).getOutlineLevel());\n assertEquals(2, cols.getColArray(0).getMin()); // 1 based\n assertEquals(2, cols.getColArray(0).getMax()); // 1 based\n assertTrue(cols.getColArray(0).getCustomWidth());\n\n assertEquals(1, cols.getColArray(1).getOutlineLevel());\n assertEquals(3, cols.getColArray(1).getMin()); // 1 based\n assertEquals(4, cols.getColArray(1).getMax()); // 1 based\n assertTrue(cols.getColArray(1).getCustomWidth());\n\n assertEquals(0, cols.getColArray(2).getOutlineLevel());\n assertEquals(5, cols.getColArray(2).getMin()); // 1 based\n assertEquals(5, cols.getColArray(2).getMax()); // 1 based\n assertTrue(cols.getColArray(2).getCustomWidth());\n\n assertEquals(3, cols.sizeOfColArray());\n\n try (XSSFWorkbook wb2 = XSSFTestDataSamples.writeOutAndReadBack(wb1, \"testMergingOverlappingCols_OVERLAPS_2_WRAPS\")) {\n sheet = wb2.getSheet(\"test\");\n\n for (int i = 1; i <= 4; i++) {\n assertEquals(20 * 256, sheet.getColumnWidth(i), \"Unexpected width of column \" + i);\n }\n\n }\n }\n }", "@Test\n\tpublic void columnWin_test()\n\t{\n\t\tb.set(0,1, 'x');\n\t\tb.set(1,0, 'o');\n\t\tb.set(1,1, 'x');\n\t\tb.set(2,2, 'o');\n\t\tb.set(2,1, 'x');\n\t\tassertTrue(b.columnWin());\t\n\t}", "@Test\n\tpublic void testGetColCount() {\n\t\tint result = m1.getColCount();\n\t\tassertEquals(2, result);\n\t}", "public Boolean getCanResizeColumns() {\r\n return getAttributeAsBoolean(\"canResizeColumns\");\r\n }", "@Test\n public void testMinimumColumnCountOne() {\n JXTable table = new JXTable(10, 2);\n table.setColumnControlVisible(true);\n table.getColumnExt(0).setVisible(false);\n assertEquals(1, table.getColumnCount());\n }", "public void testGetColumnCount() {\n TaskSeriesCollection c = createCollection1();\n }", "@Test\n\tpublic void assertColumnCount()\n\t{\n\t\tint expectedColumnCount = 2;\n\t\tint actualColumnCount = dashboardPage.getHeaderColumns().size();\n\t\terrorMessage = \"The table column count is incorrect\";\n\t\tAssert.assertEquals(actualColumnCount, expectedColumnCount, errorMessage);\n\t}", "@Override\n public void testTruncateTable() {\n }", "@Test\n\tpublic void columnWin_test1()\n\t{\n\t\tb.set(0,1, 'x');\n\t\tb.set(1,0, 'o');\n\t\tb.set(1,1, 'x');\n\t\tassertFalse(b.columnWin());\t\n\t}", "@Test\r\n public void testColumnHasCards() {\n Game g = new Game();\r\n assertFalse(g.columnHasCards(0));\r\n g.dealFour();\r\n assertTrue(g.columnHasCards(0));\r\n }", "@Test\n public void testGetOriginCol() {\n setUp();\n assertEquals(5, move.getOriginCol());\n tearDown();\n }", "@Test(enabled = false)\n public void testAlterTableDropColumn() throws Exception {\n String tableName = createTable();\n String colDropped = \"id\";\n String query = \"alter table \" + tableName + \" replace columns (name string)\";\n\n runCommand(query);\n\n assertColumnIsNotRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName), colDropped));\n\n //Verify the number of columns present in the table\n List<AtlasEntity> columns = getColumns(DEFAULT_DB, tableName);\n\n assertEquals(columns.size(), 1);\n assertEquals(columns.get(0).getAttribute(NAME), \"name\");\n\n String tblId = assertTableIsRegistered(DEFAULT_DB, tableName);\n AtlasEntity tblEntity = atlasClientV2.getEntityByGuid(tblId).getEntity();\n List ddlQueries = (List) tblEntity.getRelationshipAttribute(ATTRIBUTE_DDL_QUERIES);\n\n Assert.assertNotNull(ddlQueries);\n Assert.assertEquals(ddlQueries.size(), 2);\n }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"truncate\", (DBTable) null, 205, \"\");\n String string0 = SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0);\n assertEquals(\"\", string0);\n }", "@Test\n public void testOnResize() {\n LDViewer spy = spy(ldViewer);\n given(spy.isAttached()).willReturn(true);\n spy.onResize();\n assertFalse(scheduler.executeCommands());\n }", "@Test\n public void testRecomputeStretch(){\n //Recalculate stretch\n imageData.recomputeStretch(frArray, 0, rangeValues, true);\n BufferedImage stretchImage =imageData.getImage(frArray);\n Assert.assertNotEquals(expectedImage, stretchImage);\n }", "@Test(timeout=1000)\n\tpublic void testResize(){\n\t\tStudent[] array = new Student[7];\n\t\tarray[5] = s2; // This is the correct hash position of this student\n\t\tarray[6] = s4;\n\t\tarray[0] = s5;\n\t\tarray[3] = s1;\n\t\tarray[4] = s3;\n\t\thashmap.setArray(array);\n\t\thashmap.resize();\n\t\tint newsize = hashmap.getArray().length;\n\t\tassertEquals(\"resize() failed; length of new hash table is not the double of the old one\", 14, newsize);\n\t\tassertEquals(\"resize() failed; Student 2 is not at the correct index\", 12, getIndexOfStudent(hashmap, s2));\n\t\tassertEquals(\"resize() failed; Student 4 is not at the correct index\", 6, getIndexOfStudent(hashmap, s4));\n\t\tassertEquals(\"resize() failed; Student 5 is not at the correct index\", 5, getIndexOfStudent(hashmap, s5));\n\t\tassertEquals(\"resize() failed; Student 1 is not at the correct index\", 10, getIndexOfStudent(hashmap, s1));\n\t\tassertEquals(\"resize() failed; Student 3 is not at the correct index\", 11, getIndexOfStudent(hashmap, s3));\n\t}", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n StringBuilder stringBuilder0 = new StringBuilder();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"alter table\", defaultDBTable0, 41, \"\");\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"\", stringBuilder0.toString());\n }", "public void setColumnSize() {\n \t\tTableColumn column = null;\n \t\tfor (int i = 0; i < model.getColumnCount(); i++) {\n \t\t\tcolumn = getColumnModel().getColumn(i);\n \t\t\tcolumn.sizeWidthToFit();\n \t\t}\n \t}", "@Test\r\n\tpublic void testColumn() {\n\t\tColumn testColumn = new Column();\r\n\t\t\r\n\t\t// test if we can place a non-king card onto the empty stack\r\n\t\tassertFalse(testColumn.isValidMove(deckCards.get(1)));\r\n\t\t\r\n\t\t// test if we can place a king onto an empty stack\r\n\t\t// remember testStack starts at 0 not 1, so kings are at position 12\r\n\t\tassertTrue(testColumn.isValidMove(deckCards.get(12)));\r\n\t\t\r\n\t\t// add the king to the stack\r\n\t\tassertEquals(deckCards.get(12), testColumn.push(deckCards.get(12)));\r\n\t\t\r\n\t\t// now test can we add the same suit queen\r\n\t\tassertFalse(testColumn.isValidMove(deckCards.get(12)));\r\n\t\t\r\n\t\t// now test if can add an off-suit different color queen\r\n\t\tassertTrue(testColumn.isValidMove(deckCards.get(37)));\r\n\t\t\r\n\t\t// place the card to the stack\r\n\t\tassertEquals(deckCards.get(37), testColumn.push(deckCards.get(37)));\r\n\t\t\r\n\t\t// add a card to the stack via add method as if being dealt\r\n\t\ttestColumn.addCard(deckCards.get(40));\r\n\t\t\r\n\t\t// now check if that changes what will be accepted\r\n\t\tassertFalse(testColumn.isValidMove(deckCards.get(41)));\r\n\t}", "public void testGetColumnIndex() {\n TaskSeriesCollection c = createCollection1();\n }", "private void initColumnSizes(JTable table) {\r\n \t MatchersControlPanelTableModel model = (MatchersControlPanelTableModel)table.getModel();\r\n TableColumn column = null;\r\n Component comp = null;\r\n TableCellRenderer headerRenderer = table.getTableHeader().getDefaultRenderer();\r\n int width = 0;\r\n \r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n column = table.getColumnModel().getColumn(i);\r\n comp = headerRenderer.getTableCellRendererComponent(\r\n null, column.getHeaderValue(),\r\n false, false, 0, 0);\r\n width = 0;\r\n \tif(i == MatchersControlPanelTableModel.INPUTMATCHERS || i == MatchersControlPanelTableModel.NAME){\r\n \t\twidth = 175;\r\n \t}\r\n \telse{\r\n column = table.getColumnModel().getColumn(i);\r\n comp = headerRenderer.getTableCellRendererComponent(\r\n null, column.getHeaderValue(),\r\n false, false, 0, 0);\r\n width = comp.getPreferredSize().width;\r\n \t}\r\n \tcolumn.setPreferredWidth(width);\r\n \tcolumn.setMinWidth(width);\r\n \tcolumn.setMaxWidth(width);\r\n }\r\n \t/* THIS WAS MADE TO SET THE WIDTH AUTOMATICALLY BUT THERE WAS A BUG\r\n \t * \r\n MyTableModel model = (MyTableModel)table.getModel();\r\n TableColumn column = null;\r\n Component comp = null;\r\n int headerWidth = 0;\r\n int cellWidth = 0;\r\n Object[] longValues = model.defaultValues;\r\n TableCellRenderer headerRenderer = table.getTableHeader().getDefaultRenderer();\r\n \r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n column = table.getColumnModel().getColumn(i);\r\n\r\n comp = headerRenderer.getTableCellRendererComponent(\r\n null, column.getHeaderValue(),\r\n false, false, 0, 0);\r\n headerWidth = comp.getPreferredSize().width;\r\n if(model.getRowCount() > 0) {//consider also the dimension of the elements rendered in the first row, and then take the max between header and row cells\r\n \tcomp = table.getDefaultRenderer(model.getColumnClass(i)).\r\n getTableCellRendererComponent( table, longValues[i],\r\n false, false, 0, i);\r\n \t\t\t\tcellWidth = comp.getPreferredSize().width;\r\n\r\n \t\t\t\t System.out.println(\"Initializing width of column \"\r\n \t\t\t\t + i + \". \"\r\n \t\t\t\t + \"headerWidth = \" + headerWidth\r\n \t\t\t\t + \"; cellWidth = \" + cellWidth);\r\n \t\t\t\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\t\tcolumn.setPreferredWidth(Math.max(headerWidth, cellWidth));\r\n \t\t\t\tcolumn.setMinWidth(Math.max(headerWidth, cellWidth));\r\n \t\t\t\tcolumn.setMaxWidth(Math.max(headerWidth, cellWidth));\r\n }\r\n else {//Else just consider the header width\r\n \tcolumn.setPreferredWidth(headerWidth);\r\n \tcolumn.setMinWidth(headerWidth);\r\n \tcolumn.setMaxWidth(headerWidth);\r\n \t\r\n }\r\n }\r\n */\r\n\r\n }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"\", defaultDBTable0, 34, \"\");\n String string0 = SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0);\n assertEquals(\"\", string0);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n DBSchema dBSchema0 = new DBSchema(\"\");\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"k4#~A6 _d6{6v)5_\", dBSchema0);\n DBDataType dBDataType0 = DBDataType.getInstance((-280560843), \"\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"new org.apache.derby.catalog.TriggerOldTransitionRows() \", defaultDBTable0, dBDataType0);\n StringBuilder stringBuilder0 = new StringBuilder(\"\");\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"\", stringBuilder0.toString());\n }", "public void setCanResizeColumns(Boolean canResizeColumns) {\r\n setAttribute(\"canResizeColumns\", canResizeColumns, true);\r\n }", "private void resize() {\n }", "public void sanityCheck() {\n\t\tif (DEBUG) {\n\t\t\tint curMaxColumnHeight = 0;\n\t\t\tint [] curWidths = new int [height];\n\t\t\tint [] curHeights = new int [width];\n\n\t\t\tfor(int i = 0; i < width; i++){\n\t\t\t\tfor(int j =0; j < height; j++){\n\t\t\t\t\tif(grid[i][j]){\n\t\t\t\t\t\tcurWidths[j]++;\n\t\t\t\t\t\tif(curHeights[i]<=j){\n\t\t\t\t\t\t\tcurHeights[i] = j + 1;\n\t\t\t\t\t\t\tif(curHeights[i] > curMaxColumnHeight){\n\t\t\t\t\t\t\t\tcurMaxColumnHeight = curHeights[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!Arrays.equals(curWidths,widths)){\n\t\t\t\tthrow new RuntimeException(\"Incorrect width array\");\n\t\t\t}\n\t\t\tif(!Arrays.equals(curHeights,heights)){\n\t\t\t\tthrow new RuntimeException(\"Incorrect height array\");\n\t\t\t}\n\t\t\tif(curMaxColumnHeight != maxColumnHeight){\n\t\t\t\tSystem.out.println(curMaxColumnHeight+ \" \"+maxColumnHeight);\n\t\t\t\tthrow new RuntimeException(\"Incorrect maxColumnHeight\");\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testColumnControlInvisibleColumns() {\n final JXTable table = new JXTable(sortableTableModel);\n // columns set to invisible before setting the columnControl\n // will not be inserted into the column control's list\n// table.getColumnExt(\"Last Name\").setVisible(false);\n table.setColumnControlVisible(true);\n int totalColumnCount = table.getColumnCount();\n final TableColumnExt priorityColumn = table.getColumnExt(\"First Name\");\n priorityColumn.setVisible(false);\n ColumnControlButton columnControl = (ColumnControlButton) table.getColumnControl();\n assertNotNull(\"popup menu not null\", columnControl.popup);\n int columnMenuItems = 0;\n Component[] items = ((DefaultColumnControlPopup) columnControl.getColumnControlPopup()).getPopupMenu().getComponents();\n for (int i = 0; i < items.length; i++) {\n if (!(items[i] instanceof JMenuItem)) {\n break;\n }\n columnMenuItems++;\n }\n // wrong assumption - has separator and actions!\n assertEquals(\"menu items must be equal to columns\", totalColumnCount, \n columnMenuItems);\n JCheckBoxMenuItem menuItem = (JCheckBoxMenuItem) ((DefaultColumnControlPopup) columnControl.getColumnControlPopup()).getPopupMenu()\n .getComponent(0);\n // sanit assert\n assertEquals(priorityColumn.getHeaderValue(), menuItem.getText());\n assertEquals(\"selection of menu must be equal to column visibility\", \n priorityColumn.isVisible(), menuItem.isSelected());\n }", "public void updateColumnSizes() {\n Set<JTable> tables = columnSizes.keySet();\n\n for (JTable current : tables) {\n int[] tableColumnSizes = columnSizes.get(current);\n TableColumnModel tcm = current.getColumnModel();\n tableColumnSizes = new int[current.getColumnCount()];\n columnSizes.put(current, tableColumnSizes);\n\n for (int i = 0; i < current.getModel().getColumnCount(); i++) {\n int width = tcm.getColumn(i).getWidth();\n tableColumnSizes[i] = width;\n }\n }\n }", "@Test\n public void testGetSize_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n int result = fixture.getSize();\n\n assertEquals(1, result);\n }", "boolean hasCol();", "@Test(timeout = 4000)\n public void test131() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.renderColumnTypeWithSize((DBColumn) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n\tpublic void testGetTableSize()\n\t{\n\t\tassertEquals(20, testStructure.getTableSize());\t\t\n\t\ttestStructure = new ConcordanceDataStructure(500);\n\t\tassertEquals(347, testStructure.getTableSize());\t\n\t}", "@Test\n public void test_level_behaviours_columns_03() {\n Assert.assertFalse(JdbcCompatibility.shouldTypeColumnsAsString(JdbcCompatibility.HIGH));\n Assert.assertTrue(JdbcCompatibility.shouldDetectColumnTypes(JdbcCompatibility.HIGH));\n }", "public abstract boolean currentSizeVSCageSize(int row, int col);", "@Test\n public void testSetSize_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n int size = 1;\n\n fixture.setSize(size);\n\n }", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n boolean boolean0 = SQLUtil.isDDL(\"drop materialized viewoeqdkmcg0dtw\");\n assertTrue(boolean0);\n }", "@Test (retryAnalyzer = Retry.class, groups={\"Secure - DataCourier\"}, alwaysRun=true)\n\tpublic void restoreColumnWidths() throws Exception {\n\t\t\n\t\tExtentTest test = ExtentTestManager.getTest();\n\t\tRemoteWebDriver driver = DriverFactory.getInstance().getDriver();\n\t\t\n\t\t// Log in to Secure\n\t\tsecure.login(driver, user, StoredVariables.getpassword().get());\n\t\t\n\t\t// Go to Data Courier\n\t\tsecure.goToDataCourier(driver);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Set element\n\t\tWebElement e = driver.findElement(By.cssSelector(\"th[idx='2']\"));\n\t\t\n\t\t// Get the element id\n\t\tString id = e.getAttribute(\"id\");\n\t\t\n\t\t// Get column width for the borrower column before\n\t\tString styleBefore = e.getAttribute(\"style\");\n\t\t\n\t\t// Expand column width for the borrower column\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\tjs.executeScript(\"document.getElementById('\" + id + \"').setAttribute('style', 'width: 200px;')\");\n\t\t\n\t\t// Get the new column width for the borrower column\n\t\tString styleAfter = e.getAttribute(\"style\");\n\t\t\n\t\t// Verify the column width got changed\n\t\tAssert.assertTrue(!styleBefore.equals(styleAfter), \"The column width did not change\");\n\t\t\n\t\t// Click Restore Column Widths button\n\t\tperform.click(driver, SDataCourier.restoreColumnWidths_btn(driver));\n\t\t\n\t\t// Wait for overlay to be hidden\n\t\tperform.waitForOverlayToBeHidden(driver);\n\t\t\n\t\t// Refresh the element\n\t\te = driver.findElement(By.cssSelector(\"th[idx='2']\"));\n\t\t\n\t\t// Get the new column width for the borrower column\n\t\tString styleAfterRestore = e.getAttribute(\"style\");\n\t\t\n\t\t// Verify column width returns to original width\n\t\tAssert.assertTrue(styleBefore.equals(styleAfterRestore), \"The column did not return to the original width\");\n\t \n\t\t// Log test\n\t\ttest.log(LogStatus.INFO, \"data courier\", \"Tested the Restore Column Widths button\");\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n // Undeclared exception!\n try { \n SQLUtil.renderColumnTypeWithSize((DBColumn) null, stringBuilder0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n // Undeclared exception!\n try { \n SQLUtil.renderColumnTypeWithSize((DBColumn) null, stringBuilder0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\r\n public void Test011MakeLiveCellWithMoreThan20RowColumn()\r\n {\r\n\r\n assertFalse(gol.makeLiveCell(20, 20));\r\n\r\n }", "protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }", "@Test\n public void test_level_behaviours_columns_01() {\n Assert.assertFalse(JdbcCompatibility.shouldTypeColumnsAsString(JdbcCompatibility.LOW));\n Assert.assertFalse(JdbcCompatibility.shouldDetectColumnTypes(JdbcCompatibility.LOW));\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Object object0 = new Object();\n DBColumn[] dBColumnArray0 = new DBColumn[3];\n // Undeclared exception!\n try { \n SQLUtil.renderColumnTypeWithSize(dBColumnArray0[1]);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\r\n public void Test010MakeLiveCellWithMoreThan20Column()\r\n {\r\n\r\n assertFalse(gol.makeLiveCell(3, 20));\r\n\r\n }", "public boolean validateColumns(int validateMask, boolean refreshColumns)\n {\n String utableName = this.getUntranslatedTableName();\n boolean addMissingColumns = ((validateMask & DBAdmin.VALIDATE_ADD_COLUMNS ) != 0);\n boolean alterColumnTypes = ((validateMask & DBAdmin.VALIDATE_ALTER_COLUMNS ) != 0);\n boolean rebuildKeys = ((validateMask & DBAdmin.VALIDATE_REBUILD_KEYS ) != 0);\n boolean checkColumnEncoding = ((validateMask & DBAdmin.VALIDATE_CHECK_ENCODING ) != 0);\n boolean showColumns = ((validateMask & DBAdmin.VALIDATE_SHOW_COLUMNS ) != 0);\n boolean displayWarnings = ((validateMask & DBAdmin.VALIDATE_DISPLAY_WARNINGS) != 0);\n boolean displayErrors = ((validateMask & DBAdmin.VALIDATE_DISPLAY_ERRORS ) != 0) || displayWarnings || showColumns;\n\n /* defined columns (as defined in the Java table wrapper) */\n DBField colDefined[] = this.getFields();\n if ((colDefined == null) || (colDefined.length == 0)) {\n if (displayErrors) {\n Print.logInfo(\"ERROR - \" + utableName + \": No table columns defined!!!\");\n }\n return false;\n }\n if (showColumns) {\n Print.logInfo(\" Defined columns: \" + utableName);\n for (int i = 0; i < colDefined.length; i++) {\n Print.logInfo(\" \" + this._columnInfo(i, colDefined[i], true));\n }\n }\n\n /* table columns (as found in the SQL table itself) */\n DBField colTable[];\n try {;\n colTable = this.getExistingColumns(refreshColumns);\n if (ListTools.isEmpty(colTable)) {\n if (displayErrors) {\n Print.logInfo(\"ERROR - \" + utableName + \": Existing table columns list is empty (not supported?)\");\n }\n return false;\n }\n } catch (DBException dbe) {\n if (displayErrors) {\n Print.logInfo(\"ERROR - \" + utableName + \": Error reading table columns!\");\n }\n return false;\n }\n if (showColumns) {\n boolean showActual = false;\n if (colTable.length != colDefined.length) {\n showActual = true;\n } else {\n for (int i = 0; i < colTable.length; i++) {\n if (!colTable[i].isTypeMatch() || !colDefined[i].equals(colTable[i])) {\n showActual = true;\n break;\n }\n }\n }\n if (showActual) {\n Print.logInfo(\" Actual columns: \" + utableName + \" (as described in the database)\");\n for (int i = 0; i < colTable.length; i++) {\n Print.logInfo(\" \" + this._columnInfo(i, colTable[i], false));\n }\n }\n }\n\n /* create a set of existing column fields and names */\n OrderedMap<String,DBField> colTableMap = new OrderedMap<String,DBField>();\n for (int i = 0; i < colTable.length; i++) {\n colTableMap.put(colTable[i].getName(), colTable[i]);\n }\n\n /* compare individual columns */\n boolean columnsOK = true;\n OrderedSet<DBField> missingColumns = new OrderedSet<DBField>();\n OrderedSet<DBField> typeMismatchColumns = new OrderedSet<DBField>();\n OrderedSet<DBField> priKeyMismatchColumns = new OrderedSet<DBField>();\n OrderedSet<DBField> altKeyMismatchColumns = new OrderedSet<DBField>();\n for (int i = 0; i < colDefined.length; i++) {\n String columnName = colDefined[i].getName();\n\n /* check for column existance */\n DBField existingField = colTableMap.get(columnName);\n if (existingField == null) {\n // defined column not found in existing columns\n if (!DBField.IgnoreColumnError(utableName,columnName)) {\n if (displayErrors) {\n Print.logInfo(\"ERROR - \" + utableName + \": Column '\" + colDefined[i] + \"' [\" + i + \"] not found\");\n }\n missingColumns.add(colDefined[i]);\n columnsOK = false;\n } else {\n if (displayErrors) {\n Print.logInfo(\"WARNING - \" + utableName + \": Column '\" + colDefined[i] + \"' [\" + i + \"] not found (ignored)\");\n }\n }\n continue;\n // goto next defined column\n }\n\n /* check for matching character sets */\n String actualCS = existingField.getCharacterSet();\n String definedCS = colDefined[i].getCharacterSet();\n if (StringTools.isBlank(definedCS)) { definedCS = \"<default>\"; }\n if (colDefined[i].isUTF8() && !existingField.isUTF8()) {\n // Defined column is UTF8, but actual column is not\n if (!DBField.IgnoreColumnError(utableName,columnName)) {\n if (displayErrors) {\n Print.logInfo(\"ERROR - \" + utableName + \": Column '\" + columnName + \"' UTF8 mismatch '\" + definedCS + \"' != '\" + actualCS + \"'\");\n }\n typeMismatchColumns.add(colDefined[i]);\n columnsOK = false;\n } else {\n if (displayErrors) {\n Print.logInfo(\"WARNING - \" + utableName + \": Column '\" + columnName + \"' UTF8 mismatch '\" + definedCS + \"' != '\" + actualCS + \"' (ignored)\");\n }\n }\n } else\n if (!colDefined[i].isUTF8() && existingField.isUTF8()) {\n // Actual column is UTF8, but Defined column is not\n if (checkColumnEncoding) {\n if (alterColumnTypes) {\n if (!DBField.IgnoreColumnError(utableName,columnName)) {\n if (displayErrors) {\n Print.logInfo(\"ERROR - \" + utableName + \": Column '\" + columnName + \"' UTF8 mismatch '\" + definedCS + \"' != '\" + actualCS + \"'\");\n }\n typeMismatchColumns.add(colDefined[i]);\n columnsOK = false;\n } else {\n if (displayErrors) {\n Print.logInfo(\"WARNING - \" + utableName + \": Column '\" + columnName + \"' UTF8 mismatch '\" + definedCS + \"' != '\" + actualCS + \"' (ignored)\");\n }\n }\n } else {\n if (displayErrors) {\n Print.logInfo(\"WARNING - \" + utableName + \": Column '\" + columnName + \"' UTF8 mismatch '\" + definedCS + \"' != '\" + actualCS + \"'\");\n }\n }\n }\n }\n\n /* check for matching data types */\n String actualType = existingField.getDataType();\n String definedType = colDefined[i].getDataType();\n if (!DBProvider.areTypesEquivalent(definedType,actualType)) {\n // Column type mismatch\n if (displayErrors) {\n Print.logInfo(\"ERROR - \" + utableName + \": Column '\" + columnName + \"' Type mismatch expected::\" + definedType + \" != found:\" + actualType + \"\");\n }\n typeMismatchColumns.add(colDefined[i]);\n columnsOK = false;\n }\n\n /* check for matching keys */\n if (existingField.isPrimaryKey() != colDefined[i].isPrimaryKey()) {\n // primary keys do not match\n if (displayErrors) {\n if (colDefined[i].isPrimaryKey()) {\n Print.logInfo(\"ERROR - \" + utableName + \": Column '\" + columnName + \"' missing Primary key\");\n } else {\n Print.logInfo(\"ERROR - \" + utableName + \": Column '\" + columnName + \"' extra Primary key\");\n }\n }\n priKeyMismatchColumns.add(colDefined[i]);\n columnsOK = false;\n } else\n if (existingField.hasMissingAlternateIndexes(colDefined[i].getAlternateIndexes())) {\n // existing field is missing some alternate keys\n if (displayErrors) {\n String altKeys = StringTools.join(existingField.getMissingAlternateIndexes(colDefined[i].getAlternateIndexes()),\",\");\n Print.logInfo(\"ERROR - \" + utableName + \": Column '\" + columnName + \"' missing Alternate key [\"+altKeys+\"]\");\n }\n altKeyMismatchColumns.add(colDefined[i]);\n columnsOK = false;\n } else\n if (existingField.hasExtraAlternateIndexes(colDefined[i].getAlternateIndexes())) {\n // existing field has some extra alternate keys\n if (displayWarnings) { // displayErrors/displayWarnings\n String altKeys = StringTools.join(existingField.getAlternateIndexes(),\",\");\n Print.logInfo(\"Warn - \" + utableName + \": Column '\" + columnName + \"' extra Alternate key [\"+altKeys+\"]\");\n }\n //altKeyMismatchColumns.add(colDefined[i]);\n //columnsOK = false;\n }\n\n /* table column index */\n int colTableNdx = colTableMap.indexOfKey(columnName);\n if (colTableNdx != i) {\n // Column is located at a different index\n if (displayWarnings) {\n // This is more of an 'informational' message than a warning\n //Print.logInfo(\"WARNING - \" + utableName + \": Column '\" + columnName + \"' [\" + i + \"] found @ \" + colTableNdx);\n }\n }\n \n }\n\n /* warn about 'existing' columns that aren't 'defined' */\n if (displayWarnings) {\n for (int i = 0; i < colTable.length; i++) {\n String columnName = colTable[i].getName();\n DBField definedField = this.getField(columnName);\n if (definedField == null) {\n Print.logInfo(\"WARNING - \" + utableName + \": Actual column '\" + colTable[i] + \"' not used\");\n }\n }\n }\n\n /* add missing columns? */\n // This list includes columns that may have the same name, but different attributes\n // adding such a column will likely produce an error\n if (addMissingColumns && (missingColumns.size() > 0)) {\n try {\n DBField columns[] = missingColumns.toArray(new DBField[missingColumns.size()]);\n /* add column */\n int ndx = 0;\n for (;ndx < columns.length;) {\n int cnt = this.addColumns(columns, ndx);\n if (cnt == 0) {\n // should not occur\n break;\n }\n ndx += cnt;\n }\n /* rebuild indexes? */\n for (int c = 0; c < columns.length; c++) {\n if (columns[c].isAlternateKey()) {\n this.recreateAlternateIndexes();\n break;\n }\n }\n } catch (DBException dbe) {\n if (displayErrors) {\n Print.logException(\"ERROR - \" + utableName + \": Unable to add missing columns!\", dbe);\n }\n return false;\n }\n }\n\n /* alter columns types? */\n if (alterColumnTypes && (typeMismatchColumns.size() > 0)) {\n try {\n DBField columns[] = typeMismatchColumns.toArray(new DBField[typeMismatchColumns.size()]);\n /* alter column type */\n int ndx = 0;\n for (;ndx < columns.length;) {\n int cnt = this.addColumns(columns, ndx);\n if (cnt == 0) {\n // should not occur\n break;\n }\n ndx += cnt;\n }\n } catch (DBException dbe) {\n if (displayErrors) {\n Print.logException(\"ERROR - \" + utableName + \": Unable to alter column type!\", dbe);\n }\n return false;\n }\n }\n\n /* recreate primary key? */\n if (rebuildKeys && (priKeyMismatchColumns.size() > 0)) {\n try {\n this.recreatePrimaryKey();\n } catch (DBException dbe) {\n if (displayErrors) {\n Print.logException(\"ERROR - \" + utableName + \": Unable to rebuild primary key!\", dbe);\n }\n return false;\n }\n }\n\n /* recreate alternate keys? */\n if (rebuildKeys && (altKeyMismatchColumns.size() > 0)) {\n try {\n this.recreateAlternateIndexes();\n } catch (DBException dbe) {\n if (displayErrors) {\n Print.logException(\"ERROR - \" + utableName + \": Unable to rebuild alternate keys!\", dbe);\n }\n return false;\n }\n }\n\n /* return results */\n if (!columnsOK && displayWarnings) {\n for (int i = 0; i < colTable.length; i++) {\n Print.logInfo(\"WARNING - \" + utableName + \": Found - \" + colTable[i]);\n }\n }\n return columnsOK;\n\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"dKop matrUalized view\", (DBTable) null, 149, \"org.h2.store.LobStorage\");\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"ORG.H2.STORE.LOBSTORAGE\", stringBuilder0.toString());\n }", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n Object[] objectArray0 = SQLUtil.parseColumnTypeAndSize(\"qfy0HL\");\n assertEquals(1, objectArray0.length);\n }", "void resize() {\n }", "private void actionBiggerCells() {\n layoutPanel.changeCellSize(true);\n }", "protected void checkColumnCount(int column)\n {\n if (column >= COLUMN_COUNT)\n throw new BasicException\n (\"The column number in the table is not right\");\n }", "private static void testREsizeImage() throws IOException {\n\t\tresizeImage(\n\t\t\tnew File(\"/opt/bitnami/files/img/contabilidad.jpg\"),\n\t\t\tnew File(\"/opt/bitnami/files/img/contabilidad_100x100.jpg\"),\n\t\t\t\"jpg\", 100, 100, UtilImage.FIT_BOTH);\n\t}", "@Test(timeout = 4000)\n public void test143() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setEnumerateColNames(false);\n resultMatrixHTML0.getDisplayName();\n int int0 = resultMatrixHTML0.getStdDevWidth();\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, int0);\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.renderColumnTypeWithSize((DBColumn) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void testSetMatrixColumn() {\n final Matrix33d mBase = getMatrix();\n final Matrix33d m = getMatrix();\n final Vector3d v = new Vector3d(D10, D11, D12);\n\n m.setMatrixColumn(v, 1);\n for (int i = 0; i < m.getA().length; i++) {\n if (i > 2 && i < 6) {\n // compare the row set to the vector values\n int vectorIndex = i - 3;\n assertEquals(m.getA()[i], v.a[vectorIndex]);\n } else {\n assertEquals(m.getA()[i], mBase.getA()[i]);\n }\n }\n }", "@Test\n public void testActionListenerCount() {\n JXTable table = new JXTable(10, 1);\n Action action = table.getActionMap().get(JXTable.HORIZONTALSCROLL_ACTION_COMMAND);\n if (!(action instanceof AbstractActionExt)) {\n LOG.info(\"cannot run testColumnActionListenerCount - action not of type AbstractAction\");\n return;\n }\n AbstractActionExt extAction = (AbstractActionExt) action;\n assertTrue(extAction.isStateAction());\n assertEquals(0, extAction.getPropertyChangeListeners().length);\n AbstractButton menuItem = new JCheckBoxMenuItem();\n ActionContainerFactory factory = new ActionContainerFactory(null);\n factory.configureSelectableButton(menuItem, extAction, null);\n // sanity: here the action is bound to a menu item in the columnControl\n // should have one ad\n int initialPCLCount = extAction.getPropertyChangeListeners().length;\n // sanity: expect it to be 2 - one is the menuitem itself, another \n // the TogglePCL registered by the ActionContainerFacory\n assertEquals(2, initialPCLCount);\n menuItem = new JToggleButton();\n factory.configureSelectableButton(menuItem, extAction, null);\n // 2 menuitems are listening\n assertEquals(2* initialPCLCount, extAction.getPropertyChangeListeners().length);\n \n }", "@Test\n public void testKeyColumnIndex() throws Exception {\n \tfor(Row r : project.rows) {\n \t\tr.cells.add(0, null);\n \t}\n \tList<Column> newColumns = new ArrayList<>();\n \tfor(Column c : project.columnModel.columns) {\n \t\tnewColumns.add(new Column(c.getCellIndex()+1, c.getName()));\n \t}\n \tproject.columnModel.columns.clear();\n \tproject.columnModel.columns.addAll(newColumns);\n \tproject.columnModel.update();\n \t\n \tAbstractOperation op = new FillDownOperation(\n EngineConfig.reconstruct(\"{\\\"mode\\\":\\\"record-based\\\",\\\"facets\\\":[]}\"),\n \"second\");\n Process process = op.createProcess(project, new Properties());\n process.performImmediate();\n\n Assert.assertEquals(\"c\", project.rows.get(0).cells.get(3).value);\n Assert.assertEquals(\"c\", project.rows.get(1).cells.get(3).value);\n Assert.assertNull(project.rows.get(2).cells.get(3));\n Assert.assertEquals(\"h\", project.rows.get(3).cells.get(3).value);\n }", "@Test\n\tpublic final void testProcGridSize() throws MPIException {\n\t\tfor (int d=0; d<DIMENSIONALITY; d++) {\n\t\t\tassertTrue(0 < block.procGridSize(d)\n\t\t\t\t\t&& block.procGridSize(d) <= MPI.COMM_WORLD.getSize());\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"executealter table\");\n assertFalse(boolean0);\n }", "@Test\n public void testSetResizable() {\n writeBanner(getMethodName());\n }", "@Test(timeout = 4000)\n public void test202() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n \n int[] intArray0 = new int[9];\n intArray0[0] = 1;\n resultMatrixHTML0.removeFilterName((String) null);\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n \n intArray0[1] = 0;\n intArray0[2] = 2;\n resultMatrixHTML0.m_CountWidth = 2;\n intArray0[3] = 2;\n intArray0[4] = 0;\n intArray0[5] = 0;\n intArray0[6] = 1079;\n intArray0[7] = 1;\n resultMatrixHTML0.m_Counts = null;\n intArray0[8] = 0;\n resultMatrixHTML0.m_RankingDiff = intArray0;\n resultMatrixHTML0.getDefaultPrintColNames();\n assertEquals(1, resultMatrixHTML0.getRowCount());\n }", "@Test\n public void testDimensions() {\n FieldMatrix<Dfp> matrix =\n new Array2DRowFieldMatrix<>(Dfp25.getField(), testData);\n FieldLUDecomposition<Dfp> LU = new FieldLUDecomposition<>(matrix);\n Assert.assertEquals(testData.length, LU.getL().getRowDimension());\n Assert.assertEquals(testData.length, LU.getL().getColumnDimension());\n Assert.assertEquals(testData.length, LU.getU().getRowDimension());\n Assert.assertEquals(testData.length, LU.getU().getColumnDimension());\n Assert.assertEquals(testData.length, LU.getP().getRowDimension());\n Assert.assertEquals(testData.length, LU.getP().getColumnDimension());\n }", "public void autoSizeColumns() {\n\t\tfor (TableColumn column : tableViewer.getTable().getColumns()) {\n\t\t\tcolumn.pack();\n\t\t}\n\t}", "private void objectWidth(TableColumn col,int min,int max){\r\n col.setMinWidth(min); //Establece el valor minimo\r\n col.setMaxWidth(max); //Establece el valor maximo\r\n }", "public void testWidth()\r\n {\r\n assertEquals(4, board.width());\r\n }", "@Test\n public void test_level_behaviours_columns_02() {\n Assert.assertTrue(JdbcCompatibility.shouldTypeColumnsAsString(JdbcCompatibility.MEDIUM));\n Assert.assertFalse(JdbcCompatibility.shouldDetectColumnTypes(JdbcCompatibility.MEDIUM));\n \n // This also applies to DEFAULT level\n Assert.assertTrue(JdbcCompatibility.shouldTypeColumnsAsString(JdbcCompatibility.DEFAULT));\n Assert.assertFalse(JdbcCompatibility.shouldDetectColumnTypes(JdbcCompatibility.DEFAULT));\n }", "@Test\r\n public void testRemoveNodeByRowColumnIndex() {\r\nSystem.out.println(\"removeNodeByRowColumnIndex\");\r\n int row = 0;\r\n int column = 0;\r\n GridPane gridPane = new GridPane();\r\n ImageView img = null;\r\n ChessMain instance = new ChessMain();\r\n instance.removeNodeByRowColumnIndex(row, column, gridPane, img);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "private boolean checkColNameSet() {\n return (null != colNames && colNames.size() > 0);\n }", "public int getColumnCount() {\n/* 2881 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.renderColumnTypeWithSize((DBColumn) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }", "@Override\n\tpublic void resize() {\n\t\t\n\t}", "private void adjustColumnsWidth() {\r\n // Add a listener to resize the column to the full width of the table\r\n ControlAdapter resizer = new ControlAdapter() {\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Rectangle r = mTablePackages.getClientArea();\r\n mColumnPackages.setWidth(r.width);\r\n }\r\n };\r\n mTablePackages.addControlListener(resizer);\r\n resizer.controlResized(null);\r\n }", "@Test\n public void testColumnVisibilityAction() {\n JXTable table = new JXTable(10, 3);\n table.setColumnControlVisible(true);\n ColumnControlButton columnControl = (ColumnControlButton) table.getColumnControl();\n ColumnVisibilityAction action = columnControl.getColumnVisibilityActions().get(0);\n TableColumnExt columnExt = table.getColumnExt(0);\n boolean visible = columnExt.isVisible();\n // sanity\n assertTrue(visible);\n assertEquals(columnExt.isVisible(), action.isSelected());\n action.setSelected(!visible);\n // hmmm... here it's working? unexpected\n // synch might be done by the listener's installed by ActionFactor.createMenuItem()?\n assertEquals(!visible, columnExt.isVisible());\n }", "@Override\n public void resize(int arg0, int arg1) {\n \n }", "public boolean supportsColumnCheck() {\n \t\treturn true;\n \t}", "@Test(timeout = 4000)\n public void test064() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"alter table\");\n assertTrue(boolean0);\n }", "@Test\n public void widthTest() {\n // TODO: test width\n }", "@Test\n public void testGetSize() {\n assertEquals(r1.getSize(), new Dimension2D(7, 4));\n assertEquals(r2.getSize(), new Dimension2D(0, 4));\n assertEquals(r3.getSize(), new Dimension2D(7, 0));\n assertEquals(r4.getSize(), new Dimension2D(0, 0));\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"alter table\", defaultDBTable0, 41, \"\");\n List<DBColumn> list0 = defaultDBTable0.getColumns();\n String string0 = SQLUtil.renderColumnNames(list0);\n assertEquals(\"alter table\", string0);\n }", "@Test\n public void testSetAllColumnsToInvisible() {\n // This test will not work in a headless configuration.\n if (GraphicsEnvironment.isHeadless()) {\n return;\n }\n final JXTable table = new JXTable(10, 2);\n table.setColumnControlVisible(true);\n wrapWithScrollingInFrame(table, \"\");\n table.getColumnExt(0).setVisible(false);\n assertEquals(1, table.getColumnCount());\n table.getColumnExt(0).setVisible(false);\n assertEquals(0, table.getColumnCount());\n }", "@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}", "@Test\r\n\tpublic void testCheckRows() {\n\t\tGrid g = new Grid();\r\n\t\t// full bottom row\r\n\t\tfor (int col = 0; col < Grid.WIDTH; col++) {\r\n\t\t\tg.set(Grid.HEIGHT - 1, col, Color.GREEN);\r\n\t\t}\r\n\t\t// add two squares above the bottom row\r\n\t\tg.set(Grid.HEIGHT - 2, 3, Color.RED);\r\n\t\tg.set(Grid.HEIGHT - 3, 3, Color.RED);\r\n\t\t// remove the full row\r\n\t\tg.checkRows();\r\n\t\t// check that the grid has been updated correctly\r\n\t\tfor (int row = 0; row < Grid.HEIGHT; row++) {\r\n\t\t\tfor (int col = 0; col < Grid.WIDTH; col++) {\r\n\t\t\t\t// check the square at (row,col)\r\n\t\t\t\t// must have: (18,3) and (19,3) set\r\n\t\t\t\t// and all of the others not set\r\n\t\t\t\tif ((row == 18 || row == 19) && col == 3) {\r\n\t\t\t\t\tassertTrue(g.isSet(row, col));\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tassertFalse(g.isSet(row, col));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void test002CanBeOperated() {\n String[] column = new String[] {\"index_on_icc\"};\n MatrixCursor cursor = new MatrixCursor(column);\n cursor.addRow(new Object[] {new Integer(1024)});\n cursor.moveToFirst();\n\n assertFalse(mManageSimMsg.canBeOperated(cursor));\n }", "@Test\n\tpublic final void testProcGridCoord() {\n\t\tfor (int d=0; d<DIMENSIONALITY; d++) {\n\t\t\tassertTrue(0 <= block.procGridCoord(d)\n\t\t\t\t\t&& block.procGridCoord(d)<block.procGridSize(d));\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n String[] stringArray0 = new String[6];\n String string0 = SQLUtil.renderColumnNames(stringArray0);\n assertEquals(\"(, , , , , )\", string0);\n }", "void resizeTable(int widthInPx) {\n if (newSimTable!=null) {\n newSimTable.setWidth(widthInPx + \"px\");\n\n float rowHeight = 30;\n try {\n rowHeight = newSimTable.getRowElement(0).getClientHeight();\n } catch (Exception ex) {\n// Window.alert(ex.toString());\n }\n\n// Window.alert(\"resize is called with \" + widthInPx + \". rowHeight is \" + rowHeight + \". rows \" + rows);\n\n float tableHeight = 100F;\n if (rows>0)\n tableHeight = calcTableHeight(rowHeight);\n\n newSimTable.setHeight(\"\" + tableHeight + \"px\");\n // xx\n newSimTable.redraw();\n actionTable.redraw();\n }\n }", "private void initColumnSizes(JTable table) {\n MyTableModel model = (MyTableModel)table.getModel();\n TableColumn column = null;\n Component comp = null;\n int headerWidth = 0;\n int cellWidth = 0;\n Object[] longValues = model.longValues;\n TableCellRenderer headerRenderer =\n table.getTableHeader().getDefaultRenderer();\n\n for (int i = 0; i < 1; i++) {\n column = table.getColumnModel().getColumn(i);\n\n comp = headerRenderer.getTableCellRendererComponent(\n null, column.getHeaderValue(),\n false, false, 0, 0);\n headerWidth = comp.getPreferredSize().width;\n\n comp = table.getDefaultRenderer(model.getColumnClass(i)).\n getTableCellRendererComponent(\n table, longValues[i],\n false, false, 0, i);\n cellWidth = comp.getPreferredSize().width;\n\n if (DEBUG) {\n System.out.println(\"Initializing width of column \"\n + i + \". \"\n + \"headerWidth = \" + headerWidth\n + \"; cellWidth = \" + cellWidth);\n }\n\n column.setPreferredWidth(Math.max(headerWidth, cellWidth));\n }\n }", "@Test\n\tpublic void testWholeColumnFormulaInsertionDeletion(){\n\t\tfinal String WHOLE_COLUMN_FORMULA = \"SUM(D:F)\"; //some columns in the middle, no at the edge\n\n\t\ttestFormulaExtendPtgs(WHOLE_COLUMN_FORMULA, sheet1, ROW_5, null, false, WHOLE_COLUMN_FORMULA, formulaEngine);\n\t\ttestFormulaShrink(WHOLE_COLUMN_FORMULA, sheet1, ROW_5, null, false, WHOLE_COLUMN_FORMULA, formulaEngine);\n\n\t\ttestFormulaExtendPtgs(WHOLE_COLUMN_FORMULA, sheet1, COL_E, null, true, \"SUM(D:G)\", formulaEngine);\n\t\ttestFormulaShrink(WHOLE_COLUMN_FORMULA, sheet1, COL_E, null, true, \"SUM(D:E)\", formulaEngine);\n\n\t\t//expect to shift right\n\t\ttestFormulaExtendPtgs(WHOLE_COLUMN_FORMULA, sheet1, COL_A, null, true, \"SUM(E:G)\", formulaEngine);\n\t\t//expect to shift left\n\t\ttestFormulaShrink(WHOLE_COLUMN_FORMULA, sheet1, COL_A, null, true, \"SUM(C:E)\", formulaEngine);\n\n\t\ttestFormulaExtendPtgs(WHOLE_COLUMN_FORMULA, sheet1, D2_E3, null, false, WHOLE_COLUMN_FORMULA, formulaEngine);\n\t\ttestFormulaShrink(WHOLE_COLUMN_FORMULA, sheet1, D2_E3, null, false, WHOLE_COLUMN_FORMULA, formulaEngine);\n\n\t\ttestFormulaExtendPtgs(WHOLE_COLUMN_FORMULA, sheet1, D2_E3, null, true, WHOLE_COLUMN_FORMULA, formulaEngine);\n\t\ttestFormulaShrink(WHOLE_COLUMN_FORMULA, sheet1, D2_E3, null, true, WHOLE_COLUMN_FORMULA, formulaEngine);\n\n\t\tfinal String ABS_WHOLE_COLUMN_FORMULA = \"SUM($D:$F)\"; //some columns in the middle, no at the edge\n\t\ttestFormulaExtendPtgs(ABS_WHOLE_COLUMN_FORMULA, sheet1, COL_E, null, true, \"SUM($D:$G)\", formulaEngine);\n\t\ttestFormulaShrink(ABS_WHOLE_COLUMN_FORMULA, sheet1, COL_E, null, true, \"SUM($D:$E)\", formulaEngine);\n\n\t\ttestFormulaExtendPtgs(ABS_WHOLE_COLUMN_FORMULA, sheet1, COL_A, null, true, \"SUM($E:$G)\", formulaEngine);\n\t\t//expect to shift left\n\t\ttestFormulaShrink(ABS_WHOLE_COLUMN_FORMULA, sheet1, COL_A, null, true, \"SUM($C:$E)\", formulaEngine);\n\n\t\tfinal String SHEET_WHOLE_COLUMN_3D_FORMULA = \"SUM(Sheet1!D:F)\";\n\t\ttestFormulaExtendPtgs(SHEET_WHOLE_COLUMN_3D_FORMULA, sheet1, COL_E, null, true, \"SUM(Sheet1!D:G)\", formulaEngine);\n\t\ttestFormulaShrink(SHEET_WHOLE_COLUMN_3D_FORMULA, sheet1, COL_E, null, true, \"SUM(Sheet1!D:E)\", formulaEngine);\n\n\t\t//expect to shift right\n\t\ttestFormulaExtendPtgs(SHEET_WHOLE_COLUMN_3D_FORMULA, sheet1, COL_A, null, true, \"SUM(Sheet1!E:G)\", formulaEngine);\n\t\t//expect to shift left\n\t\ttestFormulaShrink(SHEET_WHOLE_COLUMN_3D_FORMULA, sheet1, COL_A, null, true, \"SUM(Sheet1!C:E)\", formulaEngine);\n\n\t\tfinal String WHOLE_COLUMN_3D_FORMULA = \"SUM(Sheet1:Sheet2!D:F)\";\n\t\ttestFormulaExtendPtgs(WHOLE_COLUMN_3D_FORMULA, sheet1, COL_A, null, true, WHOLE_COLUMN_3D_FORMULA, formulaEngine);\n\t\ttestFormulaShrink(WHOLE_COLUMN_3D_FORMULA, sheet1, COL_A, null, true, WHOLE_COLUMN_3D_FORMULA, formulaEngine);\n\n\t}" ]
[ "0.65584296", "0.6403929", "0.6248748", "0.60907733", "0.60665065", "0.6040744", "0.6009768", "0.59887505", "0.59245026", "0.586101", "0.58224165", "0.58224165", "0.5817176", "0.57504237", "0.5735285", "0.57132035", "0.5684633", "0.5660451", "0.56162995", "0.5608633", "0.557529", "0.5455086", "0.5444687", "0.540811", "0.53931874", "0.5386211", "0.538348", "0.5374881", "0.53702164", "0.53385323", "0.5338216", "0.53058887", "0.53046346", "0.5302434", "0.52926856", "0.52811986", "0.52736425", "0.5270659", "0.52705693", "0.5266595", "0.52517366", "0.52307713", "0.5228552", "0.5208793", "0.5204841", "0.5197731", "0.51968646", "0.5190281", "0.51787055", "0.5172653", "0.5172653", "0.5169788", "0.51623535", "0.5159466", "0.51578265", "0.5152162", "0.51338345", "0.51200426", "0.5101436", "0.5099068", "0.5094862", "0.50846934", "0.508093", "0.50771743", "0.5068552", "0.5064433", "0.506112", "0.5060319", "0.5059961", "0.5059556", "0.50534385", "0.50515145", "0.50440174", "0.5042656", "0.5039335", "0.50307846", "0.50278485", "0.5027651", "0.5027217", "0.50181216", "0.5017886", "0.5005152", "0.5004107", "0.49976465", "0.49949968", "0.498501", "0.4978401", "0.49762464", "0.49757138", "0.4967975", "0.49649626", "0.49649343", "0.4961726", "0.4958339", "0.49472913", "0.49443114", "0.4940812", "0.49324885", "0.49249232", "0.49182057" ]
0.64877325
1
testPublicQueries is used to automate public queries button (verify its existence)
@Test (groups = {"regressionTest"}) public void testPublicQueries() throws Exception { test = extent.createTest("Verify Public Query Button"); driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS); try { login.doLogin(test); //Thread.sleep(4 * 1000); test.createNode("Clicking on Help Button"); test.log(Status.INFO, "Clicking on Help Button"); WebElement helpButton = driver.findElement(By.cssSelector(".explore-quiries-inner")); highlightHelper.highLightElement(driver, helpButton); helpButton.click(); //Thread.sleep(4 * 1000); test.createNode("Clicking on Public Query Button"); test.log(Status.INFO, "Clicking on Public Query Button"); WebElement publicQueryButton = driver.findElement(By.id("scrollable-auto-tab-2")); highlightHelper.highLightElement(driver, publicQueryButton); publicQueryButton.click(); //Thread.sleep(4 * 1000); } catch (Exception e) { test.createNode("Caught [ " + e + " ] exception in testPublicQueries"); } test.createNode("Verified Public Query Successfully"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test (groups = {\"regressionTest\"})\n public void testPrivateQueries() {\n test = extent.createTest(\"Verify Private Query Button\");\n driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);//this is global so no need to mention multiple times\n try {\n login.doLogin(test);\n test.createNode(\"Clicking on Help Button\");\n //test.log(Status.INFO, \"Clicking on Help Button\");\n WebElement helpButton = driver.findElement(By.cssSelector(\".explore-quiries-inner\"));\n highlightHelper.highLightElement(driver, helpButton);\n helpButton.click();\n\n test.createNode(\"Clicking on Private Query Button\");\n //test.log(Status.INFO, \"Clicking on Private Query Button\");\n WebElement privateQueryButton = driver.findElement(By.id(\"scrollable-auto-tab-1\"));\n highlightHelper.highLightElement(driver, privateQueryButton);\n privateQueryButton.click();\n } catch (Exception e) {\n test.createNode(\"Exception (\" + e.toString() + \") found\").fail(e);\n Assert.assertTrue(false);\n }\n test.createNode(\"Verified Private Query Successfully\");\n }", "@Test\n public void queryTest() {\n // TODO: test query\n }", "@Test\n\tpublic void testQueryPage() {\n\n\t}", "@Test\n\tpublic void testQuery1() {\n\t}", "boolean hasQuery();", "public void testQuery() {\n mActivity.runOnUiThread(\n new Runnable() {\n public void run() {\n //TODO: Should compare this against the db results directly.\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(sendQuery(\"xyzzy\"), 0);\n }\n }\n );\n }", "@Test\n public void testQuery(){\n }", "@Test\n\tpublic void sheldonShouldBeAbleToLookAtLeonardsQueryByItsPublicId() throws Exception {\n\t\t\n\t\tString sheldonToken = generateTokenWithExpirationDate(\"sheldon\", 1, TimeUnit.DAYS, Arrays.asList(\"ROLE_USER\"));\n\n\t\t// UserQuery getUserQuery()\n\t\tthis.mockMvc.perform(get(\"/queries/Abc1\").\n\t\t\t\theader(\"Authorization\", \"Bearer \" + sheldonToken).accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isOk());\n\t}", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "boolean isIsQuery();", "boolean hasQueryVisibility();", "void runQueries();", "public void Query() {\n }", "@Test\n public void testQueryList(){\n }", "public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}", "boolean hasQueryAuthorizations();", "@Test\n public void testQueries() {\n nuxeoClient.repository().createDocumentById(testWorkspaceId, new Document(\"file1\", \"File\"));\n nuxeoClient.repository().createDocumentById(testWorkspaceId, new Document(\"file2\", \"File\"));\n\n // Get descendants of Workspaces\n String query = \"select * from Document where ecm:path startswith '/default-domain/workspaces'\";\n Documents documents = nuxeoClient.repository().query(query, \"10\", \"0\", \"50\", \"ecm:path\", \"asc\", null);\n assertEquals(3, documents.size());\n\n // Get all the File documents\n // TODO\n\n // Content of a given Folder, using a page provider\n // TODO\n }", "@Test\npublic void testCreateQueryForPageHql() throws Exception { \n//TODO: Test goes here... \n}", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "boolean hasQueryId();", "boolean hasQueryId();", "@Test public void testWebSQLUndefined() {\n final WebEngine webEngine = createWebEngine();\n submit(() -> {\n assertEquals(\"undefined\", webEngine.executeScript(\"window.openDatabase\"));\n });\n }", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"\");\n assertFalse(boolean0);\n }", "@Test\npublic void testCreateQueryForClazzPageHql() throws Exception { \n//TODO: Test goes here... \n}", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM null WHERE delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete'\");\n assertTrue(boolean0);\n }", "boolean hasQueryMessage();", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "private Queries() {\n // prevent instantiation\n }", "Query query();", "@Test\n public void executeValidSearch_notAllFields(){\n emptySearchFields();\n view.setFloor(1);\n view.setBedrooms(1);\n view.setBathrooms(1);\n presenter.doSearch();\n Assert.assertTrue(presenter.hasNextResult());\n }", "@Test\n public void publicInstanceTest() {\n // TODO: test publicInstance\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }", "protected boolean isQueryAvailable() {\n return query != null;\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }", "private void executeQuery() {\n }", "boolean hasQueryZone();", "boolean hasQueryName();", "@Test\n public void testShowDatabasesWithUserWithNoCreds() throws Exception {\n ClientFixture client = cluster.clientBuilder()\n .property(DrillProperties.USER, TEST_USER_2)\n .property(DrillProperties.PASSWORD, TEST_USER_2_PASSWORD)\n .build();\n\n String sql = \"SHOW DATABASES\";\n QuerySummary results = client.queryBuilder().sql(sql).run();\n assertTrue(results.succeeded());\n assertEquals(results.recordCount(), 7);\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }", "public void checkPublic() {\n }", "@Test\n\tpublic void testSchemaViewer() throws Exception {\n\t\tnew ExecuteRunnable<TestData>().runTests(new RunnableTests<TestData>() {\n\t\t\tpublic void runTest(TestData testData) {\n\t\t\t\tString result = runSchemaViewer(testData.flag, testData.value);\n\t\t\t\tassertThat(testData.result).isEqualTo(result);\n\t\t\t}\n\t\t}, viewerTestData);\n\t}", "@Test\n public void createSqlQuerySucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments\\\"}\");\n }", "public JTestDefinition listOfQueries(){\n Iterable<JHttpQuery> queries = Stream.of(\"100\", \"50\", \"25\")\n .map(q -> new JHttpQuery().get().path(\"/sleep\", q))\n .collect(Collectors.toList());\n return JTestDefinition.builder(Id.of(\"queries list\"), getEndpoints())\n .withQueryProvider(queries)\n .build();\n }", "@Test\npublic void testCreateQueryForClazzHql() throws Exception { \n//TODO: Test goes here... \n}", "public void customerQuery(){\n }", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM join SELECT * FROM as SELECT * FROM on SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null\");\n assertTrue(boolean0);\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"alter table\");\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"org.apache.derby.iapi.sql.execute.ExecutionContext\");\n String[] stringArray0 = new String[4];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM org.apache.derby.iapi.sql.execute.ExecutionContext WHERE null = null AND null = null AND null = null AND null = null\", string0);\n }", "protected boolean query() {\r\n\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator())\r\n\t\t\t\t+ processQueryPublisher(queryBk.getPublisher()));\r\n\t\tSystem.out.println(queryStr);\r\n\t\t// if edition is 'lastest' (coded '0'), no query is performed; and\r\n\t\t// return false.\r\n\t\tif (queryBk.parseEdition() == 0) {\r\n\t\t\treturn false;\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * The following section adds edition info to the query string if edition no. is\r\n\t\t * greater than one. By cataloging practice, for the first edition, probably\r\n\t\t * there is NO input on the associated MARC field. Considering this, edition\r\n\t\t * query string to Primo is NOT added if querying for the first edition or no\r\n\t\t * edition is specified.\r\n\t\t */\r\n\t\tif (queryBk.parseEdition() > 1) {\r\n\t\t\tqueryStr += processQueryEdition(queryBk.parseEdition());\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * Querying the Primo X-service; and invoking the matching processes (all done\r\n\t\t * by remoteQuery()).\r\n\t\t */\r\n\t\tif (strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * For various reasons, there are possibilities that the first query fails while\r\n\t\t * a match should be found. The follow work as remedy queries to ensure the\r\n\t\t * accuracy.\r\n\t\t */\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryPublisher(queryBk.getPublisher()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublishYear())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryYear(queryBk.getPublishYear()));\r\n\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryTitleShort(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional query for Chinese titles\r\n\r\n\t\tif (!match && (CJKStringHandling.isCJKString(queryBk.getTitle())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getCreator())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getPublisher()))) {\r\n\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\r\n\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition2(queryBk.parseEdition()));\r\n\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\tmatch = true;\r\n\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmatch = false;\r\n\t\t\t\t} // end if\r\n\r\n\t\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition3(queryBk.parseEdition()));\r\n\t\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\t\tmatch = true;\r\n\t\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmatch = false;\r\n\t\t\t\t\t} // end if\r\n\t\t\t\t} // end if\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional check for ISO Document number in <search> <genernal> PNX\r\n\t\t// tag\r\n\t\tif (!match && !CJKStringHandling.isCJKString(queryBk.getTitle())) {\r\n\t\t\tqueryStr = new String(processQueryTitleISODoc(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t\terrMsg += \"Query: No record found on Primo.\" + Config.QUERY_SETTING;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\t\treturn false;\r\n\t}", "public void test_0() throws Exception {\n \r\n String sql = \"select benchmark( 1, sha1( 'test' ) )\";\r\n Statement stmt = conn.createStatement();\r\n\r\n ResultSet rs = stmt.executeQuery(sql);\r\n JdbcUtils.printResultSet(rs);\r\n \r\n stmt.close();\r\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Test\n public void testClientSqlQuery() {\n SqlQuery<Integer, GridCacheDynamicLoadOnClientTest.Person> qry = new SqlQuery(GridCacheDynamicLoadOnClientTest.PERSON_CACHE, (\"FROM \" + (GridCacheDynamicLoadOnClientTest.PERSON_CACHE)));\n Assert.assertEquals(GridCacheDynamicLoadOnClientTest.CACHE_ELEMENT_COUNT, GridCacheDynamicLoadOnClientTest.clientNode.getOrCreateCache(GridCacheDynamicLoadOnClientTest.PERSON_CACHE).query(qry).getAll().size());\n }", "@Test\n public void testGetResultSet() throws MainException {\n System.out.println(\"getResultSet\");\n String queryText = \"select * from infermieri\";\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n ResultSet result = instance.getResultSet(queryText);\n assertNotNull(result);\n // TODO review the generated test code and remove the default call to fail.\n }", "@Test\n public void testQueryMore3() throws Exception {\n testQueryMore(false, false);\n }", "public List queryTest() {\n\t\tList list = null;\n\t\tthis.init();\n\t\t try {\n\t\t\t list= sqlMap.queryForList(\"getAllTest\");\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn list;\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"updatedeffult~nfo\");\n assertFalse(boolean0);\n }", "boolean isOQL();", "@Test\n public void createSqlQueryWithWhereAndGroupBySucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(\"validWhere\").groupBy(\"validGroupBy\").createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments where validWhere group by validGroupBy\\\"}\");\n }", "boolean hasQueryLogicName();", "@Test\n public void testShowSearchedApartment() throws SQLException {\n System.out.println(\"showSearchedApartment\");\n String location = \"gokarna\";\n ApartmentBLL instance = new ApartmentBLL();\n ResultSet result = instance.showSearchedApartment(location);\n assertTrue(result.next());\n }", "@Test\n public void testA_initialState() {\n write(\"marting\");\n clickOn(\"#signInPWD\");\n write(\"Aa12345!\");\n clickOn(\"#signInBtn\");\n verifyThat(\"#RecipeView\", isVisible());\n clickOn(\"#btnShowMenus\");\n verifyThat(\"#windowMenu\", isVisible());\n menuTable = lookup(\"#menuTable\").queryTableView();\n verifyThat(\"#btnDeleteMenu\", isDisabled());\n verifyThat(\"#btnCreateMenu\", isEnabled());\n }", "public void testPerformQuery() throws IOException\r\n {\r\n final IQuery t = new ContentQuery();\r\n try\r\n {\r\n final Hits h = t.performQuery(\"author:jpitts\", new Sort(IndexDocument.REVISION_FIELD));\r\n Assert.assertNotNull(h);\r\n Assert.assertTrue(0 < h.length());\r\n for (int i = 0; i < h.length(); i++)\r\n {\r\n final Document d = h.doc(i);\r\n CommitQueryTest.log.debug(d);\r\n }\r\n }\r\n finally\r\n {\r\n t.close();\r\n }\r\n }", "@Test\npublic void testFindPageByHql() throws Exception { \n//TODO: Test goes here... \n}", "@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}", "@Test\n public void enterQueryString_showResults() {\n onView(withId(R.id.page_change_web_search_view)).check(matches(not(isDisplayed())));\n // Check recycler view is not visible at beginning\n onView(withId(R.id.web_search_list)).check(matches(not(isDisplayed())));\n\n // Enter search string and close the keyboard\n onView(allOf(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE),\n isAssignableFrom(EditText.class))).perform(typeText(mSearchQueryString), pressKey(66), closeSoftKeyboard());\n\n // Check if recycler view is visible\n onView(withId(R.id.web_search_list)).check(matches(isDisplayed()));\n // Check if page change view is visible\n onView(withId(R.id.page_change_web_search_view)).check(matches(isDisplayed()));\n }", "private DbQuery() {}", "@Test\n public void executeEmptySearch_noResults() {\n emptySearchFields();\n\n //Even with empty fields, the search should be created and executed\n presenter.doSearch();\n\n //However, with all the search fields empty no results will be found\n Assert.assertFalse(presenter.hasNextResult());\n }", "private void checkInlineQueries() throws Exceptions.OsoException, Exceptions.InlineQueryFailedError {\n Ffi.Query nextQuery = ffiPolar.nextInlineQuery();\n while (nextQuery != null) {\n if (!new Query(nextQuery, host).hasMoreElements()) {\n String source = nextQuery.source();\n throw new Exceptions.InlineQueryFailedError(source);\n }\n nextQuery = ffiPolar.nextInlineQuery();\n }\n }", "boolean hasQueryPort();", "@Test\r\n public void testGetAllChromInfo() throws Exception {\n assertEquals(7, queries.getAllChromInfo().size());\r\n }", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE null = null AND null = null AND null = null AND null = null AND null = null\", string0);\n }", "@Test\n public void testQueryMore4() throws Exception {\n testQueryMore(true, false);\n }", "public void test3() throws ClassNotFoundException, SQLException {\r\n\t\tsqlTable tbl = new sqlTable();\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"Mumbai\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"Asia\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"New York\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"North America\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 20400000 +\";\"); \r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"Mumbai\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 21000000 +\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"New York\"));\r\n\t}", "@Test\n public void selectAll(){\n }", "public void testSpatialQuery(){\n\t\t\r\n\t\tSpatialQueryTest sqt = new SpatialQueryTest();\r\n\t\ttry{\r\n\t\t\tsqt.runSpatialIndexTest();\r\n\t\t}catch(IOException ex){\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "@Test \n\tpublic void testGetAllKeysFromKeyTable() throws SQLException\n\t{\n\t\tnew PowerTool(\"asdf\", 5, 5, \"PowerTooldescription\", true);\n\t\tArrayList<Integer> results = DatabaseGateway.getAllKeysFromKeyTable();\n\t\tassertTrue(results.contains(1));\n\t\n\t}", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "private static Boolean specialQueries(String query) throws ClassNotFoundException, InstantiationException, IllegalAccessException {\n clickList = false;\n //newCorpus = true;\n\n if (query.equals(\"q\")) {\n\n System.exit(0);\n return true;\n }\n\n String[] subqueries = query.split(\"\\\\s+\"); //split around white space\n\n if (subqueries[0].equals(\"stem\")) //first term in subqueries tells computer what to do \n {\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n TokenProcessor processor = new NewTokenProcessor();\n if (subqueries.length > 1) //user meant to stem the token not to search stem\n {\n List<String> stems = processor.processToken(subqueries[1]);\n\n //clears list and repopulates it \n String stem = \"Stem of query '\" + subqueries[1] + \"' is '\" + stems.get(0) + \"'\";\n\n GUI.ResultsLabel.setText(stem);\n\n return true;\n }\n\n } else if (subqueries[0].equals(\"vocab\")) {\n List<String> vocabList = Disk_posIndex.getVocabulary();\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n\n int vocabCount = 0;\n for (String v : vocabList) {\n if (vocabCount < 1000) {\n vocabCount++;\n GUI.JListModel.addElement(v);\n }\n }\n GUI.ResultsLabel.setText(\"Total size of vocabulary: \" + vocabCount);\n return true;\n }\n\n return false;\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }", "@Test\n\tpublic void othersShouldNotBeAbleToLookAtLeonardsQueryByItsPrivateId() throws Exception {\n\t\tthis.mockMvc.perform(get(\"/user/me/queries/123456789\").accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isForbidden());\n\t}", "public boolean hasQueryVisibility() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "@Test\n public void testDAM30503001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30503001Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBean();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n\n }", "@Test\n public void testDAM31201001() {\n // In this test case the where clause is specified in a common sql shared in multiple queries.\n testDAM30505001();\n }", "@Test\n\tpublic void testQueryTypes() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\t// QueryType\n\t\tfinal IntrospectionFullType queryType = getFullType(introspection, schemaConfig.getQueryTypeName());\n\t\t// - check all queries are available\n\t\tfinal List<String> queryNames = new ArrayList<>();\n\t\tArrays.asList(Entity1.class, Entity2.class, Entity3.class, Entity4.class).stream().forEach(clazz -> {\n\t\t\tqueryNames.add(schemaConfig.getQueryGetByIdPrefix() + clazz.getSimpleName());\n\t\t\tqueryNames.add(schemaConfig.getQueryGetListPrefix() + clazz.getSimpleName());\n\t\t});\n\t\tqueryNames.forEach(queryName -> Assert.assertTrue(queryType.getFields().stream()\n\t\t\t\t.map(IntrospectionTypeField::getName).collect(Collectors.toList()).contains(queryName)));\n\n\t\t// - check one 'getSingle' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getEntity1 = assertField(queryType, queryNames.get(0),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT, Entity1.class);\n\t\tAssert.assertEquals(1, getEntity1.getArgs().size());\n\t\tassertArg(getEntity1, \"id\", IntrospectionTypeKindEnum.NON_NULL, IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLID.getName());\n\n\t\t// - check one 'getAll' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getAllEntity1 = assertField(queryType, queryNames.get(1),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, getAllEntity1.getArgs().size());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListFilterEntityTypeNameSuffix());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListPagingAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT, getPagingInputTypeName());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeOrderByName(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.INPUT_OBJECT, getOrderByInputTypeName());\n\t}", "private void executeQuery()\n {\n ResultSet rs = null;\n try\n { \n String author = (String) authors.getSelectedItem();\n String publisher = (String) publishers.getSelectedItem();\n if (!author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (authorPublisherQueryStmt == null)\n authorPublisherQueryStmt = conn.prepareStatement(authorPublisherQuery);\n authorPublisherQueryStmt.setString(1, author);\n authorPublisherQueryStmt.setString(2, publisher);\n rs = authorPublisherQueryStmt.executeQuery();\n }\n else if (!author.equals(\"Any\") && publisher.equals(\"Any\"))\n { \n if (authorQueryStmt == null)\n authorQueryStmt = conn.prepareStatement(authorQuery);\n authorQueryStmt.setString(1, author);\n rs = authorQueryStmt.executeQuery();\n }\n else if (author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (publisherQueryStmt == null)\n publisherQueryStmt = conn.prepareStatement(publisherQuery);\n publisherQueryStmt.setString(1, publisher);\n rs = publisherQueryStmt.executeQuery();\n }\n else\n { \n if (allQueryStmt == null)\n allQueryStmt = conn.prepareStatement(allQuery);\n rs = allQueryStmt.executeQuery();\n }\n\n result.setText(\"\");\n while (rs.next())\n {\n result.append(rs.getString(1));\n result.append(\", \");\n result.append(rs.getString(2));\n result.append(\"\\n\");\n }\n rs.close();\n }\n catch (SQLException e)\n {\n result.setText(\"\");\n while (e != null)\n {\n result.append(\"\" + e);\n e = e.getNextException();\n }\n }\n }", "@Test\n public void testDAM31801001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801001Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingClassTypeAlias();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n\tpublic void testGetPublishedQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getPublishedQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(questions.size(), 3);\n\t\t\n\t\tAssert.assertTrue(questions.contains(tdp.question2_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question3_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question4_location1));\n\t}", "public void testSearchManagerWithInstantiation() {\n loadTestingData();\n\n Query<?> cacheQuery = createQuery(\"blurb:'playing'\", Person.class);\n\n try (CloseableIterator<?> found = cacheQuery.iterator()) {\n assertTrue(found.hasNext());\n found.next();\n assertFalse(found.hasNext());\n }\n }", "public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }", "@Test\n public void testFreightChargeQueries() throws Exception {\n //Setup\n test = extent.createTest(\"Verify Freight Charges Queries\");\n try {\n driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);\n login.doLogin(test);\n test.log(Status.INFO, \"Clicking on Search Bar\");\n //query 1\n queryChecker.runSearchBubbleQuery(driver, \"list all charges\", test);\n test.createNode(\"list all Freight Charges verified successfully\");\n //query 2\n queryChecker.runSearchBubbleQuery(driver, \"list all charges where carrier id is fedex\", test);\n test.createNode(\"list all charges where carrier id is fedex verified successfully\");\n //query 3\n queryChecker.runSearchBubbleQuery(driver, \"list all charges where charge type is Disk and freight charges amount > 100\", test);\n test.createNode(\"list all charges where charge type is Disk and freight charges amount > 100 verified successfully\");\n //query 4\n queryChecker.runSearchBubbleQuery(driver, \"list all charges where carrier id is ups frieght\", test);\n test.createNode(\"list all charges where carrier id is ups frieght verified successfully\");\n }catch (Exception e){\n e.printStackTrace();\n }\n test.createNode(\"Verified Freight Charge Queries Successfully!\");\n }", "public boolean isSetQuery() {\n return this.query != null;\n }", "@Test\npublic void testCreateNativeQueryForPageSql() throws Exception { \n//TODO: Test goes here... \n}", "private static void testConnection(GraknSession session) {\n try (GraknGraph graph = session.open(GraknTxType.READ)) {\n\n // construct a match query to find people\n MatchQuery query = graph.graql().match(var(\"x\").isa(\"mirna\"));\n\n // execute the query\n List<Answer> result = query.limit(10).execute();\n\n // if there is no data throw error\n if (result.isEmpty()) {throw new RuntimeException(\"Expected data is not present in the graph.\");}\n System.out.println(\"Connection OK.\");\n }\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE \", string0);\n }", "@Test\n public void testUpdateQuery() {\n LayersViewController instance = LayersViewController.getDefault().init(null);\n String queryString1 = \"Type == 'Word'\";\n int index1 = 2;\n Query query1 = new Query(GraphElementType.VERTEX, \"Type == 'Event'\");\n instance.getVxQueryCollection().getQuery(index1).setQuery(query1);\n instance.getTxQueryCollection().getQuery(index1).setQuery(null);\n assertEquals(instance.getVxQueryCollection().getQuery(index1).getQueryString(), \"Type == 'Event'\");\n\n instance.updateQuery(queryString1, index1, \"Vertex Query: \");\n assertEquals(instance.getVxQueryCollection().getQuery(index1).getQueryString(), queryString1);\n\n String queryString2 = \"Type == 'Unknown'\";\n int index2 = 3;\n Query query2 = new Query(GraphElementType.TRANSACTION, \"Type == 'Network'\");\n instance.getTxQueryCollection().getQuery(index2).setQuery(query2);\n instance.getVxQueryCollection().getQuery(index2).setQuery(null);\n assertEquals(instance.getTxQueryCollection().getQuery(index2).getQueryString(), \"Type == 'Network'\");\n \n instance.updateQuery(queryString2, index2, \"Transaction Query: \");\n assertEquals(instance.getTxQueryCollection().getQuery(index2).getQueryString(), queryString2);\n\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\" SELECT * FROM \");\n assertFalse(boolean0);\n assertNotNull(boolean0);\n }", "@Test\n public void testDAM31601001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31601001Click();\n\n // Confirmation of database state before any update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n todoListPage.setTodoForSearch(\"0000000001\");\n\n TodoDetailsPage todoDetailsPage = todoListPage.searchUsingStoredProc();\n\n webDriverOperations.waitForDisplayed(id(\"finished\"));\n\n // assert all the properties of fetched record.\n assertThat(todoDetailsPage.getTodoTitle(), equalTo(\"Todo 1\"));\n assertThat(todoDetailsPage.getTodoID(), equalTo(\"0000000001\"));\n assertThat(todoDetailsPage.getTodoCategory(), equalTo(\"CA1\"));\n assertThat(todoDetailsPage.getTodoStatus(), equalTo(\"In-Complete\"));\n assertThat(todoDetailsPage.getTodoCreatedDate(), equalTo(\"2016/12/24\"));\n assertThat(todoDetailsPage.getTodoVersion(), equalTo(\"1\"));\n }", "public boolean hasQueryAuthorizations() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean hasQuery() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }" ]
[ "0.7190442", "0.6582052", "0.6439441", "0.63100857", "0.6276846", "0.6211347", "0.6075801", "0.6062918", "0.60323364", "0.6023986", "0.5950666", "0.59364533", "0.59035933", "0.5897832", "0.58270687", "0.57194996", "0.56762654", "0.56681746", "0.5651817", "0.5627935", "0.5627935", "0.5625567", "0.5617323", "0.559615", "0.5594111", "0.55871737", "0.5567505", "0.55522037", "0.5551786", "0.5540916", "0.55256325", "0.5524666", "0.5506988", "0.54963595", "0.54822946", "0.5443811", "0.5438349", "0.542447", "0.5423404", "0.54150236", "0.54110014", "0.5401867", "0.53812915", "0.5380831", "0.53789264", "0.53723234", "0.5370449", "0.5358891", "0.53497845", "0.53249276", "0.5313721", "0.5298065", "0.5294052", "0.5286126", "0.5284282", "0.528298", "0.528273", "0.5280757", "0.5279883", "0.5274639", "0.52738243", "0.52638286", "0.52589595", "0.5253441", "0.52486527", "0.52440035", "0.5243403", "0.5241327", "0.5227491", "0.5225204", "0.52212614", "0.5219452", "0.52172655", "0.5212874", "0.52110744", "0.5204843", "0.5203466", "0.52029204", "0.5198425", "0.5198352", "0.51855236", "0.5172112", "0.5170884", "0.5169798", "0.5168566", "0.51556176", "0.5155001", "0.51547873", "0.51493484", "0.5144238", "0.5140241", "0.51346", "0.51309925", "0.5130819", "0.5128413", "0.5124315", "0.5120507", "0.51185346", "0.5116348", "0.5114024" ]
0.801354
0
testFreightChareQueries is used to run some queries in search bubble
@Test public void testFreightChargeQueries() throws Exception { //Setup test = extent.createTest("Verify Freight Charges Queries"); try { driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS); login.doLogin(test); test.log(Status.INFO, "Clicking on Search Bar"); //query 1 queryChecker.runSearchBubbleQuery(driver, "list all charges", test); test.createNode("list all Freight Charges verified successfully"); //query 2 queryChecker.runSearchBubbleQuery(driver, "list all charges where carrier id is fedex", test); test.createNode("list all charges where carrier id is fedex verified successfully"); //query 3 queryChecker.runSearchBubbleQuery(driver, "list all charges where charge type is Disk and freight charges amount > 100", test); test.createNode("list all charges where charge type is Disk and freight charges amount > 100 verified successfully"); //query 4 queryChecker.runSearchBubbleQuery(driver, "list all charges where carrier id is ups frieght", test); test.createNode("list all charges where carrier id is ups frieght verified successfully"); }catch (Exception e){ e.printStackTrace(); } test.createNode("Verified Freight Charge Queries Successfully!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testQuery() {\n mActivity.runOnUiThread(\n new Runnable() {\n public void run() {\n //TODO: Should compare this against the db results directly.\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(sendQuery(\"xyzzy\"), 0);\n }\n }\n );\n }", "@Test\n public void queryTest() {\n // TODO: test query\n }", "void runQueries();", "public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}", "@Test\n public void testQueryMore3() throws Exception {\n testQueryMore(false, false);\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }", "@Test\n public void testQueryMore4() throws Exception {\n testQueryMore(true, false);\n }", "@Test\n public void testQueryMore2() throws Exception {\n testQueryMore(false, true);\n }", "public void run() {\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(sendQuery(\"xyzzy\"), 0);\n }", "@Test\n\tpublic void testQuery1() {\n\t}", "public void testAdvancedQuery() {\n\t\t//manager.advancedQuery(ElasticIndex.analyzed, \"metropolitan areas\", \"sports clubs\");\n\t\t//manager.advancedQuery(ElasticIndex.analyzed, \"\", \"Award\");\n\n\t//manager.advancedQuery(ElasticIndex.analyzed,\"american actor\", \"list of movies starring Sean Connery\");\n//\tmanager.categorySearch(\"Sportspeople\", \"tennis\",ElasticIndex.analyzed,30);\n\t//manager.advancedQuery(ElasticIndex.analyzed,\"Broadway musicals\", \"Grammy Award\");\n\t//manager.advancedQuery(ElasticIndex.analyzed,\"musical movies\", \"Tony Award\");\n\t//manager.advancedQuery(ElasticIndex.analyzed,\"Top level football leagues\", \"teams\");\n\t//manager.advancedQuery(ElasticIndex.analyzed,\"american movies\", \"directed by Woody Allen\");\n\t//manager.advancedQuery(ElasticIndex.analyzed,\"United states\", \"professional sports teams\");\n\t\t//manager.advancedQuery(\"musical movies\", \"tony award\");\n\t\t//manager.advancedQuery(\"grammy\", \"best album in 2012\"); \n\t\t//manager.advancedQuery(\"american movies\", \"directed by Woody Allen\"); \n\t\t//Canceled manager.advancedQuery(\"tennis\", \"international players\"); \n\t\t// canceled manager.advancedQuery(\"tennis\", \"french open\"); \n\t\t// canceled manager.advancedQuery(\"film movie\", \"1933\"); \n//\t\tmanager.advancedQuery(\"United states\", \"professional sports teams \");\n//\t\t manager.advancedQuery(\"computer games\", \"developed by Ubisoft\");\n//\t\tmanager.advancedQuery(\"movies\", \"academy award nominations\");\n //manager.advancedQuery(\"movies\", \"starring Dustin Hoffman\");\n // manager.advancedQuery(\"movies\", \"best costume design\");\n // manager.advancedQuery(\"concert tours\", \"england\");\n // manager.advancedQuery(\"sport\", \"Francesco\");\n\t\t//System.out.println(\"******* advanced query *******\");\n\t\t//manager.advancedQuery(\"sportspeople\", \"tennis\");\n//\t\tmanager.advancedQuery(ElasticIndex.analyzed, \"Broadway musicals\", \"Grammy Award\");\n //System.out.println(\"*****************************\");\n\n\n\t\t\n\t\t//manager.advancedQuery(\"football\", \"italian championship\");\n\t\t//manager.advancedQuery(\"american basketball\", \"team\");\n\t\t //manager.advancedQuery(\"Goya Award\", \"Winner and nominees from FRA\");\n\t\t//manager.advancedQuery(\"films\", \"american comedy \");\n\t\t//manager.advancedQuery(\"films\", \"american Adventure directed by James P. Hogan\");\n\t\t//manager.advancedQuery(\"NCAA Division\", \"american universities in Arkansas\");\n\t\t//manager.advancedQuery(\"Academy award\", \"winners and nominees in acting in 2011\");\n\t\t//manager.advancedQuery(\"canadian soccer\", \"Alain Rochat position \");\n\n\t}", "@Test\r\n public void testGetAllChromInfo() throws Exception {\n assertEquals(7, queries.getAllChromInfo().size());\r\n }", "@Test\r\n public void testGetQuery() {\r\n System.out.println(\"testGetQuery\");\r\n AddFuzzyColumnOperation instance = new AddFuzzyColumnOperation(null, \"test_repuestos\", \r\n \"example_autoincrement\",\r\n \"data\", 1);\r\n assertEquals(\"Query generado incorrecto.\",\r\n (\"INSERT INTO information_schema_fuzzy.columns\"\r\n + \" VALUES ('test_repuestos','example_autoincrement','data',1)\").toLowerCase(),\r\n instance.getQuery().toLowerCase());\r\n }", "@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "@Test\n public void testQuery(){\n }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "@Test\n\tpublic void GlobalSearch_28668_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet customFS = testData.get(testName).get(0);\n\n\t\t// Define Controls\n\t\tVoodooControl globalSearchCtrl = sugar().navbar.getControl(\"globalSearch\");\n\t\tVoodooControl searchResultsCtrl = sugar().navbar.search.getControl(\"searchResults\");\n\n\t\t// Type one character in the quick search bar\n\t\tglobalSearchCtrl.click();\n\t\tglobalSearchCtrl.set(sugar().accounts.getDefaultData().get(\"name\").substring(0, 1));\n\n\t\t// Type second character in the quick search bar\n\t\tglobalSearchCtrl.set(sugar().accounts.getDefaultData().get(\"name\").substring(0, 2));\n\n\t\t// The quick search results displays \"Searching...\" before results are retrieved\n\t\tsearchResultsCtrl.assertContains(customFS.get(\"searching\"), true);\n\n\t\t// Make sure it does NOT display \"No results were found.\" before results are retrieved\n\t\tsearchResultsCtrl.assertContains(customFS.get(\"noResult\"), false);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Test\n\tpublic void testQueryPage() {\n\n\t}", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM null WHERE delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete'\");\n assertTrue(boolean0);\n }", "@Test\n void testAndFilter() {\n Query q = newQueryFromEncoded(\"?query=trump\" +\n \"&model.type=all\" +\n \"&model.defaultIndex=text\" +\n \"&filter=%2B%28filterattribute%3Afrontpage_US_en-US%29\");\n assertEquals(\"AND text:trump |filterattribute:frontpage_US_en-US\",\n q.getModel().getQueryTree().toString());\n }", "@Test\n\tpublic void integrationTest1() throws Exception {\n\t\tHashSet<String> mistress = loadGrepResults(\"mistress\");\n\t\tHashSet<String> undocumented = loadGrepResults(\"undocumented\");\n\t\tHashSet<String> forced = loadGrepResults(\"!i+am+forced\");\n\t\t\n\t\tHashSet<String> grepFound = new HashSet<String>(mistress);\n\t\tgrepFound.retainAll(undocumented);\n\t\tgrepFound.addAll(forced);\n\t\t\n\t\tCollection<Page> index = queryTest.query(\"mistress & undocumented | (!\\\"I am forced\\\")\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\t\n\t\tassertEquals(indexFound, grepFound);\n\t}", "@Test\n\tpublic void integrationTest2() throws Exception {\n\t\tHashSet<String> mistress = loadGrepResults(\"mistress\");\n\t\tHashSet<String> undocumented = loadGrepResults(\"undocumented\");\n\t\tHashSet<String> insane = loadGrepResults(\"insane\");\n\t\tHashSet<String> crazy = loadGrepResults(\"crazy\");\n\t\tHashSet<String> forced = loadGrepResults(\"!i+am+forced\");\n\t\t\n\t\tHashSet<String> grepFound = new HashSet<String>(mistress);\n\t\tgrepFound.retainAll(undocumented);\n\t\tHashSet<String> temp = new HashSet<String>(crazy);\n\t\ttemp.retainAll(forced);\n\t\tgrepFound.addAll(temp);\n\t\tgrepFound.addAll(insane);\n\t\t\n\t\tCollection<Page> index = queryTest.query(\"insane | crazy & !\\\"I am forced\\\" | mistress & undocumented\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\t\n\t\tassertEquals(indexFound, grepFound);\n\t}", "@Test\n\tpublic void GlobalSearch_28766_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Inserting a single char 'A' in the Global Search bar\n\t\tVoodooControl searchBox = sugar().navbar.getControl(\"globalSearch\");\n\t\tsearchBox.set(sugar().accounts.getDefaultData().get(\"name\").substring(0,1));\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Clicking on 'View All Results' in Quick Search bar\n\t\tVoodooControl viewAllResults = sugar().navbar.search.getControl(\"viewAllResults\");\n\t\tviewAllResults.click();\n\n\t\t// Verifying the user is navigated to Global search page \n\t\tFieldSet fs = testData.get(testName).get(0);\n\t\tsugar().globalSearch.getControl(\"headerpaneTitle\").assertContains(fs.get(\"searchResultPage\"), true);\n\n\t\t// Inserting a single char 'r' in the Global Search bar\n\t\tsearchBox.set(sugar().accounts.getDefaultData().get(\"name\").substring(6,7));\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Clicking on 'View All Results' in Quick Search bar\n\t\tviewAllResults.click();\n\n\t\t// Verify the Quick Search pane dismiss after clicking on 'View All Results'\n\t\tsugar().navbar.search.getControl(\"searchResults\").assertVisible(false);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE null = null AND null = null AND null = null AND null = null AND null = null\", string0);\n }", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM join SELECT * FROM as SELECT * FROM on SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null\");\n assertTrue(boolean0);\n }", "@Test\n public void testQueryList(){\n }", "@Test\n public void testCoreExample3() {\n ReadResponse resp = factual.fetch(TABLE,\n new Query().search(\"Fried Chicken, Los Angeles\"));\n\n assertOk(resp);\n\n Map<String, Object> params = Maps.newHashMap();\n params.put(\"q\", \"Fried Chicken, Los Angeles\");\n String respRaw = factual.get(FULL_TABLE, params);\n\n assertEquals(resp.getJson(), respRaw);\n\n }", "@Test\n public void testCoreExample4() {\n ReadResponse resp = factual.fetch(TABLE,\n new Query().search(\"Fried Chicken, Los Angeles\").offset(20).limit(5));\n\n assertOk(resp);\n assertEquals(5, resp.getData().size());\n\n Map<String, Object> params = Maps.newHashMap();\n params.put(\"q\", \"Fried Chicken, Los Angeles\");\n params.put(\"offset\", 20);\n params.put(\"limit\", 5);\n String respRaw = factual.get(FULL_TABLE, params);\n assertEquals(5, resp.getData().size());\n\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"updatedeffult~nfo\");\n assertFalse(boolean0);\n }", "@Test\n\tpublic void testSearchBasedOnRequest4() {\n\t\tsearchBasedOnRequestSetup();\n\t\t\n\t\tList<Suggestion> sugg = dm.searchBasedOnRequest(\"Flavorful\", null, true);\n\t\tassertTrue(sugg.size() == 0);\n\t}", "@Test\n\tpublic void GlobalSearch_28667_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet customFS = testData.get(testName).get(0);\n\n\t\t// Define 'search records' and controls\n\t\tArrayList<String> searchRecord = new ArrayList<String>();\n\t\tsearchRecord.add(sugar().accounts.getDefaultData().get(\"name\"));\n\t\tsearchRecord.add(sugar().contacts.getDefaultData().get(\"firstName\") + \" \" + sugar().contacts.getDefaultData().get(\"lastName\"));\n\t\tsearchRecord.add(sugar().opportunities.getDefaultData().get(\"name\"));\n\n\t\t// Define Controls\n\t\t// TODO: VOOD-1853\n\t\tVoodooControl firstSearchedCtrl = new VoodooControl(\"a\", \"css\", \"ul.search-results .search-result:nth-child(1) h3 a\");\n\t\tString baseUrl = new SugarUrl().getBaseUrl();\n\t\tVoodooControl modulesIconCtrl = sugar().navbar.search.getControl(\"searchModuleIcons\");\n\n\t\tfor(int i = 0; i < searchRecord.size(); i++) {\n\t\t\t// Go to https://instance_url/#search/de?modules=Contacts,Accounts,Opportunities\n\t\t\tVoodooUtils.go(baseUrl + \"#search/\" + searchRecord.get(i).replaceAll(\" \", \"%20\") + \"?modules=\" + sugar().accounts.moduleNamePlural + \",\" + sugar().contacts.moduleNamePlural + \",\" + sugar().opportunities.moduleNamePlural);\n\t\t\tVoodooUtils.waitForReady();\n\n\t\t\t// Verify that Contacts, Accounts and Opportunities are checked in the quicksearch module dropdown\n\t\t\tsugar().navbar.search.getControl(\"searchAccounts\").assertAttribute(\"class\", customFS.get(\"selected\"), true);\n\t\t\tsugar().navbar.search.getControl(\"searchContacts\").assertAttribute(\"class\", customFS.get(\"selected\"), true);\n\t\t\tsugar().navbar.search.getControl(\"searchOpportunities\").assertAttribute(\"class\", customFS.get(\"selected\"), true);\n\n\t\t\t// Verfiy that Global search bar should include Icons of Contacts, Accounts and Opportunities \n\t\t\tmodulesIconCtrl.getChildElement(\"span\", \"css\", \".label-\" + sugar().accounts.moduleNamePlural).assertExists(true);\n\t\t\tmodulesIconCtrl.getChildElement(\"span\", \"css\", \".label-\" + sugar().contacts.moduleNamePlural).assertExists(true);\n\t\t\tmodulesIconCtrl.getChildElement(\"span\", \"css\", \".label-\" + sugar().opportunities.moduleNamePlural).assertExists(true);\n\n\t\t\t// Verify that search results for \"search record\" is displayed based on Contacts, Accounts and Opportunities\n\t\t\tfirstSearchedCtrl.assertContains(searchRecord.get(i), true);\n\t\t}\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n NetworkHandling.sendDataOnTcp((EvoSuiteLocalAddress) null, (byte[]) null);\n String string0 = SQLUtil.normalize(\" Y*-X>Nz.q@~K^o8Z]v\", false);\n assertEquals(\"Y * - X > Nz.q @ ~ K ^ o8Z ] v\", string0);\n \n boolean boolean0 = SQLUtil.isQuery(\"fwX.WrSyJ>:+F-&9\");\n assertFalse(boolean0);\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "@Test\n public void testDAM31201001() {\n // In this test case the where clause is specified in a common sql shared in multiple queries.\n testDAM30505001();\n }", "private static void testConnection(GraknSession session) {\n try (GraknGraph graph = session.open(GraknTxType.READ)) {\n\n // construct a match query to find people\n MatchQuery query = graph.graql().match(var(\"x\").isa(\"mirna\"));\n\n // execute the query\n List<Answer> result = query.limit(10).execute();\n\n // if there is no data throw error\n if (result.isEmpty()) {throw new RuntimeException(\"Expected data is not present in the graph.\");}\n System.out.println(\"Connection OK.\");\n }\n }", "public void Query() {\n }", "@Test\n public void testGetAdvancedSearch() {\n System.out.println(\"getAdvancedSearch\");\n query = mock(Query.class);\n String cQuery = \"Componente.dummyQuery\";\n List<Componente> expected = new ArrayList<>();\n when(this.em.createNamedQuery(cQuery)).thenReturn(query);\n when(cDao.getAdvancedSearch(anyString(), (List<String>) any(), (List<String>) any(), (List<String>) any(), (Date) any(), (Date) any(), anyInt())).thenReturn(expected);\n List<Componente> result = cDao.getAdvancedSearch(anyString(), (List<String>) any(), (List<String>) any(), (List<String>) any(), (Date) any(), (Date) any(), anyInt());\n assertThat(result, is(expected));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }", "@Test\n public void test() throws Exception {\n\n ModelObjectSearchService.addNoSQLServer(Address.class, new SolrRemoteServiceImpl(\"http://dr.dk\"));\n\n\n\n Address mock = NQL.mock(Address.class);\n NQL.search(mock).search(\n\n NQL.all(\n NQL.has(mock.getArea(), NQL.Comp.LIKE, \"Seb\"),\n NQL.has(\"SebastianRaw\")\n\n )\n\n ).addStats(mock.getZip()).getFirst();\n\n\n// System.out.println(\"inline query: \" + NQL.search(mock).search(mock.getA().getFunnyD(), NQL.Comp.EQUAL, 0.1d).());\n// System.out.println(\"normal query: \" + NQL.search(mock).search(mock.getArea(), NQL.Comp.EQUAL, \"area\").buildQuery());\n }", "@Test\r\n public void testGetAllFestivities() {\r\n System.out.println(\"getAllFestivities\");\r\n List<Festivity> result = Database.getAllFestivities();\r\n assertTrue(result.size() > 0 );\r\n }", "@Test\n public void testUpdateQuery() {\n LayersViewController instance = LayersViewController.getDefault().init(null);\n String queryString1 = \"Type == 'Word'\";\n int index1 = 2;\n Query query1 = new Query(GraphElementType.VERTEX, \"Type == 'Event'\");\n instance.getVxQueryCollection().getQuery(index1).setQuery(query1);\n instance.getTxQueryCollection().getQuery(index1).setQuery(null);\n assertEquals(instance.getVxQueryCollection().getQuery(index1).getQueryString(), \"Type == 'Event'\");\n\n instance.updateQuery(queryString1, index1, \"Vertex Query: \");\n assertEquals(instance.getVxQueryCollection().getQuery(index1).getQueryString(), queryString1);\n\n String queryString2 = \"Type == 'Unknown'\";\n int index2 = 3;\n Query query2 = new Query(GraphElementType.TRANSACTION, \"Type == 'Network'\");\n instance.getTxQueryCollection().getQuery(index2).setQuery(query2);\n instance.getVxQueryCollection().getQuery(index2).setQuery(null);\n assertEquals(instance.getTxQueryCollection().getQuery(index2).getQueryString(), \"Type == 'Network'\");\n \n instance.updateQuery(queryString2, index2, \"Transaction Query: \");\n assertEquals(instance.getTxQueryCollection().getQuery(index2).getQueryString(), queryString2);\n\n }", "public void runTestSearch() throws TorqueException {\r\n\t}", "boolean hasQuery();", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"\");\n assertFalse(boolean0);\n }", "@Test\n\tpublic void testSearchBasedOnRequest2() {\n\t\tsearchBasedOnRequestSetup();\n\t\t\n\t\tPreference prefs = prefManager.getUserPreference();\n\t\tprefs.setThreshold(10000);\n\t\t\n\t\tList<Suggestion> sugg = dm.searchBasedOnRequest(\"lokeyanhao\", prefs, true);\n\t\tassertTrue(sugg.size() > 0);\n\t\tassertTrue(sugg.get(0).getType() == Suggestion.ENTITY);\n\t}", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE \", string0);\n }", "@Test\n public void testCPG() {\n Query query = new Query().search(\"shampoo\");\n ReadResponse resp = factual.fetch(\"products-cpg\", query);\n assertOk(resp);\n\n // Same search as above, but filter the search results to include only the\n // brand \"pantene\"\n query = new Query().search(\"shampoo\").field(\"brand\").isEqual(\"pantene\");\n resp = factual.fetch(\"products-cpg\", query);\n assertOk(resp);\n\n // Same search as above, with added filter for products that are 12.6 oz.\n query = new Query().search(\"shampoo\").field(\"brand\").isEqual(\"pantene\")\n .field(\"size\").search(\"12.6 oz\");\n resp = factual.fetch(\"products-cpg\", query);\n assertOk(resp);\n\n // Search on UPC\n query = new Query().field(\"upc\").isEqual(\"052000131512\");\n resp = factual.fetch(\"products-cpg\", query);\n assertTrue(resp.getData().size() == 1);\n assertOk(resp);\n\n // Find all beverages (filter by category)\n query = new Query().field(\"category\").isEqual(\"beverages\");\n resp = factual.fetch(\"products-cpg\", query);\n assertOk(resp);\n\n // Count all beverage products\n query = new Query().field(\"category\").isEqual(\"lip makeup\").includeRowCount();\n resp = factual.fetch(\"products-cpg\", query);\n assertOk(resp);\n }", "@Test\n public void executeValidSearch_notAllFields(){\n emptySearchFields();\n view.setFloor(1);\n view.setBedrooms(1);\n view.setBathrooms(1);\n presenter.doSearch();\n Assert.assertTrue(presenter.hasNextResult());\n }", "@Test\n public void testGetCantComponentsAdvancedSearch() {\n System.out.println(\"getCantComponentsAdvancedSearch\");\n String cquery = \"Componente.dummyQuery\";\n query = mock(Query.class);\n int expected = Integer.SIZE;\n when(this.em.createNamedQuery(cquery)).thenReturn(query);\n when(cDao.getCantComponentsAdvancedSearch(anyString(), (List<String>) any(), (List<String>) any(), (List<String>) any(), (Date) any(), (Date) any())).thenReturn(expected);\n int result = cDao.getCantComponentsAdvancedSearch(anyString(), (List<String>) any(), (List<String>) any(), (List<String>) any(), (Date) any(), (Date) any());\n assertThat(result, is(expected));\n }", "@Test\n public void enterQueryString_showResults() {\n onView(withId(R.id.page_change_web_search_view)).check(matches(not(isDisplayed())));\n // Check recycler view is not visible at beginning\n onView(withId(R.id.web_search_list)).check(matches(not(isDisplayed())));\n\n // Enter search string and close the keyboard\n onView(allOf(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE),\n isAssignableFrom(EditText.class))).perform(typeText(mSearchQueryString), pressKey(66), closeSoftKeyboard());\n\n // Check if recycler view is visible\n onView(withId(R.id.web_search_list)).check(matches(isDisplayed()));\n // Check if page change view is visible\n onView(withId(R.id.page_change_web_search_view)).check(matches(isDisplayed()));\n }", "@Test\n\tpublic void testQueryTypes() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\t// QueryType\n\t\tfinal IntrospectionFullType queryType = getFullType(introspection, schemaConfig.getQueryTypeName());\n\t\t// - check all queries are available\n\t\tfinal List<String> queryNames = new ArrayList<>();\n\t\tArrays.asList(Entity1.class, Entity2.class, Entity3.class, Entity4.class).stream().forEach(clazz -> {\n\t\t\tqueryNames.add(schemaConfig.getQueryGetByIdPrefix() + clazz.getSimpleName());\n\t\t\tqueryNames.add(schemaConfig.getQueryGetListPrefix() + clazz.getSimpleName());\n\t\t});\n\t\tqueryNames.forEach(queryName -> Assert.assertTrue(queryType.getFields().stream()\n\t\t\t\t.map(IntrospectionTypeField::getName).collect(Collectors.toList()).contains(queryName)));\n\n\t\t// - check one 'getSingle' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getEntity1 = assertField(queryType, queryNames.get(0),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT, Entity1.class);\n\t\tAssert.assertEquals(1, getEntity1.getArgs().size());\n\t\tassertArg(getEntity1, \"id\", IntrospectionTypeKindEnum.NON_NULL, IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLID.getName());\n\n\t\t// - check one 'getAll' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getAllEntity1 = assertField(queryType, queryNames.get(1),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, getAllEntity1.getArgs().size());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListFilterEntityTypeNameSuffix());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListPagingAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT, getPagingInputTypeName());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeOrderByName(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.INPUT_OBJECT, getOrderByInputTypeName());\n\t}", "public static void main(String[] args) {\n\t\tSession s2=util.getSession();\r\n\t\tQuery qry=s2.getNamedQuery(\"q2\");\r\n\t\t//Query qry=s2.getNamedQuery(\"q3\");\r\n\t\t//qry.setInteger(0, 50);\r\n\t\tList<Object[]> lust=qry.list();\r\n\t\tfor(Object[] row:lust) {\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t\tSystem.out.println(\"Completed\");\r\n\t}", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "@Test\r\n\tpublic void testExecuteQueryNKT5() {\r\n\t\t// assumed that inputs are valid. validation done in controller\r\n\t\t\r\n\t\t//name is in record, yob is at boundary 1880, female, pref: female, pref: younger \r\n\t\t\r\n\t\tString testName = Activity5Query.executeQueryNKT5(\"Anna\", 1880, 1, 1, true);\r\n\t\tassertTrue(testName.equals(\"Anna\"));\r\n\t\t\r\n\t\t//name is in record, yob is at boundary 1880, female, pref: female, pref: older \r\n\t\ttestName = Activity5Query.executeQueryNKT5(\"Anna\", 1880, 1, 1, false);\r\n\t\tassertTrue(testName.equals(\"Anna\"));\r\n\t\t\r\n\t\ttestName = Activity5Query.executeQueryNKT5(\"Brandon\", 1901, 0, 1, false);\r\n\t\tassertTrue(testName.equals(\"Grace\"));\r\n\t\t\t\r\n\t\t//name is in record, yob is at normal value, female, pref: male, pref: younger \r\n\t\ttestName = Activity5Query.executeQueryNKT5(\"Emily\", 1999, 1, 0, true);\r\n\t\tassertTrue(testName.equals(\"Jacob\"));\r\n\t\t\r\n\t\t//name is not in record, yob is at normal value, female, pref: male, pref: younger \r\n\t\ttestName = Activity5Query.executeQueryNKT5(\"Kurisu\", 1999, 1, 0, true);\r\n\t\tassertTrue(testName.equals(\"Anthony\"));\r\n\t\t\r\n\t\t//name is not in record, yob is at normal value, male, pref: female, pref: younger \r\n\t\ttestName = Activity5Query.executeQueryNKT5(\"Okabe\", 1999, 0, 1, true);\r\n\t\tassertTrue(testName.equals(\"Emma\"));\r\n\t\t\r\n\t\t//testing when orank is not found in the case where name is in database\r\n\t\ttestName = Activity5Query.executeQueryNKT5(\"Zonia\", 1910, 1, 1, false);\r\n\t\tassertTrue(testName.equals(\"Mary\"));\r\n\t\t\r\n\t}", "@Test\n public void testQueries() {\n nuxeoClient.repository().createDocumentById(testWorkspaceId, new Document(\"file1\", \"File\"));\n nuxeoClient.repository().createDocumentById(testWorkspaceId, new Document(\"file2\", \"File\"));\n\n // Get descendants of Workspaces\n String query = \"select * from Document where ecm:path startswith '/default-domain/workspaces'\";\n Documents documents = nuxeoClient.repository().query(query, \"10\", \"0\", \"50\", \"ecm:path\", \"asc\", null);\n assertEquals(3, documents.size());\n\n // Get all the File documents\n // TODO\n\n // Content of a given Folder, using a page provider\n // TODO\n }", "@Test\n\tpublic void testSearchBasedOnRequest1() {\n\t\tsearchBasedOnRequestSetup();\n\t\t\n\t\tPreference prefs = prefManager.getUserPreference();\n\t\tprefs.setThreshold(10000);\n\t\t\n\t\tList<Suggestion> sugg = dm.searchBasedOnRequest(\"Flavorful\", prefs, true);\n\t\tassertTrue(sugg.size() > 0);\n\t\tassertTrue(sugg.get(0).getType() == Suggestion.SENTENCE);\n\t}", "public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "@Test\npublic void testCreateQueryForPageHql() throws Exception { \n//TODO: Test goes here... \n}", "@ActionTrigger(action=\"QUERY\")\n\t\tpublic void spriden_Query()\n\t\t{\n\t\t\t\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tenterQuery();\n//\t\t\t\tif ( SupportClasses.SQLFORMS.FormSuccess().not() )\n//\t\t\t\t{\n//\t\t\t\t\t\n//\t\t\t\t\tthrow new ApplicationException();\n//\t\t\t\t}\n\t\t\t}", "CampusSearchQuery generateQuery();", "@Test\n public void queryWithOneInnerQueryCreate() throws IOException {\n BaseFuseClient fuseClient = new BaseFuseClient(\"http://localhost:8888/fuse\");\n //query request\n CreateQueryRequest request = new CreateQueryRequest();\n request.setId(\"1\");\n request.setName(\"test\");\n request.setQuery(Q1());\n //submit query\n given()\n .contentType(\"application/json\")\n .header(new Header(\"fuse-external-id\", \"test\"))\n .with().port(8888)\n .body(request)\n .post(\"/fuse/query\")\n .then()\n .assertThat()\n .body(new TestUtils.ContentMatcher(o -> {\n try {\n final QueryResourceInfo queryResourceInfo = fuseClient.unwrap(o.toString(), QueryResourceInfo.class);\n assertTrue(queryResourceInfo.getAsgUrl().endsWith(\"fuse/query/1/asg\"));\n assertTrue(queryResourceInfo.getCursorStoreUrl().endsWith(\"fuse/query/1/cursor\"));\n assertEquals(1,queryResourceInfo.getInnerUrlResourceInfos().size());\n assertTrue(queryResourceInfo.getInnerUrlResourceInfos().get(0).getAsgUrl().endsWith(\"fuse/query/1->q2/asg\"));\n assertTrue(queryResourceInfo.getInnerUrlResourceInfos().get(0).getCursorStoreUrl().endsWith(\"fuse/query/1->q2/cursor\"));\n return fuseClient.unwrap(o.toString()) != null;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }))\n .statusCode(201)\n .contentType(\"application/json;charset=UTF-8\");\n\n //get query resource by id\n given()\n .contentType(\"application/json\")\n .header(new Header(\"fuse-external-id\", \"test\"))\n .with().port(8888)\n .get(\"/fuse/query/\"+request.getId()+\"->\"+Q2().getName())\n .then()\n .assertThat()\n .body(new TestUtils.ContentMatcher(o -> {\n try {\n final QueryResourceInfo queryResourceInfo = fuseClient.unwrap(o.toString(), QueryResourceInfo.class);\n assertTrue(queryResourceInfo.getAsgUrl().endsWith(\"fuse/query/1->q2/asg\"));\n assertTrue(queryResourceInfo.getCursorStoreUrl().endsWith(\"fuse/query/1->q2/cursor\"));\n return fuseClient.unwrap(o.toString()) != null;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }))\n .statusCode(200)\n .contentType(\"application/json;charset=UTF-8\");\n\n\n }", "Query query();", "@Test(timeout = 4000)\n public void test70() throws Throwable {\n SQLUtil.normalize(\"selectfwx.wrsyj>:+f-&9\", false);\n Random.setNextRandom(818);\n Random.setNextRandom(818);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance(818, \" NULL\");\n Integer integer0 = RawTransaction.LOCK_ESCALATE;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"}qis;\", defaultDBTable0, dBDataType0, integer0, integer0);\n defaultDBColumn0.setNullable(false);\n SQLUtil.renderColumn(defaultDBColumn0);\n System.setCurrentTimeMillis(818);\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }", "@Test\n public void flightSearch() {\n FirefoxDriver browser = openBrowser(\"http://www.hotwire.com/ \");\n\n //Go to Bundles option\n bundlesOption(browser);\n\n //Search for the SFO to LAX flight\n inputCities(browser, \"SFO\", \"LAX\");\n\n //Calculate the flight days\n //Departing next day\n //Returning 20 days after\n flightDays(browser);\n\n //Click the Find Deal button\n findDeal(browser);\n\n //Wait for the page to load until the results are displayed\n results(browser);\n }", "public JTestDefinition listOfQueries(){\n Iterable<JHttpQuery> queries = Stream.of(\"100\", \"50\", \"25\")\n .map(q -> new JHttpQuery().get().path(\"/sleep\", q))\n .collect(Collectors.toList());\n return JTestDefinition.builder(Id.of(\"queries list\"), getEndpoints())\n .withQueryProvider(queries)\n .build();\n }", "@Test\n public void testSearchFilter_WithoutQuery() {\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n\n BridgeRequest request = new BridgeRequest();\n request.setStructure(\"user\");\n request.setFields(fields);\n request.setQuery(\"\");\n\n RecordList list = null;\n BridgeError unexpectedError = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "@Test\npublic void testFindDtoListByHql() throws Exception { \n//TODO: Test goes here... \n}", "public List queryTest() {\n\t\tList list = null;\n\t\tthis.init();\n\t\t try {\n\t\t\t list= sqlMap.queryForList(\"getAllTest\");\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn list;\n\t\t\n\t}", "@Test\n public void testSearch2() throws Exception\n {\n unauthenticate();\n Assert.isTrue(actorService.search(\"\").equals(actorService.findAll()));\n }", "@Test\npublic void testCreateQueryForClazzHql() throws Exception { \n//TODO: Test goes here... \n}", "@Test\n public void testSearch() throws Exception {\n LocalLandCharge localLandChargeOne = TestUtils.buildLocalLandCharge();\n localLandChargeOne.getItem().setChargeCreationDate(new Date(1));\n\n LocalLandCharge localLandChargeTwo = TestUtils.buildLocalLandCharge();\n localLandChargeTwo.getItem().setChargeCreationDate(new Date(3));\n\n LocalLandCharge localLandChargeThree = TestUtils.buildLocalLandCharge();\n localLandChargeThree.getItem().setChargeCreationDate(new Date(2));\n\n LocalLandCharge lightObstructionNotice = TestUtils.buildLONCharge();\n localLandChargeTwo.getItem().setChargeCreationDate(new Date(4));\n\n testGenerate(Lists.newArrayList(localLandChargeOne, localLandChargeTwo, localLandChargeThree,\n lightObstructionNotice));\n }", "public void testSpatialQuery(){\n\t\t\r\n\t\tSpatialQueryTest sqt = new SpatialQueryTest();\r\n\t\ttry{\r\n\t\t\tsqt.runSpatialIndexTest();\r\n\t\t}catch(IOException ex){\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void testFeedContent() throws Exception {\n String query = \"ay 7aga\";\n List<Work> works = session.g.search(query).getResults();\n\n assertEquals(works.size(),0);\n }", "public static void main(String[] args) {\n\t\t\n\t\ttestQuery();\n\t\t//testInsert();\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderWhereClause(stringArray0, stringArray0);\n assertEquals(\"\", string0);\n }", "@Test\npublic void testCreateQueryForClazzPageHql() throws Exception { \n//TODO: Test goes here... \n}", "public void testSearchRules() throws Exception {\n Project project = new Project();\r\n \r\n DateFormatSymbols symbols = new DateFormatSymbols(Locale.US);\r\n \r\n for (int i = 0; i < 12; i++) {\r\n \r\n String month = symbols.getMonths()[i];\r\n String shortMonth = symbols.getShortMonths()[i];\r\n \r\n // Basic project info\r\n project.setId(i);\r\n project.setCategoryId(1);\r\n project.setAllowGuests(true);\r\n project.setMembershipRequired(false);\r\n project.setApproved(true);\r\n project.setClosed(false);\r\n project.setPortal(false);\r\n \r\n // Unique Title\r\n project.setTitle(month + \" test project\");\r\n project.setShortDescription(month + \" description word\");\r\n project.setKeywords(shortMonth);\r\n \r\n // Unique Location\r\n project.setCity(\"Virginia Beach\");\r\n project.setState(\"VA\");\r\n project.setPostalCode(\"234\" + String.valueOf(50 + i));\r\n \r\n // Random Rating for now\r\n project.setRatingCount(i + 1);\r\n project.setRatingValue(project.getRatingCount() * StringUtils.rand(1, 5));\r\n project.setRatingAverage(project.getRatingValue() / project.getRatingCount());\r\n \r\n // Index it\r\n ProjectIndexer indexer = new ProjectIndexer();\r\n indexer.add(snowballWriter, project, true);\r\n }\r\n \r\n QueryParser parser = new QueryParser(\"contents\", snowballAnalyzer);\r\n \r\n {\r\n // Make sure a single matching term yields a single hit\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0]);\r\n search.setLocation(\"Virginia Beach\");\r\n assertNotNull(search.getQuery());\r\n assertNotNull(search.getLocation());\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january\"^20 OR january^15 OR january*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 1);\r\n }\r\n \r\n {\r\n // Make sure a single matching term stem yields a single hit\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0] + \"'s\");\r\n search.setLocation(\"Virginia Beach\");\r\n assertNotNull(search.getQuery());\r\n assertNotNull(search.getLocation());\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january's\"^20 OR january's^15 OR january's*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 1);\r\n }\r\n \r\n {\r\n // Make sure multiple matching words yield two hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0] + \" \" + symbols.getMonths()[1]);\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january february\"^20 OR january^15 OR february^14 OR january*^4 OR february*^3) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 2);\r\n }\r\n \r\n {\r\n // Make sure wilcards yield multiple hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(\"j\");\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n // Look for data with a \"j\" for comparison\r\n int jCount = 0;\r\n for (int i = 0; i < symbols.getMonths().length; i++) {\r\n if (symbols.getMonths()[i].toLowerCase().indexOf(\"j\") > -1 ||\r\n symbols.getShortMonths()[i].toLowerCase().indexOf(\"j\") > -1) {\r\n ++jCount;\r\n }\r\n }\r\n assertTrue(jCount > 0);\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"j\"^20 OR j^15 OR j*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == jCount);\r\n }\r\n \r\n {\r\n // Make sure alternate locations do not yield any hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0]);\r\n search.setLocation(\"Norfolk\");\r\n search.parseQuery();\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 0);\r\n }\r\n \r\n {\r\n // Make sure locations as query terms do not yield any hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(\"Virginia Beach\");\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 0);\r\n }\r\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }", "@Test\r\n\tpublic void flightSearch() {\r\n\t\tnewFlightSearch.setDepartureTime(new Date(2016-1900,7+1,15));\r\n\t\tnewFlightSearch.setDepartureLoc(\"Akureyri\");\r\n\t\tnewFlightSearch.setArrivalLoc(\"Reykjavík\");\r\n\t\tnewFlightSearch.setPriceRange(new int[]{10000,20000});\r\n\t\tnewFlightSearch.setReturnTrip(false);\r\n\t\tnewFlightSearch.setNumSeats(1);\r\n\t\tnewFlightSearch.setSeatClass(\"Economy\");\r\n\t\tList<FlightAbstract> flightResults = SearchEngine.flightSearch(newFlightSearch);\r\n\t\tif (flightResults.size()>0) {\r\n\t\t\tfor (int i=0; i<flightResults.size(); i++) {\r\n\t\t\t\tassertThat(flightResults.get(i), instanceOf(FlightExtend.class));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tassertEquals(flightResults.size(),0);\r\n\t\t}\r\n\t}", "public void testFindUsersByQuery() throws Exception\r\n {\r\n createUser(\"tolik\");\r\n uHandler.authenticate(\"tolik\", \"pwdADDSomeSaltToBeCompliantWithSomeIS00\");\r\n\r\n Query query = new Query();\r\n query.setEmail(\"email@test\");\r\n\r\n // try to find user by email\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query), UserStatus.ENABLED);\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n\r\n // try to find user by name with mask\r\n query = new Query();\r\n query.setUserName(\"*tolik*\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by name with mask\r\n query = new Query();\r\n query.setUserName(\"tol*\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by name with mask\r\n query = new Query();\r\n query.setUserName(\"*lik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by name explicitly\r\n query = new Query();\r\n query.setUserName(\"tolik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by part of name without mask\r\n query = new Query();\r\n query.setUserName(\"tol\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by fist and last names\r\n query = new Query();\r\n query.setFirstName(\"first\");\r\n query.setLastName(\"last\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n String skipCISearchTests = System.getProperty(\"orgservice.test.configuration.skipCISearchTests\");\r\n if (!\"true\".equals(skipCISearchTests))\r\n {\r\n // try to find user by name explicitly, case insensitive search\r\n query = new Query();\r\n query.setUserName(\"Tolik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n // try to find user by fist and last names, case insensitive search\r\n query = new Query();\r\n query.setFirstName(\"fiRst\");\r\n query.setLastName(\"lasT\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n }\r\n\r\n String skipDateTests = System.getProperty(\"orgservice.test.configuration.skipDateTests\");\r\n if (!\"true\".equals(skipDateTests))\r\n {\r\n // try to find user by login date\r\n Calendar calc = Calendar.getInstance();\r\n calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) - 1);\r\n\r\n query = new Query();\r\n query.setFromLoginDate(calc.getTime());\r\n query.setUserName(\"tolik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n\r\n calc = Calendar.getInstance();\r\n calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) + 1);\r\n\r\n query = new Query();\r\n query.setFromLoginDate(calc.getTime());\r\n assertSizeEquals(0, uHandler.findUsersByQuery(query));\r\n\r\n calc = Calendar.getInstance();\r\n calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) - 1);\r\n\r\n query = new Query();\r\n query.setToLoginDate(calc.getTime());\r\n assertSizeEquals(0, uHandler.findUsersByQuery(query));\r\n\r\n calc = Calendar.getInstance();\r\n calc.set(Calendar.YEAR, calc.get(Calendar.YEAR) + 1);\r\n\r\n query = new Query();\r\n query.setToLoginDate(calc.getTime());\r\n query.setUserName(\"tolik\");\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query));\r\n }\r\n\r\n createUser(\"rolik\");\r\n createUser(\"bolik\");\r\n createUser(\"volik\");\r\n\r\n query = new Query();\r\n query.setUserName(\"olik\");\r\n\r\n ListAccess<User> users = uHandler.findUsersByQuery(query);\r\n\r\n assertSizeEquals(4, users, UserStatus.ENABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n\r\n User[] allPage = users.load(0, 4);\r\n User[] page1 = users.load(0, 2);\r\n User[] page2 = users.load(2, 2);\r\n\r\n assertEquals(allPage[0].getUserName(), page1[0].getUserName());\r\n assertEquals(allPage[1].getUserName(), page1[1].getUserName());\r\n assertEquals(allPage[2].getUserName(), page2[0].getUserName());\r\n assertEquals(allPage[3].getUserName(), page2[1].getUserName());\r\n\r\n try\r\n {\r\n users.load(0, 0);\r\n }\r\n catch (Exception e)\r\n {\r\n fail(\"Exception is not expected\");\r\n }\r\n\r\n // try to load more than exist\r\n try\r\n {\r\n users.load(0, 5);\r\n fail(\"Exception is expected\");\r\n }\r\n catch (Exception e)\r\n {\r\n }\r\n\r\n // try to load more than exist\r\n try\r\n {\r\n users.load(1, 4);\r\n fail(\"Exception is expected\");\r\n }\r\n catch (Exception e)\r\n {\r\n }\r\n\r\n boolean unsupportedOperation = false;\r\n try\r\n {\r\n // Disable the user tolik\r\n uHandler.setEnabled(\"tolik\", false, true);\r\n\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query), UserStatus.ENABLED);\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(1, uHandler.findUsersByQuery(query, UserStatus.DISABLED), UserStatus.DISABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n\r\n // Enable the user tolik\r\n uHandler.setEnabled(\"tolik\", true, true);\r\n\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query), UserStatus.ENABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(0, uHandler.findUsersByQuery(query, UserStatus.DISABLED), UserStatus.DISABLED);\r\n assertSizeEquals(4, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n }\r\n catch (UnsupportedOperationException e)\r\n {\r\n // This operation can be unsupported\r\n unsupportedOperation = true;\r\n }\r\n\r\n // Remove the user tolik\r\n uHandler.removeUser(\"tolik\", true);\r\n\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query), UserStatus.ENABLED);\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query, UserStatus.ENABLED), UserStatus.ENABLED);\r\n assertSizeEquals(3, uHandler.findUsersByQuery(query, UserStatus.BOTH), UserStatus.BOTH);\r\n\r\n\r\n // Check the listener's counters\r\n assertEquals(4, listener.preSaveNew);\r\n assertEquals(4, listener.postSaveNew);\r\n assertEquals(0, listener.preSave);\r\n assertEquals(0, listener.postSave);\r\n assertEquals(unsupportedOperation ? 0 : 2, listener.preSetEnabled);\r\n assertEquals(unsupportedOperation ? 0 : 2, listener.postSetEnabled);\r\n assertEquals(1, listener.preDelete);\r\n assertEquals(1, listener.postDelete);\r\n }", "public void testSearchManagerWithInstantiation() {\n loadTestingData();\n\n Query<?> cacheQuery = createQuery(\"blurb:'playing'\", Person.class);\n\n try (CloseableIterator<?> found = cacheQuery.iterator()) {\n assertTrue(found.hasNext());\n found.next();\n assertFalse(found.hasNext());\n }\n }", "private static Boolean specialQueries(String query) throws ClassNotFoundException, InstantiationException, IllegalAccessException {\n clickList = false;\n //newCorpus = true;\n\n if (query.equals(\"q\")) {\n\n System.exit(0);\n return true;\n }\n\n String[] subqueries = query.split(\"\\\\s+\"); //split around white space\n\n if (subqueries[0].equals(\"stem\")) //first term in subqueries tells computer what to do \n {\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n TokenProcessor processor = new NewTokenProcessor();\n if (subqueries.length > 1) //user meant to stem the token not to search stem\n {\n List<String> stems = processor.processToken(subqueries[1]);\n\n //clears list and repopulates it \n String stem = \"Stem of query '\" + subqueries[1] + \"' is '\" + stems.get(0) + \"'\";\n\n GUI.ResultsLabel.setText(stem);\n\n return true;\n }\n\n } else if (subqueries[0].equals(\"vocab\")) {\n List<String> vocabList = Disk_posIndex.getVocabulary();\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n\n int vocabCount = 0;\n for (String v : vocabList) {\n if (vocabCount < 1000) {\n vocabCount++;\n GUI.JListModel.addElement(v);\n }\n }\n GUI.ResultsLabel.setText(\"Total size of vocabulary: \" + vocabCount);\n return true;\n }\n\n return false;\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\npublic void testFindPageByHql() throws Exception { \n//TODO: Test goes here... \n}", "public void customerQuery(){\n }", "public static void test() {\n\t\t\n\t\tSystem.out.println(\"\\n\\n------------ TESTING CODE ASSIGNMENT 4D --------------\\n\\n\");\n\t\t\n\t\t\n\t\tEntityManagerFactory entityManagerFactory = PersistenceUtil.getEntityManagerFactory();\n\t\tEntityManager entityManager = entityManagerFactory.createEntityManager();\n\t\t\n\t\tentityManager.getTransaction().begin();\n\t\n\t\tSQLInterceptor.resetSelectCount();\n\t\t\n//\t\tSystem.out.println(\"Executing efficient query of task 2b:\");\n\t\tJPQLQueries jpqlQueries = new JPQLQueries(entityManager);\n\t\tjpqlQueries.getComputerUsage();\n\t\t\n\t\tSQLInterceptor.printSelectCount();\n\t\t\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t}", "@Override\n @Test\n public void testQuery_advancedRankingWithJoin() throws Exception { }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"org.apache.derby.iapi.sql.execute.ExecutionContext\");\n String[] stringArray0 = new String[4];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM org.apache.derby.iapi.sql.execute.ExecutionContext WHERE null = null AND null = null AND null = null AND null = null\", string0);\n }", "public void testQuery() {\n Random random = new Random();\n ContentValues values = makeServiceStateValues(random, mBaseDb);\n final long rowId = mBaseDb.insert(TBL_SERVICE_STATE, null, values);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n List<ServiceStateTuple> tuples = table.query(mTestContext, null, null, null, null,\n null, null, null);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(rowId, values, tuple);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n String[] stringArray0 = new String[7];\n stringArray0[2] = \"\";\n String string0 = SQLUtil.renderWhereClause(stringArray0, stringArray0);\n assertEquals(\"null = null AND null = null AND = '' AND null = null AND null = null AND null = null AND null = null\", string0);\n }", "@Test\n\tvoid searchTest() {\n\t}", "@Test\n void testAndFilterWithoutExplicitIndex() {\n Query q = newQueryFromEncoded(\"?query=trump\" +\n \"&model.type=all\" +\n \"&model.defaultIndex=text\" +\n \"&filter=%2B%28filterTerm%29\");\n assertEquals(\"AND text:trump |text:filterTerm\",\n q.getModel().getQueryTree().toString());\n }", "public void testFeed() throws Exception {\n String query = \"harry potter\";\n List<Work> works = session.g.search(query).getResults();\n\n //assertEquals(\"Wrong feed 1\", works.get(0).getBestBook().getTitle(),\n // \"Harry Potter and the Sorcerer's Stone (Harry Potter, #1)\");\n\n assertEquals(\"Wrong feed 11\", works.get(1).getBestBook().getTitle(),\n \"Harry Potter and the Prisoner of Azkaban (Harry Potter, #3)\");\n\n assertEquals(\"Wrong feed 1\", works.get(0).getBestBook().getAuthor().getName(),\n \"J.K. Rowling\");\n }", "@Test\npublic void testCal() throws Exception {\n\tsearchText();\n}", "public void testSearchByContent() {\n Message m1 = new Message(\"test\",\"bla bla david moshe\",_u1);\n Message.incId();\n try {\n Thread.sleep(10);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n Message m2 = new Message(\"test2\",\"bla2 bla david tikva moshe\",_u1);\n Message.incId();\n Message m3 = new Message(\"test2\",\"moshe cohen\",_u1);\n Message.incId();\n\n this.allMsgs.put(m1.getMsg_id(), m1);\n this.allMsgs.put(m2.getMsg_id(), m2);\n this.allMsgs.put(m3.getMsg_id(), m3);\n\n this.searchEngine.addData(m1);\n this.searchEngine.addData(m2);\n this.searchEngine.addData(m3);\n\n /* SearchHit[] result = this.searchEngine.searchByContent(\"bla2\", 0,1);\n assertTrue(result.length==1);\n assertTrue(result[0].getMessage().equals(m2));\n\n SearchHit[] result2 = this.searchEngine.searchByContent(\"bla david tikva\", 0,2);\n assertTrue(result2.length==1);\n assertEquals(result2[0].getScore(),3.0);\n //assertEquals(result2[1].getScore(),2.0);\n assertTrue(result2[0].getMessage().equals(m2));\n //assertTrue(result2[1].getMessage().equals(m1));\n\n SearchHit[] result3 = this.searchEngine.searchByContent(\"bla2 tikva\", 0, 5);\n assertTrue(result3.length==0);\n */\n\n/*\n SearchHit[] result4 = this.searchEngine.searchByContent(\"bla OR tikva\", 0, 5);\n assertTrue(result4.length==2);\n assertTrue(result4[0].getMessage().equals(m2));\n assertTrue(result4[1].getMessage().equals(m1));\n\n SearchHit[] result5 = this.searchEngine.searchByContent(\"bla AND cohen\", 0, 5);\n assertTrue(result5.length==0);\n\n result5 = this.searchEngine.searchByContent(\"bla AND moshe\",0,5);\n assertTrue(result5.length==2);\n assertTrue(result5[0].getScore() == result5[1].getScore());\n assertTrue(result5[0].getMessage().equals(m2));\n assertTrue(result5[1].getMessage().equals(m1));\n\n result5 = this.searchEngine.searchByContent(\"bla AND moshe\", 10, 11);\n assertTrue(result5.length==0);\n */\n\n }" ]
[ "0.711651", "0.6552419", "0.6531162", "0.6474149", "0.64681816", "0.6457078", "0.6447234", "0.64378625", "0.6429543", "0.63489455", "0.61143476", "0.6112527", "0.6083634", "0.6057388", "0.6049363", "0.603321", "0.60042554", "0.5957052", "0.5949897", "0.5934078", "0.5907304", "0.58614516", "0.5848882", "0.5835902", "0.5826517", "0.58219695", "0.58187103", "0.58161235", "0.58134115", "0.5811975", "0.5797734", "0.57782185", "0.5765739", "0.57647085", "0.57403547", "0.5731354", "0.572781", "0.57252985", "0.5724934", "0.5722986", "0.5708392", "0.5699593", "0.5696547", "0.5692011", "0.5681057", "0.5672621", "0.5667738", "0.56468785", "0.5617258", "0.5610763", "0.5603608", "0.55993223", "0.55986774", "0.5596368", "0.55870813", "0.5578014", "0.5569293", "0.55610675", "0.55478764", "0.55420405", "0.5539934", "0.5530312", "0.5518555", "0.5497946", "0.5496308", "0.549593", "0.5482077", "0.5477205", "0.54617345", "0.54609764", "0.54550177", "0.5449117", "0.54460174", "0.5441434", "0.5435738", "0.543536", "0.54276365", "0.54231834", "0.54136026", "0.5409584", "0.5399147", "0.5396704", "0.5396304", "0.539449", "0.5388919", "0.53808653", "0.53797144", "0.5373196", "0.53670824", "0.5358966", "0.5353387", "0.5351659", "0.5347548", "0.5347334", "0.53439575", "0.5342264", "0.53312546", "0.53136474", "0.5310228", "0.5305492" ]
0.7518604
0
TODO Autogenerated method stub
@Override public boolean containsKey(Object key) { String uKey = key.toString().toUpperCase(); return super.containsKey(uKey); }
{ "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 T put(String key, T value) { String uKey = key.toUpperCase(); if ( containsKey(uKey)){ return super.get(uKey); }else{ return super.put(uKey, value); } }
{ "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
Get the identification number of the connection in question.
public long connectionId() { return connectionId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getConnectionId() {\n return connId;\n }", "public long getConnectionId() {\n return connectionId;\n }", "public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n }\n }", "public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n }\n }", "public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n }\n }", "java.lang.String getConnectionId();", "java.lang.String getConnectionId();", "java.lang.String getConnectionId();", "public int getIdentificationNumber() {\n return identificationNumber;\n }", "public int idOfConnection(Connection conn) {\n\t\tint match;\n\t\tString tag;\n\n\t\ttry {\n\t\t\ttag = conn.toString();\n\t\t}\n\t\tcatch (NullPointerException e1) {\n\t\t\ttag = \"none\";\n\t\t}\n\n\t\tmatch=-1;\n\n\t\tfor(int i=0; i< currConnections; i++) {\n\t\t\tif(connID[i].equals(tag)) {\n\t\t\t\tmatch = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn match;\n\t}", "public String getConnectionId() {\n return this.connectionId;\n }", "public String getConnectionId() {\n return connectionId;\n }", "@Override\n public long getConnID() {\n return endpointHandler.getConnID();\n }", "public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }", "public String getIdentificationNumber() {\n return this.identificationNumber;\n }", "public com.google.protobuf.ByteString\n getConnectionIdBytes() {\n java.lang.Object ref = connectionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n connectionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionIdBytes() {\n java.lang.Object ref = connectionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n connectionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionIdBytes() {\n java.lang.Object ref = connectionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n connectionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public long getConnectionKey() {\n\t\treturn connectionKey;\n\t}", "private String getIdentificationString() {\n\t\tif (clientController.client.visitorID.getVal() != null)\n\t\t\treturn clientController.client.visitorID.getVal().intern();\n\t\tif (clientController.client.logedInSubscriber.getVal() != null)\n\t\t\treturn clientController.client.logedInSubscriber.getVal().personalID;\n\t\treturn null;\n\t}", "public com.google.protobuf.ByteString\n getConnectionIdBytes() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionIdBytes() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionIdBytes() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getConnectionIdBytes();", "com.google.protobuf.ByteString\n getConnectionIdBytes();", "com.google.protobuf.ByteString\n getConnectionIdBytes();", "public int getSessionNo() {\n String[] sid = sessionid.split(\"/\");\n return Integer.parseInt(sid[0]);\n }", "int getPacketId();", "public static long getIdConnected(Context ctx) {\n\t\tSharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\treturn preferences.getLong(PreferenceConstants.ACCOUNT_ID, 0L);\n\t}", "public static int getIdNumber() {\n return idNumber;\n }", "public final String getNetId( )\r\n {\r\n return netId;\r\n }", "public abstract String getConnectionId();", "String getIdNumber();", "public String getIdentNo() {\n return identNo;\n }", "private int getRID() throws SQLException {\n\t\tResultSet result = getRidStatement.executeQuery();\n\t\tif (result.next()) {\n\t\t\tint out = result.getInt(1);\n\t\t\tresult.close();\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+out+\"\\n\");\n\t\t\t}\n\t\t\treturn out;\n\t\t} else {\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+0+\"\\n\");\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t}", "public String getIdNumber() {\n return idNumber;\n }", "java.lang.String getProtocolId();", "public long getId() {\n\t\treturn graphicFrame.getNvGraphicFramePr().getCNvPr().getId();\n\t}", "public static int getIdCounter() {\n return idCounter;\n }", "public static int getIdcounter() {\n return idcounter;\n }", "public String getConnectId() {\n return connectId;\n }", "private long getIDnumber() {\n\t\treturn IDnumber;\n\t}", "public String getOid() {\n return getProperty(Property.OID);\n }", "public String getInumber(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, INUMBER);\n\t}", "public long getIdentificationDocumentID(){\n\t\treturn identificationDocumentID;\n\t}", "public String getCpnID() {\n\t\treturn this.CpnID;\n\t}", "@Override\r\n public final Integer getIdentifier() {\r\n return getIdent();\r\n }", "public int getcodigoIdentificador() {\r\n\t\treturn codigoIdentificador;\r\n\t}", "int getClientSessionID();", "public Integer getnId() {\n return nId;\n }", "UUID getConnectorId();", "public int getId() {\n\t\treturn config >> 8;\n\t}", "@NonNull\n public String getIdentifier() {\n return mProto.id;\n }", "private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }", "public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }", "public java.lang.String getIDNumber() {\n return IDNumber;\n }", "public int getNumID() {\n return numID;\n }", "public static int getIdentifier(){\n\t\tif(index > ids.size() - 1){\n\t\t\tindex = 0;\n\t\t}\n\t\t// Post increment is used here, returns index then increments index\n\t\treturn ids.get(index++);\n\t}", "UUID getNegotiationId();", "public int getNetWorkId() {\n\t\treturn (mWifiInfo == null) ? 0 : mWifiInfo.getNetworkId();\n\t}", "public int getCurrentOperationId(){\n int nmr = 1;\n operationLock.lock();\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT OP_ID FROM APP.OPERATIONS ORDER BY OP_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"OP_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n operationLock.unlock();\n return nmr;\n }", "public int getidnumber() {\r\n return idnumber;\r\n }", "Integer getCCPID();", "public String getCallIdentifier() {\n return callIdHeader.getCallId();\n }", "public String getInumber()\n\t{\n\t\treturn getInumber( getSession().getSessionContext() );\n\t}", "public String getId_number() {\n return id_number;\n }", "public int getIdentifier()\n {\n return identifier;\n }", "String getIdentityId();", "public static Object getIccid() {\n\t\treturn null;\n\t}", "public String getProtocolId();", "public int getID() {\r\n\t\treturn idNumber;\r\n\t}", "public String getIdentification ()\n {\n return this.toString();\n }", "int getLoginId();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "public String getId ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"getId\", true);\n $in = _invoke ($out);\n String $result = $in.read_string ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return getId ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public final static String getServerIdentificator() {\r\n\t\treturn serverID;\r\n\t}", "public String getGatewayIdentifier()\n {\n String identifier = null;\n\n switch (this.gatewayProtocol)\n {\n case TCP:\n {\n identifier = \"tcp://\" + this.gatewayIPAddress.getHostAddress()\n + \":\" + this.gatewayPort;\n break;\n }\n case RTU:\n {\n identifier = \"rtu://\" + this.serialParameters.getPortName();\n break;\n }\n case RTU_TCP:\n {\n identifier = \"rtu_tcp://\"\n + this.gatewayIPAddress.getHostAddress() + \":\"\n + this.gatewayPort;\n break;\n }\n case RTU_UDP:\n {\n identifier = \"rtu_udp://\"\n + this.gatewayIPAddress.getHostAddress() + \":\"\n + this.gatewayPort;\n break;\n }\n default:\n {\n // null\n identifier = null;\n break;\n }\n }\n\n return identifier;\n }", "public final String getChannelNumber() {\n\t\treturn impl.getChannelNumber();\n }", "public int getIdenti() {\r\n return identi;\r\n }", "public static String getConnUserID(Connection con) throws StoreException {\r\n PreparedStatement pstmt = null;\r\n ResultSet rset = null;\r\n String user_id = \"\";\r\n\r\n try{\r\n pstmt = con.prepareStatement(\"SELECT SYS.LOGIN_USER() AS USER_ID FROM DUAL\");\r\n\r\n rset = pstmt.executeQuery();\r\n if (rset!=null && rset.next()) user_id = rset.getString(1);\r\n\r\n } catch(SQLException se) {\r\n \tlogTemp = \"[DBUtils.getConnUserName] SQLException:\"+se;\r\n \tlog.error(logTemp);\r\n throw new StoreException(logTemp);\r\n } catch(Exception e) {\r\n \tlogTemp = \"[DBUtils.getConnUserName] SQLException:\"+e;\r\n log.error(logTemp);\r\n throw new StoreException(logTemp);\r\n } finally {\r\n try{\r\n freeConnection(null, pstmt, rset);\r\n } catch (Exception s) {\r\n \tlogTemp = \"[DBUtils.getConnUserName] Connection Recover Exception:\"+s;\r\n log.error(logTemp);\r\n }\r\n }\r\n return user_id;\r\n }", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "public int id() {\n return _num;\n }", "int getServerId();", "public void setConnectionId(long value) {\n this.connectionId = value;\n }", "Long getRemoteID() throws RemoteException;", "public static String getIccid() {\n\t\treturn null;\n\t}", "public int getICID() {\n return icid;\n }", "int getID()\n throws RemoteException;", "public int getClientId() {\n\t\treturn clientIDCounter++;\n\t}", "public int getIdentity(){\r\n\t\treturn identity;\r\n\t}", "public int getIdentificador() {\r\n\t\treturn identificador;\r\n\t}", "public BigInteger getNetworkId() {\n return networkId;\n }", "Integer getDeviceId();", "public int getID() {\n return graphConfig.getIndex();\n }" ]
[ "0.7077883", "0.7039791", "0.70035154", "0.70035154", "0.70035154", "0.69793147", "0.69793147", "0.69793147", "0.69346243", "0.69346243", "0.69346243", "0.68699586", "0.67614853", "0.6715348", "0.67034036", "0.6679115", "0.65694535", "0.6478608", "0.64729166", "0.64729166", "0.64729166", "0.64371544", "0.636869", "0.6338747", "0.6338747", "0.6338747", "0.6305315", "0.6305315", "0.6305315", "0.6277278", "0.6269052", "0.62597823", "0.62475544", "0.6217527", "0.6181223", "0.6178623", "0.6165733", "0.61645526", "0.6133997", "0.6114347", "0.6073368", "0.6064349", "0.6041799", "0.60409087", "0.60144866", "0.6009718", "0.6003437", "0.5997507", "0.5997449", "0.5988901", "0.5968199", "0.59677523", "0.59400433", "0.5926044", "0.5925337", "0.5889208", "0.588538", "0.5884892", "0.58737016", "0.5869221", "0.5863177", "0.58512014", "0.5847956", "0.582759", "0.5815797", "0.5813599", "0.5813373", "0.58129334", "0.58067936", "0.5804604", "0.58027625", "0.57955337", "0.5790069", "0.5785655", "0.57785445", "0.57741845", "0.57741845", "0.57741845", "0.57741845", "0.57741845", "0.57706577", "0.57703775", "0.576563", "0.57616353", "0.575089", "0.57469606", "0.5745029", "0.57438946", "0.5742782", "0.57400537", "0.5736985", "0.5727149", "0.5726897", "0.57220817", "0.5721446", "0.57210165", "0.5715025", "0.57057416", "0.5700204", "0.5699576" ]
0.7168045
0
Get the address of the remote host that your session is connected to. If this is an offline session then this method will return "".
public String connectedHost() { return connectedHost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getRemoteHost();", "String getRemoteAddr();", "public final String getRemoteSocketAddress(){\r\n return remoteSocketHost;\r\n }", "public java.lang.String getRemoteHost() {\r\n return remoteHost;\r\n }", "@Override\n\tpublic java.lang.String getRemoteHost() {\n\t\treturn _userTracker.getRemoteHost();\n\t}", "public java.lang.String getRemoteHost() {\n java.lang.Object ref = remoteHost_;\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 remoteHost_ = s;\n }\n return s;\n }\n }", "public java.lang.String getRemoteHost() {\n java.lang.Object ref = remoteHost_;\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 remoteHost_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n\t\treturn this.sipStack.getHostAddress();\n\t}", "public String getRemoteSocketAddress() {\n return client.getRemoteSocketAddress().toString();\n }", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "String getRemoteHostName();", "default String remoteAddr() {\n return (String) metadata().get(\"x-remote-addr\");\n }", "public String getRnidsHostAddress() {\n\t\tString address = getProperties().getProperty(\"rnids.host.address\").trim();\n\t\treturn address;\n\t}", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() {\n return messageProcessor.getIpAddress().getHostAddress();\n }", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "SocketAddress getRemoteAddress();", "java.lang.String getHost();", "java.lang.String getHost();", "public String getHost() {\n return host.getText();\n }", "private String GetHostAddress() throws UnknownHostException {\n return Inet4Address.getLocalHost().getHostAddress();\n }", "public String getHostAddress() {\n\t\treturn javaNetAddress.getHostAddress();\n\t}", "@NonNull\n public String getServerAddr() {\n if (mIkeTunConnParams == null) return mServerAddr;\n\n final IkeSessionParams ikeSessionParams = mIkeTunConnParams.getIkeSessionParams();\n return ikeSessionParams.getServerHostname();\n }", "String host();", "public String getUserHost() {\n return userHost;\n }", "@Override\n\t\tpublic String getRemoteHost() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic java.lang.String getRemoteAddr() {\n\t\treturn _userTracker.getRemoteAddr();\n\t}", "public InetAddress getHost();", "String getHost();", "@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}", "public InetSocketAddress getRemoteAddress() {\r\n return (InetSocketAddress) channel.remoteAddress();\r\n }", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "String getRemoteIpAddress();", "public String host() {\n return host;\n }", "public String getViaHost() {\n return this.myAddress;\n }", "public String getViaHost() {\n return this.myAddress;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "public String getHostAddress() {\n String address = null;\n\n if (this.clientSocket != null) {\n address = this.clientSocket.getInetAddress().getHostAddress();\n }\n\n return address;\n }", "public String getHost();", "public String getHost();", "java.lang.String getServerAddress();", "abstract String getRemoteAddress();", "public String getHostURL() {\n return getHostURL(PAActiveObject.getActiveObjectNodeUrl(PAActiveObject.getStubOnThis()));\n }", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "@Override\n\t\tpublic String getRemoteAddr() {\n\t\t\treturn null;\n\t\t}", "public SocketAddress getRemoteAddress() {\n return socket.getRemoteSocketAddress();\n }", "public String getHost() {\n return stack.stackAddress;\n }", "public String getRemoteIPAddress() {\n String xForwardedFor = getRequestHeader(\"X-Forwarded-For\");\n\n if (!Utils.isEmpty(xForwardedFor)) {\n System.out.println(\"The xForwardedFor address is: \" + xForwardedFor + \"\\n\");\n return xForwardedFor.split(\"\\\\s*,\\\\s*\", 2)[0]; // The xForwardFor is a comma separated string: client,proxy1,proxy2,...\n }\n\n return getRequest().getRemoteAddr();\n }", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n \t\treturn host;\n \t}", "@Override\n\tpublic String getRemoteAddr() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getRemoteAddr() {\n\t\treturn null;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\r\n return host;\r\n }", "public String getHost( ) {\n\t\treturn host;\n\t}", "public String getPeerAddress() {\n return peerAddress.getHostAddress();\n }", "public String getPeerAddress() {\n return peerAddress.getHostAddress();\n }", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost(){\n\t\treturn this.host;\n\t}", "public String getIpAddress()\n\t{\n\t\t/* TODO: The IP address returned is in this format: /127.0.0.1:9845\n\t\t * Rewrite to remove the unnessecary data. */\n\t\treturn getSession().getIpAddress();\n\t}", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public InetSocketAddress remote() {\n return remote;\n }", "public String getServerAddress() {\r\n\t\treturn this.serverAddress;\r\n\t}", "@Nullable\n @Generated\n @Selector(\"remoteAddress\")\n public native String remoteAddress();", "public String getRemoteComputerString(){\n return this.remoteComputerString;\n }", "private String getIPAddress() throws Exception {\n //Don't need the line of code below, TODO: delete it!\n InetAddress getIP = InetAddress.getLocalHost();\n String thisSystemAddress = \"\";\n try{\n URL thisUrl = new URL(\"http://bot.whatismyipaddress.com\");\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(thisUrl.openStream()));\n thisSystemAddress = bufferedReader.readLine().trim();\n } catch (Exception e){\n e.printStackTrace();\n e.getCause();\n }\n\n return thisSystemAddress;\n }", "public static String getCurrentIp() throws UnknownHostException {\n try {\n InetAddress candidateAddress = null;\n for (Enumeration ifaces = NetworkInterface.getNetworkInterfaces(); ifaces\n .hasMoreElements();) {\n NetworkInterface iface = (NetworkInterface) ifaces.nextElement();\n for (Enumeration inetAddrs = iface.getInetAddresses(); inetAddrs.hasMoreElements();) {\n InetAddress inetAddr = (InetAddress) inetAddrs.nextElement();\n if (!inetAddr.isLoopbackAddress()) {\n if (inetAddr.isSiteLocalAddress() && !iface.getName().contains(\"docker\")) {\n return inetAddr.getHostAddress();\n } else if (candidateAddress == null) {\n candidateAddress = inetAddr;\n }\n }\n }\n }\n if (candidateAddress != null) {\n return candidateAddress.getHostAddress();\n }\n InetAddress jdkSuppliedAddress = InetAddress.getLocalHost();\n if (jdkSuppliedAddress == null) {\n throw new UnknownHostException(\n \"The JDK InetAddress.getLocalHost() method unexpectedly returned null.\");\n }\n return jdkSuppliedAddress.getHostAddress();\n } catch (Exception e) {\n UnknownHostException unknownHostException =\n new UnknownHostException(\"Failed to determine LAN address: \" + e);\n unknownHostException.initCause(e);\n throw unknownHostException;\n }\n }", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "@Override\n public NetworkAddress getRemoteAddress() {\n return remoteAddress;\n }", "public com.google.protobuf.ByteString\n getRemoteHostBytes() {\n java.lang.Object ref = remoteHost_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n remoteHost_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getClientHost() throws ServerNotActiveException {\n return sun.rmi.transport.tcp.TCPTransport.getClientHost();\n }", "@Override\n\tpublic InetAddress getRemoteAddress() {\n\t\treturn null;\n\t}", "String getAddr();", "public static String getLocalIPAddress() {\r\n return (localIPAddress);\r\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getProxyHost() {\n return cfg.getProxyHost();\n }", "public String getHost(Env env) {\n return client.getHost();\n }", "public com.google.protobuf.ByteString\n getRemoteHostBytes() {\n java.lang.Object ref = remoteHost_;\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 remoteHost_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getRemoteHostBytes();", "public String getServerAddress() {\n\t\treturn mServerAddress;\n\t}", "public static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return LOCALHOST;\n }\n }", "public String getHost() { return host; }", "public int getHostAddress() {\n return hostAddress;\n }", "public String getServerUrl() {\n return ipAddress;\n }", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n return s;\n }\n }", "public String getHostName() throws UnknownHostException\n\t{\n\t\t\n\t\treturn InetAddress.getLocalHost().getHostAddress();\n\t\t\n\t}" ]
[ "0.7978201", "0.7535884", "0.75342786", "0.74717456", "0.7404485", "0.73456204", "0.7343658", "0.73434126", "0.73292834", "0.7290443", "0.72565585", "0.72543746", "0.7232933", "0.7204466", "0.7179026", "0.71678823", "0.7162452", "0.71316195", "0.71316195", "0.7125125", "0.70784444", "0.70726013", "0.7040123", "0.70274407", "0.69959116", "0.6995013", "0.6987003", "0.69827", "0.6960154", "0.6943121", "0.6943121", "0.6935623", "0.6920054", "0.68721825", "0.68658453", "0.68638897", "0.68638897", "0.68571085", "0.68553543", "0.68334925", "0.68334925", "0.68230444", "0.6821758", "0.68162686", "0.68072915", "0.67861164", "0.6782952", "0.67715466", "0.67621946", "0.675289", "0.67422026", "0.67422026", "0.67422026", "0.67422026", "0.67422026", "0.67422026", "0.6739703", "0.6724186", "0.6724186", "0.6713773", "0.6713773", "0.670845", "0.6706937", "0.67047673", "0.67047673", "0.66855025", "0.6679601", "0.6679601", "0.66766757", "0.66760194", "0.66760194", "0.6669222", "0.66656244", "0.66514224", "0.66486335", "0.6648527", "0.66181207", "0.65919644", "0.6581377", "0.6574837", "0.6571942", "0.65420645", "0.65350235", "0.65309215", "0.6524592", "0.6511463", "0.6506158", "0.65001124", "0.64838463", "0.6478527", "0.64694864", "0.64681476", "0.646645", "0.6463727", "0.6459604", "0.6455094", "0.64535576", "0.6448552", "0.6443957", "0.64412814" ]
0.7531752
3
Get the sequence number of the last message to be received by this session.
public int lastReceivedMsgSeqNum() { return lastReceivedMsgSeqNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized int getLastReceivedSequenceNumber()\n {\n return EASMessage.s_lastReceivedSequenceNumber;\n }", "public int lastSentMsgSeqNum()\n {\n return lastSentMsgSeqNum;\n }", "public long lastUpdateSequence() {\n\t\treturn message.getLastUpdateSequence();\n\t}", "@Override\n \tpublic long getLatestSequenceNumber() {\n \t\tsharedLock.lock();\n \t\ttry {\n \t\t\treturn sequenceNumber;\n \t\t} finally {\n \t\t\tsharedLock.unlock();\n \t\t}\n \t}", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public int getLastProgressivo() {\r\n\t\treturn messageNumber.get();\r\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 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 long sequenceNumber() {\n return sequenceNumber;\n }", "@Field(3) \n\tpublic int SequenceNo() {\n\t\treturn this.io.getIntField(this, 3);\n\t}", "public String getLastMsg() {\n String s = msgs.peekTail();\n return s == null ? \"\" : s;\n }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "public int getMessageNum() {\n return mMessageNum;\n }", "public String getNextMessage(){\r\n String msg = this.receivedMessages.get(0);\r\n this.receivedMessages.remove(0);\r\n return msg;\r\n }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "public long getSequenceNumber() {\n return sequenceNumber;\n }", "public long getSequenceNumber() {\n return sequenceNumber_;\n }", "public int getSeqNbr() {\n return seqNbr;\n }", "public long getSequenceNum() {\n return sequenceNum;\n }", "public int getCurSeq() {\n\t\t\n\t\tint seq_read_book = readBookDao.getCurSeq();\n\t\treturn seq_read_book;\n\t}", "public int getSequenceNumber() {\r\n return sequenceNumber;\r\n }", "public long getSequenceNumber() {\n return sequenceNumber_;\n }", "public int getSequenceNumber() {\n return sequenceNumber;\n }", "public Long getReceiveNum() {\r\n return receiveNum;\r\n }", "public int getSeq() {\n return -1;\n }", "public int getSequenceNumber() {\n return this.sequenceNumber;\n }", "public long getSequenceNumber();", "public String getLastMessage() {\n return lastMessage;\n }", "public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "public byte get_seqnum() {\n return (byte)getSIntElement(offsetBits_seqnum(), 8);\n }", "public long getSeqNo() {\n return seqNo;\n }", "public java.lang.Integer getSeqNo () {\n\t\treturn seqNo;\n\t}", "public int getSequenceNumber() {\r\n\t\treturn sequenceNumber;\r\n\t}", "long getSequenceNumber();", "public long getLastMsgTick() {\n return lastMessageSentAt;\n }", "public int getSequenceNum() {\n\t\treturn sequenceNumber;\n\t}", "private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\treturn seq++;\n\t}", "public static int getSeqFromMessage(String msg) {\n\n\t\tString seq = msg.substring(0, 4);\n\t\tint seqCount = Integer.parseInt(seq);\n\t\treturn seqCount;\n\t}", "public Long getUserSeq() {\n return sessionData.getUserSeq();\n }", "public int getSequenceNumber() {\n\t\treturn fSequenceNumber;\n\t}", "int getSequenceNumber();", "public long getSequenceNo() {\n\treturn sequenceNo;\n }", "public int getSequenceNumber() {\n return mSequenceGenerator.incrementAndGet();\n }", "public INT getSequenceNumber() { return _sequenceNumber; }", "@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 }", "public int getSequenceNumber();", "public long getSequence() {\n\t\tif (order != null){\n\t\t\treturn order.getSequence();\n\t\t}\n\t\treturn sequence;\n\t}", "public Number getSequenceNo() {\n return (Number)getAttributeInternal(SEQUENCENO);\n }", "private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}", "public long getSequenceId()\n {\n return sequence_id_;\n }", "@Override\n public Message getNextMessage() {\n return commReceiver.getNextMessage();\n }", "long getSeq() {\n return seq;\n }", "public static int getSequenceNumber(MessageContext msgCtx) {\n SOAPBody body = msgCtx.getEnvelope().getBody();\n OMElement messageNode = body.getFirstChildWithName(new QName(FIXConstants.FIX_MESSAGE));\n String value = messageNode.getAttributeValue(new QName(FIXConstants.FIX_MESSAGE_COUNTER));\n if (value != null) {\n return Integer.parseInt(value);\n } else {\n return -1;\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 getSequenceNumber(){\n return sequenceNumber;\n }", "long getSequenceNum() {\n return sequenceNum;\n }", "public long get_next_remote_commitment_number() {\n\t\tlong ret = bindings.ChannelReestablish_get_next_remote_commitment_number(this.ptr);\n\t\treturn ret;\n\t}", "public java.lang.Integer getNummessage() {\r\n\t\treturn nummessage;\r\n\t}", "static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }", "public long getMessageId() {\n return instance.getMessageId();\n }", "private Integer getNextSequenceNumber(String sequenceKey) {\n return getSequenceAccessorService().getNextAvailableSequenceNumber(sequenceKey).intValue();\n }", "public int getSequence() {\n return sequence;\n }", "public Integer getCocSeqNo() {\n\t\treturn cocSeqNo;\n\t}", "public java.lang.Long getSeqId () {\n\t\treturn seqId;\n\t}", "long getLastProducerSequenceId(ProducerId id) throws IOException;", "public static int offset_seqnum() {\n return (264 / 8);\n }", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "public int getMessageId() {\n return concatenateBytes(binary[MSID_OFFSET],\n binary[MSID_OFFSET+1],\n binary[MSID_OFFSET+2],\n binary[MSID_OFFSET+3]);\n }", "public int getSeqNo();", "public int getSeqNo();", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "public int last() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferLast - 1];\n\t\t\tbufferIndex = 0;\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "public int getLast() {\n\t\treturn last;\n\t}", "long getNextSequenceNumber();" ]
[ "0.81843984", "0.78394854", "0.6925608", "0.6833313", "0.6825808", "0.67739433", "0.6738299", "0.6738299", "0.6738299", "0.6738299", "0.6738299", "0.6738299", "0.6738299", "0.6710433", "0.6710433", "0.6710433", "0.6710433", "0.6710433", "0.6710433", "0.6710433", "0.6653604", "0.6638685", "0.6558868", "0.6541861", "0.6541861", "0.6531803", "0.65271205", "0.652061", "0.652061", "0.650244", "0.6495741", "0.6485048", "0.6474064", "0.6435037", "0.64297193", "0.6427747", "0.64185274", "0.6416291", "0.64152396", "0.6408757", "0.6401095", "0.63920426", "0.63823235", "0.63757086", "0.63757086", "0.63757086", "0.63757086", "0.63757086", "0.63757086", "0.63757086", "0.6367907", "0.6361521", "0.63556904", "0.6348386", "0.6347884", "0.63464594", "0.6338134", "0.6337941", "0.6335227", "0.6315305", "0.631054", "0.6300649", "0.6297519", "0.6294541", "0.6286179", "0.6281917", "0.62702304", "0.62605935", "0.62307227", "0.62164545", "0.61652875", "0.6165202", "0.61397725", "0.61316484", "0.6125104", "0.6125104", "0.6125104", "0.6124563", "0.6122453", "0.6115614", "0.6114502", "0.60988873", "0.60970443", "0.60496175", "0.6043833", "0.6023779", "0.6018575", "0.6008668", "0.5961175", "0.5960771", "0.5954856", "0.59542316", "0.59542316", "0.59468794", "0.59468794", "0.5935454", "0.59282273", "0.59282273", "0.59220123", "0.5920413" ]
0.8493957
0
Get the sequence number of the last message to be sent from this session.
public int lastSentMsgSeqNum() { return lastSentMsgSeqNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int lastReceivedMsgSeqNum()\n {\n return lastReceivedMsgSeqNum;\n }", "public static synchronized int getLastReceivedSequenceNumber()\n {\n return EASMessage.s_lastReceivedSequenceNumber;\n }", "public long lastUpdateSequence() {\n\t\treturn message.getLastUpdateSequence();\n\t}", "public int getLastProgressivo() {\r\n\t\treturn messageNumber.get();\r\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 }", "@Override\n \tpublic long getLatestSequenceNumber() {\n \t\tsharedLock.lock();\n \t\ttry {\n \t\t\treturn sequenceNumber;\n \t\t} finally {\n \t\t\tsharedLock.unlock();\n \t\t}\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 long sequenceNumber() {\n return sequenceNumber;\n }", "public long getSequenceNumber() {\n return sequenceNumber;\n }", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public long getSequenceNumber() {\n return sequenceNumber_;\n }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "public long getLastMsgTick() {\n return lastMessageSentAt;\n }", "public long getSequenceNumber() {\n return sequenceNumber_;\n }", "public int getSequenceNumber() {\r\n return sequenceNumber;\r\n }", "public int getSequenceNumber() {\n return sequenceNumber;\n }", "public long getSequenceNum() {\n return sequenceNum;\n }", "public int getSequenceNumber() {\n return this.sequenceNumber;\n }", "public int getSeq() {\n return -1;\n }", "@Field(3) \n\tpublic int SequenceNo() {\n\t\treturn this.io.getIntField(this, 3);\n\t}", "public int getSequenceNumber() {\r\n\t\treturn sequenceNumber;\r\n\t}", "public int getSequenceNumber() {\n return mSequenceGenerator.incrementAndGet();\n }", "public int getSeqNbr() {\n return seqNbr;\n }", "public int getSequenceNumber() {\n\t\treturn fSequenceNumber;\n\t}", "public Long getUserSeq() {\n return sessionData.getUserSeq();\n }", "public String getLastMsg() {\n String s = msgs.peekTail();\n return s == null ? \"\" : s;\n }", "public String getLastMessage() {\n return lastMessage;\n }", "public long getSequenceNumber();", "public long getSeqNo() {\n return seqNo;\n }", "long getSequenceNumber();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "public int getSequenceNum() {\n\t\treturn sequenceNumber;\n\t}", "public int getCurSeq() {\n\t\t\n\t\tint seq_read_book = readBookDao.getCurSeq();\n\t\treturn seq_read_book;\n\t}", "public int getMessageNum() {\n return mMessageNum;\n }", "int getSequenceNumber();", "public INT getSequenceNumber() { return _sequenceNumber; }", "public long getSequence() {\n\t\tif (order != null){\n\t\t\treturn order.getSequence();\n\t\t}\n\t\treturn sequence;\n\t}", "public long getSequenceNo() {\n\treturn sequenceNo;\n }", "public int getSequenceNumber();", "public java.lang.Integer getSeqNo () {\n\t\treturn seqNo;\n\t}", "private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\treturn seq++;\n\t}", "private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}", "public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }", "public long getSequenceId()\n {\n return sequence_id_;\n }", "public Number getSequenceNo() {\n return (Number)getAttributeInternal(SEQUENCENO);\n }", "public int getSequenceNumber(){\n return sequenceNumber;\n }", "public String getNextMessage(){\r\n String msg = this.receivedMessages.get(0);\r\n this.receivedMessages.remove(0);\r\n return msg;\r\n }", "long getSeq() {\n return seq;\n }", "public byte get_seqnum() {\n return (byte)getSIntElement(offsetBits_seqnum(), 8);\n }", "long getSequenceNum() {\n return sequenceNum;\n }", "public int get_last_transfert() {\n\t\treturn this.last_transfert;\n\t}", "public Integer getSeq() {\n return seq;\n }", "public Integer getSeq() {\n return seq;\n }", "public Integer getSeq() {\n return seq;\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 }", "static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }", "public int getSequence() {\n return sequence;\n }", "public long jumpSequenceNumber() {\n synchronized(this) {\n theSeqNum += (GeneratorConfig.getRestartJump() +\n GeneratorConfig.getSaveInterval());\n\n return theSeqNum;\n }\n }", "public Long getReceiveNum() {\r\n return receiveNum;\r\n }", "public java.lang.Long getSeqId () {\n\t\treturn seqId;\n\t}", "long getLastProducerSequenceId(ProducerId id) throws IOException;", "public long getMessageId() {\n return instance.getMessageId();\n }", "public long get_next_remote_commitment_number() {\n\t\tlong ret = bindings.ChannelReestablish_get_next_remote_commitment_number(this.ptr);\n\t\treturn ret;\n\t}", "public int last() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferLast - 1];\n\t\t\tbufferIndex = 0;\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "@DataClass.Generated.Member\n public int getSequenceNumber() {\n return mSequenceNumber;\n }", "public int getLastPlayIndex() {\n\t\treturn lastMoveID;\n\t}", "public int getLast() {\n\t\treturn last;\n\t}", "public int getSeqNo();", "public int getSeqNo();", "protected int getSeqIndex()\n {\n return seqIndex;\n }", "public Integer getSequence()\n {\n return sequence;\n }", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "long getNextSequenceNumber();", "public static int getSequenceNumber(MessageContext msgCtx) {\n SOAPBody body = msgCtx.getEnvelope().getBody();\n OMElement messageNode = body.getFirstChildWithName(new QName(FIXConstants.FIX_MESSAGE));\n String value = messageNode.getAttributeValue(new QName(FIXConstants.FIX_MESSAGE_COUNTER));\n if (value != null) {\n return Integer.parseInt(value);\n } else {\n return -1;\n }\n }", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "public long getIdMessage() {\r\n\t\treturn idMessage;\r\n\t}" ]
[ "0.83613485", "0.80299443", "0.714532", "0.7002589", "0.692083", "0.692083", "0.692083", "0.692083", "0.692083", "0.692083", "0.692083", "0.6913382", "0.68983084", "0.68983084", "0.68983084", "0.68983084", "0.68983084", "0.68983084", "0.68983084", "0.6816437", "0.6754615", "0.6748716", "0.67471164", "0.6731111", "0.6731111", "0.672457", "0.672457", "0.66974634", "0.66924906", "0.6671539", "0.66658753", "0.6659238", "0.6651008", "0.6642311", "0.6632122", "0.6605787", "0.66031563", "0.66005325", "0.65997434", "0.6597269", "0.6594138", "0.65758145", "0.65592986", "0.6523643", "0.6523299", "0.65169454", "0.65169454", "0.65169454", "0.65169454", "0.65169454", "0.65169454", "0.65169454", "0.6501878", "0.6501024", "0.6466515", "0.6463514", "0.6462716", "0.645519", "0.64522433", "0.6426698", "0.6425491", "0.6423172", "0.6412243", "0.6389265", "0.6363921", "0.6359219", "0.6355123", "0.63476783", "0.6342941", "0.6313738", "0.63088167", "0.629646", "0.62830657", "0.62830657", "0.62830657", "0.6275063", "0.62438405", "0.62083054", "0.6180372", "0.61788243", "0.61660355", "0.6142839", "0.61306363", "0.61209315", "0.60732275", "0.60669273", "0.60669273", "0.60599524", "0.6050754", "0.6049328", "0.6025495", "0.6025495", "0.60232675", "0.60171074", "0.6011997", "0.601162", "0.6006227", "0.59933954", "0.59933954", "0.599041" ]
0.8318448
1